Re: OID comparision in callback handler

2005-04-11 Thread Yeo Siow Vic
How do i get the higher level ones help me out? If i have to use other mib2c files to generate the source files, which one then? thanks victor > > On Mon, 11 Apr 2005 16:41:25 +0800, "Yeo Siow Vic" <[EMAIL PROTECTED]> said: > > Yeo> I have a MIB table, i use mib2c.create-dataset.conf to cre

RE: IPv6 works for IPv4?

2005-04-11 Thread Fong Tsui
Robert>> Actually, there is no 'udp4' token. I believe the way it Robert>> *should* work is that 'udp' should open both, while udp6 would Robert>> just be IPv6. To only allow v4 if v6 is configure would Robert>> require using access control.. WH-> running snmpd by default only opens v4. running w

Re: IPv6 works for IPv4?

2005-04-11 Thread Wes Hardaker
> On Thu, 7 Apr 2005 17:59:17 -0400, Robert Story <[EMAIL PROTECTED]> said: Robert> Actually, there is no 'udp4' token. I believe the way it Robert> *should* work is that 'udp' should open both, while udp6 would Robert> just be IPv6. To only allow v4 if v6 is configure would Robert> require us

Re: rfc: changing default callback priority

2005-04-11 Thread Wes Hardaker
> On Fri, 8 Apr 2005 12:52:02 -0400, Robert Story <[EMAIL PROTECTED]> said: Robert> Unfortunately, I made a poor decision for the default priority Robert> used by the wrapper function (I used 0). The way the code is Robert> written, anyone wanting a particular callback to be called Robert> bef

Re: OID comparision in callback handler

2005-04-11 Thread Wes Hardaker
> On Mon, 11 Apr 2005 16:41:25 +0800, "Yeo Siow Vic" <[EMAIL PROTECTED]> > said: Yeo> I have a MIB table, i use mib2c.create-dataset.conf to create the Yeo> source file. I want to customise the processing of the MIB Yeo> table. Therefore, i have to compare the OID of each incoming Yeo> re

Re: Cannot see "ipRouteTable" with IPv6

2005-04-11 Thread Wes Hardaker
> On Mon, 11 Apr 2005 13:54:42 +0100, Dave Shield <[EMAIL PROTECTED]> said: Dave> IP-FORWARD-MIB, which hasn't been released as a full RFC yet. Dave> It's still very much "work in progress", so you'd probably Dave> need to install this file manually. 2 comments about that: 1) It was released

Re: Snmp vs HTTP

2005-04-11 Thread Wes Hardaker
> On Mon, 11 Apr 2005 18:14:38 +0530, JOJAN <[EMAIL PROTECTED]> said: JOJAN> SNMP interface is useful for programs, but the HTTP interface JOJAN> is useful mostly for human beings. That means, there is scope JOJAN> for automation in the case of SNMP. Exactly. Try to envision configuring/mana

Re: Why I got the message:"Cannot find module (LM-SENSORS-MIB): At line 0 in (none)",when using mib2c to generate c file?

2005-04-11 Thread Wes Hardaker
> On Mon, 11 Apr 2005 16:08:45 +0800, "Hongjunli" <[EMAIL PROTECTED]> said: hongjunli> No log handling enabled - turning on stderr logging hongjunli> Cannot find module (LM-SENSORS-MIB): At line 0 in (none) Something has requested that MIB to be loaded (probably the default configuration) but

Re: net-snmp can't query CPU, RAM information.

2005-04-11 Thread Wes Hardaker
> On Mon, 11 Apr 2005 02:46:09 -0700 (PDT), Nguyen Quang Vu <[EMAIL > PROTECTED]> said: Nguyen> I installed net-snmp in my HP-UX machine. I can query disk Nguyen> information but I can not query CPU and memory Nguyen> information. Please help me resolve this problem. What are you trying

net-snmp can't query CPU, RAM information.

2005-04-11 Thread Nguyen Quang Vu
Dear All,   I installed net-snmp in my HP-UX machine. I can query disk information but I can not query CPU and memory information. Please help me resolve this problem.   This is my content of snmpd.conf file: syslocation "2 floor, belco building" syscontact  "Nguye

Why I got the message:"Cannot find module (LM-SENSORS-MIB): At line 0 in (none)",when using mib2c to generate c file?

2005-04-11 Thread Hongjunli
the whole message is as follow: No log handling enabled - turning on stderr logging Cannot find module (LM-SENSORS-MIB): At line 0 in (none) writing to user.h writing to user.c running indent on user.h running indent on user.c

Windows WIN32, cygwin and mingw defines

2005-04-11 Thread Alex Burger
Hi Andy. I was under the impression that MinGW and Cygwin both natively defined WIN32 like MSVC. I just did a quick check, and only MinGW defines it. I tried modifying configure.in so -DWIN32 is added to the CFLAGS when Cygwin is detected, but then the compile stops with: ../include/net-snmp/l

Re: dynamically loading a utility library

2005-04-11 Thread Michael P. Soulier
On 11/04/05 Robert Story did say: > I'm not sure, I've never actually played with the dynamic loading stuff. Give > it a whirl... Yup, it works. I just build a library, mitelsnmputil.so, and dynamically linked my net-snmp modules to it. Works great. Mike -- Michael P. Soulier <[EMAIL PROTECTE

Re: dynamically loading a utility library

2005-04-11 Thread Robert Story
On Sun, 10 Apr 2005 16:23:27 -0400 Michael wrote: MPS> On 10/04/05 Robert Story did say: MPS> > Why not just use dlopen() (or your os' equivalent) in the init MPS> > functions of the libraries that need the utility code? MPS> MPS> Yeah, that's an option. If I build the utility code as a shared lib

Re: Snmp vs HTTP

2005-04-11 Thread Dave Shield
On Thu, 2005-04-07 at 13:52, Sriram venkat wrote: >There and 2 protocols that are used in network management products. > They are SNMP and HTTP. Those two protocols could certainly be used to transmit network management information across the network. But that's probably about as much as they

RE: Cannot see "ipRouteTable" with IPv6

2005-04-11 Thread Dave Shield
On Mon, 2005-04-11 at 13:22, Frithiof Jensen (AH/LMD) wrote: > Apparently, > the Tools (snmpget et. al.) does not "know" of any inetCidrRouteTable: Quite likely. That table is only defined in the updated version of the IP-FORWARD-MIB, which hasn't been released as a full RFC yet. It's still very

RE: Snmp vs HTTP

2005-04-11 Thread JOJAN
SNMP interface is useful for programs, but the HTTP interface is useful mostly for human beings. That means, there is scope for automation in the case of SNMP.   regards   jojan -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Divakar.YSent:

RE: Cannot see "ipRouteTable" with IPv6

2005-04-11 Thread Frithiof Jensen (AH/LMD)
This is some problem! Apparently, the Tools (snmpget et. al.) does not "know" of any inetCidrRouteTable: [EMAIL PROTECTED]: snmpwalk udp6:ip6-localhost inetCidrRouteTable inetCidrRouteTable: Unknown Object Identifier (Sub-id not found: (top) -> inetCidrRouteTable) [EMAIL PROTECTED]: However

Re: Snmp vs HTTP

2005-04-11 Thread Divakar.Y
Venkat,   I guess its basically the type of interface u want to use to manage ur network elements. HTTP provides u the GUI, the snmp stack like the net-snmp software provides a strong CLI(command line interface). however u can also use the tkmib browser,provided with net-snmp to get a feel of

Re: Snmp vs HTTP

2005-04-11 Thread Tom Flavel
On 11/04/2005 14:33:41, Divakar.Y wrote: > > I guess its basically the type of interface u want to use to manage ur > network elements. > HTTP provides u the GUI, the snmp stack like the net-snmp software provides a > strong CLI(command line interface). No, HTML provides the interface. HTTP can

Re: dynamically loading a utility library

2005-04-11 Thread Michael P. Soulier
On 10/04/05 Robert Story did say: > Why not just use dlopen() (or your os' equivalent) in the init > functions of the libraries that need the utility code? Yeah, that's an option. If I build the utility code as a shared lib, and dynamically link the module against it, would that work also? I'm no

Re: dynamically loading a utility library

2005-04-11 Thread Robert Story
On Fri, 8 Apr 2005 15:14:05 -0400 Michael wrote: MPS> Is there a way I could dynamically load a module into net-snmp that is MPS> just for use by my mib modules? Why not just use dlopen() (or your os' equivalent) in the init functions of the libraries that need the utility code? -- NOTE: message

Re: Fwd: Re: Still having timeout problems with snmpget

2005-04-11 Thread Robert Story
On Fri, 8 Apr 2005 10:58:06 -0700 (PDT) Shobana wrote: SS> Thanks for your help, now I am able to run the SS> agent, SS> but I get a different error when I run snmpget: SS> [d:\net-snmp-5.2.1\bin]snmpget -v 2c -c public SS> 10.86.160.102 1.3.6.1.4.1.9.10.102.1.1.1 SS> SNMPv2-SMI::enterprises.9.

Re: OID comparision in callback handler

2005-04-11 Thread Yeo Siow Vic
dear all,   I have a MIB table, i use mib2c.create-dataset.conf to create the source file. I want to customise the processing of the MIB table. Therefore, i have to compare the OID of each incoming request and take action respectively.   How should i compare the OID in callback handler??  I

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-11 Thread Dave Shield
On Fri, 2005-04-08 at 20:44, Shobana Sampath wrote: > In the netsnmp_pdu data structure, what is the field > that I can use in snmp v2c to set the sender's address > in outgoing SNMP packets. There isn't one. You can do this via the 'snmp.conf' file, using the directive "clientaddr", or in code

Re: Still having timeout problems with snmpget

2005-04-11 Thread Dave Shield
[First a reminder - please don't mail me directly. *All* questions should be sent via the mailing list. Thanks. ] On Fri, 2005-04-08 at 18:58, Shobana Sampath wrote: > I get a different error when I run snmpget: > SNMPv2-SMI::enterprises.9.10.102.1.1.1 = No Such >Object available