06-10-2005 01:19 AM
I need some script for getting automatically the show tech-support to the NMS from a router. This script will be triggered by an event when the CPU utilizations is more than 90%.
06-10-2005 04:22 AM
Unfortunately there is no way to get the show tech via SNMP
06-10-2005 05:46 AM
You should be able to do this indirectly with CiscoWorks.
Assuming you have set up the router to send a trap or log event log notification (using the RMON threshold service - see http://www.cisco.com/warp/public/477/RMON/alarm_event.shtml) to the syslog server that CW is using, you would then define an automated action for said event in CW. For details on automated actions, see http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/cw2000/cw2000e/e_4_x/4_0/u_guide/syslog.htm#wp1211314
That action would be to launch a script (or possibly a batch file in Windows) to telnet into the device generating the event, sh tech, and log the session to a file uniquely defined by passing a parameter (and possibly a one up identifier) from the triggering event (e.g., devicename) to the log session file name.
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