Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-23 Thread aakansha rajvi
First of all please excuse me to ask an out-of-topic question, but with a hope that there may be some experts since this question is somewhat related to snmp. I am running agent in my pc say 192.168.9.1 and port 161. I want to capture the snmp packets alone as a result of snmpget and snmpset oper

Re: is it possible to integrate an Net SNMP sub agent(.dll) withMicrosoft SNMP service ?

2005-06-23 Thread Alex Burger
Hi. I just finished putting it together. Sorry to take so long. I'm not sure why I'm not receiving your emails. The agent (SNMP Proxy for Windows) is available at: http://www.fragit.net/snmppfw/ Please let me know how it goes. The .zip includes instructions on setting it up. Thanks A

unsubcrible

2005-06-23 Thread Nguyen Anh Tien
    === Nguyen Anh Tien - Data Processing Department Information Technology Center   Viet nam Bank for Agriculture and Rural Development. Tel (Fax): 04-8687391 mobile: 0912518097 Email: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Question on SNMPv1

2005-06-23 Thread bryce
I've written a simple v1 agent that runs on a small embedded system. Can the latest Net-SNMP binaries (windows XP) be set up to monitor my traps? What are the command-line arguments required to do this? The snmpget, set, walk, etc., all work fine. The snmptrapd responds with a 0x5de error, so i

snmpd select() stopped working when a subagent sent linkUp/linkDown traps

2005-06-23 Thread Emi . Yanagi
I am seeing a problem in the master agent snmpd when a subagent sent linkUp/linkDown traps. I started snmpd as below: snmpd -f -Le -Dsnmpd/select -Dtimer -Dtrap The debug log shows snmpd blocked after "snmpd: send_trap: TImeout". The select loop simply stopped working from there. snmpd/select:

SNMP for ISP link performance??????

2005-06-23 Thread Shantanu Kumar
Hello to all Well... I have 2 linux boxes which r connected to Their ISPs Can I use SNMP somehow to measure performance to a particular host. so that atleast I can have a rough idea abt the performance of ISP to that link I have SNMP agent on my linux boxes . but since I

RE: agentx Problem with Visual C++ Compiler

2005-06-23 Thread Amber Gupta
Well there was some post on this some time back.I faced same problem on my redhat machine and solution come out to be the multiple version of net-snmp package installed. I have both net-snmp rpm installed and code compiled from source. I removed the rpm stuff and deleted those files manually also a

agentx Problem with Visual C++ Compiler

2005-06-23 Thread Naber, Peter
Hi, i have a problem with my own agent. I have developed a small agent and compiled it with gcc under cygwin. The agent works fine with snmd-5.2.1 and agentx Interface on localhost:705 Now i compiled the same agent under Microsoft Visual C++ 6.0 without any error messages. If I start the agent

Re: NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-23 Thread Thomas Anders
Steve Friedl wrote: I can certainly see how the the name suggests that only the save is suppressed, so I probably ought to submit a second patch that adds some more documentation to this. At least now I know why there's no config file token for this. :-) Unfortunately our compatiblity credo do

Re: NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-23 Thread Steve Friedl
On Thu, Jun 23, 2005 at 04:08:46PM +0200, Thomas Anders wrote: > -Coders, > > what *exact* impact is > > netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, > NETSNMP_DS_LIB_DONT_PERSIST_STATE, 1); > > supposed to have? The comment in snmplib/default_store.c indicates > "do

RE: Modifying SNMPd code to accecpt signals

2005-06-23 Thread Amber Gupta
Title: Message It already does handles signals. You need to look into code more carefully.Please do your homework first before asking. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Thursday, June 23, 2005 12:39

NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-23 Thread Thomas Anders
-Coders, what *exact* impact is netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_DONT_PERSIST_STATE, 1); supposed to have? The comment in snmplib/default_store.c indicates "don't save/load any persistant state", but in fact snmplib/read_config.c::read_co

Re: Compilation problems - interface_linux.c

2005-06-23 Thread Radek Vokál
On Thu, 2005-06-23 at 09:49 +0100, Dave Shield wrote: > On Wed, 2005-06-22 at 17:47, Robert Story wrote: > > On Wed, 22 Jun 2005 17:27:13 +0100 Dave wrote: > > > DS> is needed for RH9, and should be safe enough under Fedora. > > DS> But it doesn't feel quite right, somehow > > > > On YellowD

Re: undocumented config tokens

2005-06-23 Thread Thomas Anders
Dave Shield wrote: How about having a separate man page for these persistence directives? [...] The 'snmpd.conf(5)' man page could then have a section about the persistent config file, documenting "createUser" there and pointing to this separate man page for the rest of the entries. I'd be fi

Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 12:42, aakansha rajvi wrote: > The Read-only oid I had mentioned in my previous post is not in > the source code that I attached the first. Fair enough. What does the registration code for this MIB object look like? > Actually it is an oid having read-only access in the MIB.

Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-23 Thread aakansha rajvi
The Read-only oid I had mentioned in my previous post is not in the source code that I attached the first. Actually it is an oid having read-only access in the MIB. Since this is a read-only, I am having MODE_GET alone in my compiled C file. I dont know how it is looking for SET_RESERVE1 or SET_A

Re: undocumented config tokens

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 12:11, Thomas Anders wrote: > Dave Shield wrote: > > The only entry I'm not comfortable about is "setserialno". > > I'd suggest that this entry is omitted (both here, and from > > the -H output). > > I'd prefer to see a dedicated section on persistent file tokens pointing >

Re: rfc: optional config file processing enhancement

2005-06-23 Thread Thomas Anders
Robert Story wrote: In that case, I propose that '-' does the prepend, which is how 5.2 and beyond works for mibdirs (and 5.2.3 and 5.3 will also work for mibs and mibfiles; this thread reminded me to sync that up). AFAICS we still need to update documentation on this. Robert, will you? +Thom

Re: undocumented config tokens

2005-06-23 Thread Thomas Anders
Dave Shield wrote: The only entry I'm not comfortable about is "setserialno". This is used to implement the TestAndIncr persistence behaviour, so would normally only appear in the /var/net-snmp/snmpd.conf file. It's not really intended for administrator use. [...] I'd suggest that this entry i

Re: undocumented config tokens

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 19:02, Thomas Anders wrote: > Robert Story wrote: > > Well, if you've got a list of the completely undocumented ones, > > and a patch to add missing documented ones to snmpd.conf, bring it on.. > > I've added a proposed patch for man/snmpd.conf.5.def to Patch #1219548: > > h

RE: snmptable command

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 13:24, [EMAIL PROTECTED] wrote: > I have to set a particular value say in 3rd row, 2nd > column in a table. How I can do this in agent and how > I can invoke this from manager. How is the table indexed? That will affect how to invoke this request from the manager. How is th

Re: net-snmp & snmpwalk : how it work ?

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 08:45, Emmanuel Doguet wrote: > If I do an snmpwalk on 10.1 or 10.10 ... the snmpd daemon > call too the DemoTable handler. It's normal ? Yes. Remember that "snmpwalk" is really just a sequence of GETNEXT requests. It doesn't know how many results to expect, so keep going u

Re: Modifying SNMPd code to accecpt signals

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 05:39, [EMAIL PROTECTED] wrote: > Can I modify the snmpd code so that, it accepts Linux signals > to start and stop the SNMP agent(demon)? The snmpd code already accepts the TERM signal to stop the daemon and shut down cleanly. If you think about it, you can't really use a s

Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 07:38, aakansha rajvi wrote: > I replaced strcpy by strncpy and it is working for me. > But the problem is, I have allocated memory for "rcommunity" by > using array > > char rcommunity[10]; > > Since this is the case, if I SET private1233, the size of which is > greater t

Re: Compilation problems - interface_linux.c

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 17:47, Robert Story wrote: > On Wed, 22 Jun 2005 17:27:13 +0100 Dave wrote: > DS> is needed for RH9, and should be safe enough under Fedora. > DS> But it doesn't feel quite right, somehow > > On YellowDog (Fedora-ish ppc clone), that gets me __u8, but not u8. Same on F

Re: A question about snmpset

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 23:16, Robert Story wrote: > On Tue, 21 Jun 2005 13:19:42 +0800 Hongjunli wrote: > H> stationName OBJECT-TYPE > H> SYNTAX OCTET STRING (SIZE (0..63)) > H> MAX-ACCESS read-write > H> STATUS current > H> DESCRIPTION > H> "Station name." > H>

net-snmp & snmpwalk : how it work ?

2005-06-23 Thread Emmanuel Doguet
Hi to all, I have developped some extensions in a module (dlmod), and I work very fine. But I have see something who seem strange. I use some Table (written with MFD) This is an example : *.10.1 - IntegerDemoValue *.10.10 - AcpiTable/ ... *.10.20 - De