cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
373
Views
0
Helpful
1
Replies

SNMP command line

jerome.gomez
Level 1
Level 1

One of my customer try to code an snmp tool and has this problem :

With 2950 switches

when positionning port (port 29) in vlan 260 instead of 114. Under solaris v9

/usr/local/bin/snmpset -v2c -OQ -c rwcommunity SWITCH_IP_ADDR .1.3.6.1.4.1.9.9.68.1.2.2.1.2.29 i 260

response :

SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.29 = 260

it seems to be good but not at all

read

# /usr/local/bin/snmpwalk -v2c -OQ -c rocommunity SWITCH_IP_ADDRESS .1.3.6.1.4.1.9.9.68.1.2.2.1.2.29

Response

SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.29 = 114

if shut before change

/usr/local/bin/snmpset -v2c -OQ -c rwcommunity SWITCH_IP_ADDRESS .1.3.6.1.2.1.2.2.1.7.29 i 2

# /usr/local/bin/snmpwalk -v2c -OQ -c rocommunity

SWITCH_IP_ADDRESS .1.3.6.1.4.1.9.9.68.1.2.2.1.2.29

SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.29 = 260

it seems to be ok but when restarting interface, vlan 114 is re associated

Commands seems to be ok cause run properly with others oid. OID seems to be the good ones.

Does anybody have an idea.

Maybe another variable to move before changing vlan

thanks for help

1 Reply 1

ebreniz
Level 6
Level 6

I am also curious to know this. Can anyone in this forum give some details on this. Thanks in advance.