Run the command:
Snmpgetnext -v 1 -c <community> <IP>
SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0."wes"
SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0.wes: (Index out of range: 0
(vacmS ecurityModel))
Get-Next was never sent out, because it found 0 invalid according to the MIB.
BR
Younger Wang
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield
Sent: 2007年11月21日 1:01
To: Younger Wang
Cc: [email protected]
Subject: Re: Wrong MIB objects in manpage examples
On 20/11/2007, Younger Wang <[EMAIL PROTECTED]> wrote:
> In snmpcmd, vacmSecurityModel is used in example:
>
> snmpgetnext -c public -v 1 localhost vacmSecurityModel
> SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.0."wes" = xxx
> It would make sense to change the example to:
>
> snmpgetnext -c public -v 1 localhost vacmSecurityModel
> SNMP-VIEW-BASED-ACM-MIB::vacmSecurityModel.1."wes" = xxx
It would make even more sense to change it to a MIB object
that is actually visible in the table!
That particular object is part of the indexing for the table,
so wouldn't be displayed as an object in its own right.
The first visible object in that table is 'vacmGroupName'.
But the "snmpgetnext" command should work OK, even with
an invalid instance OID.
What is the exact command that you are trying?
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders