Previous Topic: Additional ParametersNext Topic: Extension Scripts


Extension Examples

The SystemEDGE agent includes several sample extension variables. These examples are defined in the sample sysedge.cf file. The scripts that implement these examples are included in the contrib subdirectory of the SystemEDGE agent's installation. These variables are also defined in the Systems Management Empire MIB (empire.asn1 in the mib subdirectory of the agent installation).

Important! Before you add your own extensions, carefully review the examples in this chapter and in the Systems Management Empire MIB. For clarity, these examples include the appropriate configuration file extension commands.

You can add these extensions to your sysedge.cf file to make them available to the SystemEDGE agent.

Example: Platform Independent Extension

The following extension object returns on Unix the output of command /opt/CA/SystemEDGE/extension/myextension/myextension or on Windows output of "C:\Program Files\CA\SystemEDGE\extesnion\myextension\myextension.<EXT>" where <EXT> is one of the executable extensions from environment variable %PATHEXT%:

extension 1 OctetString ReadOnly myextension

The instance identifier of this object is 1.3.6.1.4.1.546.14.1.0.

Example: Remote Ping (UNIX and Windows)

Use the following extension objects to instruct the SystemEDGE agent to ping a remote host from the host where the agent is running.

For UNIX systems, enter the following in the sysedge.cf file:

extension 31 OctetString ReadOnly "/bin/ping www.ca.com"

For Windows systems, enter the following in the %SystemRoot%\System32\sysedge.cf file:

extension 31 OctetString ReadOnly "%WINDIR%\system32\ping.exe www.ca.com"

The instance identifier of this object in both examples is 1.3.6.1.4.1.546.14.31.0.