To run a remote command, perform an SNMP Set on the shellCmd MIB variable. When you are performing 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 command's exit status in shellExitStat.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |