Re: [pysnmp-users] Example of SNMPv3 SET on remote
Brought to you by:
elie
From: Johan G. <joh...@gm...> - 2016-03-02 23:22:55
|
Hi, I did a little more digging and am trying to set a new snmpTarget via MG-Soft before i figure out how to use pysnmp and it doesn't work as expected. It looks like you have to set the status of snmpTargetAddrRowStatus to 4(createAndGo) or 5(createAndWait) for the new row. Then set the table entries forsnmpTargetAddrEntry . You also have to set a new row with parameters in *snmpTargetParamsEntry*.This part was successful, but when I go back to the first table and try to set to 1(active) it gives me an Inconsistent value error. is there anybody with experience in doing this and how would using pysnmp make this easier? Cheers On Tue, Mar 1, 2016 at 3:48 PM, Johan Geldenhuys <joh...@gm...> wrote: > Hi, > I'm using pysnmp v4.2.5 and would like to know if there is an example of > setting/creating a new:- > 1) SNMPv3 trap target on a agent? > The MIB that I found that contains this information is snmpTargetMIB > (1.3.6.1.6.3.12) > 2) SNMPv3 user . The MIB I found that contains this is usmUserTable > (1.3.6.1.6.3.15.1.2.2). > > In both cases the users will be using auth and priv. > > I found some addV3User stuff in pysnmp.entity.config, but don't know it is > relevant. > > Any help would be greatly appreciated. I don't even know where to begin. > > Regards, > kma_jg > |