How to disable snmpset?

2012-03-14 Thread X Z
Hi, I wonder if snmpset can be turned off without recompiling the source code? ThanksXuan-- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of vi

RE: Two snmp questions

2010-05-28 Thread X Z
Please see my inline response. > XZ> 2. From the man page of snmpd.conf, it supports Process > XZ>Monitoring. To enable it, simply adding "proc xxx" where xxx is > XZ>the process name to snmpd.conf.I tried on Net-SNMP 5.5, it worked > XZ>fine with short process names. For example a pr

Two snmp questions

2010-05-27 Thread X Z
Hi, I have two questions on Net-SNMP 5.5: 1. snmpwalk on SNMP-VIEW-BASED-ACM-MIB gives the following:..SNMP-VIEW-BASED-ACM-MIB::vacmViewTreeFamilyStatus."_none_".1.1 = INTEGER: active(1)SNMP-VIEW-BASED-ACM-MIB::vacmViewTreeFamilyStatus."_none_".1.2 = INTEGER: active(1)SNMP-VIEW-BASED-ACM-

RE: AgentX bug?

2010-05-19 Thread X Z
Version 5.5 did have the fix for the problem I described. Thank you very much. Xuan > Date: Mon, 17 May 2010 22:11:43 +0100 > Subject: Re: AgentX bug? > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > On 17 May 2

RE: AgentX bug?

2010-05-17 Thread X Z
Please see my responses inline. > Date: Mon, 17 May 2010 19:54:29 +0100 > Subject: Re: AgentX bug? > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > On 17 May 2010 16:57, X Z wrote: > > I added two scalars to NET-SN

AgentX bug?

2010-05-17 Thread X Z
Hi, I added two scalars to NET-SNMP-EXAMPLES MIB: MyVal1 and MyVal2 which are ASN_COUNTER64 type. And I wrote an AgentX subagent to answer snmpget requests for the two Counter64 scalars. A snmpget on a single OID can return the correct value. For example: snmpget -v2c -c public xxx NET-SNMP-EXA

RE: counter64 objects and AgentX problem

2010-05-14 Thread X Z
ceforge.net > From: kmcl...@us.ibm.com > Date: Fri, 14 May 2010 15:38:46 -0500 > > Does it work with snmpbulkget? > > > Kathy McLeod > Dept S82 CCB - SNMP > IBM Rochester, MN > (507) 253-4803 > > >

counter64 objects and AgentX problem

2010-05-14 Thread X Z
Hi, I ran the AgentX subagent to answer the queries for OID1 and OID2 which are ASN_COUNTER64 type. A snmpget on a single OID can return the correct value. For example: snmpget -v2c -c public xxx OID1 OID1 = 327990 snmpget -v2c -c public xxx OID2 OID2 = 78890 A snmpget on two OIDs returned erro

snmpget timeout error on multiple counter64 OIDs

2010-05-11 Thread X Z
Hi, I ran into snmpget timeout error when running snmpget -v2c -c public xxx OID1 OID2 and it only happened when both OID1 and OID2 are of type counter64. snmpget on either OID1 or OID2 can return the correct counter64 value. It worked just fine if I ran "snmpget -v2c -c public xxx OID3 OID4" wh

RE: Help on Index ou t of range error ‏

2010-04-09 Thread X Z
k > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/4/7 X Z : > > Here are the original c & h files. > > The problem lies with the registration of the table. > In particular, how you specified the list of indexes. > > You had: > > netsn

RE: "failed to run mteTrigger query" due to AgentX

2010-04-09 Thread X Z
10:38:10 +0100 > Subject: Re: "failed to run mteTrigger query" due to AgentX > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > On 8 April 2010 15:47, X Z wrote: > > I searched through the email lists and find out th

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-08 Thread X Z
; CC: net-snmp-users@lists.sourceforge.net > > > From: X Z [mailto:b...@live.com] > > Sent: Thursday, April 08, 2010 4:49 PM > > > The same configuration options resulted slightly different config on > > the two machines: > > > > [machine with link traps working] >

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-08 Thread X Z
gt; To: b...@live.com; d.t.shi...@liverpool.ac.uk > CC: net-snmp-users@lists.sourceforge.net > > > From: X Z [mailto:b...@live.com] > > Sent: Thursday, April 08, 2010 8:49 AM > > > The machine with link traps not working is loaded with the following > > additio

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-08 Thread X Z
b...@live.com; d.t.shi...@liverpool.ac.uk > CC: net-snmp-users@lists.sourceforge.net > > > From: X Z [mailto:b...@live.com] > > Sent: Thursday, April 08, 2010 8:49 AM > > > The machine with link traps not working is loaded with the following > > additional MIB modules: >

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-08 Thread X Z
Both machines are loaded with same modules, but in different order. ThanksXuan > Date: Wed, 7 Apr 2010 22:10:12 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net &g

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-08 Thread X Z
22:10:12 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/4/7 X Z : > > The working one (see link up down traps) has the following output: > > t

"failed to run mteTrigger query" due to AgentX

2010-04-08 Thread X Z
Hi, I searched through the email lists and find out that I am experiencing the same problems as described below: On 02/03/07, Uday Sorte <[EMAIL PROTECTED]> wrote: > I tried with the master agent object sysServices and it is working fine. > Means I have problems with the subagent and not with the

RE: Help on Index ou t of range error ‏

2010-04-07 Thread X Z
@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/4/6 X Z : > > Attached please find the code I used. It's from mib2c.iterator -S 1 option. > > This code cannot possibly work. > It registers a routine 'myTable_handler' to process requests, > but th

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-07 Thread X Z
Both machines are loaded with same modules, but in different order. ThanksXuan > Date: Wed, 7 Apr 2010 22:10:12 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net &g

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-07 Thread X Z
up/down traps when the agent started up or restarted. After that, even I change the interface to be down by "ifdown eth2", no traps were sent out. ThanksXuan > Date: Tue, 6 Apr 2010 12:19:16 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-06 Thread X Z
Apr 2010 12:19:16 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/3/29 X Z : > > I finally can receive link up/down traps. But here is the strange behavior: > > 1.

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-06 Thread X Z
, 6 Apr 2010 12:19:16 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/3/29 X Z : > > I finally can receive link up/down traps. But here is the strang

RE: Help on Index ou t of range error ‏

2010-04-06 Thread X Z
Attached please find the code I used. It's from mib2c.iterator -S 1 option. ThanksXuan > Date: Tue, 6 Apr 2010 12:31:46 +0100 > Subject: Re: Help on Index out of range error ‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.n

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-06 Thread X Z
net-snmp-users@lists.sourceforge.net > > > From: X Z [mailto:b...@live.com] > > Sent: Monday, April 05, 2010 1:44 PM > > > > Date: Mon, 5 Apr 2010 11:37:04 -0700 > > > From: mike_ay...@tva.tvworks.com > > > > > From: X Z [mailto:b...@live.com] > >

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-05 Thread X Z
> Subject: RE: Strange behavior on linkUpDownNotifications‏ > Date: Mon, 5 Apr 2010 11:37:04 -0700 > From: mike_ay...@tva.tvworks.com > To: b...@live.com; d.t.shi...@liverpool.ac.uk > CC: net-snmp-users@lists.sourceforge.net > > > > From: X Z [mailto:b...@live.com]

RE: Help on Index ou t of range error ‏

2010-04-05 Thread X Z
r 2010 10:30:35 -0700 > From: mike_ay...@tva.tvworks.com > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > > From: X Z [mailto:b...@live.com] > > Sent: Tuesday, March 30, 2010 12:31 AM > > > myTableEntry OBJECT-TYPE > > > > SYNTAX

RE: SNMPWALK works for the table, but SNMPGET doesn't work

2010-04-05 Thread X Z
0 13:28:11 -0700 > > >>>>> On Fri, 26 Mar 2010 12:03:47 -0400, X Z said: > > XZ> I implemented a MIB table and I can do a snmpwalk on my > XZ> table. SNMPGETNEXT works too. But I cannot perform snmpget on the > XZ> table entry. Does anyone know what might

RE: snmpget error?

2010-04-02 Thread X Z
14-789-8559 Cell:614-886-0923 FAX: 614-789-8975 mpeop...@att.com From: X Z [mailto:b...@live.com] Sent: Friday, April 02, 2010 12:02 AM To: net-snmp-users@lists.sourceforge.net Subject: snmpget error? Hi, I got "no such instance currently exists at this o

snmpget error‏

2010-04-01 Thread X Z
Hi, I got "no such instance currently exists at this oid" error when I did snmpget on a table entry. But snmpgetnext and snmpwalk on the table entry/table worked just fine. Does anyone what might be the reason? ThanksXuan _

RE: monitor -S option doesn't work

2010-04-01 Thread X Z
r the "-S" option so that I can add it to the patch list for 5.3.2.2? ThanksXuan > Date: Thu, 1 Apr 2010 22:37:22 +0100 > Subject: Re: monitor -S option doesn't work > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net >

RE: monitor -S option doesn't work

2010-04-01 Thread X Z
com > CC: net-snmp-users@lists.sourceforge.net > > On 31 March 2010 23:03, X Z wrote: > > Looks like I have multiple instances of snmpd.conf file. > > Please see my previous email for output with -Dread_config option. > > No - that output looks correct. > The agent on

RE: monitor -S option doesn't work

2010-03-31 Thread X Z
ol.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > On 31 March 2010 21:41, X Z wrote: > > I am using the RPM distribution from Redhat. The most recent RPM from them > > is 5.3.2.2 for EL5 x86_64. > > Is there a need to upgrade from 5.3.1.24 to 5.3.2.2? > &

RE: monitor -S option doesn't work

2010-03-31 Thread X Z
.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > On 31 March 2010 20:00, X Z wrote: > > I want to suppress the meaningless traps when the agent starts up. > [snip] > > NET-SNMP version 5.3.1 > > That's a fairly old version of t

RE: monitor -S option doesn't work

2010-03-31 Thread X Z
The output with debug option read_config is /usr/local/sbin/snmpd -Le -f -c /etc/snmp/snmpd.conf -Dread_configregistered debug token read_config, 1read_config: reading premib configuration tokensread_config: config path used for snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/sn

monitor -S option doesn't work

2010-03-31 Thread X Z
Hi, I want to suppress the meaningless traps when the agent starts up. I read the snmpd.conf man page and find the -S option should do it. Here is what's in my snmpd.confnotificationEvent linkUpTraplinkUp ifIndex ifAdminStatus ifOperStatus notificationEvent linkDownTrap linkDown ifIndex

RE: Help on Index ou t of range error ‏

2010-03-30 Thread X Z
r ‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/3/30 X Z : > >> What does the MIB file look like. > >> > > > > > > Index OBJECT-TYPE > > SYNTAX Unsigned32 (1..42949

RE: Help on Index ou t of range error ‏

2010-03-30 Thread X Z
> Date: Tue, 30 Mar 2010 08:07:47 +0100 > Subject: Re: Help on Index out of range error ‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/3/30 X Z : > > I implemented a table using iterator, and I can do snm

Help on Index out of range error ‏

2010-03-29 Thread X Z
Hi, I implemented a table using iterator, and I can do snmpwalk on the table. But snmpget gave the Index out of range error. Table index starts from 1. Here is related the code piece, can anyone point out where I did wrong? int myTable_load(netsnmp_cache * cache, void *vmagic) { struct myTab

Strange behavior on linkUpDownNotificati ons‏

2010-03-29 Thread X Z
Hi, I finally can receive link up/down traps. But here is the strange behavior: 1. link up/down traps only sent after the snmpd is restarted. If I don't restart snmpd, there were no link up/down traps sent. 2. There were too many link up/down traps after snmpd is restarted. I usually saw 3 lin

SNMPWALK works for the table, but SNMPGET doesn't work

2010-03-26 Thread X Z
Hi, I implemented a MIB table and I can do a snmpwalk on my table. SNMPGETNEXT works too. But I cannot perform snmpget on the table entry. Does anyone know what might be wrong? snmpget ... MY-MIB::myTableEntry1.1 Unknown Object Identifier (Index out of range: 1 (myTableIndex)) Thanks Xu

RE: help on linkUpDo wnNotifications‏

2010-03-20 Thread X Z
urceforge.net > > 2010/3/20 X Z : > > I still didn't see any link down traps. No errors dumped either. > > > Could you please give me some insights why I still didn't see any link down > > traps? I can only receive coldStart and nsNotifyShutdown traps. > &g

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
i, 19 Mar 2010 22:03:06 + > Subject: Re: help on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/3/19 X Z : > > Thanks for your help. I got the 5.4.2.1 source code and compiled it. But I >

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
ifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 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 cod

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
> CC: net-snmp-users@lists.sourceforge.net > > 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 appe

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
19 Mar 2010 20:16:39 + > Subject: Re: help on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/3/19 X Z : > > I am trying to get the linkUp and linkDown traps sent from the snmpd agen

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
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 comparison: (2 ==

RE: help on linkUpDo wnNotifications‏

2010-03-19 Thread X Z
+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 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 re

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: Duplicated SNMP syslogs

2009-12-01 Thread X Z
t didn't work either. Thanks Xuan > Date: Tue, 1 Dec 2009 09:28:15 + > Subject: Re: Duplicated SNMP syslogs > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/30 X Z : > > Does anyone know how to reset t

RE: Duplicated SNMP syslogs

2009-12-01 Thread X Z
hanks Xuan > Date: Tue, 1 Dec 2009 09:28:15 + > Subject: Re: Duplicated SNMP syslogs > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/30 X Z : > > Does anyone know how to reset the syslog level to avoid t

Duplicated SNMP syslogs

2009-11-30 Thread X Z
In my application, I set the default syslog level at the beginning, and after parsing a configuration file successfully, I need to reset the syslog level as indicated in the configuration file. So I created the following function: void set_snmp_log_level(int log_level) { netsnmp_log_handler

RE: Question about mib2c.create-dataset.conf

2009-11-18 Thread X Z
> Date: Tue, 17 Nov 2009 12:26:41 + > Subject: Re: Question about mib2c.create-dataset.conf > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/16 X Z : > > Two functions are created automatically: >

RE: Question about mib2c.create-dataset.conf

2009-11-16 Thread X Z
gt; Subject: Re: Question about mib2c.create-dataset.conf > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/12 X Z : > > I just found out that there exists a micro "TABLE_DATA_NAME" in table > > initiali

RE: Question about mib2c.create-dataset.conf

2009-11-12 Thread X Z
erpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/11 X Z : > > Your suggestion fixed the myTable_free errors. But I am unable to see the > > table content from snmpwalk. > > > Can you let me know if I did anything wrong in myTab

RE: Question about mib2c.create-dataset.conf

2009-11-11 Thread X Z
+ > Subject: Re: Question about mib2c.create-dataset.conf > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/10 X Z : > > I didn't change anything but I am still getting the same error: > > > > myTa

RE: Question about mib2c.create-dataset.conf

2009-11-10 Thread X Z
...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2009/11/9 X Z : > > I use mib2c.create-dataset.conf to generate codes for a table, but I got the > > following error: > > conflicting types for myTable_free and myTable_load. I use the cache method, > >

Question about mib2c.create-dataset.conf

2009-11-09 Thread X Z
Hi, I use mib2c.create-dataset.conf to generate codes for a table, but I got the following error: conflicting types for myTable_free and myTable_load. I use the cache method, it creates the following codes in the header file: NetsnmpCacheLoad myTable_load; NetsnmpCacheFree myTable_free; But

RE: snmptrapd error

2009-07-17 Thread X Z
net > > 2009/7/17 X Z : > > How to test if a subagent is sending v2 traps or not? > > Assuming that this is an AgentX subagent, > then it would normally be sending AgentX notifications > (to the master agent). It wouldn't normally generate SNMP >

RE: snmptrapd error

2009-07-17 Thread X Z
t 2009, vers > 05:42, X Z disait : > > > I got the following error from snmptrapd: > > snmptrapd -f -Le -F "%02.2h:%02.2j TRAP%w.%q from %A\n" > > > NET-SNMP version 5.3.2.2 > > couldn't open udp:162 -- errno 13 ("Permission denied") &g

snmptrapd error

2009-07-16 Thread X Z
I got the following error from snmptrapd: snmptrapd -f -Le -F "%02.2h:%02.2j TRAP%w.%q from %A\n" NET-SNMP version 5.3.2.2 couldn't open udp:162 -- errno 13 ("Permission denied") Anyone knows what caused it? How to test if a subagent is sending v2 traps or not? Thanks Cindy

how to add timestamp to the syslog entry in subagent syslog file

2009-07-16 Thread X Z
Hi, I defined my own syslog file for the subagent. I found that all the entries logged in the syslog without timestamps. Can anyone tell me how to add the timestamp in front of each syslog entry? Thanks Cindy _ Hotmail® has ever-

Question on mib2c.mfd for table

2009-07-15 Thread X Z
I used the mib2c.mfd to create template files for a MIB table. But when I initialized the mib in the subagent code, the table oid was not registered. I tried the debug mode, found out that only the following routines were called: verbose:xxxTable:xxxTable_init_data called verbose:xxxTable:xxxTa