using 'snmptrap'

2009-05-14 Thread Vinod Nanjaiah
Hi,
I am trying to send trap using
snmptrap -v 1 -c mycommunity 172.22.65.40 1.3.6.1.4.1.3.1.1 localhost  2 0  ''

But on the receiving host, where I am running snmptrapd, it just prints
"Trap from 172.22.65.58"

How can I get the Trap description (cold start, warm start, link down, etc) 
also to be printed ?

Thank you,
Vinod


http://www.mindtree.com/email/disclaimer.html
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
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: Clarification Needed

2009-05-14 Thread Dave Shield
2009/5/14 Sowmya P Venkatesh :
> I would like to Classify a MobNode as Table,Row,Column and Scalar.

MIB tables are always defined as a three-level heirarchy.

There will be a MIB object called   xxxTable,
with a syntax of   "SEQUENCE of XxxEntry"
This is the table node.

This will have exactly one child, called   xxxEntry
with a syntax of  XxxEntry,   and an OID of  "{ xxxTable 1}"
This is the row node

This will have several children, as listed in the XxxEntry definition.
   These are the column nodes.


Any (leaf) MIB object that is not part of a table, is a scalar node.

All of these will be defined using OBJECT-TYPE, and neither
scalar nor column objects can have children.

If that's not what you wanted to know, then you're going
to have to be more specific.

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Using the monitor function with thresholds

2009-05-14 Thread Richard Gipps
Thanks Dave, that fixed the problem:) I know it is a bit after the fact, but do 
you want me to put in a bug for tracability?

Regards,
Richard.

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, 14 May 2009 1:49 AM
To: Richard Gipps
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Using the monitor function with thresholds

2009/5/13 Richard Gipps :
>     I have been using the monitor function with positive 
> thresholds and it works well. When I try to use it with negative 
> thresholds it does not seem to work at all (doesn't send traps).

Hmmm.   I have a horrible feeling that you are quite correct.
Can you please try the attached patch, and see whether this fixes things for 
you.

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Clarification Needed

2009-05-14 Thread Sowmya P Venkatesh
Hi David,

Given below is my understanding

Table
---
The label will end with Table meaning, xxxTable.
It will have exactly one child which will be xxxEntry

Row

It will have label as xxxEntry
Its Parent will have a label xxxTable

Scalar

The Parent will not have xxxEntry

Column
-
Can you please explain this again?

Regards,
Sowmya



-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, May 14, 2009 1:15 PM
To: Sowmya P Venkatesh
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Clarification Needed

2009/5/14 Sowmya P Venkatesh :
> I would like to Classify a MobNode as Table,Row,Column and Scalar.

MIB tables are always defined as a three-level heirarchy.

There will be a MIB object called   xxxTable,
with a syntax of   "SEQUENCE of XxxEntry"
This is the table node.

This will have exactly one child, called   xxxEntry
with a syntax of  XxxEntry,   and an OID of  "{ xxxTable 1}"
This is the row node

This will have several children, as listed in the XxxEntry definition.
   These are the column nodes.


Any (leaf) MIB object that is not part of a table, is a scalar node.

All of these will be defined using OBJECT-TYPE, and neither
scalar nor column objects can have children.

If that's not what you wanted to know, then you're going
to have to be more specific.

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Clarification Needed

2009-05-14 Thread Dave Shield
2009/5/14 Sowmya P Venkatesh :
> Given below is my understanding
>
> Table
> ---
> The label will end with Table meaning, xxxTable.
> It will have exactly one child which will be xxxEntry
>
> Row
> 
> It will have label as xxxEntry
> Its Parent will have a label xxxTable

Correct.

> Column
> -
> Can you please explain this again?

Its Parent will have a label xxxEntry.

The list of column MIB objects
(i.e. the list of objects with a Parent of xxxEntry)
should be the same as the list defined for the
XxxEntry SEQUENCE.


Have a look at some example MIB files to see what I mean.



> Scalar
> 
> The Parent will not have xxxEntry

Correct.

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Using the monitor function with thresholds

2009-05-14 Thread Dave Shield
2009/5/14 Richard Gipps :
> Thanks Dave, that fixed the problem:) I know it is a bit after the fact, but 
> do you want me to put in a bug for tracability?

No need - I've just committed that patch to the 5.4.x and 5.5.x
development lines, so it should be included in the next releases of the code.
   (We're currently in a code freeze for the 5.3.x line, but I'll apply it
there as soon as 5.3.3 is out).

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Clarification Needed

2009-05-14 Thread Sowmya P Venkatesh
Thanks Dave.

How do we classify a MibNode as Container?
Can we say that it is a container node if it is not any of following - 
Table,Row,Column,Scalar.

Regards,
Sowmya


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, May 14, 2009 2:04 PM
To: Sowmya P Venkatesh
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Clarification Needed

2009/5/14 Sowmya P Venkatesh :
> Given below is my understanding
>
> Table
> ---
> The label will end with Table meaning, xxxTable.
> It will have exactly one child which will be xxxEntry
>
> Row
> 
> It will have label as xxxEntry
> Its Parent will have a label xxxTable

Correct.

> Column
> -
> Can you please explain this again?

Its Parent will have a label xxxEntry.

The list of column MIB objects
(i.e. the list of objects with a Parent of xxxEntry)
should be the same as the list defined for the
XxxEntry SEQUENCE.


Have a look at some example MIB files to see what I mean.



> Scalar
> 
> The Parent will not have xxxEntry

Correct.

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Clarification Needed

2009-05-14 Thread Dave Shield
2009/5/14 Sowmya P Venkatesh :
> How do we classify a MibNode as Container?
> Can we say that it is a container node if it is not any of following - 
> Table,Row,Column,Scalar.

Container isn't really a term that gets used much in SNMP,
but yes - that's sort-of right.

Also note that "internal" MIB objects (those that define the structure
of the MIB tree) and defined as OBJECT-IDENTIFIER rather than
OBJECT TYPE.
   All of the accessible MIB objects (plus tables and rows) are
defined using OBJECT-TYPE

Dave

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: Issues with agent running on AIX.

2009-05-14 Thread McKie, Tod
Paul:

To test that you are having the same problem, you can disable the hrStorage 
module when you start the daemon by adding  -I "-hr_storage" to the command 
like when you start snmpd.  This should prevent it from crashing, but no 
filesystem data will be available.

For the record, deleting "hasmntopt" from line 39513 in the "configure" file 
and doing a fresh configure/make fixed my issue completely.  I have been 
running this on 57 AIX 5.3 hosts since April 29th with zero crashes.  The only 
downfall is that snmpd does not report options on filesytems such as rw, rw, 
nosuid, etc.

The sourceforge case is located here:

http://sourceforge.net/tracker/?func=detail&atid=112694&aid=2712670&group_id=12694

-Original Message-
From: Paul Hogan [mailto:paul.ho...@haworth.com] 
Sent: Tuesday, May 05, 2009 8:04 AM
To: Paul Hogan; McKie, Tod; Dave Shield
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Issues with agent running on AIX.

I was able to run the debugging.  It created a core dump file.  The file just 
generically points to snmpd as the cause.  Not sure if there is other detail I 
can get out of the core dump file...

Paul R. Hogan
Computer System Engineer
Enterprise Information Technology
HAWORTH, INC.

One Haworth Center
Holland, MI 49423

direct  616.393.3756
fax 616.396.9389

paul.ho...@haworth.com
www.haworth.com

NOTICE OF CONFIDENTIALITY:  The contents of this e-mail message and any 
attachments are intended for the addressee(s) named in this message.  This 
communication is intended to be and to remain confidential.  If you are not the 
intended recipient of this message, or if this message has been addressed to 
you in error, please immediately alert the sender by reply e-mail and then 
delete this message and its attachments.  Do not deliver, distribute or copy 
this message and/or any attachments and, if you are not the intended recipient, 
unless immediately and permanently deleted, recipient hereby agrees to protect 
this transmission and any documents, files or previous messages attached 
(confidential information) in the same manner in which recipient acts to 
protect his/her/its own confidential information.


-Original Message-
From: Paul Hogan [mailto:paul.ho...@haworth.com]
Sent: Friday, May 01, 2009 10:39 AM
To: McKie, Tod; Dave Shield
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Issues with agent running on AIX.

Sorry, was side tracked on other projects for a couple of days.  I will try the 
debugging recommended to make sure I am getting the same error stated in the 
email from Tod.  Tod, did the debugging options give you the answer to this 
issue?  Do you know if any previous releases had this issue?  Just curious if 
an older version works with AIX better.

Paul R. Hogan
Computer System Engineer
Enterprise Information Technology
HAWORTH, INC.

One Haworth Center
Holland, MI 49423

direct  616.393.3756
fax 616.396.9389

paul.ho...@haworth.com
www.haworth.com

NOTICE OF CONFIDENTIALITY:  The contents of this e-mail message and any 
attachments are intended for the addressee(s) named in this message.  This 
communication is intended to be and to remain confidential.  If you are not the 
intended recipient of this message, or if this message has been addressed to 
you in error, please immediately alert the sender by reply e-mail and then 
delete this message and its attachments.  Do not deliver, distribute or copy 
this message and/or any attachments and, if you are not the intended recipient, 
unless immediately and permanently deleted, recipient hereby agrees to protect 
this transmission and any documents, files or previous messages attached 
(confidential information) in the same manner in which recipient acts to 
protect his/her/its own confidential information.


-Original Message-
From: McKie, Tod [mailto:tmc...@lmus.leggmason.com]
Sent: Tuesday, April 28, 2009 10:22 AM
To: Dave Shield; Paul Hogan
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Issues with agent running on AIX.

I have the same issue.  The problem is in the hrStorage module.  If you disable 
that module you can run just fine, but will not be able to track filesystem 
data.

I created bug #2712670 on sourceforge.net, and according to responses future 
releases should not have this problem. 

-Original Message-
From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk]
Sent: Tuesday, April 28, 2009 9:33 AM
To: Paul Hogan
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Issues with agent running on AIX.

2009/4/28 Paul Hogan :
> I have multiple AIX 5.3.6 boxes running the 5.4.2.1 version of 
> net-snmp.  On a majority of them I am seeing the daemon die after 
> running for a short amount of time.  I look in the /var/log/snmpd.log 
> file and it just displays the version line and that is it.  I then 
> look in the syslog and it gives no indication why the daemon is dying.
> Any thoughts on how to troubleshoot why this is happening?  Compile and mak

Can we run multiple instances of net-snmp?

2009-05-14 Thread forumde...@tataelxsi.co.in
Hello,
There is problem , I need to run three instances of snmp. Is it possible 
to run multiple snmp or is it possible to get the values from multiple 
ip addresses  running a single net-snmp? i have tried changing the port 
no from 161 to 163, i am able to query the tables but any of the one 
works at a time, so is there any solution for the same?
Do I need to install three net-snmp packages altogether?

Thanks in advance,
Forum

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: using 'snmptrap'

2009-05-14 Thread Mike Ayers
> From: Vinod Nanjaiah [mailto:vinod_nanja...@mindtree.com] 
> Sent: Thursday, May 14, 2009 12:15 AM

> But on the receiving host, where I am running snmptrapd, it 
> just prints 
> 
> "Trap from 172.22.65.58"
> 
> How can I get the Trap description (cold start, warm start, 
> link down, etc) also to be printed ?

Look at the "-F" flag on the snmptrapd man page.  There is also the 
equivalent "format1" and "format2" directives in snmptrapd.conf.


HTH,

Mike

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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


Reentrancy from pass scripts

2009-05-14 Thread Tackabury, Wayne
Hi all/Dave/Wes:

For all the pass scripts I've written in the past, I'm surprised I haven't run 
into this before, but I haven't.

I'm writing a pass script which will effectively synthesize a gauge and string 
object, to effectively detect a condition worth trapping on via a snmpd.conf 
'monitor' directive.  So the point is,  my pass scripts need to GET other 
object in the management scope to make dynamic and conditional decisions on to 
drive the value of the OID's that the pass scripts themselves expose.

The problem is-I run the pass script no problem when directly invoking it with 
-g, and it works with the agent if I return static values without doing any 
snmp gets or get-nexts (in other words, the basic protocol through the pass 
script and its return is AOK).

The problem is-if I actually do a snmpget from the pass script, it times out.  
Now as it turns out, the get I need is from my application proxy agent, 
listening at an alternate port, so I simply updated the pass script to 
explicitly target the get at localhost:. and all works fine.  So I 
have a workaround, but I'm trolling for a general understanding of how to fix 
this the "next" time or when part of what I need is from, say, the ucd-snmp MIB 
or something whose instrumentation is built into the agent.

I'm suspecting the issue here is reentrancy.  Now, there's a build option, 
which has had some reports of not working over the years, called 
"-enable-reentrant", which appears to affirmatively define (i.e., actually 
compile in) a fair degree of mutual exclusion primitive API code for the agent 
based upon what I can see from the #define hierarchy.  On the other hand, I 
can't find in the code where this would actually affect reentry through the top 
of the GET PDU request processor.

OK, that's a coding question.  Either way, after a rebuild with 
"-enable-reentrancy" in my target environment, the timing out on GETs issued 
from within my own pass scripts still is happening.  And along with that, what 
my real questions are (I'm doing this on Solaris 10, gcc compilation from the 
5.4.2.1 distro, etc.):

-- should the reentrancy support target the exact kind of thing I describe 
above, where a pass script servicing a GET request needs to issue another GET 
request for another item?
-- is this some kind of Bad Thing for pass script usage anyways?  If so, can 
you folks suggest an alternate strategy?

Thanks in advance!

Wayne Tackabury
Mirror Image Internet

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
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: Clarification Needed

2009-05-14 Thread Sowmya P Venkatesh
Hi Dev,

I have a query.

1.Can we have a table inside containers only?
2.Can we have scalars inside container and inside tables?

Regards,
Sowmya




-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, May 14, 2009 2:25 PM
To: Sowmya P Venkatesh
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Clarification Needed

2009/5/14 Sowmya P Venkatesh :
> How do we classify a MibNode as Container?
> Can we say that it is a container node if it is not any of following - 
> Table,Row,Column,Scalar.

Container isn't really a term that gets used much in SNMP,
but yes - that's sort-of right.

Also note that "internal" MIB objects (those that define the structure
of the MIB tree) and defined as OBJECT-IDENTIFIER rather than
OBJECT TYPE.
   All of the accessible MIB objects (plus tables and rows) are
defined using OBJECT-TYPE

Dave

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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