User defined error

2007-07-10 Thread valantina arumugam
Hi all, I am doing a agent coding which inturn depends on another layer to get real time data . If something goes wrong with the underlying layer , it needs to display that error message to the manager(client) instead of the general SNMP error(ie. SNMP_ERR_GENERR ) . So ,is t

IPv6 with SNMPv3

2007-07-10 Thread Kleffman, Justin (Mission Systems)
I was wondering what is the proper way to issue an snmpwalk on an SNMPv3 only device for testing IPv6 capabilities. Currently I'm trying the following: snmpwalk -u user -a SHA -x AES -A pass -X pass -l authpriv -n "" udpv6:[FE80::204:75FF:0A01:0101] 1.3.6.1.4.1.8698.13 Sending 60 bytes to UDP/

RE: install net-snmp and existing interface statistics don't show

2007-07-10 Thread Bruce Shaw
>I installed net-snmp 5.4 on a solaris 8 server , and stopped mibiisa. I was already monitoring ethernet interfaces with prtg, but once I started net-snmp, my ethernet sensors were not collecting data. What OID were you using with pr

install net-snmp and existing interface statistics don't show

2007-07-10 Thread Christine Ross
I installed net-snmp 5.4 on a solaris 8 server, and stopped mibiisa. I was already monitoring ethernet interfaces with prtg, but once I started net-snmp, my ethernet sensors were not collecting data. I tried to add a new sensor (standard sensor, not a custom) and I received the messag

Re: Table GetNext for next column

2007-07-10 Thread Dave Shield
On 10/07/07, Madan Mohan Goud <[EMAIL PROTECTED]> wrote: > I have an SNMP Table implemented in NETSNMP way. What do you mean by the "NETSNMP way"? There are at least four or five different approaches used in the Net-SNMP agent. Which one(s) are you using? >

Re: Table GetNext for next column

2007-07-10 Thread Dave Shield
On 10/07/07, Madan Mohan Goud <[EMAIL PROTECTED]> wrote: > 1. I am following iterator approach OK. So you indicate the end of the column by returning NULL from the 'Get_next_data_point' routine. > My handler function will take the indexes from the request and retrieve > the value corresponding

RE: GETNEXT Request - what to do in order to advance to next column?

2007-07-10 Thread Madan Mohan Goud
When I use snmpbulkget, it is jumping to next table, instead of next column. [EMAIL PROTECTED] ~]# snmpbulkget -c public -v 2c 127.0.0.1 1.3.6.1.2.1.10.7.2.1 SNMPv2-SMI::transmission.7.2.1.1.8 = INTEGER: 13 SNMPv2-SMI::transmission.7.2.1.1.13 = INTEGER: 21 SNMPv2-SMI::transmission.7.2.1.1

RE: Table GetNext for next column

2007-07-10 Thread Madan Mohan Goud
Dave, Thanks for the response. 1. I am following iterator approach by implementing Get_first_data_point, Get_next_data_point and Table_handler functions for each table. At initialization I am registering all above corresponding functions with table_iterator Using netsnmp_register_table_ite

Re: GETNEXT Request - what to do in order to advance to next column?

2007-07-10 Thread Daniel Coelho
Hi, have you tried snmpbulkget? I believe that walk ignores the snmpgetnext responses when the the original OID changes to another. snmpbulkget doesn't. Not sure. Daniel Coelho On 7/10/07, Madan Mohan Goud <[EMAIL PROTECTED]> wrote: Hi all, I have an SNMP Table implemented in NETSNM

Re: Table GetNext for next column

2007-07-10 Thread Daniel Coelho
Hi, have you tried snmpbulkget? I believe that walk ignores the snmpgetnext responses when the the original OID changes to another. snmpbulkget doesn't. Not sure. Daniel Coelho On 7/10/07, Madan Mohan Goud <[EMAIL PROTECTED]> wrote: Hi all, I have an SNMP Table implemented in NETSN

GETNEXT Request - what to do in order to advance to next column?

2007-07-10 Thread Madan Mohan Goud
Hi all, I have an SNMP Table implemented in NETSNMP way. When I do a SNMPwalk over a table(dot3StatsTable in Etherlike-MIB as shown below),my Implementation is not getting me values for any other column except first column in the table. When the agent receives request for last index of th

Table GetNext for next column

2007-07-10 Thread Madan Mohan Goud
Hi all, I have an SNMP Table implemented in NETSNMP way. When I do a SNMPwalk over a table(dot3StatsTable in Etherlike-MIB as shown below),my Implementation is not getting me values for any other column except first column in the table. When the agent receives request for last index of th

RE: netSNMP log got disbaled

2007-07-10 Thread namitha.gowda
Hi Dave, Thanks for ur reply. I tried Setting the environmental variable MIBS to be the empty string. But the messages are still getting displayed. If "C:\usr\share" folder is present then this messages won't come. Since I am mainly concentrating about filtering unwanted messages, may be the mai

Re: help

2007-07-10 Thread Thomas Anders
haoran mo wrote: > /home/mohaoran/work/mhr/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/mips-linux-ar > -r cru .libs/libnetsnmp.a snmp_client.o mib.o parse.o snmp_api.o snmp.o > snmp_auth.o asn1.o md5.o snmp_parse_args.o system.o vacm.o int64.o > read_config.o pkcs.o snmp_debug.o tools.o snmp_logging

help

2007-07-10 Thread haoran mo
Please help me settle this problem, thanks a lot. /home/mohaoran/work/mhr/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/mips-linux -ar -r cru .libs/libnetsnmp.a snmp_client.o mib.o parse.o snmp_api.o snmp.o snmp_auth.o asn1.o md5.o snmp_parse_args.o system.o vacm.o int64.o read_config.o pkcs.o

Re: netSNMP log got disbaled

2007-07-10 Thread Dave Shield
On 10/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Missing MIB files are not affecting the functionality of the > application. > So I just want to hide the messages. > Can u please suggest some way for that? Set the environmental variable MIBS to be the empty string. Dave --

RE: netSNMP log got disbaled

2007-07-10 Thread namitha.gowda
Hi, Thanks for ur reply. Missing MIB files are not affecting the functionality of the application. So I just want to hide the messages. Can u please suggest some way for that? Thanks in advance Namitha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dav

Re: netSNMP log got disbaled

2007-07-10 Thread Dave Shield
On 10/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Netsnmp library is putting some messages onto console whenever I am trying > to use it. (if netsnmp is not installed in the system) Try installing the MIB files, so that the library can find them. That should quieten things down. Dave -

netSNMP log got disbaled

2007-07-10 Thread namitha.gowda
Hi, Netsnmp library is putting some messages onto console whenever I am trying to use it. (if netsnmp is not installed in the system) These messages are not harming the functionality but it's displaying unwanted messages. I don't want this messages to be displayed to user. Please let me kno

Re: Urgent: Multiple sub-agents registering same MIB

2007-07-10 Thread Dave Shield
On 03/07/07, Shivani Garg <[EMAIL PROTECTED]> wrote: > Probably, for my kind of setup, wherein I want more than one sub-agent to > register exactly the same OIDs in the MIB, the later option should be more > approriate. Can you help me with this.. I am using SNMPv2 at my end, where > do I define th