cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1811
Views
3
Helpful
4
Replies

Router "snmp-server contact" command for catalyst switches??

a.manosca
Level 4
Level 4

From the router you can configure the "snmp-server contact <text>" command

to set the system contact for SNMP. Is there any equivalent command for

Catalyst switches? I know that there's a "set system contact" command for

CatOS but i'm sure if it has something to do with SNMP.

Thanks in advance.

4 Replies 4

rmushtaq
Level 8
Level 8

Yes, set system contact on switch is the same that on the router for the above command. Once you use this this command to enter the contact info, it can be polled via the SNMP MIB Object sysContact (.1.3.6.1.2.1.1.4) from RFC1213-MIB. Example, if I use 'set system contact foo', I see the following using the 'show system' output:

....

....

System Name System Location System Contact CC

------------------------ ------------------------ ------------------------ ---

foo

....

....

Polling the above via the above MIB object on the switch:

% snmpwalk .1.3.6.1.2.1.1.4

system.sysContact.0 = foo

Similarly, if you set the 'System Name' on the switch using the command 'set system name ', can be polled via sysName (.1.3.6.1.2.1.1.5) from RFC1213-MIB

Lastly, 'set system location ', once set can be polled via sysLocation (.1.3.6.1.2.1.1.6) from RFC1213-MIB

Thanks for the reply. Are there any documentation on CCO about this info, particularly the explanation that you've provided?

I would really appreciate if you could post a URL.

As you know, some customers require a "proof" of any info that you have

provided them. Thanks again.

Look at the command reference and test it on a switch with CatOS to verify. This is what I did to verify this.

I'm afraid I will not be able to try this at once because we're still in the process

of preparing the docs. We really wanted a documentation that, at least, says

the commands have same output. Maybe I'll try to make another search again.

Thanks a lot for the help.

Review Cisco Networking products for a $25 gift card