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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: