FW: auth init check failed Error
Rohini V
rohini@REDACTED
Thu Jan 12 07:45:06 CET 2006
Hey,
Looks like solved this issue.
I just opened the "Table Visualizer", and selected snmpa_vacm Table.
Found that it has a default entry {1,"restricted","","restricted",3,1}}.
Along with : {1,"internet","internet","internet",3,1},
{1,"internet","internet","internet",3,1} entries.
I changed the default one to
{1,"restricted","restricted","restricted",3,1}}.
And set command is working now. :)
Can anynody let me know, why it is taking the default entry.( even though I
have not specified such entry in the below conf setting )
The config files which I used are attached herewith.
And my vacm.conf file looked like this :
{vacmSecurityToGroup, v2c, "initial", "initial"}.
{vacmSecurityToGroup, usm, "initial", "initial"}.
{vacmAccess, "initial", "", v2c, 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}.
Regards
Rohini
<<snmp.rar>>
> -----Original Message-----
> From: Rohini V
> Sent: Monday, January 09, 2006 3:28 PM
> To: Erlang Questions (E-mail)
> Subject: auth init check failed Error
>
>
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp.rar
Type: application/octet-stream
Size: 5853 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060112/7a5de01d/attachment.obj>
More information about the erlang-questions
mailing list