Wired Intelligent Edge

 View Only
Expand all | Collapse all

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

This thread has been viewed 0 times
  • 1.  snmpset command oid 1.3.6.1.2.1.2.2.1.7.xx enable/disable a specific port

    Posted May 25, 2016 07:56 AM

    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.

     



  • 2.  RE: snmpset command oid 1.3.6.1.2.1.2.2.1.7.xx enable/disable a specific port

    Posted May 30, 2016 05:12 AM

    Have you recently upgraded the switch?

     

    Maybe the oid has been changed with a firmware upgrade.