Switching

SNMP object posted as Access read-write but acts like its RO

  • 1.  SNMP object posted as Access read-write but acts like its RO

    Posted 22 days ago

    https://apps.juniper.net/mib-explorer/navigate.jsp#object=pethPsePortAdminEnable&product=Junos%20OS&...

    Name pethPsePortAdminEnable
    OID 1.3.6.1.2.1.105.1.1.1.3
    Syntax INTEGER
    Access read-write
    Status current
    Description
    true (1) An interface which can provide the PSE functions. false(2) The interface will act as it would if it had no PSE function.
    Reference IEEE Std 802.3af Section 30.9.1.1.2 aPSEAdminState

     

    I can query the snmp oid just fine but cannot set it .. I have rw set on my v3 and for simple testing my v2

    From my google foo the status 17 index means its not writable.

    snmpset -v3 "auth stuff" 10.10.10.1 .1.3.6.1.2.1.105.1.1.1.3.3.24 integer: 2

     

    Trace shows the snmp request

     

    Nov 7 09:58:51.995305 snmpd[491a5a8a] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Nov 7 09:58:51.995338 snmpd[491a5a8a] >>> Set-Request
    Nov 7 09:58:51.995348 snmpd[491a5a8a] >>> Source: 10.10.10.11
    Nov 7 09:58:51.995355 snmpd[491a5a8a] >>> Destination: 10.10.10.1
    Nov 7 09:58:51.995361 snmpd[491a5a8a] >>> Version: SNMPv3
    Nov 7 09:58:51.995367 snmpd[491a5a8a] >>> Security Parameters:
    Nov 7 09:58:51.995373 snmpd[491a5a8a] >>> SecModel: USM
    Nov 7 09:58:51.995387 snmpd[491a5a8a] >>> EngId: 80 00 0a 4c 04 48 53 43 4a 75 6e 69 70 65 72 73 6e 6d 70
    Nov 7 09:58:51.995393 snmpd[491a5a8a] >>> User: root
    Nov 7 09:58:51.995402 snmpd[491a5a8a] >>> EngBoots: 24 EngTime: 2223633
    Nov 7 09:58:51.995410 snmpd[491a5a8a] >>> Request_id: 0x491a5a8a
    Nov 7 09:58:51.995417 snmpd[491a5a8a] >>> Error: status=0 / vb_index=0
    Nov 7 09:58:51.995437 snmpd[491a5a8a] >>> OID : pethPsePortAdminEnable.3.24
    Nov 7 09:58:51.995445 snmpd[491a5a8a] >>> type : Number
    Nov 7 09:58:51.995453 snmpd[491a5a8a] >>> value: 2
    Nov 7 09:58:51.995459 snmpd[491a5a8a] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Nov 7 09:58:51.995944 snmpd[491a5a8a] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Nov 7 09:58:51.995971 snmpd[491a5a8a] <<< Get-Response
    Nov 7 09:58:51.995982 snmpd[491a5a8a] <<< Source: 10.10.10.1
    Nov 7 09:58:51.995990 snmpd[491a5a8a] <<< Destination: 10.10.10.11
    Nov 7 09:58:51.995997 snmpd[491a5a8a] <<< Version: SNMPv3
    Nov 7 09:58:51.996004 snmpd[491a5a8a] <<< Security Parameters:
    Nov 7 09:58:51.996011 snmpd[491a5a8a] <<< SecModel: USM
    Nov 7 09:58:51.996027 snmpd[491a5a8a] <<< EngId: 80 00 0a 4c 04 48 53 43 4a 75 6e 69 70 65 72 73 6e 6d 70
    Nov 7 09:58:51.996049 snmpd[491a5a8a] <<< User: root
    Nov 7 09:58:51.996062 snmpd[491a5a8a] <<< EngBoots: 24 EngTime: 2223633
    Nov 7 09:58:51.996070 snmpd[491a5a8a] <<< Request_id: 0x491a5a8a
    Nov 7 09:58:51.996078 snmpd[491a5a8a] <<< Error: status=17 / vb_index=1
    Nov 7 09:58:51.996097 snmpd[491a5a8a] <<< OID : pethPsePortAdminEnable.3.24
    Nov 7 09:58:51.996106 snmpd[491a5a8a] <<< type : Number
    Nov 7 09:58:51.996115 snmpd[491a5a8a] <<< value: 2
    Nov 7 09:58:51.996121 snmpd[491a5a8a] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

     

    If you have looked this far down im sure you saying just use python and automate it. I do plan on it. BUT this is my first attempt to do snmp sets in juniper and I would like to get it working.. If anyone has suggestions im all ears.

    This may show up twice as I had some odd issues when I posted the first time.

     

    I did set my snmp location via snmpset and it worked. Which i thought was a good way to make sure I was doing it correctly.
    snmpset -v3 XXX 10.3.254.15 1.3.6.1.2.1.1.6.0 s "Toms place set via snmpset"


    #SNMP
    #snmpset