To run a remote command, perform an SNMP Set on the shellCmd MIB variable. When you perform SNMP Set operations, use a community name that grants you read-write access.
Enter the following at a command prompt to run a remote command:
SET shellOutput.0 = output filename SET shellCmd.0 = command
The agent fork/execs the specified command with standard output (stdout) and standard error (stderr) redirected to the file named by the shellOutput MIB variable. When the command finishes executing, the agent puts the exit status of the command in shellExitStat.
Copyright © 2013 CA. All rights reserved. |
|