Smart Call Home Show Commands

Blog

Mar 2, 2012 11:17 AM
Mar 2nd, 2012

I’m frequently asked, "Which show commands does Call Home execute and include with the alert forwarded to Smart Call Home?"

It varies according to the alert group and the platform. The commands are documented in the configuration guide for each supported device type. For example, the Cisco Nexus 5000 configuration guide lists the commands in table 26-1:  http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/configuration/guide/cli/sm_callhome.html#wp1070912

This row shows the commands that should be executed for the inventory alert group.

We can verify this using the debug command in NXOS.

First, enable debug output for call home using this command:

debug callhome all

Now initiate a call home message.  For example, we can run:

callhome test inventory

And we see the following in the debug output:

2012 Feb 17 18:33:47.141895 callhome: executing command:/isan/bin/vsh  -c "show interface transceiver"  -e 0 -q 2  -o 0  | head --bytes=5000000

2012 Feb 17 18:33:49.881546 callhome: executing command:/isan/bin/vsh  -c "show system uptime"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:33:52.036233 callhome: executing command:/isan/bin/vsh  -c "show sprom fex all"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:33:54.142651 callhome: executing command:/isan/bin/vsh  -c "show sprom all"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:33:56.328741 callhome: executing command:/isan/bin/vsh  -c "show inventory"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:33:58.440711 callhome: executing command:/isan/bin/vsh  -c "show license usage"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:34:01.646954 callhome: executing command:/isan/bin/vsh  -c "show module fex"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:34:03.804234 callhome: executing command:/isan/bin/vsh  -c "show module"  -e 0 -q 2 -o 0  | head --bytes=5000000

2012 Feb 17 18:34:05.930786 callhome: executing command:/isan/bin/vsh  -c "show version"  -e 0 -q 2 -o 0  | head   --bytes=5000000

Average Rating: 0 (0 ratings)

Actions

Login or Register to take actions

This Blog

Posted March 2, 2012 at 11:17 AM
Stats:
Comments:0 Avg. Rating:0
Views:1935   
Shares:0
Tags: No tags.