10-29-2007 01:38 AM - edited 03-03-2019 05:30 AM
Hi,
Can anyone advise how to shutdown and no shutdown a port on a cisco switch using just SNMP?
I can't find much documentation on it.
Cheers,
Ben
Solved! Go to Solution.
10-29-2007 01:59 AM
You can use the standard MIB2 for this: http://www.alvestrand.no/objectid/1.3.6.1.2.1.html
and then check the options under "SNMP MIB-2 Interfaces" The IfStatus is somewhere in there.
Then, find an application that allows you to do snmp set instructions, such as SNMPchttp://www.castlerock.com/
and assign a write community string to your devices. After doing all this, it should work!
regards,
Leo
10-29-2007 01:59 AM
You can use the standard MIB2 for this: http://www.alvestrand.no/objectid/1.3.6.1.2.1.html
and then check the options under "SNMP MIB-2 Interfaces" The IfStatus is somewhere in there.
Then, find an application that allows you to do snmp set instructions, such as SNMPchttp://www.castlerock.com/
and assign a write community string to your devices. After doing all this, it should work!
regards,
Leo
11-02-2007 03:22 AM
Thanks - the exact MIB is:
IF-MIB::ifAdminStatus
snmpset syntax is:
Interface UP:
snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 1
Interface DOWN:
snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 2
Hope this helps anyone else trying to do the same.
Cheers,
Ben
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