09-01-2011 09:28 PM
To all you SNMP script experts,
By using SNMP, how do I send a "show" command to a switch?
The command is: sh proc cpu sorted | redirect tftp://<IP Address>/filename.txt
Solved! Go to Solution.
09-03-2011 08:03 PM
You could use a really nasty hack to do this. Create a config file with the contents:
do show proc cpu sorted | redirect tftp://x.x.x.x/filename.txt
end
Then use the CISCO-CONFIG-COPY-MIB to copy this file into the device's running config. At the moment the config is transfered, the show command should execute. Be careful doing this as any interactive commands you put in the config snippet file will lock the running configuration.
For documentation on how to use the CONFIG-COPY-MIB, see
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml .
09-03-2011 08:03 PM
You could use a really nasty hack to do this. Create a config file with the contents:
do show proc cpu sorted | redirect tftp://x.x.x.x/filename.txt
end
Then use the CISCO-CONFIG-COPY-MIB to copy this file into the device's running config. At the moment the config is transfered, the show command should execute. Be careful doing this as any interactive commands you put in the config snippet file will lock the running configuration.
For documentation on how to use the CONFIG-COPY-MIB, see
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml .
09-04-2011 03:13 PM
Thanks for the assistance Joe. Will look into this.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide