Re: snmptrapd - avoiding ambiguity in log files

2005-09-10 Thread Don Cohen
Thomas Anders writes: > For a test, only put "trapdhandle default /bin/cat" into your > snmptrapd.conf and run snmptrapd with "-Drun:exec" (in addition to "-f > -Lo -C -c ...". It should print something like: > > run:exec: running '/bin/cat' > run:exec: child 29893 finished. result=0 Th

Re: adding a file to MIB issue..

2005-09-10 Thread Thomas Anders
Robert Story wrote: On Tue, 23 Aug 2005 08:37:10 -0700 (PDT) vijendra wrote: VA> 1. copy the attached file to ./mibs/ dir. If ./mibs/ is not a standard mib directory, you also need to specify the path in the MIB_DIRS environment variable. MIBDIRS, actually. See http://www.net

Re: Compiling in your new MIB module

2005-09-10 Thread Robert Story
On Wed, 31 Aug 2005 15:13:34 +0800 (CST) Earnest wrote: EP> In the part"Compiling in your new MIB module," EP> EP> Does the statement EP> ./configure --with-mib-modules="nstAgentModuleObject" EP> means that I must install net-snmp sourcecode? Yes, you need the source code to implement a MIB modu

Re: Question - MIB registration/deregistration

2005-09-10 Thread Robert Story
On Mon, 22 Aug 2005 14:49:12 -0500 Bumireddy wrote: BPC>I looked at the net-snmp code BPC> and to me it looks like SNMP master agent doesn't try to take over the BPC> MIB registration ownership of 'system' subtree, after SMUX peer is BPC> disconnected. It unregisters the subtree during smux_peer_c

Re: Is it net-snmp's bug

2005-09-10 Thread Robert Story
On Sun, 04 Sep 2005 17:37:20 +0800 李晓栋 wrote: > monitor -u trap -r 120 -o .1.3.6.1.2.1.2.2.1.2 > "packet" .1.3.6.1.2.1.2.2.1.11 > 1 monitor -u trap -r 120 > -o .1.3.6.1.2.1.2.2.1.2 "traffic" 1.3.6.1.2.1.2.2.1.10 > 1 > > As You can see ,the record of trap of > 17:04,17:06,17:08,17:10,17:12,17:16..

Re: Can mib2c support more than one table in a MIB?

2005-09-10 Thread Robert Story
On Wed, 31 Aug 2005 06:23:52 -0500 Paul wrote: HP> My experience with Mib2c is that you can use it one more then one table, HP> but you'll end up with several very similar c files. The "secret" is to HP> run mib2c multiple times. For instance, if your mib defines 3 tables HP> (MyTable1, MyTable2,

Re: Unable to browse mibs

2005-09-10 Thread Robert Story
On Thu, 25 Aug 2005 19:25:07 +0100 David wrote: DJ> The netsmnpd service is running. Is there any special DJ> configuration that must be done? I have also executed the perl DJ> scrip (snmpconf) as it is said in the Agent Faq. SNMP windows DJ> services are stopped. Before trying the mib browser, tr

Re: adding a file to MIB issue..

2005-09-10 Thread Robert Story
On Tue, 23 Aug 2005 08:37:10 -0700 (PDT) vijendra wrote: VA> 1. copy the attached file to ./mibs/ dir. If ./mibs/ is not a standard mib directory, you also need to specify the path in the MIB_DIRS environment variable. VA> If there is any error in MIB file then also please let VA> me know. The

Re: Can I receive at the request of any community names?

2005-09-10 Thread Robert Story
On Thu, 1 Sep 2005 09:36:25 +0900 shunuhs wrote: S> I'm using v2c mode on the net-snmp v5.2.1. S> S> I'd like to receive at the request packet of any community names. S> Is this possible? It may be possible, but it is strongly discouraged and won't work for SNMPv3 or AgentX sub-agents. Fire up a

Re: Enable dlmod caust snmpd can't run

2005-09-10 Thread Robert Story
On Tue, 23 Aug 2005 11:13:42 +0800 徐小威的EMAIL wrote: > I used ucd-snmp 4.2.7.pre1 on my custom MPC852T, i found if i > compiler with --enable-shared > ,the snmpd will size down to 200-300K and snmpd can't run well, if used > --disable-shared my snmpd is bigger than 2M and i can run snmpd well bu

Re: Question about MIB Programming

2005-09-10 Thread Robert Story
On Thu, 01 Sep 2005 05:07:06 + d wrote: D> I use the C and am making the MIB. D> D> I want to take but the information of this MIB which differs in the D> MIB.(ex. ssCpuIdle) Sorry, I don't understand what you are trying to do. Can you try to ask your question again? -- NOTE: messages sen

Re: iterate option

2005-09-10 Thread Robert Story
On Wed, 24 Aug 2005 10:31:06 +0530 Rohini wrote: RV> But, I have stored all the values in a .txt file, as oid and value pair. RV> For example : RV> .1.3.6.1.3.50.2.1.1.1 1 RV> .1.3.6.1.3.50.2.1.2.1 test11 RV> .1.3.6.1.3.50.2.1.1.2 2 RV> .1.3.6.1.3.50.2.1.2.2 test22 RV> RV> In the example provided

Re: Snmpset delay

2005-09-10 Thread Robert Story
On Tue, 23 Aug 2005 17:29:31 -0400 Susan wrote: RS> I'm using net-snmp 5.1.1 on Linux, and I have found that when I do a lot RS> of snmpget queries on sub-agent elements, and I try to do a snmpset - RS> there is a rather long delay between when I issue the snmpset command RS> and the agent sends ou

Re: SNMP Trap Forwarding.

2005-09-10 Thread Robert Story
On Tue, 6 Sep 2005 11:23:05 +0200 [EMAIL PROTECTED] wrote: AHWD> Use Net::SNMP package from search.cpan.org Not that the Net::SNMP package is not related to the NetSNMP perl module (which is just referred to as "SNMP", not "Net::SNMP"). -- NOTE: messages sent directly to me, instead of the l

Re: Problem with row creation (Please help)

2005-09-10 Thread Robert Story
On Thu, 18 Aug 2005 19:14:47 -0500 Paul wrote: HP>If I compile my code and run it, then issue the following commands, HP> this is what I get: HP> $ snmpwalk -v1 -cadc -m all localhost:1551 myTable HP> MYTEST-MIB::FromSide.type1.2.type1.2 = INTEGER: type1(1) HP> HP> $ snmpset -v1 -cadc -m all l

Re: SNMP V3 support

2005-09-10 Thread Robert Story
On Fri, 26 Aug 2005 11:53:29 +0200 LAMBERT wrote: LE> We would like to implement a proxy SNMP architecture using NET-SNMP on LE> Linux box. The idea is to use NET-SNMP box as a gateway between a real SNMP LE> Manager and remote SNMP equipments. Direct connections between the Manager LE> and remote

Re: what type to use for counter64?

2005-09-10 Thread Robert Story
On Tue, 30 Aug 2005 18:38:51 +0800 Jim wrote: JS>On the man page of "snmptrap" I found there is type for counter32 but JS> no counter64 ### You are right, it's missing. Try this patch against 5.2.1.2, and see if it helps. -- NOTE: messages sent directly to me, instead of the lists, will be d

Re: NET-SNMP can not translate multi-index!

2005-09-10 Thread Robert Story
On Tue, 30 Aug 2005 09:51:21 +0800 Ying wrote: YW> 2. After recompile and reinstall net-snmp, I can use name to access YW> uni-index table and scalar data. YW> YW>But, access to multi-index table fails! YW> YW>2.1 Run net-snmp with debug "snmpd -D", the debug information stops YW> in: YW>

Re: There is no such variable name in this MIB.

2005-09-10 Thread Robert Story
On Sat, 27 Aug 2005 01:22:27 -0700 (PDT) Alaios wrote: A> Hi I have downloaded the patch from docum.org (adds a A> qos mib) A> I have completely followed the directions and A> everything seems to be compiled succesfully Is this just a MIB file, or C code to implement the module? How did you compil

Re: how to compile new MIB's

2005-09-10 Thread Robert Story
On Sun, 21 Aug 2005 21:46:09 + Jordi wrote: JMT> I want to compile new MIB's with SNMP. I know I have to compile my agent JMT> doing this: JMT> JMT> $./configure --with-mib-modules = "the name of the MIB" JMT> JMT> but I want to know if I can compile my new MIB omitting the option JMT> --wi

Re: ifdir - Command

2005-09-10 Thread Robert Story
On Sat, 27 Aug 2005 14:46:18 +0200 Torsten wrote: TZ> i tried to go through MFD tutorials. when i tried to run the "mib2c" with TZ> the mib2c.mfd.conf i got the error message "unknown if modifier (dir)". TZ> does anyone knows what to do? i can´t go further through... What version are you using? Ar

Re: getcols operation

2005-09-10 Thread Robert Story
On Mon, 22 Aug 2005 16:51:08 +0200 Ali wrote: AAS> Does net-snmp include support for the GETCOLS operation? and if so how AAS> do we use it? No, because it isn't part of the standard SNMP protocol, so it isn't included. However, it would probably be a good idea to put it in as and option for the u

Re: snmptrap v1 with MIB v2 and snmptrap v2 with MIB v1

2005-09-10 Thread Robert Story
On Mon, 22 Aug 2005 16:01:03 +0200 Alexandre wrote: AP> I've some tests like follows: AP> AP> 1. using snmptrap v2c with MIBv1 result: ok AP> 2. using snmptrap v1 with MIBv2 result: something I don't quite understand the question. Can you be a little more specific? -- NOTE: messages

Re: Getting information out of a cache

2005-09-10 Thread Robert Story
On Mon, 22 Aug 2005 11:28:04 -0500 Paul wrote: HP> I have a function that is being called. It's being passed a pointer HP> to netsnmp_cache, and an integer that is an index that may more may not HP> be in that cache. I need to return weather or not a row with that index HP> actually exists.