Aruba & ProVision-based
1752307 Members
5222 Online
108786 Solutions
New Discussion

snmpset command oid 1.3.6.1.2.1.2.2.1.7.xx enable/disable a specific port

 
jojo72nor
Occasional Visitor

snmpset command oid 1.3.6.1.2.1.2.2.1.7.xx enable/disable a specific port

Description of the switch:

HP J9775A 2530-48G Switch, revision YA.15.10.0003, ROM YA.15.09

Last one year this command worked well until recently

Enabling of portnumber 44:
snmpset -r:ipaddress -o:1.3.6.1.2.1.2.2.1.7.44 -tp:int -val:1

Disabling of portnumber: 44
snmpset -r:ipaddress -o:1.3.6.1.2.1.2.2.1.7.44 -tp:int -val:2

Where oid last charater 44 stands for portnumber.

The failed command was following:
snmpset -r:x.x.x.x -o:1.3.6.1.2.1.2.2.1.7.44 -tp:int -val:1
SnmpSet v1.01 - Copyright (C) 2009 SnmpSoft Company
[ More useful network tools on http://www.snmpsoft.com ]
%Failed to set value to SNMP variable. Variable does not exist (noSuchName(2))

Could anybody explain why this command doens't work?

Thank you in advance.

JOJO.

 

1 REPLY 1
LionLantech
Advisor

Re: snmpset command oid 1.3.6.1.2.1.2.2.1.7.xx enable/disable a specific port

Have you recently upgraded the switch?

 

Maybe the oid has been changed with a firmware upgrade.