auth init check failed Error

Rohini V rohini@REDACTED
Mon Jan 9 10:58:21 CET 2006


Hi

I started with the SNMP part of Erlang.

Compiled the EX1-MIB, and made get requests, which works fine.
But if I send any Set requests, I notice the following error :

(agent@REDACTED)3> ** SNMP MASTER-AGENT DEBUG: Received PDU:
   {pdu,'set-request',
        806285441,
        noError,
        0,
        [{varbind,[1,3,6,1,3,7,1,0],'OCTET STRING',"Martin",1}]}
   from: {{127,0,0,1},5000}
(agent@REDACTED)3> ** SNMP MASTER-AGENT ACM TRACE: check access for
   Pdu:            {pdu,'set-request',
                        806285441,
                        noError,
                        0,
                        [{varbind,[1,3,6,1,3,7,1,0],'OCTET
STRING',"Martin",1}]}

   Security model: 2
   Community:      public
(agent@REDACTED)3> ** SNMP MASTER-AGENT ACM TRACE: View type: write
(agent@REDACTED)3> ** SNMP MASTER-AGENT COMMUNITY-MIB TRACE:
loop_c2v_row
s -> [] valid tag for community index "public"
(agent@REDACTED)3> ** SNMP MASTER-AGENT ACM TRACE: get mib view
   Security name: "initial"
   Context name:  []
(agent@REDACTED)3> ** SNMP MASTER-AGENT VACM DEBUG: check that the
contex
t ([]) is known to us
(agent@REDACTED)3> ** SNMP MASTER-AGENT GENERIC TRACE:
table_get_elements
 -> entry with
   NameDb:        {intContextTable,volatile}
   RowIndex:      []
   Cols:          [1]
   FirstOwnIndex: 1
(agent@REDACTED)3> ** SNMP MASTER-AGENT GENERIC DEBUG:
handle_table_get -
> undefined
(agent@REDACTED)3> ** SNMP MASTER-AGENT VACM DEBUG: check that
SecModel (
2) and SecName ("initial") is valid
(agent@REDACTED)3> ** SNMP MASTER-AGENT GENERIC TRACE:
table_get_elements
 -> entry with
   NameDb:        {vacmSecurityToGroupTable,persistent}
   RowIndex:      [2,7,105,110,105,116,105,97,108]
   Cols:          [3,5]
   FirstOwnIndex: 1
(agent@REDACTED)3> ** SNMP MASTER-AGENT GENERIC TRACE:
handle_table_get -
> Res:
   ["initial",1]
(agent@REDACTED)3> ** SNMP MASTER-AGENT VACM DEBUG: find an access
entry
and its view name
(agent@REDACTED)3> ** SNMP MASTER-AGENT VACM TRACE: get_view_name ->
Row:

   {1,"restricted",[],"restricted",3,1}
(agent@REDACTED)3> ** SNMP MASTER-AGENT VACM TRACE: get_view_name ->
not
found when
   ViewType:    write
   GroupName:   "initial"
   ContextName: []
   SecModel:    2
   SecLevel:    1
(agent@REDACTED)3> ** SNMP MASTER-AGENT LOG:
   auth init check failed: noSuchView
(agent@REDACTED)3> ** SNMP MASTER-AGENT DEBUG:
   Raw error status: authorizationError

The vacm.conf file contains :

{vacmSecurityToGroup, v2c, "initial", "initial"}.
{vacmSecurityToGroup, usm, "initial", "initial"}.
{vacmSecurityToGroup, v1, "initial", "initial"}.
{vacmAccess, "initial", "", any, noAuthNoPriv, exact, "internet",
"internet", "internet"}.
{vacmAccess, "initial", "", usm, authNoPriv, exact, "internet", "internet",
"internet"}.
{vacmAccess, "initial", "", usm, authPriv, exact, "internet", "internet",
"internet"}.
{vacmViewTreeFamily, "internet", [1,3,6,1], included, null}.
{vacmViewTreeFamily, "restricted", [1,3,6,1], included, null}.

Please let me know if I am missing anything.

Regards,
Rohini






More information about the erlang-questions mailing list