how to cut net-snmp in order to suitable my project?

2010-10-18 Thread Alexander King
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

what is the community meaning?

2010-10-13 Thread Alexander King
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

what is the community meaning?

2010-10-13 Thread Alexander King
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

Can the master agent bypass the subagent and get all the data definited by the subagent???

2010-08-26 Thread Alexander King
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

About the trap sending problems

2010-08-26 Thread Alexander King
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

How to configure snmpd.conf file via CLI?!

2010-08-17 Thread Alexander King
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

How to configure snmpd.conf file via CLI?!

2010-08-17 Thread Alexander King
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

How to set trap2sink receiver IP via CLI?

2010-08-17 Thread Alexander King
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

Re: How to configure snmpd.conf file via CLI?!

2010-08-17 Thread Alexander King
$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

Re: net-snmp cache timeout setted but it didnot work!

2010-08-11 Thread Alexander King
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

What is this OID?a very strange,long OID problem.

2010-08-10 Thread Alexander King
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)

2010-08-09 Thread Alexander King
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;

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-06 Thread Alexander King
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

net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
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

Fw:Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
() 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

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
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

send trap when I want to trigger it need help!

2010-07-29 Thread Alexander King
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:

When I want to send trap the routine cannot run

2010-07-27 Thread Alexander King
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

Re: When I want to send trap the routine cannot run

2010-07-27 Thread Alexander King
: 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

/usr/local/lib/perl5/5.10.1/x86_64-linux/CORE/libperl.a: could not read symbols: Bad value

2010-07-09 Thread Alexander King
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

./.libs/libnetsnmpagent.so: undefined reference to `boot_DynaLoader'

2010-07-09 Thread Alexander King
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

what is the boot_DynaLoader function's use?

2010-07-09 Thread Alexander King
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

subagent Compilation error

2010-07-08 Thread Alexander King
/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

snmp compile error about snmp_perl.c

2010-07-08 Thread Alexander King
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

location the specify column in multiple rows

2010-07-06 Thread Alexander King
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

Re: send a trap and location the specify column in multiple rows(the sametable)

2010-07-02 Thread Alexander King
-- 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

Online MIB check tools --share with you!

2010-05-10 Thread Alexander King
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

Re: Online MIB check tools --share with you!

2010-05-10 Thread Alexander King
...@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

smilint just check SMIv2 option

2010-05-09 Thread Alexander King
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

Installation net-snmp5.5 wrong and smilint just check SMIv2 option

2010-05-06 Thread Alexander King
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

send a trap and location the specify column in multiple rows(the same table)

2010-04-23 Thread Alexander King
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

Re:RE: Re:RE: Re:RFC 4293 IPv6 default router lifetime SNMP get error

2010-04-07 Thread Alexander King
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

snmptranslate retrieve all OIDs and one of the scalars in one of the tables send trap

2010-03-19 Thread Alexander King
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

Re: How to send the traps in different way.

2010-03-10 Thread Alexander King
, 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

How to send the traps in different way.

2010-02-08 Thread Alexander King
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;

Re: trap initializing ----what is the /* insert index here */ meaning?

2010-02-01 Thread Alexander King
*/ 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

Re: trap initializing ----what is the /* insert index here */ meaning?

2010-02-01 Thread Alexander King
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

trap initializing ----what is the /* insert index here */ meaning?

2010-01-31 Thread Alexander King
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, /*

Re:----about net-snmp config files

2010-01-29 Thread Alexander King
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

Re: when snmpwalk query my private trap OID the snmpd routine auto termination

2010-01-27 Thread Alexander King
-- 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

about net-snmp 64bits data

2010-01-27 Thread Alexander King
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

Re: about net-snmp 64bits data

2010-01-27 Thread Alexander King
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

Re: when snmpwalk query my private trap OID the snmpd routine auto termination

2010-01-26 Thread Alexander King
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

Re: when snmpwalk query my private trap OID the snmpd routine auto termination

2010-01-25 Thread Alexander King
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

Re: when snmpwalk query my private trap OID the snmpd routine auto termination

2010-01-24 Thread Alexander King
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

when snmpwalk query my private trap OID the snmpd routine auto termination

2010-01-22 Thread Alexander King
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

Re: when snmpwalk query my private trap OID the snmpd routine auto termination

2010-01-22 Thread Alexander King
-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

Re:About MIB Creation using NET-SNMP...

2010-01-21 Thread Alexander King
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.

./snmpd -f -L -c /usr/local/share/snmp/mibs/snmpd.conf snmpd routine auto termination problem

2010-01-21 Thread Alexander King
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

./snmpd -f -L -c /usr/local/share/snmp/mibs/snmpd.conf problem

2010-01-20 Thread Alexander King
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

./snmpd -f -L -c /usr/local/share/snmp/mibs/snmpd.conf problem

2010-01-20 Thread Alexander King
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

v1 v2 trap oid define problem

2010-01-20 Thread Alexander King
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:

Re: ./ snmptrapd –d –f – Lo problem

2010-01-19 Thread Alexander King
: 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

use MG-soft walk the remote machine but the snmpd routine auto suspend

2010-01-18 Thread Alexander King
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

./ snmptrapd –d –f –Lo p roblem

2010-01-18 Thread Alexander King
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

Re: Define Trap mib file and generate Trap codes problem(v1, v2 testing prototype problems)

2010-01-12 Thread Alexander King
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

sorry,the attachments

2010-01-12 Thread Alexander King
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

Fw:Re: Define Trap mib file and generate Trap codes problem(v1, v2 testing prototype problems)

2010-01-12 Thread Alexander King
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

Re:InBuilt OIDs supported by snmpd

2010-01-11 Thread Alexander King
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:

Re: Define Trap mib file and generate Trap codes problem

2010-01-11 Thread Alexander King
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

Define Trap mib file and generate Trap codes problem

2010-01-10 Thread Alexander King
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

Re: SNMP HELP

2010-01-07 Thread Alexander King
-- 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