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
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/
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
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,
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
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
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
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
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
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
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
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
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
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
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" &
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
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
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
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
19 matches
Mail list logo