Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

How to set port speed on 2960 automatically (SNMP or smth else)?

Hello,

Can you please help me with subject?

I tried to do it using SNMP, but it failed...

I can set port UP or DOWN using a script (just set SNMP OID values), but I need to set a port speed (10/100/1000).

Surely I know how to set port speed using tty )

Thank you in advance!

Ivan.

Everyone's tags (3)
1 REPLY

Re: How to set port speed on 2960 automatically (SNMP or smth el

Hello,

Can you please help me with subject?

I tried to do it using SNMP, but it failed...

I can set port UP or DOWN using a script (just set SNMP OID values), but I need to set a port speed (10/100/1000).

Surely I know how to set port speed using tty )

Thank you in advance!

Ivan.

Ivan,

With SNMP try MAU-MIB.

Here is an example.

mnie@nms-server2[118]:/home/mnie{17:25:35}% snmpwalk -c public 172.21.50.250

ifMauDefaultType.5.1

MAU-MIB::ifMauDefaultType.5.1 = OID: SNMPv2-SMI::zeroDotZero

Now set it to dot3MauType100BaseTXHD

********

mnie@nms-server2[120]:/home/mnie{17:27:14}% snmpset -c private 172.21.50.250

ifMauDefaultType.5.1 o

dot3MauType100BaseTXHD

MAU-MIB::ifMauDefaultType.5.1 = OID: MAU-MIB::dot3MauType100BaseTXHD

mnie@nms-server2[121]:/home/mnie{17:27:32}% snmpwalk -c private 172.21.50.250

ifMauDefaultType.5.1

MAU-MIB::ifMauDefaultType.5.1 = OID: MAU-MIB::dot3MauType100BaseTXHD

It also works with the object id. Make sure you put the dot at front.

Hope to Help !!

Ganesh.H

Remember to rate the helpful post

2688
Views
0
Helpful
1
Replies
CreatePlease to create content