What I configured in snmpd.conf file

*engineID  8000b85c03d0672649a01e*

NetSNMP converted the above engineID in to equivalent Hex value for each
character, i.e (8000b85c03d0672649a01e => 38 30 30 30 62 38 35 63 30 33 64
30 36 37 32 36 34 39 61 30 31 65) with some prefix *0x80001f8804*

*snippet:*
usmUser 1 3 0x80001f880438303030623835633033643036373236343961303165
"testv3user" "testv3user" NULL .1.3.6.1.6.3.10.1.1.2
0x055a6d2afcff5cb7a22c3a9c61b55c08 .1.3.6.1.6.3.10.1.2.4
0x055a6d2afcff5cb7a22c3a9c61b55c08 ""
engineBoots 8
*oldEngineID 0x80001f880438303030623835633033643036373236343961303165*


when I do  snpwalk with "-e  8000b85c03d0672649a01e" walk failed.
Where as snmpwalk works fine with
(-e 0x80001f880438303030623835633033643036373236343961303165)
I was expecting snmpwalk to work with "-e  8000b85c03d0672649a01e", this is
the engineId that I configured in snmpd.conf file.

On Tue, Jul 19, 2022 at 7:38 PM Wes Hardaker via Net-snmp-coders <
net-snmp-coders@lists.sourceforge.net> wrote:

> Abhishek Singh <abhisheksingh.rohit...@gmail.com> writes:
>
> > I have a question on the format how oldEngineID is stored in snmpd.conf.
> > After configuring an engine ID, I observed the oldEngineID in snmpd.conf
> saved
> > as
> > engineBoots 1
> > oldEngineID 0x80001f880438303030623835633033653030373162633735333532
> >
> > The question is why the oldEngineID is stored in ASCII format when
> engine-id
> > input is actually Hex.
>
> The oldEngineID basically stores what was used in the last run, for if
> the engineID changes (in the current run) then boots needs to be reset.
>
> I'm not sure I understand the ascii question -- how are you setting the
> engineID?  If you're using a "string", the encode engineid still has
> some leading binary information to indicate it was set as a string.  IE,
> the engineID consists of more than just the string itself (per the
> SNMPv3 RFCs).
>
> --
> Wes Hardaker
> Please mail all replies to net-snmp-coders@lists.sourceforge.net
>
>
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>


-- 
Regards,
Feroz Ahmed
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to