Most notification methods invoke an executable or shell script to read the environment variables and send the message. This action works well on most UNIX servers, but difficulties arise reading the environment variables on a Windows server.
You can use a Perl script to overcome environment problems on Windows. CA SDM includes a ready-to-use installation of the Perl interpreter named pdm_perl. Any Perl script invoked with pdm_perl as a notification method can reliably obtain the environment variables. The Perl script can read and format the environment variable values and carry on with the rest of the notification, such as invoking a pager or sending an email.
For Windows-based servers, consider using the launchit utility. One of the functions of this utility is to invoke your scripts or programs in a shell environment similar to the Command Prompt with the proper environment variables set.
For example, if you write a Perl script named read_env.pl to read several of the environment variables described here, you can invoke it for a notification by entering the following in the Notification Method field on the Notification Method Detail window:
pdm_perl script_path/read_env.pl
This notification method starts the Perl interpreter and executes the instructions in read_env.pl script.
Copyright © 2013 CA.
All rights reserved.
|
|