Re: [pysnmp-users] Example of SNMPv3 SET on remote
Brought to you by:
elie
From: Johan G. <joh...@gm...> - 2016-03-09 21:42:55
|
Hi Ilya, Yes, I need to remotely configure SNMPv3 / USM user via SNMP. Thank you for the RFC reference and will look at that today. Is there anything in pysnmp that makers this a little easier? Can you please tell me if this OID makes any sense? 1: snmpTargetAddrTAddress.116.104.111.115.116.45.57.56.51.50.48.57.51.54.57 (TAddress) 0A.00.00.E7.00.A2 (hex) I would expect a simple index number after snmpTargetAddrTAddress, but this weird string comes back, which is the target IP address and port number. Cheers Johan On Mon, Mar 7, 2016 at 3:21 AM, Ilya Etingof <il...@gl...> wrote: > > Hi Johan, > > What is your ultimate goal? Do you need to remotely configure SNMPv3 / USM > user via SNMP? > This procedure is described in a SNMP RFC and could be done via a sequence > of SNMP commands. > And it is somewhat complex (see RFC3414-3415). > > Local USM configuration is done in a similar way, but it is greatly > simplified by addV3User() wrapper > function in pysnmp. In other words, if you want to have a script that acts > as SNMPv3 Agent, > just use those pysnmp wrapper functions: > > > http://pysnmp.sourceforge.net/examples/v3arch/asyncore/agent/cmdrsp/snmp-versions.html#multiple-snmp-usm-users > > On 03 Mar 2016, at 00:22, Johan Geldenhuys <joh...@gm...> wrote: > > 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 >> > > -------------------------- > > |