RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
Yes, that was the problem. I used -c /etc/snmp/snmpd.conf as option to start snmpd to solve the problem. I still didn't see any link down traps. No errors dumped either. Here is part of the output: disman:event:delta: Bool comparison: (1 != 2) 1 disman:event:delta: Bool comparison: (2 != 2) 0 d

Using snmptranslate to list ALL OIDs in my private MIB directory?

2010-03-19 Thread camel joe
Hi, I am just new with this tool and, after reading the FAQ and googled the topic, I still cannot figure out how to make snmptranslate command to print out ALL the OIDs, including ones in my own MIB files. I treid the following command: ./snmptranslate -Tso -M /home/jvwb-mibs/smtsMibs But it p

Re: help on linkUpDownNotifications‏

2010-03-19 Thread Dave Shield
2010/3/19 X Z : > Do you mean the following fix: > > 2008-04-19 22:20  tanders > >    * agent/mibgroup/disman/event/mteTriggerConf.c: > >    don't depend on OID resolution for disman linkUpDownNotifications No 2008-06-01 20:02 dts12 * agent/mibgroup/disman/event/mteEvent.c, agent/mib

Re: help on linkUpDownNotifications‏

2010-03-19 Thread Dave Shield
2010/3/19 X Z : > Thanks for your help. I got the 5.4.2.1 source code and compiled it. But I > got the following errors: > >  Warning: no access control information configured. > > I used the same snmpd.conf file as the one used in 5.3.1. Where did you put this file? An agent compiled from source

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
Hi Dave, Do you mean the following fix: 2008-04-19 22:20 tanders * agent/mibgroup/disman/event/mteTriggerConf.c: don't depend on OID resolution for disman linkUpDownNotifications Thanks Xuan > Date: Fri, 19 Mar 2010 20:50:19 + > Subject: Re: help on linkUpDownNotifications‏ > Fro

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
Hi Dave, Thanks for your help. I got the 5.4.2.1 source code and compiled it. But I got the following errors: Warning: no access control information configured. It's unlikely this agent can serve any useful purpose in this state. Run "snmpconf -g basic_setup" to help you configure the sn

Re: help on linkUpDownNotifications‏

2010-03-19 Thread Dave Shield
2010/3/19 X Z : > disman:event:objects: Unknown internal objects tag (_linkUpDown) I've had a quick look at the SVN repository for this MIB module code. It appears that this problem was fixed with release 5.4.2 and above. Dave -

Question on vacm view access mask parameter

2010-03-19 Thread Fatima Peter
Hi, I have a question on the mask parameter in the vacm view access when it is included and excluded. I am not sure whether my earlier email went out. Sorry if this is a duplicate. I apologize for the lengthy email. The man page for snmpvacm says: MASKA bit mask indicating which su

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
Yes. 2010-03-19 16:28:04 localhost.localdomain [UDP: [127.0.0.1]:40664]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (30) 0:00:00.30 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart SNMPv2-MIB::snmpTrapEnterprise.0 = OID: NET-SNMP-TC::linux Thanks Xuan > Date: Fri, 19 Ma

Re: help on linkUpDownNotifications‏

2010-03-19 Thread Dave Shield
2010/3/19 X Z : > I am trying to get the linkUp and linkDown traps sent from the snmpd agent. > I use snmptrapd as a listener on the localhost and didn't receive the > linkDown event. Are you seeing the coldStart trap when the agent starts up? Dave ---

Re: NetSNMP::agent help

2010-03-19 Thread Fulko Hew
On Thu, Mar 18, 2010 at 11:06 AM, Milena wrote: > Hi , > I want to run SNMP Sub-agent, but I don't know how. > > Can you help me? > My SNMP Sub-agent source is perl source code and it is equal to the > example on > http://search.cpan.org/~HARDAKER/NetSNMP-agent-5.0401/agent.pm#EXAMPLES

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
OS: 2.6.18-164.el5 x86_64 Net-SNMP version: net-snmp-5.3.1-24.2 Do I need to apply any patches? Thanks Xuan Date: Fri, 19 Mar 2010 20:46:11 +0100 Subject: Re: help on linkUpDownNotifications‏ From: bvanass...@acm.org To: b...@live.com CC: net-snmp-users@lists.sourceforge.net 2010/3/19 X

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
Version:1.0 StartHTML:000149 EndHTML:000451 StartFragment:000199 EndFragment:000417 StartSelection:000199 EndSelection:000417 OS: 2.6.18-164.el5 Net-SNMP version: net-snmp-5.3.1-24.2 Do I need to apply any patches? Thanks Xuan Date: Fri, 19 Mar 2010 20:46:11 +0

Re: help on linkUpDownNotifications‏

2010-03-19 Thread Bart Van Assche
2010/3/19 X Z > I am trying to get the linkUp and linkDown traps sent from the snmpd > agent. I use snmptrapd as a listener on the localhost and didn't receive the > linkDown event. > > I started snmpd with option -Ddisman:event > > The following messages dumped: > isman:event:delta: Bool compar

help on linkUpDownNo tifications‏

2010-03-19 Thread X Z
Hi, I am trying to get the linkUp and linkDown traps sent from the snmpd agent. I use snmptrapd as a listener on the localhost and didn't receive the linkDown event. I started snmpd with option -Ddisman:event The following messages dumped: isman:event:delta: Bool comparison: (2 == 2) 1 disman:e

Re: pass scripts

2010-03-19 Thread krad
Thanks for the response. Unfortunately the script is giviung multiple values and i was using the tree expansion to get the results. I might be able to rework it though. Im still interested on how to do pass scripts though On 3/19/10, Dave Shield wrote: > On 18 March 2010 17:52, krad wrote: >> I

Re: mib file configuration issue

2010-03-19 Thread Bart Van Assche
On Fri, Mar 19, 2010 at 3:28 PM, Martz, Peter wrote: > I am trying to clean up a 3rd party MIB file so that it compiles > correctly. > > The only error I am now getting is: > > > > Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt.002) > > > > All the DisplayStri

Re: snmpd.conf configuration issue

2010-03-19 Thread Dave Shield
On 19 March 2010 15:06, Martz, Peter wrote: > So to monitor the CheckPoint OIDs, I have the following 3 lines in my > snmpd.conf file (which should all be the same thing): > > monitor -I -r 60 1.3.6.1.4.1.2620.1.1.25.3    > 1 > monitor -I -r 60 1.3.6.1.4.1.2620.1.1.25.3.0  > 1 > monitor -I -r 60 f

RE: mib file configuration issue

2010-03-19 Thread Mike Ayers
> From: Martz, Peter [mailto:peter_ma...@cable.comcast.com] > Sent: Friday, March 19, 2010 8:11 AM > That is the crazy part is that I do have RFC1213-MIB.txt in > /usr/share/snmp/mibs. > In /usr/share/snmp/mibs/.index there is the entry: RFC1213-MIB RFC1213- > MIB.txt > > > snmpd[21517]: Did not

How to get snmpd to use a specific address to send traps?

2010-03-19 Thread Mark H. Wood
This was discussed back in 2005 and apparently the supporting code was actually done in 2003, but I am still having trouble today. snmptrap obeys "clientaddr" but it appears that snmpd does not. Am I missing something? I'm using net-snmp 5.4.2.1. -- Mark H. Wood, Lead System Programmer mw...

RE: mib file configuration issue

2010-03-19 Thread Martz, Peter
Actually, I did add it to the 3rd party vendor file (my snipit). Yes I do have 2 files for this. It looks like the 3rd party copied parts of other files (RFC1213 and others) - which I can kinda understand (long story). But this is the only error I get with the 3rd party vendor file, which is

Re: mib file configuration issue

2010-03-19 Thread Fulko Hew
On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter < peter_ma...@cable.comcast.com> wrote: > Made the addition as suggested: > > …… > > RFC1213-MIB DEFINITIONS ::= BEGIN > > IMPORTS > mgmt, NetworkAddress, IpAddress, Counter, Gauge, > TimeTicks >

RE: mib file configuration issue

2010-03-19 Thread Martz, Peter
That is the crazy part is that I do have RFC1213-MIB.txt in /usr/share/snmp/mibs. In /usr/share/snmp/mibs/.index there is the entry: RFC1213-MIB RFC1213-MIB.txt > -Original Message- > From: max.schub...@gmail.com [mailto:max.schub...@gmail.com] On Behalf Of > Max > Sent: Friday, March 19,

RE: snmpd.conf configuration issue

2010-03-19 Thread Martz, Peter
I have modified the configuration file to remove the -o option (as it didn't make sense per you suggestion). So to monitor the CheckPoint OIDs, I have the following 3 lines in my snmpd.conf file (which should all be the same thing): monitor -I -r 60 1.3.6.1.4.1.2620.1.1.25.3> 1 monitor -I -r

Re: mib file configuration issue

2010-03-19 Thread Max
I would guess that you do not have a copy of RFC1213-MIB.txt in /usr/share/snmp/mibs or your MIB path for some reason does not include /usr/share/snmp/mibs. - Max On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter wrote: > Made the addition as suggested: > > > > …… > > > > RFC1213-MIB DEFINITIONS ::

RE: mib file configuration issue

2010-03-19 Thread Martz, Peter
Made the addition as suggested: .. RFC1213-MIB DEFINITIONS ::= BEGIN IMPORTS mgmt, NetworkAddress, IpAddress, Counter, Gauge, TimeTicks FROM RFC1155-SMI DisplayString FROM RFC1213-MIB

Re: mib file configuration issue

2010-03-19 Thread Fulko Hew
On Fri, Mar 19, 2010 at 10:28 AM, Martz, Peter < peter_ma...@cable.comcast.com> wrote: > I am trying to clean up a 3rd party MIB file so that it compiles > correctly. > > The only error I am now getting is: > > > > Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt

mib file configuration issue

2010-03-19 Thread Martz, Peter
I am trying to clean up a 3rd party MIB file so that it compiles correctly. The only error I am now getting is: Did not find 'DisplayString' in module RFC1213-MIB (/usr/share/snmp/mibs/mib.txt.002) All the DisplayString settings *appear* correct to me, but as a newbie there is obviously so

Re: pass scripts

2010-03-19 Thread Dave Shield
On 18 March 2010 17:52, krad wrote: > I have an issue with an extend script (net-snmp 5.4+) returning a value in > string form. I however want it in integer form. Try returning this value as the "exit" value of the script. This can then be accessed via the MIB object 'nsExtendResult' Dave -

Re: snmptranslate retrieve all OIDs and one of the scalars in one of the tables send trap

2010-03-19 Thread Dave Shield
On 19 March 2010 10:50, Alexander King wrote: > 1. How to use the command 'snmptranslate' get all the OIDs defined in my > private MIB? See the FAQ entry about adding MIBs to the client tools. > diskTable is a table included many scalars about each disk properties > such as diskStatus,diskSpar

snmptranslate retrieve all OIDs and one of the scalars in one of the tables send trap

2010-03-19 Thread Alexander King
Hi Dave and all: 1. How to use the command 'snmptranslate' get all the OIDs defined in my private MIB? 2. I printed the snmpd(5).conf the piece of something about 'Active Monitoring' for my own use. the manual is helpful. there is a problem.diskTable is a table included many scalars about each

Re: snmpwalk does not walk the table when using dynamic load.

2010-03-19 Thread Dave Shield
On 19 March 2010 05:36, Wei Zheng wrote: > 1)  snmpwalk/GET lmPlTable, > ~~~ > # snmpwalk -c public localhost lmPlTable > LOCAL-MIB::lmPlTable = No Such Object available on this agent at this OID > # snmpgetnext -c public localhost lmPlTable > LOCAL-MIB::lmPlStatResetStats.