RE: possible bug in getnext implementation

2007-12-12 Thread Rotem Tzuk
Thanks a lot This was very helpful Rotem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, December 11, 2007 7:03 PM To: Rotem Tzuk Cc: net-snmp-users@lists.sourceforge.net Subject: Re: possible bug in getnext implementation On

Re: [Fwd: Re: Solaris 10 - Counter64 values are not shown]

2007-12-12 Thread Anders Persson
Frank, There appears to be a bug in Solaris (libsocket to be specific). I'll get a workaround going. Anders Frank Munsche wrote: > It's running within a nonglobal zone > > lo0:2: flags=2001000849 mtu 8232 > index 1 > inet 127.0.0.1 netmask ff00 > e1000g0:2: flags=1000843 mtu 1500 i

Re: restarting snmpd does not generate a trap

2007-12-12 Thread Dave Shield
On 11/12/2007, PoWah Wong <[EMAIL PROTECTED]> wrote: > > Please try with > > > >/usr/local/sbin/snmpd -f -Le -Dread_config > I will post the entire output even though it is quite long: Thanks, that was useful. I spotted a couple of problems with the two "trapsess" lines: > read_config: /usr/

Re: How to generate code from top of mib using mib2c

2007-12-12 Thread Sharad Chandra
, [Sharad Chandra wrote:] | Hi , | | OB1 | | |---OB2 | | ---Table1 | |--- Table2 | |-OB3 | | | | |---OB4 | | | | | | |-Table3 | |

Re: [Tutorials] after running mib2c with mib2c.mfd.conf and configure, wha t's next?

2007-12-12 Thread Sharad Chandra
, [EMAIL PROTECTED] wrote:] | I was looking into | http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module | http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/ | After mib2c using mib2c.mfd.conf, do I need to add code into master agent | so that it knows the new modules? mib2c cr

scalar's parent node must be simple node

2007-12-12 Thread Xia Zhongwu
Hi, all guys I write a mib file as followings, when I check using smilint(http://www.ibr.cs.tu-bs.de/projects/libsmi/), it report that on line 50(osStartupTrapHAMode) and many others lines , "scalar's parent node must be simple node". I don't understand it When I use mib2c with this mib file, when

Re: scalar's parent node must be simple node

2007-12-12 Thread Dave Shield
On 12/12/2007, Xia Zhongwu <[EMAIL PROTECTED]> wrote: > I write a mib file as followings, when I check using > smilint(http://www.ibr.cs.tu-bs.de/projects/libsmi/), it report that on > line 50(osStartupTrapHAMode) and many others lines , "scalar's parent > node must be simple node". I don't underst

Re: (genError) A general failure occured

2007-12-12 Thread Sharad Chandra
, [Dave Shield wrote:] | On 25 Oct 2007 06:56:45 -, girish <[EMAIL PROTECTED]> wrote: | > when I issue a snmpwalk command its giving this error: | > Error in packet. | > Reason: (genError) A general failure occured | > Failed object: MY-MIB::MyTraceTable | | What happens if you try a s

index shown as dot separated ascii values

2007-12-12 Thread Rotem Tzuk
hi again I have a table that is is indexed by integer & string: netsnmp_table_helper_add_indexes( table_info, // the table ASN_INTEGER, // ID ASN_OCTET_STR, // name 0); In my iterator handler I set both values: vptr = put_index_data; snmp_set_var_value(vptr, (u_char *)&id, sizeof(int) ); v

Re: index shown as dot separated ascii values

2007-12-12 Thread Dave Shield
On 12/12/2007, Rotem Tzuk <[EMAIL PROTECTED]> wrote: > I have a table that is is indexed by integer & string: > When I run snmpget MyMIB::MyVal.1, the indexes of the result items are > ID = 1, name = "Station1" > I get a correct result but the string Station1 is displayed as ascii values > separa

disable initial traps

2007-12-12 Thread Meilán García Antonio
Hello, I would like to disable the traps that net-snmp sending when it starts. This traps are: / * enterprises.8072.4.0.2: CommunityString = ### Request = ### mib-2.1.3.0 = ### snmpModules.1.1.4.1.0 = enterprises.8072.4.0.2/ ** and this other

Re: restarting snmpd does not generate a trap

2007-12-12 Thread PoWah Wong
--- Dave Shield <[EMAIL PROTECTED]> wrote: > On 11/12/2007, PoWah Wong <[EMAIL PROTECTED]> > wrote: > > > Please try with > > > > > >/usr/local/sbin/snmpd -f -Le -Dread_config > > > I will post the entire output even though it is > quite long: > > Thanks, that was useful. > I spotted a coup

Re: disable initial traps

2007-12-12 Thread Dave Shield
On 12/12/2007, Meilán García Antonio <[EMAIL PROTECTED]> wrote: > I would like to disable the traps that net-snmp sending when it starts. > This traps are: > > snmpModules.1.1.4.1.0 = enterprises.8072.4.0.2 NET-SNMP-AGENT-MIB::nsNotifyShutdown > snmpModules.1.1.4.1.0 = snmpModules.1.1

Re: restarting snmpd does not generate a trap

2007-12-12 Thread PoWah Wong
--- Dave Shield <[EMAIL PROTECTED]> wrote: > On 12/12/2007, PoWah Wong <[EMAIL PROTECTED]> > wrote: > > Killing snmpd generate a trap but snmptrapd still > does > > not receive it. > > OK - so the issue seems to lie with the trap > receiver, > rather than the agent. > > > > > # snmpd -f -Le -D

Re: restarting snmpd does not generate a trap

2007-12-12 Thread Dave Shield
On 12/12/2007, PoWah Wong <[EMAIL PROTECTED]> wrote: > Killing snmpd generate a trap but snmptrapd still does > not receive it. OK - so the issue seems to lie with the trap receiver, rather than the agent. > # snmpd -f -Le -Dtrap -d > trap: sending trap type=167, version=3 > > Sending 190 byte

RE: index shown as dot separated ascii values

2007-12-12 Thread Rotem Tzuk
had some problems with capital letters OK now thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Wednesday, December 12, 2007 2:23 PM To: Rotem Tzuk Cc: net-snmp-users@lists.sourceforge.net Subject: Re: index shown as dot separated

Re: restarting snmpd does not generate a trap

2007-12-12 Thread Dave Shield
On 12/12/2007, PoWah Wong <[EMAIL PROTECTED]> wrote: > > snmptrapd -f -Le -Dsnmptrapd -d > > > > Then start up the snmpd agent again. > > What does the trap receiver display? > > > > > Now the trap receiver display: > # snmptrapd -f -Le -Dsnmptrapd -d > NET-SNMP version 5.4.1 > > Received 192

Net-snmp 5.3.2 has been released

2007-12-12 Thread Bruce Shaw
Source may be downloaded here. http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=1 1571&release_id=560985 NEWS: *5.3.2* snmplib: - [PATCH 1553447]: responses will get sent from the - [PATCH 1592706]: Fix memory leak when cloning - fix potential bu

How to start snmptrapd service automatically

2007-12-12 Thread Katy Sherman
I run snmptrapd -register and this creates a service but doesn't start it. Is there any way to start the service automatically upon registration? (net-snmp 5.4.0) Thanks, Katy Sherman - SF.Net email is sponsored by: Check o

Can't get snmptrapd to see my traps

2007-12-12 Thread McGowen, Wendy
Let me preface this by saying that I'm relatively new to Net-SNMP. I've tried to find a solution to my specific problem in the mailing list archives, but no luck. I'm using version 5.4.1, on Redhat Linux - I guess you would call my traps "enterprise" traps, as I've defined them in the MIB tree un

Re: restarting snmpd does not generate a trap

2007-12-12 Thread PoWah Wong
--- Dave Shield <[EMAIL PROTECTED]> wrote: > On 12/12/2007, PoWah Wong <[EMAIL PROTECTED]> > wrote: > > > snmptrapd -f -Le -Dsnmptrapd -d > > > > > > Then start up the snmpd agent again. > > > What does the trap receiver display? > > > > > > > > Now the trap receiver display: > > # snmptrapd

RE: scalar's parent node must be simple node

2007-12-12 Thread Xia Zhongwu
Thanks, Dave. My Mib file is written on snmpv1, it have no table, but some scalars and traps. when I use command: "mib2c mymibNode" it's return message shows 0 scalars, 0 tables and 0 notification. I guess it caused by the error on mib above. Best Regards! = Xia Zhongwu --