NET-SNMP agent is not responding to manager request(snmpget,snmpgetnext etc)

2006-03-02 Thread Manish

Hi,

I haven't made any changes to snmpd.conf file,
Also I never see documentation about which access setting to specify for it.
I invoked following snmpget command
snmpget -v 1 -c public localhost sysDescr.0
actually I tried all combination which are working with Microsoft agent but
not with this agent.
Please suggest any solutions for the same...

Regards
manish

-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 3:00 PM
To: Manish
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: NET-SNMP agent is not responding to
managerrequest(snmpget,snmpgetnext etc)

On Wed, 2006-03-01 at 12:50 +0530, Manish wrote:
 I follow the entire step to install Net-SNMP on my machine, then I
 register Net-SNMP agent with my machine.
 
 But it is not responding to manager requests as snmpget.

How have you configured the Net-SNMP agent?
In particular, what access control settings do you have
in the snmpd.conf file?

What 'snmpget' commands are you trying?

Dave



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


running agentx sub-agent as non root

2006-03-02 Thread Sachin Mishra
   I am having problem running agentx subagent as a non-root user. I
went through some earlier discussion on this in the mailing list where
we talk about tweaking the permission of /var/agentx/master. Isn't there
a way to specify it in the config so that I can make it work as a
non-root user. 
  I tried by giving the -x option while running snmpd. In this case, how
to make sub-agent aware of the port where master is running. It seems
that init_agent call by default takes a fixed value for port of master
agent and it can't be changed using configuration.

Thanks,
Sachin



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Bug?

2006-03-02 Thread Dave Shield
On Wed, 2006-03-01 at 15:09 -0500, Jean-Sebastien Morisset wrote:
 On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote:
  Can you try walking the UCD-SNMP-MIB:dskTable

 Ah, of course, I didn't notice that dskTable in the error message. :-)
 Here you go

 dskErrorFlag.1 = INTEGER: 0
 dskErrorFlag.2 = INTEGER: 0
 dskErrorFlag.3 = INTEGER: 0

No sign of an error condition there, so the monitor trigger shouldn't
be firing.   Strange.

Ummm...   Can you try running the agent with  -Ddisman:event
and report the output?   I probably haven't got the debugging
code quite right for pinning this sort of problem down, but
that should give us something to work with.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Trap sent for no procTable error?

2006-03-02 Thread Jean-Sebastien Morisset
Hi everyone,

I seem to have a little problem. I have several Net-SNMP v5.3.0.1
clients on various Solaris servers, and I get the following trap from
several of them:

mteTriggerFired trap received from x: procTable
.1.3.6.1.4.1.2021.2.1.100.2 1 cron

This does NOT appear to be an error. I'm used to seeing procTable errors
in the form of:

mteTriggerFired trap received from x: procTable
.1.3.6.1.4.1.2021.2.1.100.19 1 wots Too few wots running (# = 0)

Here's a typical snmpd.conf proc section:

proc  automountd1 1
proc  cron  1 1
proc  devfsadm  1 1
proc  fsflush   1 1
proc  inetd 1 1
proc  lcfd  1 1
proc  mountd1 1
proc  nfsd  100 1
proc  nmbd  1 1
proc  nscd  1 1
proc  prngd 1 1
proc  rpcbind   1 1
proc  sac   1 1
proc  smbd  100 1
proc  sshd  100 1
proc  syseventd 1 1
proc  syslogd   1 1
proc  utmpd 1 1
proc  vxconfigd 1 1
proc  vxnotify  1 1
proc  vxrelocd  3 1
proc  wots  1 1
proc  xntpd 1 1

Any idea why Net-SNMP would send a trap for cron?

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Can't monitor linux-software-RAID- and SAN-devices

2006-03-02 Thread Dave Shield
On Thu, 2006-02-09 at 11:11 +0100, Thomas Kindermann/KRZN/DE wrote:
 I've got a problem with my Oracle-Cluster: 
 The Read-/Write-Counters for my /dev/md-devices (linux-software-RAID) 
 and my /dev/vpath -devices (ESS Storage) in the UCD-DISKIO-MIB remain
 on zero. 

What does

cat /proc/diskstats

report for these devices?

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Can't send trap from a running sub-agent.

2006-03-02 Thread Dave Shield
On Wed, 2006-02-01 at 17:48 +0200, Makavy, Erez (Erez) wrote:
 I have a sub-agent running as a thread.
 If I want to send a trap (using send_v2trap), I have to interupt the
 sub-agents agent_check_and_process() in order to send the trap.
  
 Is there some event mechanism in net-snmp to allow to interupt the
 sub-agent?

man snmp_alarm

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Is there a proprietry Net-SNMP MIB to show internal com2sec table?

2006-03-02 Thread Makavy, Erez (Erez)






Re: confusion reg Baby steps interface in Net-SNMP

2006-03-02 Thread Dave Shield
On Tue, 2006-02-28 at 17:07 +0530, V M Gadag wrote:
 1) What is Baby step Interface in Net-SNMP? 

It's a framework for implementing MIB modules, that breaks
the basic four-pass model (RESERVE1/RESERVE2/ACTION/COMMIT)
of the Net-SNMP agent into a large number of much smaller steps.

The idea is to allow the MIB implementer to concentrate on
one tightly focused aspect at a time, without having to bother
with the wider picture.   There's a diagram of how this works
in the 'baby_steps.c' file (and somewhere on the web, though
I can't remember where Robert's alternative FAQ is located).

I believe that the baby_steps helper is only currently used
by the Mibs For Dummies framework (MfD), which takes the same
idea a step further, by defining individual routines for each
task on each MIB object separately.

But you're better off asking Robert about this - he's much more
familiar with this framework than I am.   I have a feeling he's
not currently reading the users list (though I could be wrong)
so you might want to ask on the IRC channel.



 3) Is that mib2c  Baby Steps Interface can be used interchangeably?
 if so, what is the difference  similarity between them? 

mib2c is a tool for generating code (using one of a number of
possible approaches).   MfD (which uses the baby_steps helper)
is just one of these.
   It's probably impractical to implement a MIB using the MfD
framework *without* using mib2c to generate this code - since
the whole point is to handle as much as possible automatically.

 
 4)Is there any other tool or framework ( as generated by mib2c ) in
 Net-Snmp where in i can set / get multiple MIB objects under a single
 switch case?

Some of the other mib2c templates will do this - certainly
mib2c.{container,create-dataset,table_data}.conf will.
Those are all concerned with implementing tables.

For scalar objects, the only real option is mib2c.scalar.conf which
(currently) generates a separate handler for each scalar object. But 
it *is* possible to merge these into one 'scalar_group' handler.
At some point, I'll have to look at providing a mib2c.scalar_group.conf
template.   But don't hold your breath.


If you want to implement several scalars together, the simplest is
probably to generate the multi-handler code file, and I'll show
you how to merge them into one.



 That is I think, I should get the multiple requests in a single
 call to a handler, which will handle get / set cases.

Note that the agent will inherently process each SNMP request
separately.  There may be several varbinds in that request (which
will be passed all together to the relevant handlers).  But if you
have two separate SNMP requests, then they will trigger separate
calls to your MIB handler routine.


Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Different values for ifIn/OutOctets for local and remote queries.

2006-03-02 Thread Dave Shield
[Sorry for the delay in responding to this]


On Mon, 2006-01-02 at 23:00 -0500, John Rouillard wrote:

  A tcpdump on S of the query from A is:

 03:35:00.758456 IP (tos 0x0, ttl  64, id 469, offset 0, flags [DF], proto 17,
 length: 117) S.snmp  A.57133: [bad udp cksum 8a66!]  { SNMPv2c
   { GetResponse(74) R=531627557  
 system.sysUpTime.0=339026
 interfaces.ifTable.ifEntry.ifOutOctets.2=4067270909
   interfaces.ifTable.ifEntry.ifInOctets.2=1082932159 } }
 
 An snmpget -d shows:

   Received 89 bytes from S
   : 30 57 02 01  01 04 06 70  75 62 6C 69  63 A2 4A 020W.public.J.
   0016: 04 7C 57 9B  3E 02 01 00  02 01 00 30  3C 30 0F 06.|W...00..
   0032: 08 2B 06 01  02 01 01 03  00 43 03 05  2C 58 30 13.+...C..,X0.
   0048: 06 0A 2B 06  01 02 01 02  02 01 10 02  41 05 19 F2..+.A...
   0064: 6E 23 B5 30  14 06 0A 2B  06 01 02 01  02 02 01 0An#.0...+
   0080: 02 41 06 02  BE 40 96 A7  6F  [EMAIL 
 PROTECTED]

Unpacking that dump, the if*Octets varbinds are as follows:

   30 13
  06 0A   2B 06 01 02 01 02 02 01 10 02   (ifOutOctets.2)
  41 05   19 F2 6E 23 B5
  ^^
   30 14
  06 0A   2B 06 01 02 01 02 02 01 0A 02   (ifInOctets.2)
  41 06   02 BE 40 96 A7 6F
  ^

These two values (indicated by ) are both  32-bits,
and don't match the values listed in the tcpdump output.
These would be represented as (41 05) 00 f2 6d a0 fd 
and (41 04) 40 83 cb bf respectively.


That also fits with the S-S results, which are both
larger than the maximum allowed for a 32-bit value.

It looks as if the agent isn't wrapping these counters properly
at 2^32, and this is confusing the (32-bit) clients.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Pike, David








Im having a bit of trouble with net-snmp-5.3.0.1.
When I run an snmpwalk, It starts the walk but kills snmpd.



I used the following snmpwalk command.



./snmpwalk -v 2c -c commuity_here localhost



This system is running Tru64 5.1

Net-snmp 5.3.0.1 was compiled with:



./configure --with-cc=cc --prefix=/test_install_dir/test \

--with-persistent-directory=/var/net-snmp \

--with-copy-persistent-files=no \

--with-default-snmp-verion=3 \

--with-sys-contact=System Administrator \

--with-sys-location=Unknown \

--with-defaults \

--with-logfile=/var/adm/snmpd.log \

--with-mib-modules=mibII ucd_snmp host



I have a full dump of from the snmpd.log running snmpd a
DALL and what snmpwalk did manage to output but the log is over 55k
lines so Ill only include the last 100 here.



snmpd.log contents:



trace: snmpUDPDomain.c, 1032:

netsnmp_udp_getSecName: resolve community_string,
0x017f

trace: snmpUDPDomain.c, 1038:

netsnmp_udp_getSecName: compare community_string,
0x017f/0x... SUCCESS

trace: agent_registry.c, 151:

subtree: looking for subtree for context: 

trace: agent_registry.c, 156:

subtree: found one for: 

trace: mibgroup/mibII/vacm_conf.c, 1370:

mibII/vacm_vars: vacm_in_view: sn=comm1, gn=grpcomm1,
vn=_all_

trace: vacm.c, 551:

vacm:checkSubtree: , included

trace: callback.c, 328:

callback: END calling callbacks for maj=1 min=12 (1 called)

trace: callback.c, 148:

9:callback:lock: unlocked (APP,(null))

trace: snmp_agent.c, 1913:

snmp_agent: tp-start TCP-MIB::tcpConnTable, tp-end
TCP-MIB::tcpInErrs,

trace: snmp_agent.c, 1932:

verbose:asp: asp 140188e80 reqinfo 140183fe0 assigned to
request

trace: snmp_agent.c, 1939:

verbose:asp: asp 140188e80 reqinfo 140183fe0 assigned to
request

trace: agent_handler.c, 502:

handler:calling: main handler cache_handler

trace: agent_handler.c, 421:

handler:calling: calling handler cache_handler for mode
GETNEXT

trace: cache_handler.c, 427:

helper:cache_handler: Got request (161) for tcpTable:
TCP-MIB::tcpConnTable

cached (5)

trace: cache_handler.c, 338:

verbose:helper:cache_handler: adding
'cache_info:tcpTable' to 140183fe0

trace: agent_handler.c, 430:

handler:returned: handler cache_handler returned 0

trace: agent_handler.c, 421:

handler:calling: calling handler bulk_to_next for mode
GETNEXT

trace: agent_handler.c, 430:

handler:returned: handler bulk_to_next returned 0

trace: agent_handler.c, 421:

handler:calling: calling handler table for mode GETNEXT

trace: table.c, 178:

helper:table:req: Got request for handler table: base
oid:TCP-MIB::tcpConnTable

TCP-MIB::tcpConnLocalAddress.0.0.0.0.0.0.0.0.0.0

trace: table.c, 373:

helper:table:col: have at least a column (2)

trace: table.c, 449:

helper:table: have 10 bytes of index

trace: table.c, 497:

helper:table: looking for 4 indexes

trace: mib.c, 3700:

parse_oid_indexes: Parsed ipaddr(64): 0.0.0.0

trace: table.c, 537:

helper:table: got 1 (incomplete=0)

trace: mib.c, 3673:

parse_oid_indexes: Parsed int(2): 0

trace: table.c, 537:

helper:table: got 1 (incomplete=0)

trace: mib.c, 3700:

parse_oid_indexes: Parsed ipaddr(64): 0.0.0.0

trace: table.c, 537:

helper:table: got 1 (incomplete=0)

trace: mib.c, 3673:

parse_oid_indexes: Parsed int(2): 0

trace: table.c, 537:

helper:table: got 1 (incomplete=0)

trace: table.c, 551:

helper:table:results: found 4 indexes

trace: table.c, 557:

helper:table:results: column: 2, indexes:
4trace: mib.c, 1977:

output: sprint_by_type, type 64

 index: type=64(40), value=IpAddress:
0.0.0.0trace: mib.c, 1977:

output: sprint_by_type, type 2

 index: type=2(02), value=INTEGER: 0trace:
mib.c, 1977:

output: sprint_by_type, type 64

 index: type=64(40), value=IpAddress:
0.0.0.0trace: mib.c, 1977:

output: sprint_by_type, type 2

 index: type=2(02), value=INTEGER: 0

trace: agent_handler.c, 421:

handler:calling: calling handler table_iterator for mode
GETNEXT

trace: data_list.c, 106:

data_list: adding key 'ti_cache'

trace: mib.c, 3586:

build_oid_noalloc: generated:
TCP-MIB::tcpConnLocalAddress.0.0.0.0.0.0.0.0.0.0

trace: mib.c, 3586:

build_oid_noalloc: generated:
TCP-MIB::tcpConnLocalAddress.172.30.217.212.23.172.30.209.130.2721

trace: mib.c, 3586:

build_oid_noalloc: generated:
TCP-MIB::tcpConnLocalAddress.172.30.217.212.1667.172.30.217.220.23

trace: mib.c, 3586:

build_oid_noalloc: generated:
TCP-MIB::tcpConnLocalAddress.172.30.217.212.22.172.30.209.150.1947

trace: mib.c, 3586:

build_oid_noalloc: generated:
TCP-MIB::tcpConnLocalAddress.172.30.217.212.22.172.30.209.150.1948

trace: data_list.c, 106:

data_list: adding key 'table_iterator'

trace: table_iterator.c, 769:

table_iterator: call subhandler for mode: GETNEXT

trace: agent_handler.c, 421:

handler:calling: calling handler tcpTable for mode GET

trace: mibII/tcpTable.c, 201:

mibII/tcpTable: Handler - mode GET

trace: mibII/tcpTable.c, 207:

mibII/tcpTable: oid:
TCP-MIB::tcpConnLocalAddress.172.30.217.212.22.172.30.209.150.1947





Any help would 

Re: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Thomas Anders

Pike, David wrote:
I'm having a bit of trouble with net-snmp-5.3.0.1. When I run an 
snmpwalk, It starts the walk but kills snmpd.


Can you please run snmpd under gdb, type bt when it has crashed and 
post the output?



./configure --with-cc=cc --prefix=/test_install_dir/test \
--with-persistent-directory=/var/net-snmp \
--with-copy-persistent-files=no \
--with-default-snmp-verion=3 \
--with-sys-contact=System Administrator \
--with-sys-location=Unknown \
--with-defaults \
--with-logfile=/var/adm/snmpd.log \
--with-mib-modules=mibII ucd_snmp host


I'm surprised you got it to compile with the host module. Did you make 
any modification to the source?



+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Bug?

2006-03-02 Thread Jean-Sebastien Morisset
On Thu, Mar 02, 2006 at 01:08:49PM +, Dave Shield wrote:
 On Wed, 2006-03-01 at 15:09 -0500, Jean-Sebastien Morisset wrote:
 On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote:
 Can you try walking the UCD-SNMP-MIB:dskTable
 
 Ah, of course, I didn't notice that dskTable in the error message. :-)
 Here you go
 
 dskErrorFlag.1 = INTEGER: 0
 dskErrorFlag.2 = INTEGER: 0
 dskErrorFlag.3 = INTEGER: 0
 
 No sign of an error condition there, so the monitor trigger shouldn't
 be firing.   Strange.
 
 Ummm...   Can you try running the agent with  -Ddisman:event
 and report the output?   I probably haven't got the debugging
 code quite right for pinning this sort of problem down, but
 that should give us something to work with.

Dave,

I noticed that when the file systems in question where under heavy use,
snmpwalk would timeout. I had to specify -t 3 to avoid timeouts. Could
it be the internal disk monitor is timing out and generating an error
trap with odd values? I checked, but could not find, a timeout option
for monitor. Here's my monitor line:

monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag  != 0

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: GET_NEXT at the end of a table

2006-03-02 Thread Dave Shield
On Thu, 2006-02-02 at 18:55 +0100, Keller, Beat wrote:
 Hi,
 
 We have to implement the GET_NEXT from a table by our one. What
 shall we return if there is no further row in the table?

 Shall we set a special value in the varbind, a special OID, or
 do we have to return an error?

How are you implementing the table?   Which helper are you using?
Normally you should just return without setting a value, and the
agent will recognise this as the end of the table column, and move
on to the next object.



 If we just return SNMP_ERR_NOERROR it works, but it is very slow,
 because GET_NEXT is called around 40 times.

How are you testing this?  What is the *exact* request you are making?
Is the helper being called in exactly the same way each time?
Check the 'table_info-indexes' and 'table_info-colnum' values
for each call.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Bug? Got it!

2006-03-02 Thread Jean-Sebastien Morisset
On Thu, Mar 02, 2006 at 01:08:49PM +, Dave Shield wrote:
 On Wed, 2006-03-01 at 15:09 -0500, Jean-Sebastien Morisset wrote:
 On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote:
 Can you try walking the UCD-SNMP-MIB:dskTable
 
 Ah, of course, I didn't notice that dskTable in the error message. :-)
 Here you go
 
 dskErrorFlag.1 = INTEGER: 0
 dskErrorFlag.2 = INTEGER: 0
 dskErrorFlag.3 = INTEGER: 0
 
 No sign of an error condition there, so the monitor trigger shouldn't
 be firing.   Strange.
 
 Ummm...   Can you try running the agent with  -Ddisman:event
 and report the output?   I probably haven't got the debugging
 code quite right for pinning this sort of problem down, but
 that should give us something to work with.

Dave,

I was able to reproduce the problem. I copied a few gigs on the
filesystem and then removed it. Right after, I ran an snmpwalk. It stuck
for second half way through, and then gave me the following:

# snmpwalk -Ddisman:event -c  -O s -v 2c devsolx4 UCD-SNMP-MIB:dskTable
No log handling enabled - turning on stderr logging
registered debug token disman:event, 1
dskIndex.1 = INTEGER: 1
dskIndex.2 = INTEGER: 2
dskIndex.3 = INTEGER: 3
dskPath.1 = STRING: /
dskPath.2 = STRING: /export/home
dskPath.3 = STRING: /export/san
dskDevice.1 = STRING: /dev/dsk/c0t0d0s0
dskDevice.2 = STRING: /dev/dsk/c0t2d0s2
dskDevice.3 = STRING: /dev/dsk/c5t600C0FF00824C347B635AD00d0s2
dskMinimum.1 = INTEGER: -1
dskMinimum.2 = INTEGER: -1
dskMinimum.3 = INTEGER: -1
dskMinPercent.1 = INTEGER: 50
dskMinPercent.2 = INTEGER: 25
dskMinPercent.3 = INTEGER: 25
dskTotal.1 = INTEGER: 53651285
dskTotal.2 = INTEGER: 142436675
dskTotal.3 = INTEGER: 857894876
dskAvail.1 = INTEGER: 48398025
dskAvail.2 = INTEGER: 140139526
dskAvail.3 = INTEGER: 821699219
dskUsed.1 = INTEGER: 4716748
dskUsed.2 = INTEGER: -2147483648
dskUsed.3 = INTEGER: 10458811
dskPercent.1 = INTEGER: 9
dskPercent.2 = INTEGER: 3108
dskPercent.3 = INTEGER: 1
dskPercentNode.1 = INTEGER: 3
dskPercentNode.2 = INTEGER: 0
dskPercentNode.3 = INTEGER: 0
dskErrorFlag.1 = INTEGER: 0
dskErrorFlag.2 = INTEGER: 1
dskErrorFlag.3 = INTEGER: 0
dskErrorMsg.1 = STRING:
dskErrorMsg.2 = STRING: /export/home: less than 25% free (= 3108%)
dskErrorMsg.3 = STRING:


-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: help for porting snmp!

2006-03-02 Thread Dave Shield
On Thu, 2006-02-23 at 11:46 +0800, Wang Zheng wrote:
 I plan proting partial code of net-snmp to my protocol, but
 I am dizzy because  the codes of the net-snmp are so large.
 Is there anybody can give me some advice?

The best advice I can offer is that from the FAQ entry:

What happens if mine isn't listed?


Try starting with configure --enable-mini-agent
which should be relatively portable, and then start adding
the MIB modules that you actually want to use.  This is
where most of the architecture-specific code tends to be.

Dave



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How do I make my subagent as a library

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 10:18 +0530, Ramachandrappa, Nataraju
Karidasarahalli wrote:
 My customer is asking for library function instead of binaries. How do I
 convert my sub agent binaries in to library functions.

All of the subagent functionality is basically provided by the
libnetsnmpagent library already.  The subagent in the Net-SNMP toolkit
tutorial (http://www.net-snmp.org/tutorial/tutorial-5/toolkit) is a
very simple wrapper round this library.

That's probably your best starting point.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Pike, David
I'm working on the gdb but here are the changes I made to the source. One
was the patch for mib.c provided form the sourcefourge site. I'm not an
expert programmer but this did make it compile and run.


diff -c -r net-snmp-5.3.0.1/configure net-snmp-5.3.0.1.new/configure
*** net-snmp-5.3.0.1/configure  Fri Jan 13 20:51:51 2006
--- net-snmp-5.3.0.1.new/configure  Thu Mar  2 09:29:17 2006
***
*** 1852,1858 
enableval=$enable_mini_agent

  fi;
! if test x$enable_mini_agent == xyes; then
  mini_agent=yes
  else
  mini_agent=no
--- 1852,1858 
enableval=$enable_mini_agent

  fi;
! if test x$enable_mini_agent = xyes; then
  mini_agent=yes
  else
  mini_agent=no
diff -c -r net-snmp-5.3.0.1/agent/mibgroup/host/hr_filesys.c
net-snmp-5.3.0.1.new/agent/mibgroup/host/hr_filesys.c
*** net-snmp-5.3.0.1/agent/mibgroup/host/hr_filesys.c   Mon Feb 28 07:52:58
2005
--- net-snmp-5.3.0.1.new/agent/mibgroup/host/hr_filesys.c   Mon Feb 20
10:38:00 2006
***
*** 314,367 
--- 314,399 
   */
  #if HAVE_GETFSSTAT  !defined(MFSNAMELEN)
  switch (HRFS_entry-HRFS_type) {
+ #ifdef MOUNT_UFS
  case MOUNT_UFS:
  fsys_type_id[fsys_type_len - 1] = 3;
  break;
+ #endif
+ #ifdef MOUNT_NFS
  case MOUNT_NFS:
  fsys_type_id[fsys_type_len - 1] = 14;
  break;
+ #endif
+ #ifdef MOUNT_MFS
  case MOUNT_MFS:
  fsys_type_id[fsys_type_len - 1] = 8;
  break;
+ #endif
+ #ifdef MOUNT_MSDOS
  case MOUNT_MSDOS:
  fsys_type_id[fsys_type_len - 1] = 5;
  break;
+ #endif
+ #ifdef MOUNT_LFS
  case MOUNT_LFS:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_LOFS
  case MOUNT_LOFS:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_FDESC
  case MOUNT_FDESC:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_PORTAL
  case MOUNT_PORTAL:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_NULL
  case MOUNT_NULL:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_UMAP
  case MOUNT_UMAP:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_KERNFS
  case MOUNT_KERNFS:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_PROCFS
  case MOUNT_PROCFS:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_AFS
  case MOUNT_AFS:
  fsys_type_id[fsys_type_len - 1] = 16;
  break;
+ #endif
+ #ifdef MOUNT_CD9660
  case MOUNT_CD9660:
  fsys_type_id[fsys_type_len - 1] = 12;
  break;
+ #endif
+ #ifdef MOUNT_UNION
  case MOUNT_UNION:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
+ #ifdef MOUNT_DEVFS
  case MOUNT_DEVFS:
  fsys_type_id[fsys_type_len - 1] = 1;
  break;
+ #endif
  #ifdef MOUNT_EXT2FS
  case MOUNT_EXT2FS:
  fsys_type_id[fsys_type_len - 1] = 23;
***
*** 468,474 
  case HRFSYS_ACCESS:
  #if defined(HAVE_STATVFS)  defined(__NetBSD__)
long_return = HRFS_entry-f_flag  MNT_RDONLY ? 2 : 1;
! #elif defined(HAVE_GETFSSTAT)
  long_return = HRFS_entry-f_flags  MNT_RDONLY ? 2 : 1;
  #elif defined(cygwin)
  long_return = 1;
--- 500,506 
  case HRFSYS_ACCESS:
  #if defined(HAVE_STATVFS)  defined(__NetBSD__)
long_return = HRFS_entry-f_flag  MNT_RDONLY ? 2 : 1;
! #elif defined(HAVE_GETFSSTAT)  defined(MNT_RDONLY)
  long_return = HRFS_entry-f_flags  MNT_RDONLY ? 2 : 1;
  #elif defined(cygwin)
  long_return = 1;
diff -c -r net-snmp-5.3.0.1/include/net-snmp/system/osf5.h
net-snmp-5.3.0.1.new/include/net-snmp/system/osf5.h
*** net-snmp-5.3.0.1/include/net-snmp/system/osf5.h Mon Oct 31 07:40:30
2005
--- net-snmp-5.3.0.1.new/include/net-snmp/system/osf5.h Fri Feb 17 16:35:26
2006
***
*** 7,12 
--- 7,15 
  #define _SOCKADDR_LEN
  #endif

+ /* undef added */
+ #undef TOTAL_MEMORY_SYMBOL
+
  #undef TCP_TTL_SYMBOL
  #define TCP_TTL_SYMBOL tcp_ttl

diff -c -r net-snmp-5.3.0.1/snmplib/mib.c net-snmp-5.3.0.1.new/snmplib/mib.c
*** net-snmp-5.3.0.1/snmplib/mib.c  Fri Dec  2 05:33:57 2005
--- net-snmp-5.3.0.1.new/snmplib/mib.c  Thu Feb 23 11:53:43 2006
***
*** 2861,2867 
  read_objid(const char *input, oid * output, size_t * out_len)
  {   /* number of subid's in output */
  #ifndef DISABLE_MIB_LOADING
! struct tree*root = tree_head;
  #endif /* DISABLE_MIB_LOADING */
  charbuf[SPRINT_MAX_LEN];
  int ret, max_out_len;
--- 2861,2867 
  

Re: Bug? Got it!

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote:

 I was able to reproduce the problem. I copied a few gigs on the
 filesystem and then removed it. Right after, I ran an snmpwalk. It stuck
 for second half way through, and then gave me the following:


 dskTotal.2 = INTEGER: 142436675
 dskAvail.2 = INTEGER: 140139526
 dskUsed.2 = INTEGER: -2147483648

Urk!

 dskErrorFlag.2 = INTEGER: 1

Well that would certainly explain why the monitor entry is
being triggered  :-)


OK - so the problem lies with the disk table.   Unfortunately,
that code isn't particularly clean.   (I've got plans, but not
enough time).
  What O/S is this running on?

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Thomas Anders

Pike, David wrote:

I'm working on the gdb but here are the changes I made to the source. One
was the patch for mib.c provided form the sourcefourge site. I'm not an
expert programmer but this did make it compile and run.


The obvious question then is: what if you do *not* apply your patch, 
rebuild without the host mib module and snmpwalk again? Does it still 
crash?



+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Is there a proprietry Net-SNMP MIB to show internal com2sec table?

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 15:19 +0200, Makavy, Erez (Erez) wrote:
  Is there a proprietry Net-SNMP MIB to show internal com2sec table?

No.

There is an IETF standard Community-MIB, which we really ought
to implement.   But it's not yet been done (and doesn't quite
match the functionality of com2sec, which pre-dated it).

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: how can i get the index of a mib by using any snmp api.c

2006-03-02 Thread Dave Shield
On Fri, 2006-02-03 at 13:30 +, elias bou rahal wrote:
 i need to know which function i have to call for getting
 the indexes of a mib .

Can you give a bit more detail about exactly what you mean?
Are you talking about the indexes used when registering the
MIB table (within the init_xxx routine), or the indexes used
when processing requests (within the xxx_handler routine) ?

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: mib2c question.

2006-03-02 Thread Dave Shield
On Fri, 2006-02-24 at 12:03 +0100, Palmentieri Nunzio wrote:
 I wrote a MIB with several table objects.
 How can I generate code for it?
 I think I have to run mib2c on both the tables, and then compile the
 code generated, as follows:
  
 mib2c peProcessTable
 mib2c peObjectTable

That's certainly the most reliable way to do this
(and typically the easiest to maintain).

Depending on the mib2c template that you are using,
it *might* be possible to run mib2c on a higher-level
root object, and allow it to generate code for both
tables in the same file.   But not all templates
support this, and it's probably easier to work on
one table at once.

You can always combine the files manually, once you're
happy that they work individually.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Mib Loading Problem

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 11:48 +0530, [EMAIL PROTECTED] wrote:

 1) Is it possible to keep the mib2c generated .c .h files in some
 other directory (other than agent/mibgroup) and force the configure
 scripts to include those files while making snmpd ?
 
 2) Is there any way to force --with-mib-modules  to look for .c
 and .h other than agent/mibgrop directory

No.
Configure will look in 'agent/mibgroup'


 
 3) Is it possible to implement the mibs and generate .so and while
 configuring snmpd include that .so instead of
 --with-mib-modules option and still the private mibs which
 implementation is part of .so gets  loaded.

One possibility would be to load the .so file dynamically when the
agent starts - see the 'dlmod' token in snmpd.conf(5).

Alternatively, you could try tweaking the mib_module_inits.h file
(after running configure, but before make) to add a call to the
initialisation routine of your .so file.   That's not something
I've tried myself, but it should work, I think.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Bug? Got it!

2006-03-02 Thread Jean-Sebastien Morisset
On Thu, Mar 02, 2006 at 02:53:04PM +, Dave Shield wrote:
 On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote:
 
 I was able to reproduce the problem. I copied a few gigs on the
 filesystem and then removed it. Right after, I ran an snmpwalk. It stuck
 for second half way through, and then gave me the following:
 
 
 dskTotal.2 = INTEGER: 142436675
 dskAvail.2 = INTEGER: 140139526
 dskUsed.2 = INTEGER: -2147483648
 
 Urk!
 
 dskErrorFlag.2 = INTEGER: 1
 
 Well that would certainly explain why the monitor entry is
 being triggered  :-)
 
 
 OK - so the problem lies with the disk table.   Unfortunately,
 that code isn't particularly clean.   (I've got plans, but not
 enough time).
   What O/S is this running on?

[EMAIL PROTECTED]:~$ uname -a
SunOS devsolx4 5.10 Generic_118844-28 i86pc i386 i86pc

:-)

js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: how to get rid of libcrypto?

2006-03-02 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 Wed, 2006-03-01 at 11:10 -0800, Catherine Io wrote:

 Here is the configure options that I used:
 --enable-mini-agent
 --disable-privacy
 --without-openssl
 --disable-manuals
 --disable-scripts
 --disable-debugging
 --with-transports=UDP
 --without-kmem-usage
 --disable-shared
 --enable-static
 --with-defaults
 --prefix=
 --with-install-prefix=
 
 BTW, I did a 'ldd' and here is the result.
 ldd snmptrap
 libcrypto.so.2 == not found
 libm.so.6 = /lib/i686/libm.so.6
 libc.so.6 = /lib/i686/libc.so.6

Hmmm...
I've just done roughly the same on a clean install:

 $ configure --enable-mini-agent --disable-privacy
 --without-openssl --disable-shared
 $ make
 $ ldd apps/snmptrap
 linux-gate.so.1
 libm.so.6
 libc.so.6
 /lib/ld-linux.so.2


No mention of libcrypto (as expected).


All I can suggest is that you try again, with a completely
fresh source tree.   Maybe it's picking up something from
an earlier build?

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Pike, David
It still dies. I did catch this in the snmpd.log

nlist err: neither rhash_size nor _rhash_size found.
nlist err: neither rthost nor _rthost found.
nlist err: neither rtnet nor _rtnet found.
NET-SNMP version 5.3.0.1
Received SNMP packet(s) from UDP: [127.0.0.1]:3238
truncating integer value  32 bits
nlist err: neither arptab_size nor _arptab_size found.
nlist err: neither arptab nor _arptab found.
auto_nlist failed on arptab_size at location 0
auto_nlist failed on arptab_size at location 0
auto_nlist failed on arptab_size at location 0
auto_nlist failed on arptab_size at location 0
auto_nlist failed on arptab_size at location 0
auto_nlist failed on arptab_size at location 0

Not sure if this helps though.

Thanks,
David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Anders
Sent: Thursday, March 02, 2006 9:53 AM
To: net-snmp-users@lists.sourceforge.net
Subject: Re: snmpwalk kills snmpd-5.3.0.1 on TRU64

Pike, David wrote:
 I'm working on the gdb but here are the changes I made to the source. One
 was the patch for mib.c provided form the sourcefourge site. I'm not an
 expert programmer but this did make it compile and run.

The obvious question then is: what if you do *not* apply your patch, 
rebuild without the host mib module and snmpwalk again? Does it still 
crash?


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


R: mib2c question.

2006-03-02 Thread Palmentieri Nunzio
Title: R: mib2c question.





Yes,
I did it manually, that is, I generated the modules:


peProcessTable.c peProcessTable.h
peObjectTable.c peObjectTable.h


I created a new file.c containing all functions coming from the two originated files
(peProcessTable.c and peObjectTable.c) and I included in it peProcessTable.h and 
peObjectTable.h.


It works fine.


Thanks.




Nunzio Palmentieri
Web Care Solution

Atos Origin
Via Antiniana 2/a 
80078 Pozzuoli (NA) - ITALY





Direct +39 081 6103 388
Mobile +39 335 1214 806
Fax +39 081 6103 200
e-mail mailto:[EMAIL PROTECTED]
Web www.atosorigin.com


This electronic message contains information from Atos Origin, which may be privileged and confidential. The information is intended to be use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.



-Messaggio originale-
Da: Dave Shield [mailto:[EMAIL PROTECTED]] 
Inviato: giovedì 2 marzo 2006 16.13
A: Palmentieri Nunzio
Cc: net-snmp-users@lists.sourceforge.net
Oggetto: Re: mib2c question.



On Fri, 2006-02-24 at 12:03 +0100, Palmentieri Nunzio wrote:
 I wrote a MIB with several table objects.
 How can I generate code for it?
 I think I have to run mib2c on both the tables, and then compile the 
 code generated, as follows:
 
 mib2c peProcessTable
 mib2c peObjectTable


That's certainly the most reliable way to do this
(and typically the easiest to maintain).


Depending on the mib2c template that you are using,
it *might* be possible to run mib2c on a higher-level
root object, and allow it to generate code for both
tables in the same file. But not all templates
support this, and it's probably easier to work on
one table at once.


You can always combine the files manually, once you're
happy that they work individually.


Dave



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk=110944=241720=121642

___
Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users




R: table_info-max_column

2006-03-02 Thread Palmentieri Nunzio
Title: R: table_info-max_column





Thank you,
Now I understand well the meaning, and it works fine in any cases.


Thanks.


Nunzio Palmentieri
Web Care Solution

Atos Origin
Via Antiniana 2/a 
80078 Pozzuoli (NA) - ITALY





Direct +39 081 6103 388
Mobile +39 335 1214 806
Fax +39 081 6103 200
e-mail mailto:[EMAIL PROTECTED]
Web www.atosorigin.com


This electronic message contains information from Atos Origin, which may be privileged and confidential. The information is intended to be use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.



-Messaggio originale-
Da: Dave Shield [mailto:[EMAIL PROTECTED]] 
Inviato: mercoledì 1 marzo 2006 16.36
A: Palmentieri Nunzio
Cc: 'net-snmp-users@lists.sourceforge.net'
Oggetto: Re: table_info-max_column



On Wed, 2006-03-01 at 16:14 +0100, Palmentieri Nunzio wrote:
 Hi all,
 someone could explain me what is the meaning of 
 table_info-max_column,


For a given table, MIB column object will typically
have consecutive subidentifier numbers.
E.g. for the IF-MIB::ifTable, these run from ifIndex(1)
to ifSpecific(22)


table_info-min_column is the subidentifier of the first
(accessible) column object - typically 1.


table_info-max_column is the subidentifier of the last
column object - in this case 22.


This means that the main agent driving code (or strictly speaking, the table helper) knows to reject a request for ifEntry.23 (or above), without having to call the MIB handler routine.

Dave



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk=110944=241720=121642

___
Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users




Re: NET-SNMP agent is not responding to manager request(snmpget,snmpgetnext etc)

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 11:08 +0530, Manish wrote:
 I haven't made any changes to snmpd.conf file,

The simplest approach is probably to have the single line

rocommunity public

(probably *instead* of whatever entries are currently there).


 Also I never see documentation about which access setting to specify for it.

There are various relevant entries in the FAQ, including:
  Requests always seem to timeout, and don't give
 me anything back.  Why?
  I can see the system group, but nothing else.  Why?
  How do I configure access control?
  I don't understand the new access control
 stuff - what does it mean?




 actually I tried all combination which are working with Microsoft
 agent but not with this agent.

That's because the Microsoft agent has the access control configured
(possibly by default), and the Net-SNMP agent doesn't.


 Please suggest any solutions for the same...

See above.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: net-snmp v5.3.0.1 question

2006-03-02 Thread Dave Shield
On Mon, 2006-01-23 at 09:45 -0800, Stan Buyanov -C wrote:
 I installed net-snmp v5.3.0.1 on my virtual machine...
 and executed a Walk command on RFC-1213-MIB.
 I got the following output:
 
 sysDescr.0   Linux localhost.localdomain 
 :
 .1.3.6.1.2.1.1.9.1.4.81
 .1.3.6.1.2.1.25.1.1.01027303
 
 My question is: why it doesn't show all RFC1213-MIB objects
 (interfaces, ip objects, and so on)?

Access control.  See the FAQ entry:

I can see the system group, but nothing else.  Why?


Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: printer mibs

2006-03-02 Thread Dave Shield
On Mon, 2006-02-06 at 14:36 +, xuemei wrote:
 I wonder does net-snmp agent support printer mib like rfc1759printer.mib
 etc, if the functionalities are already there,   but this has simply not
 been configured in to the running version.

No.

  Will use the configure option
   --with-mib-modules=list
 then  recompiling the agent do?

That would do it - but you'd also need to write the code to implement
this MIB in order.   All --with-mib-modules  does is specify which code
files to include - it doesn't magically create this code for you!

Note that the hardest part of writing any MIB tends to be retrieving
the necessary information from the underlying system.  Tools such as
mib2c can provide the SNMP framework, but they can't help with
locating the actual information to report.   That's up to you (whether
you're handling this in the main SNMP agent, or a subagent).




 What is the command to find out all the  net-snmp support mibs including
 default  and potentially support? By potentially support, I mean  use the
 configure option
   --with-mib-modules=list

See README.agent-mibs

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Trap from outside the agent.

2006-03-02 Thread Palmentieri Nunzio
Title: Messaggio



I 
all,
is it possible to 
generate a trap not from the Agent, but from a generic 
process?

I did it on TRU64 
(eSNMP).
Have someone some 
simple example?

Thanks in 
advance.


Nunzio 
PalmentieriWeb Care 
SolutionAtos OriginVia Antiniana 2/a 80078 Pozzuoli (NA) - 
ITALY

Direct+39 081 6103 
388Mobile+39 335 1214 
806Fax+39 
081 6103 200e-mail mailto:[EMAIL PROTECTED]Web 
www.atosorigin.com
This electronic message contains information from Atos Origin, 
which may be privileged and confidential. The information is intended to be use 
of the individual(s) or entity named above. If you are not the intended 
recipient, be aware that any disclosure, copying, distribution or use of the 
contents of this information is prohibited.



Re: confusion reg Baby steps interface in Net-SNMP

2006-03-02 Thread V M Gadag




Hi Dave,

Thanks alot for the input,

Thanks  Regards,
Gadag



On Thu, 2006-03-02 at 19:05, Dave Shield wrote:

On Tue, 2006-02-28 at 17:07 +0530, V M Gadag wrote:
 1) What is Baby step Interface in Net-SNMP? 

It's a framework for implementing MIB modules, that breaks
the basic four-pass model (RESERVE1/RESERVE2/ACTION/COMMIT)
of the Net-SNMP agent into a large number of much smaller steps.

The idea is to allow the MIB implementer to concentrate on
one tightly focused aspect at a time, without having to bother
with the wider picture.   There's a diagram of how this works
in the 'baby_steps.c' file (and somewhere on the web, though
I can't remember where Robert's alternative FAQ is located).

I believe that the baby_steps helper is only currently used
by the Mibs For Dummies framework (MfD), which takes the same
idea a step further, by defining individual routines for each
task on each MIB object separately.

But you're better off asking Robert about this - he's much more
familiar with this framework than I am.   I have a feeling he's
not currently reading the users list (though I could be wrong)
so you might want to ask on the IRC channel.



 3) Is that mib2c  Baby Steps Interface can be used interchangeably?
 if so, what is the difference  similarity between them? 

mib2c is a tool for generating code (using one of a number of
possible approaches).   MfD (which uses the baby_steps helper)
is just one of these.
   It's probably impractical to implement a MIB using the MfD
framework *without* using mib2c to generate this code - since
the whole point is to handle as much as possible automatically.

 
 4)Is there any other tool or framework ( as generated by mib2c ) in
 Net-Snmp where in i can set / get multiple MIB objects under a single
 switch case?

Some of the other mib2c templates will do this - certainly
mib2c.{container,create-dataset,table_data}.conf will.
Those are all concerned with implementing tables.

For scalar objects, the only real option is mib2c.scalar.conf which
(currently) generates a separate handler for each scalar object. But 
it *is* possible to merge these into one 'scalar_group' handler.
At some point, I'll have to look at providing a mib2c.scalar_group.conf
template.   But don't hold your breath.


If you want to implement several scalars together, the simplest is
probably to generate the multi-handler code file, and I'll show
you how to merge them into one.



 That is I think, I should get the multiple requests in a single
 call to a handler, which will handle get / set cases.

Note that the agent will inherently process each SNMP request
separately.  There may be several varbinds in that request (which
will be passed all together to the relevant handlers).  But if you
have two separate SNMP requests, then they will trigger separate
calls to your MIB handler routine.


Dave


---DISCLAIMER--
The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
---




Re: Trap from outside the agent.

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 16:52 +0100, Palmentieri Nunzio wrote:
 is it possible to generate a trap not from the Agent,
 but from a generic process?

Yes.   Have a look at 'snmptrap'

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with pass and monitor

2006-03-02 Thread Dave Shield
On Sat, 2006-02-18 at 10:26 -0200, Wesley Naves de Faria wrote:
 I´m using net-snmp 5.2.2 on a Red Hat AS.


 In my snmpd.conf:

 monitor -u phphomolog -r 100 UserYES ucdavis.20.1  2
 pass .1.3.6.1.4.1.2021.20.1 /etc/snmpscripts/user.sh
 
 
 Ok, When the amount of users exceeds 2, my server to trap, will receiver
 many traps. If a don´t stop the snmp in my client itself don´t stop to
 send traps.

Is it possible to try with 5.3.0.1 ?
The monitor handling has been completely re-written for the 5.3
release - it's possible that this may work better for you.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 15:56 +, elias bou rahal wrote:
 i am talking about the indexes used when registering the MIB table

OK.
Then you should provide this information manually (by looking
at the MIB file yourself).  The agent doesn't actually need the
MIB file at all, so it doesn't rely on looking up the syntax of
the table - that's part of the static design and ends up hardcoded
into the MIB implementation.

If you look at the code for some of the existing tables, you'll
see that they specify the syntax of the indexes as part of the
initialisation routine.  You should do the same.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-02 Thread elias bou rahal
i am talking about the indexes used when registering the MIB table ( within 
the init_xxx routing)

In other word:
 when i call init_mib for parsing all new mibs , through this process i 
need to read the indexes in each table in thie mibs and this is the aim 
which i talking about.



From: Dave Shield [EMAIL PROTECTED]
To: elias bou rahal [EMAIL PROTECTED]
CC: net-snmp-users@lists.sourceforge.net
Subject: Re: how can i get the index of a mib by using any snmp api.c
Date: Thu, 02 Mar 2006 14:40:08 +

On Fri, 2006-02-03 at 13:30 +, elias bou rahal wrote:
 i need to know which function i have to call for getting
 the indexes of a mib .

Can you give a bit more detail about exactly what you mean?
Are you talking about the indexes used when registering the
MIB table (within the init_xxx routine), or the indexes used
when processing requests (within the xxx_handler routine) ?

Dave





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: problem with snmpset. need help

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 09:27 +0530, [EMAIL PROTECTED] wrote:

 I have a problem with snmpset.

   When  I try to set this variable with value 10.10.10.10 or the
 equivalent in hex 0A0A0A0A it sets the variable with a blank value.


  /usr/local/bin/snmpset -v 1 -c public -t 60 -r 3 -Ont --
 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1
 .1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 d 10.10.10.10
 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = INTEGER: 1
 .1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 1
 .1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = STRING: 
  
  
  
 

Unfortunately, it's a bit difficult to see exactly what's happening
here.  Can you try running this with the '-d' option, to dump the
raw SNMP packets?   (For both 'd 10.10.10.10' and 'x 0A0A0A0A' forms)

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: query about agentx - getbulk support..

2006-03-02 Thread Dave Shield
On Thu, 2006-01-12 at 03:06 -0800, vijendra agarwal wrote:
 Can you please let me know if there is any plan to implement getbulk
 of agentx protocol in near future?

There's no explicit timetable for implementing this functionality, no.
It is listed in the Feature Requests tracker (#1379500), but that's
no guarantee as to how soon anyone will actually tackle the job.

It'll probably depend on someone who needs to make use of this feature
being prepared/able to do the work (or to fund someone else to do it!)


 I know around 20% of code flow and data structure used by net-snmp.
 I have good knowledge about C. so can you tell me,  how much time 
 approx will it take if I try to implement it?

I really couldn't suggest a meaningful estimate.  It might be a
two-minute job, since most of the bits are in place.   The agent
*does* support the AgentX GetBulk protocol request - it simply
doesn't try to use it.  So tweaking the register_agentx routine
to include HANDLER_CAN_GETBULK *might* be sufficient  (except
that it seems to already do this).

But much of this code probably hasn't been tested, and there are
a lot of subtle problems in GetBulk handling.  So getting it to
work reliably might be a long hard slog.  I really don't know.


Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Response is coming two times for a request!

2006-03-02 Thread Dave Shield
On Tue, 2006-02-28 at 18:34 +0530, Rustagi, Sandeep (Sandeep) wrote:

 When I am querying the snmpget on sysUpTime of linux machine using the
 following command:
 
 snmpget -c public 172.16.131.71 system.sysUpTime.0
 
 I see the requests coming two times in the ethereal and responses
 also two times. 

Perhaps the response is simply taking too long to arrive, and the
snmpget command is retrying the request before the first response
arrives.

Try
snmpget -c public -t 20 172.16.131.71 system.sysUpTime.0

or
snmpget -c public -r 0  172.16.131.71 system.sysUpTime.0

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: running agentx sub-agent as non root

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 17:23 +0530, Sachin Mishra wrote:
   Isn't there
 a way to specify it in the config so that I can make [/var/agentx/master]
 work as a non-root user. 

See 'agentXPerms' in snmpd.conf(5)

I believe this is only documented in the most recent release (5.3),
but it should work in earlier versions as well.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmpgetnext with multiple varbindes

2006-03-02 Thread Dave Shield
On Tue, 2006-02-21 at 20:16 +0530, [EMAIL PROTECTED] wrote:
  In case of snmpget with multi-varbind i am getting the response for
 all the varbindes, but the problem is with getnext only the response
 for forst varbind is displayed by the manager

Can you please post the exact command and response?
It might be useful to see the output with the '-d' option as well.

Dave



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmp_synch_response function

2006-03-02 Thread Dave Shield
On Tue, 2006-01-31 at 23:21 +1100, Peter Thompson  Leanne O'Meara
wrote:
 Dear Sir/Madam,
  
 I have a simple query about the snmp_synch_response function ...
 Does this operate synchronously as the name suggests ?

Yes.
If you look at the code (in snmplib/snmp_client.c), it boils down
to the following:

int
snmp_synch_response_cb(netsnmp_session * ss,
   netsnmp_pdu *pdu,
   netsnmp_pdu **response, snmp_callback pcb)
{
snmp_send(ss, pdu);
while (state-waiting) {
snmp_select_info(numfds, fdset, tvp, block);
select(numfds, fdset, 0, 0, tvp);
snmp_read(fdset);
}
}

(where the callback routine 'snmp_synch_input' clears the waiting flag).


 That is, does it wait for the response PDU (for the timeout period)
 before continuing ?

Exactly.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmptrapd and the generic/specific trap type

2006-03-02 Thread Dave Shield
On Wed, 2006-02-22 at 13:22 +0100, ange terrien wrote:
 Wrinting a Perl script called by snmptrapd, I want to
 receive a SNMP-v1 trap and parse it.
 But I can't find how to get the generic and the
 specific trap types.

snmptrapd passes notifications to the trap handlers
in SNMPv2 format, regardless of the version actually
received.   So a linkUp trap will appear with a
snmpTrapOID.0 varbind of IF-MIB::linkUp  rather
than the SNMPv1 (2,0) pair.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmptrapd.conf problem

2006-03-02 Thread Dave Shield
On Wed, 2006-03-01 at 13:37 +0530, vishakha s wrote:
 I am learning about traps in net-snmp .There is a problem related to
 snmptrapd.conf file .When I issue the following command
 ./snmptrapd -m ALL  -P
 
 It gives the following error :
 
 Cannot find module (IF-MIB): At line 0 in (none)
 /home/rajesh/snmptrap1/share/snmp/snmptrapd.conf: line 10:
  Error: Bad trap OID in traphandle directive: IF-MIB::linkDown

The problem is simply that it can't find the MIB files.
Try using a numeric OID instead:

traphandle .1.3.6.1.6.3.1.1.5.3   /home/snmptrap1/bin/traps down

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 10:25 -0500, Pike, David wrote:
  The obvious question then is: what if you do *not* apply your patch, 
  rebuild without the host mib module and snmpwalk again? Does it
  still crash?
 
 It still dies.

What's the last value that it returns before dying?
What happens if you restart the agent, and then run
a single snmpgetnext request on this OID?

I'd suggest doing this with '-r 0 -t 60', to avoid
problems with the agent being swamped with repeated
retries.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: system: Unknown Object Identifier (Sub-id not found: (top) - system)

2006-03-02 Thread Dave Shield
On Wed, 2006-01-25 at 08:45 -0800, Hassan Noureddine wrote:
 I am getting a system: Unknown Object Identifier in response to the 
 snmpwalk command:
 
 #snmpwalk -v 1 -c private 127.0.0.1 system.
 system: Unknown Object Identifier (Sub-id not found: (top) - system)

That looks as if the command isn't finding the MIB files.
Are they installed?  Where?

Try running

   snmpwalk -Dparse-mibs -v 1 -c private 127.0.0.1 system

and see where it's looking for these files.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Timeout: No Response after output of last OID

2006-03-02 Thread Dave Shield
On Fri, 2006-02-10 at 15:12 +0530, Ajay Hotchandani wrote:
 But with “net-snmp-5.2.1.2-fc4.1”, when I give command
 “snmpwalk –v 2c –c public localhost .1.3.6.1.6”, I get
  error as “Timeout: No Response from localhost”.

What happens if you try

   snmpwalk -v 2c -t 60 -c public localhost .1.3.6.1.6

?  (to give the agent more time to respond)


Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Trap handling

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 12:22 +0530, vishakha s wrote:
 I just want some guidance in how to handle Traps and
 which file will handle trap .

The command 'snmptrapd' is used for handling traps.
It's impossible to be more precise without more details
about exactly what you want to do.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Trap sent for no procTable error?

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 08:10 -0500, Jean-Sebastien Morisset wrote:
 I seem to have a little problem. I have several Net-SNMP v5.3.0.1
 clients on various Solaris servers, and I get the following trap from
 several of them:
 
 mteTriggerFired trap received from x: procTable
 .1.3.6.1.4.1.2021.2.1.100.2 1 cron
 
 This does NOT appear to be an error.

What does walking the procTable show?


Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Trap sent for no procTable error?

2006-03-02 Thread Jean-Sebastien Morisset
On Thu, Mar 02, 2006 at 05:25:30PM +, Dave Shield wrote:
 On Thu, 2006-03-02 at 08:10 -0500, Jean-Sebastien Morisset wrote:
 I seem to have a little problem. I have several Net-SNMP v5.3.0.1
 clients on various Solaris servers, and I get the following trap from
 several of them:
 
 mteTriggerFired trap received from x: procTable
 .1.3.6.1.4.1.2021.2.1.100.2 1 cron
 
 This does NOT appear to be an error.
 
 What does walking the procTable show?

Dave,

Everything appears normal:

# snmpwalk -c  -O s -v 2c devunix4 prTable|grep '\.2 '
prIndex.2 = INTEGER: 2
prNames.2 = STRING: cron
prMin.2 = INTEGER: 1
prMax.2 = INTEGER: 1
prCount.2 = INTEGER: 1
prErrorFlag.2 = INTEGER: 0
prErrMessage.2 = STRING:
prErrFix.2 = INTEGER: 0
prErrFixCmd.2 = STRING:

And on the server itself:

# ps -ef|grep cron
root  7841 1  0   Feb 26 ?0:02 /usr/sbin/cron

A trap was sent at 8:36:01 this morning. Cron was certainly active since
it's log file shows:

[snip!]
  sys 19320 c Thu Mar  2 08:35:00 2006
  sys 19320 c Thu Mar  2 08:35:00 2006
  CMD: /usr/lib/sa/sa1
  sys 19349 c Thu Mar  2 08:36:00 2006
  sys 19349 c Thu Mar  2 08:36:01 2006
  CMD: /usr/lib/sa/sa1
  sys 19376 c Thu Mar  2 08:37:00 2006
  sys 19376 c Thu Mar  2 08:37:00 2006
  CMD: /usr/lib/sa/sa1
[snip!]

Although I'm monitoring many single instances of a process on this and
other servers, cron is the only one generating traps on occasion. And
not just on this server -- on a few others as well. I haven't found a
pattern to these traps yet -- they just happen once in a while (maybe a
total of 3-4 traps / day from 20 servers or so).

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Bug? Got it!

2006-03-02 Thread Jean-Sebastien Morisset
On Thu, Mar 02, 2006 at 02:53:04PM +, Dave Shield wrote:
 On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote:
 
 I was able to reproduce the problem. I copied a few gigs on the
 filesystem and then removed it. Right after, I ran an snmpwalk. It stuck
 for second half way through, and then gave me the following:
 
 
 dskTotal.2 = INTEGER: 142436675
 dskAvail.2 = INTEGER: 140139526
 dskUsed.2 = INTEGER: -2147483648
 
 Urk!
 
 dskErrorFlag.2 = INTEGER: 1
 
 Well that would certainly explain why the monitor entry is
 being triggered  :-)
 
 
 OK - so the problem lies with the disk table.   Unfortunately,
 that code isn't particularly clean.   (I've got plans, but not
 enough time).

Dave,

Can we use an AND in the monitor line? Something like:

monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag != 0  dskUsed 
= 0

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Pike, David
Ok, here is what happens when I run it in gdb.

# gdb snmpd
GNU gdb 5.0-tru64-010710
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as alphaev56-dec-osf5.1...
(gdb) run -a
Starting program: /usr/users/dpike/test/sbin/snmpd -a
warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)


Program exited normally.
(gdb) bt
No stack.
(gdb)




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Anders
Sent: Thursday, March 02, 2006 9:17 AM
To: net-snmp-users@lists.sourceforge.net
Subject: Re: snmpwalk kills snmpd-5.3.0.1 on TRU64

Pike, David wrote:
 I'm having a bit of trouble with net-snmp-5.3.0.1. When I run an 
 snmpwalk, It starts the walk but kills snmpd.

Can you please run snmpd under gdb, type bt when it has crashed and 
post the output?

 ./configure --with-cc=cc --prefix=/test_install_dir/test \
 --with-persistent-directory=/var/net-snmp \
 --with-copy-persistent-files=no \
 --with-default-snmp-verion=3 \
 --with-sys-contact=System Administrator \
 --with-sys-location=Unknown \
 --with-defaults \
 --with-logfile=/var/adm/snmpd.log \
 --with-mib-modules=mibII ucd_snmp host

I'm surprised you got it to compile with the host module. Did you make 
any modification to the source?


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Pike, David
Ok I got a little more by specifying -a -f as options.

(gdb) bt
warning: (Internal error: pc 0x3ff800d6bf4 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800d6bf4 in read in psymtab, but not in
symtab.)

#0  0x3ff800d6bf4 in  (=13) at snmpd.c:1238
warning: (Internal error: pc 0x3038a08 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3038a08 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3038a08 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800d6bf4 in read in psymtab, but not in
symtab.)


thanks,
David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pike, David
Sent: Thursday, March 02, 2006 2:36 PM
To: Thomas Anders; net-snmp-users@lists.sourceforge.net
Subject: RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

Ok, here is what happens when I run it in gdb.

# gdb snmpd
GNU gdb 5.0-tru64-010710
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as alphaev56-dec-osf5.1...
(gdb) run -a
Starting program: /usr/users/dpike/test/sbin/snmpd -a
warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff800067e0 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)

warning: (Internal error: pc 0x3ff80022958 in read in psymtab, but not in
symtab.)


Program exited normally.
(gdb) bt
No stack.
(gdb)




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Anders
Sent: Thursday, March 02, 2006 9:17 AM
To: net-snmp-users@lists.sourceforge.net
Subject: Re: snmpwalk kills snmpd-5.3.0.1 on TRU64

Pike, David wrote:
 I'm having a bit of trouble with net-snmp-5.3.0.1. When I run an 
 snmpwalk, It starts the walk but kills snmpd.

Can you please run snmpd under gdb, type bt when it has crashed and 
post the output?

 ./configure --with-cc=cc --prefix=/test_install_dir/test \
 --with-persistent-directory=/var/net-snmp \
 --with-copy-persistent-files=no \
 --with-default-snmp-verion=3 \
 --with-sys-contact=System Administrator \
 --with-sys-location=Unknown \
 --with-defaults \
 --with-logfile=/var/adm/snmpd.log \
 --with-mib-modules=mibII ucd_snmp host

I'm surprised you got it to compile with the host module. Did you make 
any modification to the source?


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!

RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Pike, David
Here is the last few lines of snmpwalk when it dies.

TCP-MIB::tcpCurrEstab.0 = Gauge32: 0
TCP-MIB::tcpInSegs.0 = Counter32: 5700389
TCP-MIB::tcpOutSegs.0 = Counter32: 8082775
TCP-MIB::tcpRetransSegs.0 = Counter32: 94
TCP-MIB::tcpConnState.0.0.0.0.0.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.172.30.217.212.22.172.30.209.150.1947 = INTEGER:
listen(2)
TCP-MIB::tcpConnState.172.30.217.212.22.172.30.209.150.1948 = INTEGER:
listen(2)
TCP-MIB::tcpConnState.172.30.217.212.23.172.30.209.130.2721 = INTEGER:
listen(2)
TCP-MIB::tcpConnState.172.30.217.212.1667.172.30.217.220.23 = INTEGER:
listen(2)
TCP-MIB::tcpConnLocalAddress.0.0.0.0.0.0.0.0.0.0 = IpAddress:

I ran snmpgetnext and snmpd immediately dies. Snmpgetnext timesout.

David

-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 02, 2006 12:19 PM
To: Pike, David
Cc: Thomas Anders; net-snmp-users@lists.sourceforge.net
Subject: RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

On Thu, 2006-03-02 at 10:25 -0500, Pike, David wrote:
  The obvious question then is: what if you do *not* apply your patch, 
  rebuild without the host mib module and snmpwalk again? Does it
  still crash?
 
 It still dies.

What's the last value that it returns before dying?
What happens if you restart the agent, and then run
a single snmpgetnext request on this OID?

I'd suggest doing this with '-r 0 -t 60', to avoid
problems with the agent being swamped with repeated
retries.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Timeout: No Response from localhost while browisng the MIB

2006-03-02 Thread paul_fridman

net-snmp agent 5.1.2
Manufacturer HP ProLiant DL385
G1
OS RedHat Application Server 3.x

While browsing the MIB with snmpwalk
we get the following error when we get to IP-MIB::ipAdEntAddr.127.0.0.1
= IpAddress: 127.0.0.1:

Timeout: No Response from localhost

The same error happens with IBM NetView
SNMP browser.

Thanks.
CONFIDENTIALITY STATEMENT. The information contained in this e-mail message, including attachments, is the confidential information of, and/or is the property of, Vanguard. The information is intended for use solely by the individual or entity named in the message. If you are not an intended recipient or you received this in error, then any review, printing, copying, or distribution of any such information is prohibited, and please notify the sender immediately by reply e-mail and then delete this e-mail from your system.


RE: snmpwalk kills snmpd-5.3.0.1 on TRU64

2006-03-02 Thread Dave Shield

Quoting Pike, David [EMAIL PROTECTED]:


Ok, here is what happens when I run it in gdb.

# gdb snmpd
(gdb) run -a
Starting program: /usr/users/dpike/test/sbin/snmpd -a


Hmmm  In order to get anything useful from gdb, you probably
need to run the agent as a normal program, rather than a daemon.

Try
run -f -Le

Given your other response, I assume this will fall over somewhere
in the tcpTable handler.

Dave


This message was sent using IMP, the Internet Messaging Program.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users