snmp agent -- Error status = noSuchName, index = 1.

Adrian John Cahill <>
Wed Jan 31 12:43:50 CET 2001


Hi,
    I am haing a bit of trouble with the snmp agent in Erlang. If i try
to send a request to the agent, i get the following error:
3> snmp_mgr:gn([[1,3]]).
ok
* Got PDU: v1, CommunityName = "all-rights"
*!*!* An error occured. *!*!*
Error status = noSuchName, index = 1.
Response,         Request Id:79933850
  [1,3] = 'NULL'



I turned on verbose error messages in the agent window, and it displays
the following error:

 ** SNMP NET-IF LOG:
   got paket from {127,0,0,1}:5000
** SNMP NET-IF MPD LOG:
   v1, community: all-rights
** SNMP LOCAL-DB LOG: variable get: snmpEngineMaxMessageSize
** SNMP LOCAL-DB LOG: table next: snmpTargetAddrTable
** SNMP LOCAL-DB LOG: table next: snmpTargetAddrTable -> first
** SNMP LOCAL-DB DEBUG: table next result: "127.0.0.1 v3"
** SNMP LOCAL-DB LOG: table get row: snmpTargetAddrTable -> "127.0.0.1
v3"
** SNMP LOCAL-DB DEBUG: table get row result: {"127.0.0.1 v3",
                                               [1,3,6,1,6,1,1],
                                               [127,0,0,1,19,136],
                                               1500,
                                               3,
                                               "std_trap",
                                               "target_v3",
                                               3,
                                               1,
                                               [],
                                               [],
                                               2048}
** SNMP NET-IF MPD DEBUG: PDU type: 'get-next-request'
** SNMP NET-IF LOG:
   got pdu from {127,0,0,1}:5000 {pdu,'get-next-request',
                                      79933850,
                                      noError,
                                      0,
                                      [{varbind,[1,3],'NULL','NULL',1}]}

** SNMP MASTER-AGENT DEBUG:
   Received PDU {pdu,'get-next-request',
                     79933850,
                     noError,
                     0,
                     [{varbind,[1,3],'NULL','NULL',1}]} from
{{127,0,0,1},
                                                              5000}
** SNMP MASTER-AGENT ACM TRACE: check access for
   Pdu:            {pdu,'get-next-request',
                        79933850,
                        noError,
                        0,
                        [{varbind,[1,3],'NULL','NULL',1}]}
   Security model: 1
   Community:      all-rights
** SNMP MASTER-AGENT ACM TRACE: View type: read
** SNMP LOCAL-DB LOG: table get row: snmpCommunityTable -> "all-rights"
** SNMP LOCAL-DB DEBUG: table get row result: {"all-rights",
                                               "all-rights",
                                               "all-rights",
                                               "sqlEngine",
                                               [],
                                               [],
                                               3,
                                               1}
** SNMP MASTER-AGENT ACM TRACE: get mib view
   Security name: "all-rights"
   Context name:  []
** SNMP LOCAL-DB LOG: table get row: intContextTable -> []
** SNMP LOCAL-DB DEBUG: table get row result: undefined
** SNMP LOCAL-DB LOG: table get row: vacmSecurityToGroupTable -> [1,
                                                                  10,
                                                                  97,
                                                                  108,
                                                                  108,
                                                                  45,
                                                                  114,
                                                                  105,
                                                                  103,
                                                                  104,
                                                                  116,
                                                                  115]
** SNMP LOCAL-DB DEBUG: table get row result: undefined
** SNMP MASTER-AGENT LOG:
   auth init check failed: noGroupName
** SNMP MASTER-AGENT DEBUG:
   Raw error status: authorizationError
** SNMP NET-IF LOG:
   reply pdu: {pdu,'get-response',
                   79933850,
                   noSuchName,
                   1,
                   [{varbind,[1,3],'NULL','NULL',1}]}
** SNMP LOCAL-DB LOG: variable get: snmpEngineMaxMessageSize
** SNMP NET-IF INFO: time in agent: 27993 mysec




I noticed that it says target_v3, i have the agent set up for snmp v1, i
have tried snmp v1&2&3 but i get the exact same error message.
I do not know how to progress this any further, if anyone has any
suggestions i would be delighted.
Tia
adrian




More information about the erlang-questions mailing list