Re: snmpget query error
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/11/11 purushotam rao <[email protected]>: > When I give the snmpwalk command, I am getting the following error. Please > find the attached .c and .h along with this mail for your kind reference. If > possible please correct the code. Well, the most obvious error is that you've defined the object as ASN_INTEGER, but you are returning a string value. Try static long var = 1111; in the routine var_akshaya(). > Query: [root@localhost ~]# snmpwalk -v 2c -c devasena localhost > .1.3.6.1.4.1.10296.1.1000.1 > > SNMPv2-SMI::enterprises.10296.1.1000.1 = No Such Object available on this > agent at this OID > [root@localhost ~]# > > But my object is having the value. How to check that value? See the FAQ entry "Why doesn't my new MIB module report anything?" You may need to add some further debugging code to your var() routine. I would also suggest that you consider using the new v5 handler-based approach. This takes care of much of the standard processing - much more than the old v4-style API that you're currently using. Dave ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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