SNMPTRAP (Trap-Test-Mib)

2006-03-03 Thread vishakha s
Hi

I Issued the following command
./snmptrap -v 1 -c public 10.9.10.195 .1.3.6.1.6.3.1.1.5.3  10.9.10.195 2 0
' '  1.3.6.1.2.1.2.2.1.1 i 1

It is giving following result for snmptrapd

2006-03-03 13:59:33 smrutiranjan.telxsi.com [10.9.10.195] (via UDP:
[10.9.10.195]
:1042) TRAP, SNMP v1, community public
iso.3.6.1.6.3.1.1.5.3 Link Down Trap (0) Uptime: 18 days, 3:18:07.61
iso.3.6.1.2.1.2.2.1.1 = INTEGER: 1


But when i run the following command mentioned in tutorials
./snmptrap -v 1 -c public 10.9.10.195 TRAP-TEST-MIB::demotraps 10.9.10.195 2
0 '' 1.3.6.1.2.1.2.2.1.1 i 1
it gives the error
Cannot find module (TRAP-TEST-MIB): At line 0 in (none)
TRAP-TEST-MIB::demotraps: Unknown Object Identifier
USAGE: snmptrap [OPTIONS] AGENT TRAP-PARAMETERS

where am i making mistake ?
Thanks in advance
Vishakha

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 confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]


---
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: [OTS#020009707] Perl on Windows 2000

2006-03-03 Thread Singh, Sandeep, VF UK - Technology (TS)
Hi
I have installed Net-SNMP Feature on Window 2000 machine.
When i am trying to run snmpconf  i am getting the promt


  C:\usr\bin\snmpconf requires Perl to run.
   .
   A version of Perl for Windows is available from
   http://www.activestate.com/Products/ActivePerl
   .
   Please install Perl and run this program again.
   .
   Press any key to continue . . .
  
I have downloaded and install the perl in c\usr\perl.and i am able to run perl 
package manager(PPM).




Could you help me out in this context.

Many Thanks
Sandeep




-Original Message-
From: ActiveState Support [mailto:[EMAIL PROTECTED]
Sent: 02 March 2006 16:29
To: Singh, Sandeep, VF UK - Technology (TS)
Subject: Re: [OTS#020009707] Perl on Windows 2000


Hi Sandeep,

The zip package you donwloaded contains a ppm package you can install from
your local file system:

- first unzip the package to a temporary directory
- next, install the package by specifying the ppd file directly:

ppm install c:\tmp\module-name.ppd

Please note that some modules have dependencies and may fail to install
because of this. It would be helpful to, on an internet-connected machine, use
ppm's 'tree' command to see what dependencies there are:

ppm tree Date-Calc

Date-Calc 5.3
\__Bit-Vector 0.0


Let me know if you have any further questions or comments.

best regards,

Jeff Griffiths
Technical Support Engineer
ActiveState - Dynamic Tools for Dynamic Languages
http://www.ActiveState.com

Singh, Sandeep, VF UK - Technology (TS) [EMAIL PROTECTED]
wrote:

 Hi
 I am Trying to install perl on Windows 2000, as it is required to use some
 features of net-SNMP.
 whenever i am downloading the package, its downloaded as zip file. and when i
 am running the zip file it is just opening and no operation is performed.
 
 Could you help me out with the file that i should run from the unzipped file
 to install the perl.
 
 Many Thanks
 Sandeep
 



---
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: NET-SNMP agent is not responding to managerrequest(snmpget,snmpgetnext etc)

2006-03-03 Thread Manish
Hi,
Thanx Dave
It just work by adding rocommunity public in snmpd.conf.

Regards
Manish

-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 02, 2006 9:03 PM
To: Manish
Cc: net-snmp-users@lists.sourceforge.net; 'Ravindra Keskar'
Subject: Re: NET-SNMP agent is not responding to
managerrequest(snmpget,snmpgetnext etc)

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


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

2006-03-03 Thread elias bou rahal



Hi Dave,

Sorry to bother you but i think this time is the last question or aid, 
in my extended agent of snmp by using the dlmod, in the function of 
registering the variables in init_Filename i use these functions:


in init_Filename()

init_mib()
/* after the parsing of my private mibs that 's contain many tables */
i register my variable by using this function:
register_mib_range(descr, (struct variable *)var, sizeof(struct vartype), 
var_len, theoid,
  sizeof(theoid)/sizeof(oid), DEFAULT_MIB_PRIORITY, 1, 1, 
NULL)!= MIB_REGISTERED_OK)


so my question is: if i define an index in the mib for a table how can i 
register this index after these functions above?


my solution for this problem is to construct the oid manually in the 
var_filename() function  by manually parsing the mib to get the index and 
then construct the oid  with index and return it as argument sturct oid  
name   to var_filename()


i want to know if there a better solution than this solution above

thank you very much for ur time

Best Regards

Elias



From: Dave Shield [EMAIL PROTECTED]
To: elias bou rahal [EMAIL PROTECTED]
CC: net-snmp-users@lists.sourceforge.net
Subject: Re: FW: Re: how can i get the index of a mib by using any 
snmpapi.c

Date: Thu, 02 Mar 2006 16:02:47 +

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


Re: Bug? Got it!

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

 Can we use an AND in the monitor line? Something like:
 
 monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag != 0  
 dskUsed = 0

Not directly.
The Event MIB is designed to monitor a single value - not
arbitrary combinations.


But I've got some good news and some bad news.
The good news is that the DisMan working group also
developed an Expression MIB - explicitly for this
sort of requirement.   So the Expression MIB can be
configured to combine dskErrorFlag and dskUsed, and
the Event MIB configured to monitor the Expression MIB
(rather than the diskTable directly).

The bad news is that the Net-SNMP doesn't currently
implement the Expression MIB.  There is some preliminary
work on a full implementation (as well as an earlier
incomplete version), but the code shipped with 5.3.0.1
isn't really useable.

The good news is that the CVS branch includes newer
code that is somewhat more complete, and *may* handle
the example above.

The bad news is that this is still incomplete, and
definitely not fully tested.   But it's something you
might like to investigate.

Alternatively, you might prefer to try and track down
what's going wrong with the diskTable itself.

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 from localhost while browisng the MIB

2006-03-03 Thread Dave Shield
On Thu, 2006-03-02 at 16:43 -0500, [EMAIL PROTECTED] wrote:

 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 

What happens if you try

snmpgetnext -r 0 -t 60 ... IP-MIB::ipAdEntAddr.127.0.0.1

?


 net-snmp agent 5.1.2 

That's also a fairly old version of the agent.
What happens if you try with a newer release (5.2.2 or 5.3.0.1)?

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: SNMPTRAP (Trap-Test-Mib)

2006-03-03 Thread Dave Shield
On Fri, 2006-03-03 at 13:56 +0530, vishakha s wrote:
 But when i run the following command mentioned in tutorials
 ./snmptrap -v 1 -c public 10.9.10.195 TRAP-TEST-MIB::demotraps...

 it gives the error
 Cannot find module (TRAP-TEST-MIB):

Where have you installed the 'TRAP-TEST-MIB.txt' file ?
(the contents of this being as listed in the tutorial)

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: SNMPTRAP (Trap-Test-Mib)

2006-03-03 Thread vishakha s
I checked ,the file TRAP-TEST-MIB.txt is there in
/home/rajesh/snmptrap1/share/snmp/mibs/
what may be the problem .Need to do some other settings ??

-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 4:46 PM
To: vishakha s
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: SNMPTRAP (Trap-Test-Mib)


[ 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 Fri, 2006-03-03 at 16:32 +0530, vishakha s wrote:
 Where have you installed the 'TRAP-TEST-MIB.txt' file ?
 I have installed it in /net-snmp5.2.1.2/mibs

That's probably the problem, then.
The 'mibs' directory is part of the source tree, and is
used for distibuting the MIB files that we supply.
You need to copy this MIB file into the *installed*
MIB directory - typically /usr/local/share/snmp/mibs

Dave

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 confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]


---
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-03 Thread Sachin Mishra
Thanks Dave. It seems the functionality of init_agent API has been
changed significantly from 5.2 to 5.3. I was using the agentXPerms but
that was not being taken in consideration in 5.2.x but is taken care in
5.3.x. So, it resolves my problem.

-Sachin

 
On Thu, 2006-03-02 at 22:22, Dave Shield wrote:
 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: SNMPTRAP (Trap-Test-Mib)

2006-03-03 Thread Dave Shield
On Fri, 2006-03-03 at 16:55 +0530, vishakha s wrote:
 I checked ,the file TRAP-TEST-MIB.txt is there in
 /home/rajesh/snmptrap1/share/snmp/mibs/

The next thing is to check where snmptrapd is actually
looking. Run

 snmptrapd -f -Le -Dparse-mibs

and look for lines of the form Scanning directory
What does that show?

Also what are the exact contents of the file
TRAP-TEST-MIB.txt ?I doubt that's the problem,
but it's something to check.


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-03 Thread Jean-Sebastien Morisset
On Fri, Mar 03, 2006 at 10:37:37AM +, Dave Shield wrote:
 On Thu, 2006-03-02 at 14:00 -0500, Jean-Sebastien Morisset wrote:
 
 Can we use an AND in the monitor line? Something like:
 
 monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag != 0  
 dskUsed = 0
 
 Not directly.
 The Event MIB is designed to monitor a single value - not
 arbitrary combinations.
 
 
 But I've got some good news and some bad news.
 The good news is that the DisMan working group also
 developed an Expression MIB - explicitly for this
 sort of requirement.   So the Expression MIB can be
 configured to combine dskErrorFlag and dskUsed, and
 the Event MIB configured to monitor the Expression MIB
 (rather than the diskTable directly).
 
 The bad news is that the Net-SNMP doesn't currently
 implement the Expression MIB.  There is some preliminary
 work on a full implementation (as well as an earlier
 incomplete version), but the code shipped with 5.3.0.1
 isn't really useable.
 
 The good news is that the CVS branch includes newer
 code that is somewhat more complete, and *may* handle
 the example above.
 
 The bad news is that this is still incomplete, and
 definitely not fully tested.   But it's something you
 might like to investigate.
 
 Alternatively, you might prefer to try and track down
 what's going wrong with the diskTable itself.

Dave,

I'm using OpenNMS to receive these traps, so I'll see if I can filter
them out there.

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


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

2006-03-03 Thread elias bou rahal



Hi Dave,

 i am thankfull for ur aid and i ask u if u can send me an example of code 
c as attachement that can be parse a mib with index and than register the 
indexes in the snmp agent using v5.

 thank you very much

Best Regards

  Elias





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


Using procfix...

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

This morning I found automountd down on a few servers, so I'm looking at
the procfix feature in snmpd.conf. The details on it's use are a
little sketchy. For example, is a trap sent for the failure, or is the
fix applied first. Is a trap sent after the fix command? Here's my
related config sections:

procautomountd  1 1
procfix automountd  /usr/sbin/svcadm enable autofs
monitor -S -r 128 -o prNames -o prErrMessage procTable prErrorFlag != 0

Any info on what I _shoudl_ expect from the above would be appreciated.
:-)

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


send_trap error.

2006-03-03 Thread Palmentieri Nunzio
Title: Messaggio



Hi 
all,
I'm trying to use 
code form notification.c to send a trap.
I linked 
notification.o with my code.c, and tried to use

init_notification();send_example_notification();
but I receive the 
following error, and no trap is generated.

send_trap: no v2 trapOID varbind 
provided

If I use the same 
calls from a subagent, it works.

Could anyone explain 
me what I'm missing?

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: FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-03 Thread Dave Shield
On Fri, 2006-03-03 at 13:03 +, elias bou rahal wrote:
 i ask u if u can send me an example of code 
 c as attachement that can be parse a mib with
 index and than register the 
 indexes in the snmp agent using v5.

There are various examples of MIB modules implemented
using the v5 API distributed with the Net-SNMP agent
source code.   Have a look in 'mibgroup/agent' for
two or three examples.

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: Using procfix...

2006-03-03 Thread Dave Shield
On Fri, 2006-03-03 at 08:47 -0500, Jean-Sebastien Morisset wrote:
 This morning I found automountd down on a few servers, so I'm looking at
 the procfix feature in snmpd.conf. The details on it's use are a
 little sketchy. For example, is a trap sent for the failure, or is the
 fix applied first. Is a trap sent after the fix command?

Neither.
proc and procfix don't actually trigger traps at all.
At least not on their own - that's the realm of the (newer)
monitor directive.

The basic use of proc is to set a flag when it detects an
error.  It's up to an external management application to poll
the agent to spot such error flags.

The basic use of procfix is to run a command when it is
explicitly told to do so (by some external management app).
This command will *not* be run automatically (at least not
on its own), or trigger a trap - either before or after
being run.



One possibility with the 5.3 release is to have the DisMan
Event MIB trigger a suitable SET request (instead of sending
a trap), that *will* execute the command automatically.

This would look something as follows (untested!):

setEvent jimllFixIt  prErrFix = 1
monitor -S -r 128 -e jimllFixIt procTable prErrorFlag != 0


This functionality is only available with the 5.3 release.
The previous Event MIB implementation did not support set
events, just notifications.

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: Using procfix...

2006-03-03 Thread Jean-Sebastien Morisset
On Fri, Mar 03, 2006 at 02:32:11PM +, Dave Shield wrote:
 On Fri, 2006-03-03 at 08:47 -0500, Jean-Sebastien Morisset wrote:
 This morning I found automountd down on a few servers, so I'm looking at
 the procfix feature in snmpd.conf. The details on it's use are a
 little sketchy. For example, is a trap sent for the failure, or is the
 fix applied first. Is a trap sent after the fix command?
 
 Neither.
 proc and procfix don't actually trigger traps at all.
 At least not on their own - that's the realm of the (newer)
 monitor directive.
 
 The basic use of proc is to set a flag when it detects an
 error.  It's up to an external management application to poll
 the agent to spot such error flags.
 
 The basic use of procfix is to run a command when it is
 explicitly told to do so (by some external management app).
 This command will *not* be run automatically (at least not
 on its own), or trigger a trap - either before or after
 being run.
 
 
 
 One possibility with the 5.3 release is to have the DisMan
 Event MIB trigger a suitable SET request (instead of sending
 a trap), that *will* execute the command automatically.
 
 This would look something as follows (untested!):
 
 setEvent jimllFixIt  prErrFix = 1
 monitor -S -r 128 -e jimllFixIt procTable prErrorFlag != 0
 
 
 This functionality is only available with the 5.3 release.
 The previous Event MIB implementation did not support set
 events, just notifications.

Dave,

Excellent - thank you very much for your continued replies. I don't know
where you find the time, but it's very much appreciated.

In your example, would that mean a trap would never be sent, even if the
procfix command failed? Is there a way to run the procfix and then
generate a trap if the proc is still missing afterwards (checking the
procfix exit code may not be reliable -- procfix may run ok but not
restore the process)?

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


Notification for inform timeout

2006-03-03 Thread Eugen








Hi,



I use send_v2trap to send traps (net-snmp-5.2.1.2)
and I would like to know if its possible to register a callback routine to
be notified if the INFORM generated a timeout (for instance because the trap
receiver didnt send the ack) or any other mechanism to avoid sending traps/informs
if nobody is listening for.



Thanks a lot,

Eugen








Re: Using procfix...

2006-03-03 Thread Dave Shield
On Fri, 2006-03-03 at 09:46 -0500, Jean-Sebastien Morisset wrote:
 Excellent - thank you very much for your continued replies.
 I don't know where you find the time,

No - neither do I.



 In your example, would that mean a trap would never be sent,
 even if the procfix command failed?

Correct.  proc and procfix have *nothing* to do with
traps whatsoever.   The only thing that does is monitor,
and it's completely arbitrary as to what MIB objects this
reports on.

   Is there a way to run the procfix and then
 generate a trap if the proc is still missing afterwards

No.

The only possibility would be to wait for the monitor
entry to probe the prError flag again (or to have some
external management application do this instead).

But proc/procfix have no involvement with traps at all.

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


snmpget getting garbage returned

2006-03-03 Thread Kyle Tucker
Hi all,
I had snmpget v3 working fine with between Solaris 8 systems. 
I recently rebuilt the same version of Net-SNMP (5.2.2) on Solaris 10 
and now the same snmpget to the exact same Solaris 8 client gets binary 
garbage back if I request the nsExtendOutputFull OID from any extend 
directive.

/usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 10.10.10.10 -L authPriv -U 
username -a MD5 -A abcdefg -X hijklmnop -o nsExtendOutputFull.\extt\
SNMP OK - 0:extt running okay | 
NET-SNMP-EXTEND-MIB::nsExtendOutputFull.extt=0:extt running 
okayÿ3ðÿ?XNET-SNMP-EXTEND-MIB::nsExtendOutputFull.extt = STRING: 0:extt 
running okay
  

The same Solaris 8 systems still gets proper response.

+ /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 10.10.10.10 -L authPriv -U 
username -a MD5 -A abcdefg -X hijklmnop -o nsExtendOutputFull.extt
SNMP OK - 0:extt running okay | 
NET-SNMP-EXTEND-MIB::nsExtendOutputFull.extt=0:extt running okay

extt is just a simple echo script for testing

extend extt /usr/local/bin/extt

# /usr/local/bin/extt
0:extt running okay

Any thoughts what's going on here? Thanks.

 Kyle 
-
[EMAIL PROTECTED]   http://www.panix.com/~kylet
-


---
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: snmpget getting garbage returned

2006-03-03 Thread Kyle Tucker

   I had snmpget v3 working fine with between Solaris 8 systems. 
 I recently rebuilt the same version of Net-SNMP (5.2.2) on Solaris 10 
 and now the same snmpget to the exact same Solaris 8 client gets binary 
 garbage back if I request the nsExtendOutputFull OID from any extend 
 directive.

My apologies - this appears to be a problem with the check_snmp
plugin for Nagios (which calls snmpget).

-- 
- Kyle 


---
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: Bad engine ID value after -e flag

2006-03-03 Thread Eugen
Hi Dave,

First of all please accept my excuses for the fact that you have
responded so promptly to my email and on my side I've put so much time
to follow your instructions :-(

Actually by trying to respond to your questions I found the problem. The
traps were rejected by snmptrapd with the following error:
usm: Remote boot counter invalid

So I've recreated the user myuser with:
net-nmp-config --create-snmpv3-user -a xxx -x yyy -X DES -A MD5
myuser

the persistent snmpd.conf and the share snmpd.conf were thus updated and
the traps are successfully intercepted by the trap receiver.

And it works fine with the snmpv3 informs as well :-)

Thank you so much!
Eugen

-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 4:42 AM
To: Eugen
Cc: 'Thomas Anders'; Net-snmp-users@lists.sourceforge.net
Subject: RE: Bad engine ID value after -e flag

On Tue, 2006-01-24 at 17:02 -0500, Eugen wrote:
 Without double quotes there is no error message
 indeed but the traps are not intercepted by snmptrapd.

Does it not receive them at all, or does it receive
them but refuse to process them?   Try running

snmptrapd -f -Le -d

Do you see the incoming notifications?

How have you configured snmptrapd?
In particular, how have you set up the user myuser ?


 I've put the double quotes because there are also generated by
snmpconf.

OK - logged as a bug in snmpconf.


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


Wrong Type (should be OCTET STRING): INTEGER: 0

2006-03-03 Thread Li Juen Hwang



Hi,

   the error message shown on Subject happened after i changed
   the type of my mib variable, MediaTime, from 'ASN_OCTET_STR'
   to 'ASN_INTEGER' in my agent code.
   My agent was running on a remote Linux box. I used 'snmpget'
   on my local Linux to get the value of MediaTime.
   I then updated the SYNTAX of MediaTime from 'DateAndTime'   
   to 'Integer32' on my local mib file: 
/usr/local/share/snmp/mibs/myMIB.mib,

   but it does not fix the problem. (My snmp package is installed in
   /usr/local on remote and local system)
   What did i miss?
   Need help.
   Thanks.


   Li-Juen


---
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: Wrong Type (should be OCTET STRING): INTEGER: 0

2006-03-03 Thread Li Juen Hwang


Hi,

   I turned on debugging and found that snmpget read in
   the old MIB file, myMIB.txt.orig, which was saved in
   /usr/share/snmp/mibs.
   The new correct MIB file under /usr/share/snmp/mibs
   is a link to /usr/local/share/snmp/mibs/myMIB.txt which
   contains the new type.
   After removing myMIB.txt.orig from /usr/share/...,
   the error message disappeared.
   Sign, I seemed always finding the answer *after* throwing
   the question. Sorry if i bothered you.
   Thanks.


   Li-Juen


Li Juen Hwang wrote:




Hi,

   the error message shown on Subject happened after i changed
   the type of my mib variable, MediaTime, from 'ASN_OCTET_STR'
   to 'ASN_INTEGER' in my agent code.
   My agent was running on a remote Linux box. I used 'snmpget'
   on my local Linux to get the value of MediaTime.
   I then updated the SYNTAX of MediaTime from 'DateAndTime'  to 
'Integer32' on my local mib file: /usr/local/share/snmp/mibs/myMIB.mib,

   but it does not fix the problem. (My snmp package is installed in
   /usr/local on remote and local system)
   What did i miss?
   Need help.
   Thanks.


   Li-Juen


---
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: Timeout: No Response after output of last OID

2006-03-03 Thread Ajay Hotchandani
Hi Dave,

Same output:
Timeout: No Response from localhost

Just as reminder,
If I want to run my code run with OS provided
net-snmp-5.2.1.2-fc4.1.x86_64.rpm, then there are 2 ways:
Somehow make changes in my code that after output of last OID of my MIB, the
output should be No more variables left in this MIB View (It is past the
end of the MIB tree) instead of error message.
OR
Add SNMPv2-SMI.txt, SNMPv2-TC.txt etc. MIBs, which contains objects for
OID .1.3.6.1.6 to master agent.

I prefer first one. Please let me know if there is another way available.
 
Kindly let me know how can I execute above 2 potential solutions, or there
is another solution for this or any further information is needed.

Regards,
Ajay

-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 02, 2006 10:53 PM
To: Ajay Hotchandani
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Timeout: No Response after output of last OID

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=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