Re: Error while running the subagent

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 01/02/07, Treesa Fairy Joseph <[email protected]> wrote:
> I tred to check if ifMib is implemented in the master.
> The command and response i got is the following.
>
> [root@mcagw treesa]# snmpget -v 1 -c public 192.168.24.100 IF-MIB::ifInErrors.2
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB.
> Failed object: IF-MIB::ifInErrors.2
>
> Should i try any other command, to check the same??

a)  Try using SNMPv2c.  That will give you more informative errors.
     For example, is the "noSuchName" above because the agent does
     not implement the ifTable at all, or because there is no interface #2?
     SNMPv1 gives the same error in either case - SNMPv2c (and SNMPv3)
     distinguish them.

b)  What are the access control settings for the agent?
      It's quite possible that "public" doesn't have access to the ifTable.
     What does
          snmpgetnext -v 1 -c public 192.168.24.100  sysORUptime.9999
     return?

c)  Try walking the sysORID column.
     That should indicate which modules are supported by this agent
      (and should be accessible to "public", even if other bits of the MIB
       are not!)


> PS: My aim is to add a mib module (which is
> not part of the master agent) dynamically, which
> can monitor some characteristics of the system and
> then send traps to a server.

I would suggest that you treat this as two separate tasks.
First concentrate on developing a MIB to monitor the
sub-system that you are interested in.
   Whether this is part of the master agent, a subagent
or loaded dynamically is irrelevant - the Net-SNMP MIB
module API is identical.

Then when this is working as expected, you could use
the DisMan Event MIB support to trigger traps automatically.
But look at getting a basic MIB working first.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.