1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Update in: 25 June 2019


:

This is a generic script to parse a command output on a Cisco device via Telnet. Could be used to check version, to check power supply status, etc.

This script needs several parameters:

cisco_check_command.pl <ip_address> <password> <timeout> <command> <output>

Samples

cisco_check_command.pl 192.168.50.250 pass1234 5 "show version" "12.1(22)EA3"
cisco_check_command.pl 192.168.10.1 pass2335 2 "show env power" "Internal POWER supply is OK"

Will return 0 or 1 depending if response is as expected (as given in the 5th parameter).

Could be modified to work on other kind of equipment, always using telnet. Also could be adapted to work as a remote plugin.

Files:

cisco_check_command.zip

(Visited 401 times, 1 visits today)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X