[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


On 08/05/07, aish khare <[EMAIL PROTECTED]> wrote:
> thanks for the expedititious response...i tried snmpget as mentioned:
> $ snmpget -v 1 -c public localhost:161 .1.3.6.1.2.1.1.4.0
> SNMPv2-MIB::sysContact.0 = STRING: Prof. Umit

OK - so the agent is at least responding.
What about other "standard" information - can you see the
ifTable, for instance?

(Yes, I know that's now what you're interested in.
 But there's a reason for asking - trust me!)



> so, it runs absolutely fine ! but these are system parameters. i want to
> load a custom(third party) MIB and get and set the nodes in it.
> for this i followed the steps:
> Compiling in your new MIB module
    [snip]


> And then running snmpget and snmpset on the scalar object [proper
> authentication information not shown in this command]: % snmpget localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = INTEGER: 1 % snmpset
> localhost
>  NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = 5
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = INTEGER: 5 % snmpget
> localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = INTEGER: 5
>
> but the snmpget and set commands do not respond:
> the error message says:
> $ snmpget localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
> Cannot find module (NET-SNMP-TUTORIAL-MIB): At line 1 in (none)
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0:

Look at what the error is actually saying.
It's not that the agent doesn't respond - the problem is that "snmpget"
doesn't understand what it's being asked for.

It "cannot find [the] module NET-SNMP-TUTORIAL-MIB".
This file is not part of a standard installation - you need to install
the MIB file yourself.

Have you done this?  Where have you copied this file to?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to