auth init check failed Error

Rohini V <>
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 :

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

   {1,"restricted",[],"restricted",3,1}
()3> ** SNMP MASTER-AGENT VACM TRACE: get_view_name ->
not
found when
   ViewType:    write
   GroupName:   "initial"
   ContextName: []
   SecModel:    2
   SecLevel:    1
()3> ** SNMP MASTER-AGENT LOG:
   auth init check failed: noSuchView
()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