Now,i put all the net-snmp as a sub-directory in my project,it is too big to
the whole project(73.8MB,unrar files).
So,I want to cut the net-snmp so that suitable my project,I just want to keep
the least things(the net-snmp head files or something ) for my use.
give me some hints
I found something like this:--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3.
Spend less time writing and rewriting code and more time
I found something like this:
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):
# sec.name source community
com2sec local localhost public
com2sec mynetwork NETWORK/24
after the subagent loaded,is it feasible?--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of
1.it the subagent send it or the master agent send it ? or the two do the work?
2.Now I use polling strategy monitor the data and send the trap use the
subagent( at least from the code to say), is there another way to send the trap
quickly( reduce complicate middle steps ) when the device
Dave and all:
I want to know whether I can configure the snmpd.conf file via CLI,such as
write some settings into the file via LCI.and the commands.Thank you!--
This SF.net email is sponsored by
Make an app they
Dave and all:
I want to know whether I can configure the snmpd.conf file via CLI,such as
write some settings into the file via LCI.and the commands.Thank you!
com2sec local localhost public
#com2sec mynetwork NETWORK/24 COMMUNITY
com2sec local 172.19.50.0/24 public
com2sec local 0.0.0.0 public
# any IP is OK ?/:includetail
And how to set trap2sink receiver IP via CLI?/:includetail
/:includetail--
This SF.net email is sponsored by
Make an app they can't live
$EDITOR /etc/snmp/snmpd.conf
No,I mean,use the commands the net-snmp itself has,such as snmpset or
something,for example set a trap receiver IP,or delete a IP from the
snmpd.conf,is it feasible ???--
This SF.net
On 11 August 2010 11:36, Alexander King new...@foxmail.com wrote:
I use the command mib2c -S cache = 10 -c mib2c.iterate.conf
Please re-read my earlier message.
You do *NOT* specify the cache timeout on the mib2c command line.
Either use -S cache=1 or nothing at all
No other choice will make
Hi,
Like previous mails,I got the generated code use mib2c -S cache=-1 -c
mib2c.iterate.conf ,but I got NetsnmpCachefree type comflict problem,in my
uit.c file, I deleted the int return type keyword before the XXXcachefree
function, then the compiling wrong cleared, it make me very
A very strange problem(about the code structure when set mib2c -S cache=0)
When my uit.h file is something like this:
[SKIP]
void initialize_table_hostInterFCTable(void);
Netsnmp_Node_Handler hostInterFCTable_handler;
Netsnmp_First_Data_Point hostInterFCTable_get_first_data_point;
Thank you all kind man!
I will do my best get a prototype the way Dave teaching me ASAP.
Also, I thought -1 was the value for load every time.
I saw the letter later Dave's wrote back,is it the meaning use mib2c -S
cache=-1 -c mib2c.iterate.conf uit can get the really data on the
Hi Dave and All:
Send trap problem was fixed,use a new routine.Thank you!
snmp_alarm_register(5, /* seconds */
0, /* repeat (every 10 seconds).here,the value is 0,can send
the trap immediately! */
send_uitJBODPowerATraps_trap, /* our callback
() get data periodically( or cyclic ) problem
On 3 August 2010 09:04, Alexander King new...@foxmail.com wrote:
I want to the init_uit routine can get data periodically
The init_xxx routine is called *once* to set up the module,
when the agent first starts That's what the word initialise means
On 3 August 2010 10:34, Yongting Lin lyongt...@casachina.com.cn wrote:
As in this situation, can register a peridoical alarm to monitor the
condition, and send traps if condition changed? or project-specified code(A
daemon in pratical program) act as a subagent to snmpd, and invokde
Hi Dave:
I can hardly caught you what your meaning about Try registering a routine
using snmp_register_callback(),I am sorry,I read the vacm_conf.c file
wholely,I found nothing I need,yes, I am nothing on it.
In my prototype snmptrapd ,I implemented send trap routine like follows:
Hi Dave and all:
In my project ,I want to call sendtempJBODTempTrap() in init_uit(),but the the
program program interrupt at the sentence as follow:
[SKIP]
struct jBODTempTable_entry *jBODTempTable_head,*tempJBODTemp; /* */
/* create a new row in the (unsorted) table */
struct
: Dave Shieldd.t.shi...@liverpool.ac.uk;
Date: Tue, Jul 27, 2010 05:16 PM
To: Alexander Kingnew...@foxmail.com;
Cc: net-snmp-usersnet-snmp-users@lists.sourceforge.net;
Subject: Re: When I want to send trap the routine cannot run
On 27 July 2010 09:58, Alexander King new...@foxmail.com
Hi all,
I compiled the net-snmp-5.4,net-snmp-5.6 edition,use ./configure,make command
in CLI,and I got error like this:
helpers/.libs/instance.o helpers/.libs/mode_end_call.o
helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o
helpers/.libs/read_only.o
I got a another error.
gcc -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE -o .libs/snmpd
.libs/snmpd.o -Wl,-E -Wl,-rpath
I compiled the subagent into the snmpd,but I got the error like this:
gcc -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE
/bin/sh ../libtool --mode=link gcc -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT
-D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE -o snmpd snmpd.lo
-L../snmplib/.libs
some error like this:
.libs/snmp_perl.o
snmp_perl.c:1:20: error: EXTERN.h: No such file or directory
snmp_perl.c:2:18: error: perl.h: No such file or directory
snmp_perl.c:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘*’ token
snmp_perl.c:10: error: expected ‘)’ before
Your meaning is the DisMan can deal with the table objects monitor,can you give
me a example?
and how the sentv2trap deal with when the monitor object is one column of the
row?
That is to say,How I can mapping the data in the send_uitUPSTraps_trap( void )
function,especially the
-- Original --
From: Dave Shieldd.t.shi...@liverpool.ac.uk;
Date: Sat, Apr 24, 2010 04:52 PM
To: Alexander Kingchenyapu1...@qq.com; Mike
Ayersmike_ay...@tva.tvworks.com;
Cc: net-snmp-usersnet-snmp-users@lists.sourceforge.net;
Subject: Re: send a trap
http://wwwsnmp.cs.utwente.nl/ietf/mibs/validate/
http://www.muonics.com/Tools/smicheck.php
The two websites can check MIB files online,I test it,it is very convenient,the
first website can choice the Severity level(1-Most tolerant,6-Most strict).
I cannot find where the check tool smilint is
...@qq.com;
Cc: net-snmp-usersnet-snmp-users@lists.sourceforge.net;
Subject: Re: Online MIB check tools --share with you!
On 10 May 2010 09:31, Alexander King chenyapu1...@qq.com wrote:
http://wwwsnmp.cs.utwente.nl/ietf/mibs/validate/
I cannot find where the check tool smilint is wrong,it just
Hi :
1. Recently,I wanted to install the net-snmp-5.5 in my newest updated
Ubuntu10.04,but I got this wrong information:
I got this error information:
[SKIP]
cm.o int64.o read_config.o pkcs.o snmp_debug.o tools.o snmp_logging.o
text_utilsdefault_store.o snmp_alarm.o
Hi Dave and ALL:
1. Recently,I wanted to install the net-snmp-5.5 in my newest updated
Ubuntu10.04,but I got this wrong information:
[SKIP]
cm.o int64.o read_config.o pkcs.o snmp_debug.o tools.o snmp_logging.o
text_utils
Hi Dave and All:
it is a long time no see. :)
1.where I can fill with the warning information when the trap send?
2.If the trap OBJECTS is a scalar,I can configure snmpd.conf,use DisMan
monitor the value,and send trap,The NOTIFICATION-TYPE defination is not
necessary,is it right?
But
Yes,Just send your problem to the list,if I can do it,I will be deal with it
for you,take a deep breath,and type your problem down.
BTW,My OS is some kind of a Linux-like kernel,have a lot of difference from
your xBSD system.
Anyway,just send your problem to the list
Hi Dave and all:
1. How to use the command 'snmptranslate' get all the OIDs defined in my
private MIB?
2. I printed the snmpd(5).conf the piece of something about 'Active Monitoring'
for my own use. the manual is helpful.
there is a problem.diskTable is a table included many scalars about
, Alexander King chenyapu1...@qq.com wrote:
The initializing had done.I use function snmp_alarm_register() send the
trps each time at a predetermined time period(10 seconds, or 30 seconds).
But,I want to send traps like this:
3.just send it;
Call the routine sendXxxTrap()
(as generated
Hi Dave and All:
The initializing had done.I use function snmp_alarm_register() send the trps
each time at a predetermined time period(10 seconds, or 30 seconds).
But,I want to send traps like this:
1.when the value changed;
2.when the value is higher or lower than a specific value;
*/
meaning?
On 1 February 2010 03:33, Alexander King new...@foxmail.com wrote:
int
send_fcPorttrap_trap( void )
{
??? netsnmp_variable_list? *var_list = NULL;
??? oid fcPorttrap_oid[] = { 1,3,6,1,4,1,30901,2090,2092,0,1 };
??? oid fcPort_oid[] = { 1,3,6,1,4,1,30901,2090,7000,2,1,2,1,1,1
initializing what is the /* insert index here */
meaning?
On 1 February 2010 09:45, Alexander King new...@foxmail.com wrote:
the snmpd daemon auto termination problem unsolved by now yet.
Please check your use of snmp_varlist_add_variable().
In particular, pay very careful attention
I really think it is a very junior problem.the question much clear like below:
int
send_fcPorttrap_trap( void )
{
netsnmp_variable_list *var_list = NULL;
oid fcPorttrap_oid[] = { 1,3,6,1,4,1,30901,2090,2092,0,1 };
oid fcPort_oid[] = { 1,3,6,1,4,1,30901,2090,7000,2,1,2,1,1,1, /*
You need some modifies. I installed net-snmp under default settings
Put the config file /usr/local/share/snmp/
use /usr/local/sbin/snmpd -C -c /usr/local/share/snmp/snmpd.conf -M
/usr/local/share/snmp/mibs/ via CLI start your snmpd routine
-- Original
-- Original --
From: Dave Shieldd.t.shi...@liverpool.ac.uk;
Date: Tue, Jan 26, 2010 05:54 PM
To: Alexander Kingchenyapu1...@qq.com;
Cc: net-snmp-usersnet-snmp-users@lists.sourceforge.net;
Subject: Re: when snmpwalk query my private trap OID the snmpd routine
auto
termination
2010/1/27 Alexander King chenyapu1...@qq.com:
I checked the handler function on systemJBODNumber and systemStatus,
objectively speaking,I hadnot found something apparently wrong contrast
to the other object handler function.I will check it more carefully again
later
Alexander King new...@foxmail.com:
You also need to look again at how Counter64 values are handled in the
Net-SNMP agent. ? Hint:? It's not a simple long or long long variable.
I did this:
and use uint64_t in my c source code,is it right?
No.
Please look at how Counter64 objects are handled
the snmpd routine auto
termination
2010/1/26 Alexander King chenyapu1...@qq.com:
I attached the full MIB file by attachment,
I do not intend mail you the source code files.
If I don't have the source code, I cannot test whether
this module crashes the agent.
I do not have the time
auto
termination
2010/1/25 Alexander King chenyapu1...@qq.com:
1. I define a completed MIB file(included scalars,tables,traps),
and make it right.
How did you check that the MIB file was right?
What validation tools did you use?
Perhaps if you posted the full MIB file,
we might be able
auto
termination
On 23 January 2010 05:33, Alexander King chenyapu1...@qq.com wrote:
But I do not know how to implement the trap in the MIB file
Implementing a trap means writing code to construct and send the trap,
and invoking this at the appropriate time.
This is handled (at least in part
Hi:
when the MG-soft query my private entry
.1.3.6.1.4.1.30901.2090.7000.2.1.3.0 the snmpd routine auto termination itself
the OID .1.3.6.1.4.1.30901.2090.7000.2.1.3.0 is trapTestingTrapOne.0 in the
trap testing MIB file.
sys-man mibs # snmptranslate -Of
-snmp-users@lists.sourceforge.net;
Subject: Re: when snmpwalk query my private trap OID the snmpd routine auto
termination
2010/1/22 Alexander King chenyapu1...@qq.com:
when the MG-soft query my private entry
.1.3.6.1.4.1.30901.2090.7000.2.1.3.0 the snmpd routine auto termination
itself
the OID
Yes,you need perl module support.
The Perl Perl grammar parser can recognize the generator tool scripts,it can
make the scripts analysis your mib file and generate the code files.
just install it!
http://win32.perl.org/wiki/index.php?title=Main_Page
Dave,I really think it is.
Hi Dave:
2010/1/21 Alexander King chenyapu1...@qq.com:
sys-man snmp # /usr/local/sbin/snmpd -f -L
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Can anybody tell me where maybe I am wrong?
This error message tells you
sys-man sbin # ./snmpd -f -L -c /usr/local/share/snmp/mibs/snmpd.conf
/usr/local/share/snmp/mibs/snmpd.conf: line 62: Error: example config NETWORK
not properly configured
Turning on AgentX master support.
/usr/local/share/snmp/mibs/snmpd.conf: line 448: Warning: Unknown token: mibs.
NET-SNMP
sys-man sbin # ./snmpd -f -L -c /usr/local/share/snmp/mibs/snmpd.conf
/usr/local/share/snmp/mibs/snmpd.conf: line 62: Error: example config NETWORK
not properly configured
Turning on AgentX master support.
/usr/local/share/snmp/mibs/snmpd.conf: line 448: Warning: Unknown token: mibs.
NET-SNMP
Hi Dave and all:
I got the orders define the v2 trap oid like this
systemNumbertrap NOTIFICATION-TYPE
OBJECTS { systemNumber }
STATUS current
DESCRIPTION This is just a demo
::= { trapTesting 0 51898 }
[SKIP]
Via CLI I got this error:
sys-man snmp # /usr/local/sbin/snmpd -f -L
Warning:
: Tue, Jan 19, 2010 04:11 PM
To: Alexander Kingchenyapu1...@qq.com;
Cc: net-snmp-usersnet-snmp-users@lists.sourceforge.net;
Subject: Re: ./ snmptrapd –d –f –Lo problem
2010/1/19 Alexander King chenyapu1...@qq.com:
I used the './ snmptrapd ¨Cd ¨Cf ¨CLo' in CLI,but I got something like
Dave and all:
I integrated the scalars,a table,and some traps(belong to two parent oids)
into one file uit.c,uit.h,use
./configure --with-mib-modules=uit ;make ;make install,my code is OK,at
least no error in my processing
But I use Mg-soft walk the remote routine,when the browser
I used the './ snmptrapd –d –f –Lo' in CLI,but I got something like this:
(at last the snmptrapd routine auto termination itself )
Received 64 bytes from TCP: [0.0.0.0]:705
: 01 12 00 00 0E 00 00 00 00 00 00 00 69 A9 28 0Fi.(.
0016: 2C 00 00 00 C8 39 01 00 00 00 00
Hi Dave and ALL:
2010/1/11 Alexander King new...@foxmail.com:
If I do not use the same parent OID,how do I distinguish the
notification entries belong to?
What do you mean by this?
If there is management information associated with a notification,
this would typically be listed
akldfjajl;djj
UIT-TRAP-MIB.mib
Description: Binary data
UIT-NOTIFICATION-MIB.mib
Description: Binary data
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class
problems)
2010/1/12 Alexander King new...@foxmail.com:
and more,i decide to test the v1 and v2 trap prototype,but I got two mib
files use the same template(defined by myself too),UIT-TRAP-MIB.mib and
UIT-NOTIFICATION-MIB.mib
OK - first thing. Forget about UIT-TRAP-MIB.
It's a bogus mixture
try :snmpwalk in CLI
I ususlly use 'snmpwalk -v2c -c public localhost' to get all the inbuilt OID
information.
-- Original --
From: Peyush Kumarpeyush.ku...@gmail.com;
Date: Mon, Jan 11, 2010 02:17 PM
To:
2010/1/11 Alexander King chenyapu1...@qq.com:
I define the trap entries in the same mib file like this:
controllerInfo OBJECT IDENTIFIER ::= { systeminfoController 1 }
systemNumber OBJECT-TYPE
SYNTAX DisplayString( SIZE( 0..256 ) )
ACCESS read-only
Hi All:
I define the trap entries in the same mib file like this:
controllerInfo OBJECT IDENTIFIER ::= { systeminfoController 1 }
systemNumber OBJECT-TYPE
SYNTAX DisplayString( SIZE( 0..256 ) )
ACCESS read-only
STATUS current
DESCRIPTION
-- Original --
From: astal vistaastal.vista...@gmail.com;
Date: Thu, Jan 7, 2010 06:15 PM
To: 飞飞new...@foxmail.com;
Subject: Re: SNMP HELP
Hi,
Thank you.
#snmpget -OvQ -c public -v 1 localhost
enterprises.ucdavis.systemStats.ssCpuIdle.0
with
62 matches
Mail list logo