Re: snmpd: unknown token: master, agentxsocket

2007-03-21 Thread Ling
Thanks, Dave, I am using uClinux from snapgear. I didn't run "configure", I just ran the makefile comes with this package. I just set the flag CONFIG_USER_NETSNMP_SNMPD for snmpd and CONFIG_USER_NETSNMP_APPS for snmp app. mini-snmpd is disabled. I can use snmpget to get system.sysUpTime ( the c

MIB2C for compiling MIB

2007-03-21 Thread Madan Mohan
Hi all, Is there any way we can compile the entire MIB through mib2C compiler in a single shot? I know that we can have a MIBNODE as input for mib2C compiler. But just wondering if any body did something like what I asked above. Thanks in advance, Madan. ---

Re: No more variables left in this MIB view

2007-03-21 Thread Peter Hill
Thanks Dave, your confirmation has helped. Slap me with a dead fish - the community string i was using had zero's not O's !!! On 3/14/07, Dave Shield <[EMAIL PROTECTED]> wrote: > On 14/03/07, Peter Hill <[EMAIL PROTECTED]> wrote: > > The response from both my systems is the same: > > > > snmpwal

table of tables

2007-03-21 Thread José ESTEVES
Hi all, Here is maybe a stupid question but I can not find the solution to my problem. I would like to define a table of table and access its content and I am not able to even with fixe sized sequences. How must I define them and how can I access such data ? As far as I understand it, there are

Re: cannot do snmpset on ipForwarding

2007-03-21 Thread David Wu
hi all, I assume this is the default behaviour. Right? then how can I change it? On Wed, 21 Mar 2007 15:59:39 -0500, David Wu <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm new to this list and also new user for net-snmp. > > I recently compiled the net-snmp-5.4 with ./configure (no other options)

Re: trap information interchange: in text format

2007-03-21 Thread Dave Shield
On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > At a minimum, you'll need to be able to handle: > > > >SNMPv1) trap type (2 integers) > > enterprise (OID) > > + arbitrary varbind list > > I guess the agent will take care of all the

Re: snmpd: unknown token: master, agentxsocket

2007-03-21 Thread Ling
Thanks you very much, Dave. I am using uClinux from snapgear, the config info is defined in makefile. Please see the following. When doing "make xconfig", I just set flag CONFIG_USER_NETSNMP_SNMPD for snmpd and some other flags for compiling net-snmp application. I am not sure if anything else I s

cannot do snmpset on ipForwarding

2007-03-21 Thread David Wu
Hi all, I'm new to this list and also new user for net-snmp. I recently compiled the net-snmp-5.4 with ./configure (no other options) on a x86(suse 8.2) machine. I ran snmpd as "/tmp/net-snmp-5.4/agent/snmpd -M /tmp/net-snmp-5.4/snmpd/mibs -c /tmp/net-snmp-5.4/snmpd.conf -C" where /home/mnt/

Re: trap information interchange: in text format

2007-03-21 Thread Joao Miguel Ferreira
On Wed, 2007-03-21 at 15:54 +, Dave Shield wrote: > On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > I need to find a suitable string format for receiving information to be > > sent as traps. > > Are you looking at generating SNMPv1-style traps, or SNMPv2 > notifications?

SNMP Tables

2007-03-21 Thread ido ivri
Hi all, I have a problem performing "snmpwalk" on a table that's indexed by IP. I'm using net-snmp 5.0.9, and while I understand (?) that the agent treats the table as a non-simple table, (and thus does not expect the table to be ordered and traverses throughout the table to find the "next" index

RE: PROBLEM: snmpd not responding (request queued)

2007-03-21 Thread Makavy, Erez (Erez)
Although I don't know the exact cause of the problem, I got 2 solutions I can apply on my netsnmp code to prevent the manster agent from getting stuck: 1) Change the code so that netsnmp_processing_set is always NULL. (suffer the consequesnces, which might not be relevant to my usage of SNM

Re: trap information interchange: in text format

2007-03-21 Thread Dave Shield
On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > I need to find a suitable string format for receiving information to be > sent as traps. Are you looking at generating SNMPv1-style traps, or SNMPv2 notifications?Will you need to specify version information (including community/

Embedding NetSNMP : small footprint

2007-03-21 Thread M. Cerato
Hi all, and thanks for reading ! We just decided to use NetSNMP for our embedded platform (FYI : ARM9, 128MB Flash, 16MB SDRAM, K 2.6.19). Since we only need the SNMP agent function (through snmpd) with our MIB extended with Python, we wondered what are the depedencies for snmpd ? We dont want to

RE: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Shanmugam Vairavan
Thanks for the immediate response. After changing the port to 162 I am receiving the ASCII packets Received 124 bytes from UDP: [127.0.0.1]:1607 : 30 7A 02 01 03 30 0F 02 02 3A C6 02 03 00 FF E30z...0...:╞... π 0016: 04 01 01 02 01 03 04 34 30 32 04 0D 80 00 1F 88...402..

trap information interchange: in text format

2007-03-21 Thread Joao Miguel Ferreira
Hello all, I need to find a suitable string format for receiving information to be sent as traps. I have an 'snmp aware' application than can not send traps, from our project partner. This application will send me a string with all the info I need to send the trap. We are trying to figure out wha

RE: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Shanmugam Vairavan
Did not get any thing in snmptrapd.exe console -Original Message- From: Shanmugam Vairavan Sent: Wednesday, March 21, 2007 2:52 PM To: Dave Shield; Shanmugam Vairavan Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Unable to receive v3 traps in snmptrapd Got this form snmptrap.exe

RE: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Shanmugam Vairavan
Got this form snmptrap.exe console Sending 142 bytes to UDP: [127.0.0.1]:161 : 30 81 8B 02 01 03 30 0F 02 02 5F BB 02 03 00 FF0.ï...0..._╗...  0016: E3 04 01 01 02 01 03 04 2B 30 29 04 05 01 02 03π...+0). 0032: 04 05 02 01 00 02 01 00 04 0A 77 65 62 6D 65 74...

RE: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Shanmugam Vairavan
Did. But still the receiver could not receive the traps This what I get in the console (snmptrapd.exe) NET-SNMP version 5.4 Thanks Shanmugam.VE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Wednesday, March 21, 2007 2:23 PM To: Shanm

Re: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Dave Shield
On 21/03/07, Shanmugam Vairavan <[EMAIL PROTECTED]> wrote: > Got this form snmptrap.exe console > > Sending 142 bytes to UDP: [127.0.0.1]:161 [snip] That's the problem then. The "snmptrap" command is sending the request to the wrong port. Try snmptrap localhost:162 42 coldStart.0 Da

Re: persistency of data between two runs of snmpd daemon

2007-03-21 Thread Dave Shield
On 21/03/07, Josu <[EMAIL PROTECTED]> wrote: > Is there any generic persistency mechanism provided by Net-Snmp ? > I would like such a mechanism for my owm mib module so that when the > daemon restarts values are recovered. In the initialisation routine for your MIB module, add a call of the form:

Re: snmpd: unknown token: master, agentxsocket

2007-03-21 Thread Dave Shield
On 21/03/07, Ling <[EMAIL PROTECTED]> wrote: > I am trying to implement snmpd on my embeded system. ... > But I got the following messages when I was running snmpd. > > "snmpd.conf: line 14: Warning: Unknown token: master." > "snmpd.conf: line 15: Warning: Unkonwn token: agentxsocket" How did you

Re: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Dave Shield
On 21/03/07, Shanmugam Vairavan <[EMAIL PROTECTED]> wrote: > Did. But still the receiver could not receive the traps > > This what I get in the console (snmptrapd.exe) > NET-SNMP version 5.4 That's *all* that you see? No raw packet dumps? In which case, the trap receiver isn't receiving the tra

RE: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Shanmugam Vairavan
Thanks for the help. After adding the auth user and the type of process in the snmptrapd.conf file, still I am not getting any trap on the receiver side (snmptrapd). I used this command to send v3 trap to snmptrapd "snmptrap -v 3 -u shanmugam -a MD5 -A shanmugam -l authNoPriv localhost 42 coldSt

Re: Disk information

2007-03-21 Thread Dave Shield
[ 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 20/03

Re: Unable to receive v3 traps in snmptrapd

2007-03-21 Thread Dave Shield
On 21/03/07, Shanmugam Vairavan <[EMAIL PROTECTED]> wrote: > I have another question. By default in which, port the receiver will be > running? It ought to be running on port 162. But that's definitely something worth checking. Try starting the trap receiver using snmptrapd -f -Le -d That

persistency of data between two runs of snmpd daemon

2007-03-21 Thread Josu
Hi All, Is there any generic persistency mechanism provided by Net-Snmp ? I would like such a mechanism for my owm mib module so that when the daemon restarts values are recovered. I am using net-snmp 5.1.2. Thanks, Jos -