<style type="text/css">a[data-mtli~="mtli_filesize115kB"]:after {content:" (1.15 kB)"}</style><style type="text/css">a[data-mtli~="mtli_filesize115kB"]:after {content:" (1.15 kB)"}</style>{"id":853,"date":"2017-12-14T12:23:16","date_gmt":"2017-12-14T12:23:16","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=853"},"modified":"2024-03-05T15:47:12","modified_gmt":"2024-03-05T14:47:12","slug":"cisco-check-command","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/cisco-check-command\/","title":{"rendered":"Cisco check command"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<div class=\"maint-error\">\n  <img decoding=\"async\" src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\"><\/p>\n<p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<\/p>\n<\/div>\n<p><\/p>\n<p>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.<\/p>\n<p>This script needs several parameters:<\/p>\n<pre>cisco_check_command.pl &lt;ip_address&gt; &lt;password&gt; &lt;timeout&gt; &lt;command&gt; &lt;output&gt;<\/pre>\n<p>Samples<\/p>\n<pre>cisco_check_command.pl 192.168.50.250 pass1234 5 \"show version\" \"12.1(22)EA3\"<\/pre>\n<pre>cisco_check_command.pl 192.168.10.1 pass2335 2 \"show env power\" \"Internal POWER supply is OK\"<\/pre>\n<p>Will return 0 or 1 depending if response is as expected (as given in the 5th parameter).<\/p>\n<p>Could be modified to work on other kind of equipment, always using telnet. Also could be adapted to work as a remote plugin.<\/p>\n<h2>Files:<\/h2>\n<p><a href=\"\/library\/files_repository\/cisco_check_command.zip\" class=\"mtli_attachment mtli_zip\" data-mtli=\"mtli_filesize115kB\">cisco_check_command.zip<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important Notice: This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support. 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 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<div class=\"maint-error\">\r\n  <img src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\">\r\n  <p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<p>\r\n<\/div>\r\n\r\n<br>\r\n\r\nThis 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.\r\n\r\nThis script needs several parameters:\r\n<pre>cisco_check_command.pl <ip_address> <password> <timeout> <command> <output><\/pre>\r\nSamples\r\n<pre>cisco_check_command.pl 192.168.50.250 pass1234 5 \"show version\" \"12.1(22)EA3\"<\/pre>\r\n<pre>cisco_check_command.pl 192.168.10.1 pass2335 2 \"show env power\" \"Internal POWER supply is OK\"<\/pre>\r\nWill return 0 or 1 depending if response is as expected (as given in the 5th parameter).\r\n\r\nCould be modified to work on other kind of equipment, always using telnet. Also could be adapted to work as a remote plugin.\r\n<h2>Files:<\/h2>\r\n<a href=\"\/library\/files_repository\/cisco_check_command.zip\">cisco_check_command.zip<\/a>","_et_gb_content_width":"","footnotes":""},"categories":[31,7],"tags":[83,202],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/853"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":2,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":8454,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/853\/revisions\/8454"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}