cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11773
Views
0
Helpful
2
Replies

Admin Up/Down port using SNMP

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

1 Accepted Solution

Accepted Solutions

lgijssel
Level 9
Level 9

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

View solution in original post

2 Replies 2

lgijssel
Level 9
Level 9

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

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