getUpTime Problem.

2005-07-03 Thread chinmay bhat
hi all, I have written a subagent where i want to get the System Up time.I have used the functionu_long myTime = netsnmp_get_agent_uptime();(I think this is the best way.) but the problem is the myTime value i am getting is 24678457, that is , Tue Oct 13 20:37:37 1970.but i dont think

Enteriprise or send_v2trap

2005-06-16 Thread chinmay bhat
i want to send an enterprise trap.So should i use send_enterprise_trap_vars() or is it ok if i use send_v2trap()? Is there any compulsion? regards Chinmay _ Test Your Memory and Win Amazing Prizes! http://adfarm.mediaplex.com/ad/

RE: problems running the tutorial examples

2005-06-14 Thread chinmay bhat
From: Ami Tabak <[EMAIL PROTECTED]> To: net-snmp-users@lists.sourceforge.net Subject: problems running the tutorial examples Date: Sat, 11 Jun 2005 22:57:39 +0300 hi Am trying to run the examples from the Dynamic Module Creation for the net-snmp agent tutorial. The tutorial was tried on both

Re: TRAP Newbies

2005-06-13 Thread chinmay bhat
From: Dave Shield <[EMAIL PROTECTED]> To: chinmay bhat <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies Date: Mon, 13 Jun 2005 09:37:23 +0100 On Fri, 2005-06-10 at 17:05, chinmay bhat wrote: > >> the netsnmp version i am using is,

Re: TRAP Newbies

2005-06-13 Thread chinmay bhat
It might be a syntax problem with the mib. Have you run smilint on the mib? I ran the smilint on my mib and it showed no errors, I changed my mib to SMIv2 and again tried compiling it with the mib2c.notify.conf still same problem, generates only .h file. by the way the mib2c.notify.conf

Re: TRAP Newbies

2005-06-12 Thread chinmay bhat
From: "chinmay bhat" <[EMAIL PROTECTED]> To: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies Date: Fri, 10 Jun 2005 21:35:24 +0530 From: "chinmay bhat" <[EMAIL PROTECTED]> To: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies

Re: TRAP Newbies

2005-06-10 Thread chinmay bhat
From: "chinmay bhat" <[EMAIL PROTECTED]> To: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies Date: Fri, 10 Jun 2005 17:42:58 +0530 From: "chinmay bhat" <[EMAIL PROTECTED]> To: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies

Re: TRAP Newbies

2005-06-10 Thread chinmay bhat
From: "chinmay bhat" <[EMAIL PROTECTED]> To: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies Date: Fri, 10 Jun 2005 15:05:52 +0530 From: Robert Story <[EMAIL PROTECTED]> Reply-To: net-snmp-users@lists.sourceforge.net To: "chinmay bhat" <[E

Re: TRAP Newbies

2005-06-10 Thread chinmay bhat
From: Robert Story <[EMAIL PROTECTED]> Reply-To: net-snmp-users@lists.sourceforge.net To: "chinmay bhat" <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies Date: Thu, 9 Jun 2005 18:17:42 -0400 On Thu, 09 Jun 2005 17:17:08 +0530 chinma

Re: TRAP Newbies

2005-06-09 Thread chinmay bhat
From: Robert Story <[EMAIL PROTECTED]> Reply-To: net-snmp-users@lists.sourceforge.net To: "chinmay bhat" <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net Subject: Re: TRAP Newbies Date: Tue, 7 Jun 2005 17:16:04 -0400 On Tue, 24 May 2005 22:50:22 +0530 chinmay

TRAP Newbies

2005-05-24 Thread chinmay bhat
Hello everybody, I have a mib something like, diskFull TRAP-TYPE ENTERPRISE comtek VARIABLES { sysDescr, diskModuleName, diskSystemName, diskPartitionUsed } -- STATUS mandatory for all Comtek VOS Agents DESCRIPTION "Disk system usage has reached or exceeded critical threshold. The configuation f

Re: NETSNMP newbies,Library Problem.

2005-05-24 Thread chinmay bhat
Oh, ok.That is possible. as i ahve only a single index i am using the function netsnmp_table_dataset_add_index(table_set, ASN_INTEGER); is that ok ? Note : it is working fine.. From: Dave Shield <[EMAIL PROTECTED]> To: chinmay bhat <[EMAIL PROTECTED]> CC: ne

NETSNMP newbies,Library Problem.

2005-05-17 Thread chinmay bhat
Hello friends, I have a mib table copiled using mib2c -c mib2c.create-dataset.conf MIBNODE. the auto generated code uses the function netsnmp_table_set_add_indexes(); and the g++ compiler gives a link time error: /agent/source/commonTables.cc:91: undefined reference to `netsnmp_table_set_add_index

Re: problem with table!! used mib2c.create_dataset.conf

2005-04-15 Thread chinmay bhat
You still haven't answered my original question. What is the exact link line run during the build process. I dont get ur question..Anyway i will edxplain you what i do? i have this agent file taken from the site.I have my mib compiled thraough mib2c compiler..I have got 2 .c and 2 .h files.I com

Re: problem with table!! used mib2c.create_dataset.conf

2005-04-13 Thread chinmay bhat
libraries i use are CFLAGS=-I. `net-snmp-config --cflags` BUILDLIBS=`net-snmp-config --libs` BUILDAGENTLIBS=`net-snmp-config --agent-libs`(Default netsnmp makefile) Thank you Chin From: Robert Story <[EMAIL PROTECTED]> Reply-To: net-snmp-users@lists.sourceforge.net To: "chinmay bhat" &

Re: problem with table!! used mib2c.create_dataset.conf

2005-04-11 Thread chinmay bhat
I some how seem to solved this problem. I used netsnmp_table_helper_add_indexes fuction instead of the other function. Hope it does the same function.Does it? thanks in advance Chin From: Robert Story <[EMAIL PROTECTED]> Reply-To: net-snmp-users@lists.sourceforge.net To: "chinmay bh

Re: problem with table!! used mib2c.create_dataset.conf

2005-04-05 Thread chinmay bhat
libsnmp.so.5.0.6 These are all standard libs if i am not wrong regards Chinmay From: Robert Story <[EMAIL PROTECTED]> Reply-To: net-snmp-users@lists.sourceforge.net To: "chinmay bhat" <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net Subject: Re: pro

problem with table!! used mib2c.create_dataset.conf

2005-03-31 Thread chinmay bhat
Hi all. I have one table with three columns I have taken the make file provided by the netsnmp.net and it is also compiling fine.But when i run the executable it gives me an error saying, -bash-2.05b$ ./agent ./agent: relocation error: ./agent: undefined symbol: netsnmp_table_set_add_indexes

accessing other mib variables inside the handler of annother mib variable?????

2005-03-21 Thread chinmay bhat
I have a problem. I have 2 mib variables say A and B. If a set comes on A and the A's handler is called by snmpd...Can i set the value of B from that A's handler? Is there any API's present for that? Or do i have to call systam("snmpset on B") from the handler.(Its a very bad way). Thanx in adv