Welcome to the Pandora FMS Module Library

This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Network Monitoring > Cisco

Cisco check command

Author: slerena Create in: 03/04/2013 Update in: 03/04/2013
Module type : File

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>


cisco_check_command.pl pass1234 5 "show version" "12.1(22)EA3"

cisco_check_command.pl 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.

Included files