02-17-2003 12:39 AM - edited 02-20-2020 10:33 PM
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.
02-17-2003 12:57 AM
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
system.sysContact.0 = foo
Similarly, if you set the 'System Name' on the switch using the command 'set system name
Lastly, 'set system location
02-17-2003 04:19 PM
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.
02-17-2003 06:15 PM
Look at the command reference and test it on a switch with CatOS to verify. This is what I did to verify this.
02-17-2003 06:27 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide