WRB - Tried *make distclean* and that failed.

2005-02-14 Thread wrb
Robert Story: I tried your suggestion of followed by and got these results: /bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo libnetsnmpmibs.la libnetsnmpagent.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lcrypto -lelf -lm gcc -g -O2 -Dlinux -o

Re: Problems with MIB2c Tool

2005-02-14 Thread Robert Story
On Fri, 4 Feb 2005 14:39:06 +0100 [EMAIL PROTECTED] wrote: KSDC> I have followed following steps: KSDC> export MIBS=ADSL-LINE-MIB That will only load one MIB. You probably need more than that. Try 'export MIBS=+ADSL-LINE-MIB', so the default mibs are loaded as well. KSDC> ./mib2c -c mib2c.m

Re: More Solaris Newbie

2005-02-14 Thread Robert Story
On Fri, 04 Feb 2005 15:32:26 -0600 cs wrote: C> Did the SysObjectID change when "ucd-snmp" became "net-snmp". Yep. C> Can I C> change the SysObjectID reported or does that defeat the purpose of the OID? Yes. You can change it at configure time (see configure --help) or at runtime (see snmpd.con

Re: Problems with hrStorageDescr

2005-02-14 Thread Robert Story
On Mon, 14 Feb 2005 17:14:43 +0100 (MET) Oliver wrote: OM> On the nux1 machine is net-snmp version 5.2 installed, on the other machine OM> (with no problems) net-snmp version 5.1.1 - is that the problem? No, my Linux 5.2.1 box reports partitions just fine. OM> > monitor1 root # snmpwalk -v 2c -c

Re: 802.1q vlans on freeBSD

2005-02-14 Thread Robert Story
On Fri, 11 Feb 2005 16:50:25 + Monil wrote: MP> I have some 802.1q vlans running on two freeBSD servers. When I snmpwalk MP> either of the servers, these vlans are no where to be seen. What release are you using? MP> Can anyone MP> suggest a way of making these available so I can monitor M

Re: removing unwanted mibs

2005-02-14 Thread Robert Story
On 11 Feb 2005 09:55:01 - nithya wrote: NV> we wish to remove certain mibs libraries or object files during the NV> linking process and also i don't want to compile the mib sources that NV> aren't required for our application.The option('--with-mibdirs=' and NV> '--with-mibs=') specified in th

Re: ifTable_Makefile was not generated

2005-02-14 Thread Robert Story
On Thu, 10 Feb 2005 14:10:59 -0600 [EMAIL PROTECTED] wrote: EYC> I ran mib2c and generated the codes. But the make file ifTable_Makefile EYC> was missing. Another c file ifTable_subagent.c was not generated either. EYC> Why? I assume you are running the tutorial? I turned them off by default, and

Re: Non-standard interfaces in ifTable

2005-02-14 Thread Robert Story
On Thu, 10 Feb 2005 09:41:18 -0500 Jeff wrote: JO> I have an embedded Linux system with some interfaces that are not JO> "standard", i.e. the default ifTable implementation isn't getting part or JO> all of the information. Net-snmp gets the interface information from the kernel. If your embedded s

Re: Managing multiple instances of a MIB

2005-02-14 Thread Robert Story
On Thu, 10 Feb 2005 11:01:28 -0800 Mark wrote: MC> In a scenario where there is a master agent, and there are subagents MC> for each applications (separate mibs), how can we manage multiple MC> instances of the same mib through the same master agent. Read this overview here: http://www.fr

Re: subagent mib and config loading

2005-02-14 Thread Robert Story
On Wed, 9 Feb 2005 14:26:12 -0800 (PST) Srinivas wrote: SA> but once i do init_agenttowards the end SA> agent_module_inits.h gets included which inits usm, SA> vacm etcdo we need that? Nope. That should only be done for the master agent. Add this right before the include line: #ifdef

Re: caching and set

2005-02-14 Thread Robert Story
On Tue, 8 Feb 2005 21:26:15 -0800 Muralidhar wrote: MG> Running net-snmp 5.1.1. MG> MG> I am using Cache handler for various tables. MG> Is there a way to set up setup the table to call MG> load function automatically just before the SET request ? MG> MG> The set request could come when the data

Re: Extra info appended to OID

2005-02-14 Thread Robert Story
On Tue, 8 Feb 2005 15:08:28 -0600 Nelson, wrote: NG> When I issue the following snmpwalk command to a Cisco router it replies NG> with lines as shown below: NG> NG> snmpwalk -v2c 192.168.108.254 .1.3.6.1.4.1.9.9.161 NG> NG> SNMPv2-SMI::enterprises.9.9.161.1.2.1.1.2.0.8.67.65.70.69.84.69.83.84 =

Re: SIGHUP w/ 5.2.1 results in netsnmp_assert "list key" == "is unique" failed data_list.c:108 netsnmp_data_list_add_node()

2005-02-14 Thread Robert Story
On Tue, 08 Feb 2005 11:39:41 -0500 Rob wrote: RK> /var/log/snmpd.log RK> NET-SNMP version 5.2.1 restarted RK> netsnmp_assert "list key" == "is unique" failed data_list.c:108 RK> netsnmp_data_list_add_node() RK> WARNING: adding duplicate key 'mppLibraryVersionTable' to data list RK> RK> --note: t

Re: Supporting 'obsolete'd objects

2005-02-14 Thread Robert Story
On Tue, 08 Feb 2005 18:52:44 +0530 Sridhar wrote: SS> I am using Net-SNMP toolkit of version 5.0.9. I would like to know why SS> Net-SNMP is supporting following 'obsolete'd objects (RFC-3418). Because someone might be using them? If you'd like to supply a patch to add a configure option to disabl

Re: Mib2c problem

2005-02-14 Thread Robert Story
On Tue, 8 Feb 2005 11:59:15 +0200 Kodel wrote: KO> I have problem using mib2c utility for the NET-SNMP-EXAMPLES-MIB KO> KO> When I trying mib2c -c ... someOidFromExamples, I got the error : KO> "You didn't give me a valid OID .". KO> KO> The mib2c doesn't known ALL OIDs from netSnmp (includin

Re: problem in setting several octet strings with an only SET PDU

2005-02-14 Thread Robert Story
On Mon, 7 Feb 2005 20:58:26 +0100 Gemma wrote: GS> > What I try to do with this piece of code is the next: GS> > GS> > 1.3.6.1.4.1.8072..2000.12.1.1.3.1 <- "1" GS> > 1.3.6.1.4.1.8072..2000.12.1.1.3.2 <- "2" GS> > 1.3.6.1.4.1.8072..2000.12.1.1.3.3 <- "3" GS> > 1.3.6.

Re: Perl extensions

2005-02-14 Thread Robert Story
On Mon, 7 Feb 2005 13:48:37 -0600 John wrote: JA> JA> When I add JA> JA> perl NetSNMP::TrapReceiver::register("trapOID", \&myfunc); JA> or JA> perl do "/usr/local/share/snmp/mytrapd.pl"; JA> JA> to my snmptrapd.conf JA> JA> I just get an error JA> JA> Warning: Unknown token: perl. JA> JA>

Re: Perl extensions

2005-02-14 Thread Robert Story
On Tue, 08 Feb 2005 09:15:57 + Andy wrote: AF> Read the README.solaris file in net-snmp v8.3 under section 11 Oooh, peer into your crystal ball and tell me what cool features we'll have in v8.3! :-P -- Robert Story; NET-SNMP Junkie Support: Archive:

Re: session parameters

2005-02-14 Thread Robert Story
On Sat, 5 Feb 2005 10:44:54 -0800 Bill wrote: BL> I am working on the SNMP manager that uses net-snmp. I am wondering if BL> there is any API that can allow me to update the parameters in a netsnmp BL> session (e.g. timeout time, retry count, etc.) that is already opened BL> with snmp_open(session)

Re: question on logfile monitoring

2005-02-14 Thread Robert Story
On Sat, 29 Jan 2005 18:55:54 +0100 Denis wrote: DG> I've been searching through the FAQs looking for DG> any documentation on the subject of logfile DG> monitoring with net-snmp but I haven't found anything. Monitoring for what? See the snmpd.conf man page for how to monitor a file for growth beyo

Re: Compiling and running asyncapp.c

2005-02-14 Thread Robert Story
On Thu, 27 Jan 2005 11:47:10 -0500 [EMAIL PROTECTED] wrote: NYC> I'm trying to compile and run asyncapp.c. I downloaded the source file NYC> directly and it compiled correctly. However, when I try to run it, I NYC> don't get the expected output. I get: NYC> NYC> read_objid: Unknown Object Ident

Re: Problem in max number in snmp variables will quering in 5.2

2005-02-14 Thread Robert Story
On Thu, 27 Jan 2005 16:44:13 +0200 Antonis wrote: AP> Hallo, AP> AP> I have used the net-snmp api to create a c++ application to collect AP> information from network. The problem is located while using the AP> snmp_send() function. AP> The Number of the requested variables inside the send query i

Re: err with loopback addr & snmpget "Too Long"

2005-02-14 Thread Robert Story
On Mon, 20 Dec 2004 11:39:19 -0800 (PST) atul wrote: AB> I am running simple 'example-demon'(provider) prog in one terminal and AB> synchronus app client in another terminal on single Linux m/c using AB> Loopback (127.0.0.1)addr. AB> AB> after running demon whn i run client to get system.sysUpTi

Re: problems with using custom snmp script

2005-02-14 Thread Robert Story
On Thu, 27 Jan 2005 10:04:14 +0300 Alex wrote: AO> I try to make snmp agent for use via pass option. I use net-snmp-5.2 from AO> development branch of RedHat FC3. AO> AO> But i have one problem - when i insert AO> AO> pass .1.3.6.1.4.1.11821 /usr/local/dozor/smap/bin/monitor-snmp AO> AO> into s

Re: how to prevent memory leak in the sub agent

2005-02-14 Thread Robert Story
On Mon, 24 Jan 2005 22:12:07 -0800 (PST) sharath wrote: SR> if i bring up my agent and kill it immediately, the SR> valgrind report says 44 bytes lost. SR> SR> ==13825== LEAK SUMMARY: SR> ==13825==definitely lost: 44 bytes in 5 blocks. SR> SR> if i send requests to my agent the the loss goes

Re: how to prevent "Connection from callback: 1 on fd 10" from appearing on console??

2005-02-14 Thread Robert Story
On Mon, 24 Jan 2005 05:49:58 -0800 (PST) sharath wrote: SR> can any one tell me how i can redirect "Connection SR> from callback: 1 on fd 10" message which appears on SR> the screen for each request my subagent processes ??? SR> SR> where is this message coming from?? is there any way SR> to turn

Re: scalar_group

2005-02-14 Thread Robert Story
On Tue, 8 Feb 2005 15:31:58 -0800 (PST) Ming wrote: MY> I am trying to put a DB, like BDB for persistent data store. For group of MY> scalars that have a common parent, it would be a table with a single row in MY> BDB. Now for get/set operation into the table, I would like to use 1 DB MY> read/writ

Re: SNMP agent restart

2005-02-14 Thread Robert Story
On Tue, 8 Feb 2005 14:05:10 -0500 Struminski, wrote: SP> I am using version 5.2 on RedHat ES3. SNMP subagent (after killing agent) SP> produces message: SP> "Error: Failed to connect to the agentx master agent: Unknown host (No such SP> file or directory)" You should see this message every 15 seco

Re: Timeout with local connection to snmpd

2005-02-14 Thread Robert Story
On Mon, 14 Feb 2005 14:58:24 -0500 [EMAIL PROTECTED] wrote: CRC> session.peername = "localhost"; CRC> session.retries = 3; CRC> session.version = SNMP_VERSION_2c; CRC> session.community = "private"; CRC> session.community_len = strlen(session.community); CRC> CRC> ss = snmp

Timeout with local connection to snmpd

2005-02-14 Thread cnelson
I'm trying to validate that SourceForge bug 1016849 is no longer a problem -- I seem to be the only person who's seen it -- in v5.2 and I'm running into _other_ problems. I DLd and built and installed 5.2.1. I can snmpget remotely but my application which does local access to snmpd times out

Required snmptrapd.conf File

2005-02-14 Thread Nitin Duggal
  Hi all,   I am trying to run the snmptrap Daemon.   For that I am not able to configure snmptrapd.conf file .   I am getting the follwing Error while sending the Traps -   "The system cannot find the path specified."   Can somebody please send me the snmptrapd.conf File which is working

RE: Problems with hrStorageDescr

2005-02-14 Thread Oliver Musco
We use Gentoo Linux on HP DL380 G3/G4 Server (x86). > What platforms are you running on? Some have issues. > > >I have some servers with net-snmp (version 5.1.1) - my problem: I would > like > >to get the mounted partitions with the hrStorageDescr OID. On some > servers > >it works well but on o

RE: Problems with hrStorageDescr

2005-02-14 Thread Bruce Shaw
What platforms are you running on? Some have issues. >I have some servers with net-snmp (version 5.1.1) - my problem: I would like >to get the mounted partitions with the hrStorageDescr OID. On some servers >it works well but on other server I cant see the mounted partitons. This communication i

Re: Problems with hrStorageDescr

2005-02-14 Thread Oliver Musco
On the nux1 machine is net-snmp version 5.2 installed, on the other machine (with no problems) net-snmp version 5.1.1 - is that the problem? > Hi, > > I have some servers with net-snmp (version 5.1.1) - my problem: I would > like > to get the mounted partitions with the hrStorageDescr OID. On som

Problems with hrStorageDescr

2005-02-14 Thread Oliver Musco
Hi, I have some servers with net-snmp (version 5.1.1) - my problem: I would like to get the mounted partitions with the hrStorageDescr OID. On some servers it works well but on other server I cant see the mounted partitons. A example: monitor1 root # snmpwalk -v 2c -c public backup1 hrStorageDes

Required snmptrapd.conf File

2005-02-14 Thread Nitin Duggal
  Hi all,   I am trying to run the snmptrap Daemon.   For that I am not able to configure snmptrapd.conf file .   I am getting the follwing Error while sending the Traps -   "The system cannot find the path specified."   Can somebody please send me the snmptrapd.conf File which is workin

Extra '0' for 'snmpTrapOID' in generated code ?

2005-02-14 Thread Sridhar S
Hi, I am using Net-SNMP version 5.0.9. I need a clarification on code generated for 'snmpTrapOID' object. Following the part of the code generated for the coldStart trap. I have attached full code with the mail (coldStart.c). static oid snmptrap_oid[] = {1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0}; Accor