Re: NET-SNMP version: 5.8 - v1/ v2 blocked, v3 works

Simon Chamlian <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CANmTPBYt8MfnRn2S=fLN9j1+2eW6NpHcPFD4TuTf7ZeHNn9yLA@mail.gmail.com>
I don't have an address in snmpd.conf.

Here is my snmpd.conf:

# cat nem_snmpd.conf
#

createUser Simon      MD5 "simon123"
rwuser     Simon

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
rocommunity  public

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
rwcommunity  private


What puzzles me is why the OID in v3 is found and in v1/v2 it is rejected?!?





On Wed, Mar 17, 2021 at 2:48 PM Dachshund Digital <
[email protected]> wrote:

> Simon,
>
> What does your 'address' line in snmpd.conf look like?
>
> Based on the error message, are you sure you have all MIBs needed,
> loaded?  Try say the device description OID, or the System Up Time OID.
> Just as validation, a suggestion.  The communication seems good, just the
> OID rejected?
>
> -DD
> On 03/17/2021 11:19, Simon Chamlian wrote:
>
>
> Hi,
>
> Seems like v1/v2 is blocked while v3 works fine.
>
>
> *V3 works Fine*
> # snmpget  -v 3 -u Simon -a MD5 -A simon123 -l authNoPriv  localhost
>  NEM-DCI-MIB::nemDCISnmpTrapPort.0
> NEM-DCI-MIB::nemDCISnmpTrapPort.0 = INTEGER: 162
>
> *V1/V2 does not work*
> # snmpget -v 2c -c public localhost  NEM-DCI-MIB::nemDCISnmpTrapPort.0
> NEM-DCI-MIB::nemDCISnmpTrapPort.0 = No Such Object available on this agent
> at this OID
>
> # snmpget -v 1 -c public localhost  NEM-DCI-MIB::nemDCISnmpTrapPort.0
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB.
> Failed object: NEM-DCI-MIB::nemDCISnmpTrapPort.0
>
>
> *The config file I have is:*
>
> createUser Simon    MD5 "simon123"
> rwuser     Simon
> # rocommunity: a SNMPv1/SNMPv2c read-only access community name
> rocommunity  public
>
> # rwcommunity: a SNMPv1/SNMPv2c read-write access community name
> rwcommunity  private
>
>
> Any clues on why this is happening?
>
> Thanks,
> Simon
>
>
>
>
> _______________________________________________
> Net-snmp-users mailing [email protected]
> Please see the following page to unsubscribe or change other options:https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.