Re: how to prevent logging in /var/log/snmpd.log

2009-11-22 Thread Tewen Hsieh
-- From: Tewen Hsieh [mailto:tewen.hs...@itas.com.tw] Sent: Friday, November 20, 2009 10:49 AM To: net-snmp-coders@lists.sourceforge.net Subject: how to prevent logging in /var/log/snmpd.log Hi all, as title~ How to disable logging in /var/log

Re: how to prevent logging in /var/log/snmpd.log

2009-11-20 Thread Tewen Hsieh
, 2009 1:53 PM Subject: RE: how to prevent logging in /var/log/snmpd.log Use -Ln option to disable the log. Regards, Raja Singh -- From: Tewen Hsieh [mailto:tewen.hs...@itas.com.tw] Sent: Friday, November

how to prevent logging in /var/log/snmpd.log

2009-11-19 Thread Tewen Hsieh
Hi all, as title~ How to disable logging in /var/log/snmpd.log? In fact I want to know how to completely disable logging function in net-snmp. Thanks in advance. BR, -- Let Crystal Reports handle the reporting - Free

Re: Could anyone give me some suggestions?

2009-08-18 Thread Tewen Hsieh
om.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Tuesday, August 18, 2009 4:42 PM Subject: Re: Could anyone give me some suggestions? > 2009/8/18 Tewen Hsieh : >> So in your opinion, there may be a bug in the old version? >> Tryi

Re: Could anyone give me some suggestions?

2009-08-18 Thread Tewen Hsieh
. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Tuesday, August 18, 2009 4:42 PM Subject: Re: Could anyone give me some suggestions? > 2009/8/18 Tewen Hsieh : >> So in your opinion,

Re: Could anyone give me some suggestions?

2009-08-18 Thread Tewen Hsieh
template will be helpful? Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Tuesday, August 18, 2009 3:26

Re: Could anyone give me some suggestions?

2009-08-17 Thread Tewen Hsieh
#x27;s a net-snmp 5.1.1's bug? Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw ----- Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Monday,

Re: Could anyone give me some suggestions?

2009-08-17 Thread Tewen Hsieh
wan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Wednesday, June 10, 2009 3:52 PM Subject: Re: Could anyone give me some suggestions? > 2009/6/10 Tewen Hsieh : > >>

return NULL in get_ routine cause segmentation fault?

2009-08-17 Thread Tewen Hsieh
Hi all, I used mib2c.iterate_access.conf to generate my template code. (net-enmp 5.1.1) I find that if it return NULL in get_ routine, there will be a segmentation fault. Is it a normal result? If it can *not* return NULL in get_ routine, how can I indivate there's an error occured when gettin

Re: Could anyone give me some suggestions?

2009-06-09 Thread Tewen Hsieh
. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Magnus Fromreide" To: "Tewen Hsieh" Cc: Sent: Wednesday, June 10, 2009 4:51 AM Subject: Re: Could anyone give me some suggestions? > O

Re: Could anyone give me some suggestions?

2009-06-09 Thread Tewen Hsieh
s.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Tuesday, June 09, 2009 7:04 PM Subject: Re: Could anyone give me some suggestions? 2009/6/9 Tewen Hsieh : > does 5.1.1 also support "mib2c -Scache=1 -c mib2c.iterate.conf "?

Re: Could anyone give me some suggestions?

2009-06-09 Thread Tewen Hsieh
716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Tuesday, June 09, 2009 3:08 PM Subject: Re: Could anyone give me some suggestions? > 2009/6/9 Tewen Hsieh : >> My key question is how to

Re: Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
e - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Monday, June 08, 2009 8:33 PM Subject: Re: Could anyone give me some suggestions? > 2009/6/8 Tewen Hsieh : >> Loading the internal cache in the 'init_xxx()' routine is not fisable for >>

Re: Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Monday, June 08, 2009 7:27 PM Subject: Re: Could anyone give me some suggestions? 2

Re: Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
el:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: Amol Anil Malokar To: Tewen Hsieh Sent: Monday, June 08, 2009 6:41 PM Subject: RE: Could anyone give me some suggestions? hi , check with data structure ; "netsnmp_table_registr

Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
Hi all, I used "mib2c.iterate_access.conf" to generate my template code for XXX table. In XXXTable_get_first_data_point(), I use XXXTable_createStructure() to get external data and store them in a local structure when this table is accessed at the first time. (The external data are all PHY regis

Re: Does "killall -HUP snmpd" unload dynamic module?

2009-06-04 Thread Tewen Hsieh
tw - Original Message - From: "Magnus Fromreide" To: "Dave Shield" Cc: "Tewen Hsieh" ; Sent: Wednesday, June 03, 2009 6:14 AM Subject: Re: Does "killall -HUP snmpd" unload dynamic module? > On Tue, 2009-06-02 at 08:42 +0100, Dave Shield wrote

Re: Does "killall -HUP snmpd" unload dynamic module?

2009-06-02 Thread Tewen Hsieh
75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Tuesday, June 02, 2009 3:42 PM Subject: Re: Does "killall -HUP snmpd" unload dynam

Re: Does "killall -HUP snmpd" unload dynamic module?

2009-06-01 Thread Tewen Hsieh
Hi Wes Hardaker, Thanks for your reply. Could you help me to understand another question? If there is malloc( ) in my dynamic module, does it cause any memory leak problem when I use "killall -HUP snmpd" to reload config file? Is the dynamic allocated memory freed by OS automatically? Or I shoul

Re: create thread in a reloadable module for receiving fifo messages

2009-05-12 Thread Tewen Hsieh
Hi Bart, Thank you very much. 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Bart Van Assche" To: "Tewen Hsieh" Cc: Sent: Tuesday, May 12, 2009

Re: create thread in a reloadable module for receiving fifo messages

2009-05-11 Thread Tewen Hsieh
-called manager thread mean? Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Bart Van Assche" To: "Tewen Hsieh" Cc: Sent: Monday, May 11, 2009

Re:create thread in a reloadable module for receiving fifo messages

2009-05-10 Thread Tewen Hsieh
Hi all, I find an easy way to prevent from creating mutiple identical threads. That is I use an environment variable to decide wheather creating a new thread or not. Therefore I can just create one thread even I reload the module many times. But there is still a question in my scenario. That is

create thread in a reloadable module for receiving fifo messages

2009-05-08 Thread Tewen Hsieh
Hi, as title, I want to ***create a thread in a reloadable module*** for receiving fifo messages which will indicate what trap to be generated and sent. But I also need to use "killall -HUP snmpd" to reload snmpd.conf. The dynamic module will be reloaded again and again, and the thread seems to b

Re: how to disable "all" traps including coldstart

2009-05-07 Thread Tewen Hsieh
iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw - Original Message - From: "Dave Shield" To: "Tewen Hsieh" Cc: Sent: Thursday, May 07, 2009 7:27 PM Subject: Re: how to disable &

how to disable "all" traps including coldstart

2009-05-07 Thread Tewen Hsieh
Hi, as title, How to disable "all" traps including coldstart trap? In config phase, I have configured my snmpd as a mini agent. Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:tewen.hs...@itas.com.tw---

How to know a net-snmp api belongs to which library?

2009-05-04 Thread Tewen Hsieh
Hi all, as title, How can I know a net-snmp api belongs to which library? ex:I want to know "snmp_set_var_objid" belongs to which library (libnetsnmp.so, libnetsnmpagent.so,...)? Is there any document or method to know it? Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinch

missing notifyView parameter

2009-04-20 Thread Tewen Hsieh
Hi, When I use "killall -HUP snmpd" to reload snmpd.conf, it shows that "/home/snmpd.conf: line 10: Error: missing notifyView parameter" . Could anyone explain this error? What does it indicate? And how can I resolve it? Thanks, -

Does "killall -HUP snmpd" unload dynamic module?

2009-04-20 Thread Tewen Hsieh
Hi, As title, does "killall -HUP snmpd" unload dynamic module? Thanks, -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (

about /var/net-snmp/snmpd.conf

2009-03-11 Thread Tewen Hsieh
Hi, I use following config options to compile my net-snmp agent: ./configure --disable-debugging --enable-mini-agent -- without-kmem-usage --disable-mibs --disable-mib-loading --disableapplications --disable-manuals --disable-scripts --with-cflags=-Os -- without-openssl –with-out-transports=TCP,U

Is there any method?

2008-08-22 Thread Tewen Hsieh
Hi all, Is there any method to add/delete com2sec entries (or trapsink/trap2sink entries) dynamically "without" restarting snmpd? I use snmpd_store_config( ) to write com2sec (trapsink) entries into /var/net-snmp/snmpd.conf. Then I must send -HUP to snmpd to restart it. All my new com2sec (tra

Could I get the index value in get_xxx() and set_xxx()?

2008-07-30 Thread Tewen Hsieh
Hi all, I used mib2c.iterate_access.conf to generate template code. Could I get the index value in get_xxx() and set_xxx()? Thanks, -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --

duplicated register_app_config_handler for "com2sec", "trapsink" and "trap2sink"

2008-07-14 Thread Tewen Hsieh
Hi all, as title~ Could I also register_app_config_handler for "com2sec", "trapsink" and "trap2sink" in myself's module? I tried to parse snmpd.conf and store the parsed information in myself's data structure. After reloading snmpd.conf(update_config()), the agent won't send trap and have no

Can the same community map to different security names which belong to different groups(with different privilege)?

2008-07-13 Thread Tewen Hsieh
Hi, Can the same community map to different security names which belong to different groups(with different privilege)? for example: com2seclocal 192.168.100.100 public com2secmynetwork 192.168.100.200 public group MyRWGroup v1

Re: configure manager's ip, trap receiver's ip and community at runtime via external application

2008-07-07 Thread Tewen Hsieh
ld be an example in net-snmp. Could someone tell me where I can find such a parsing example in net-snmp for reference? Thanks, 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Messa

Re: configure manager's ip, trap receiver's ip and community at runtime via external application

2008-07-07 Thread Tewen Hsieh
public 162 v1 永鈦鑫 iTAS Corporation 新竹市水源街75號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen

about link up/down trap

2008-07-07 Thread Tewen Hsieh
Hi, I implemented link up/down trap by myself. I downloaded the example code "notification.c" from http://www.net-snmp.org/dev/agent/notification_8c-example.html, and modified it. Every short duration (maybe 10 secs) my callback function checks the operation status to decide whether to send a l

configure manager's ip, trap receiver's ip and community at runtime via external application

2008-07-02 Thread Tewen Hsieh
Hi, as title~ If I want to configure(set/get/delete) manager's ip, trap receiver's ip and community at runtime via external application (CLI), how can I do that? My thought is that there must be a data structure(s) in net-snmp to store manager's ip/port, trap receiver's ip/port and community/p

Re: about disman/event-mib module

2008-07-02 Thread Tewen Hsieh
號 NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, July 02, 2008 4:16 PM Subject: R

about disman/event-mib module

2008-07-02 Thread Tewen Hsieh
Hi, If I implement ifTable by myself, will disman/event-mib module still work fine? I mean I have changed the default ifTable module (use myself's api to get interfaces' status), will disman/event-mib module still auto detect linkup/linkdown and send traps?Or I should implement send linkup/linkd

Re: multiple indexes

2008-06-27 Thread Tewen Hsieh
] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Friday, June 27, 2008 6:03 PM Subject: Re: multiple indexes > 2008/6/27 Tewen Hsieh <[EMAIL PROTECTED]>: >> That is how agent ma

Re: multiple indexes

2008-06-27 Thread Tewen Hsieh
,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Friday, June 27, 2008 4:24 PM Subject: Re: multiple i

multiple indexes

2008-06-26 Thread Tewen Hsieh
Hi, I use mib2c with mib2c.iterate_access.conf to generate template code. In a usual case, a table just has one integer index value to identify each row. ex: when agent receive a request with oid: 1.3.6.1.4.1.7788.100.1.idx, it can use idx to find the correct row and get data. idx ip

Re: questions about ./configure and dlmod

2008-06-24 Thread Tewen Hsieh
:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Magnus Fromreide" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 24, 2008 2:37 PM Subject: Re: questions about ./configure and dlmod > On Tu

Re: questions about ./configure and dlmod

2008-06-23 Thread Tewen Hsieh
. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Magnus Fromreide" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 24, 2008 12:11 PM Subject: Re

questions about ./configure and dlmod

2008-06-23 Thread Tewen Hsieh
Hi, I have two questions: Question 1: If I use following command in ./configure phase, evreythins works fine. ./configure --prefix=/not/usr/ --with-install-prefix=/tmp But if I use following command in ./configure phase, scalars of myself's dynamic loadable module will response with "GENERIC E

Re: about remove all default modules

2008-06-23 Thread Tewen Hsieh
From: "Magnus Fromreide" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 24, 2008 3:06 AM Subject: Re: about remove all default modules > On Mon, 2008-06-23 at 09:58 +0800, Tewen Hsieh wrote: >> Hi Dave, >> >>

about dlmod module

2008-06-23 Thread Tewen Hsieh
Hi, Because I want to install net-snmp on embedded system, I must downsize SNMP agent. I use "configure --enable-mini-agent" to install net-snmp, but dlmod module seems not be compiled into agent. So "configure --enable-mini-agent" will compile net-snmp without dlmod module? How can I resolve th

Re: about remove all default modules

2008-06-22 Thread Tewen Hsieh
新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 10

how to set manager's IP address and community in code on embedded system

2008-06-22 Thread Tewen Hsieh
Hi, I want to install net-snmp on embedded system. So .conf file is never needed. I want to set/get manager's IP address and community in running time via CLI. Is there any API can get/set manager's IP address and community in net-snmp? Or which data structure is used to store manager's IP address

Re: set function in template code generated from mib2c.iterate.conf

2008-06-18 Thread Tewen Hsieh
incerely, 永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PRO

set function in template code generated from mib2c.iterate.conf

2008-06-17 Thread Tewen Hsieh
Hi, as title, Question 1: I use configure file - mib2c.iterate.conf to generate template codes of a table. In the generated xxxTable_handler function, there are just two cases: MODE_GET and MODE_SET_RESERVE1. So I should implement set function in case MODE_SET_RESERVE1? Question 2: Because I al

about remove all default modules

2008-06-09 Thread Tewen Hsieh
Hi, as title, If I want to compile without all default modules, how can I do? Or I just can use ./configure --with-out-modules="xxx xxx xxx ..." which need to list all default modules? Is there an easier way to do this? I mean to compile without "all" default modules. Thanks, 永鈦鑫 iTAS C

compile without mibII/interfaces

2008-06-05 Thread Tewen Hsieh
Hi, I want to compile net-snmp-5.1.1 without mibII/interfaces module and implement ifTable by myself. So I use option "--with-out-mib-modules=mibII/interfaces" in configure phase. ex: ./configure --with-out-mib-modules=mibII/interfaces But when I make it, it showed following error messages: gcc

about igmp snooping MIB

2008-06-05 Thread Tewen Hsieh
Hi, I want to implement igmp snooping MIB. But there seems no standard igmp snooping MIB file. So igmp snooping doesn't have a standard Mib file? Thanks, 永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[

Re: perl module not installed

2008-06-03 Thread Tewen Hsieh
home/net-snmp-5.1.1-Lior/net-snmp-5.1.1/perl/SNMP/SNMP.pm /opt/montavista/pro/devkit/mips/mips2_fp_be/target/home/net-snmp-5.1.1/perl/SNMP/SNMP.pm /opt/montavista/pro/devkit/mips/mips2_fp_be/target/usr/lib/perl/5.8.4/SNMP.pm /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm 永鈦鑫

perl module not installed

2008-06-03 Thread Tewen Hsieh
Hi, I installed net-snmp-5.1.1 ./configure make make install When I used "mib2c -c mib2c.access_functions.conf xxx" to generate template code, it showed "perl module not installed". So I change to the net-enmp/perl directory and execute following commands: perl Makefile.PL make make install Bu

why no such name

2008-05-22 Thread Tewen Hsieh
Hi, I used mib2c to generate template codes of a table. I didn't add any code, and I just added printfs in each function of all generated c files. But when I used mib browser to get some information of the table, snmpd just responsed with no such name. And I even didn't see any function called

why undeclared

2008-05-21 Thread Tewen Hsieh
Hi, I am very new to mib implementation. I installed net-snmp-5.4.1, and used mib2c to generate template codes of VDSL-LINE-MIB.txt. But I got an undelcared error when I compile it into agent. Is this a normal case? I mean is it possible that the generated codes are incomplete(have error)? An

--with-ldflags and --with-libs

2008-05-20 Thread Tewen Hsieh
Hi, I have checked ./configure --help. But I still don't know clearly what's the difference between --with-ldflags and --with-libs. Could someone give me an example to understand better? For example: If I have a library, libxxx.a, at /path/to/lib. And my header files were located at /path/to/

Re: about makefile of dynamic module

2008-05-19 Thread Tewen Hsieh
ot;. So I think there should be a template makefile can be referenced. Thanks, 永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Magnus Fromreide&

about makefile of dynamic module

2008-05-19 Thread Tewen Hsieh
Hi, as title~ I am not familiar with writing makefile. There is just a scalar sample can be found at net-snmp tutorials(http://net-snmp.sourceforge.net/wiki/index.php/Tutorials). If I want to write a dynamic loadable object of a table (ex: ifTable), how can I write the makefile? Is there a make

Re: dlmod error

2008-05-19 Thread Tewen Hsieh
, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Monday, May 19, 2008 4:30 PM Subject: Re: dlmod error

Re: dlmod error

2008-05-19 Thread Tewen Hsieh
永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]&g

Re: about net-snmp-5.1.1 cross compile

2008-05-19 Thread Tewen Hsieh
NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Monday, May 19, 2008 4:3

There is no mib2c.mfd.conf?

2008-05-19 Thread Tewen Hsieh
Hi, Is there no mib2c.mfd.conf in net-snmp-5.1.1? I have installed net-snmp-5.1.1, but I couldn't find mib2c.mfd.conf. Why? How can I generate template codes for a table(ex: iftable)? Thanks, iTAS Tewen 永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu

Re: dlmod error

2008-05-19 Thread Tewen Hsieh
r file to my target, and on my target step 9: cd / step 10: tar xvf net-snmp-target.tar iTAS Tewen 永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message ----- From: &

Re: dlmod error

2008-05-17 Thread Tewen Hsieh
ough to answer better. I also tried this, but still the same error. iTAS Tewen 永鈦鑫 iTAS Corporation 新竹科學園區工業東三路6號 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message ----- From: "Magnus Fromr

dlmod error

2008-05-14 Thread Tewen Hsieh
AS Tewen <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>&

about ./configure options

2008-05-14 Thread Tewen Hsieh
Hi, What is the difference between "--disable-shared" and "--with-ldflags=-Bstatic" in configure phase? I tried these two options, but it still asked me to install libcrypto.so.0.9.7. Even I used these two options at the same time, it still asked for libcrypto.so.0.9.7. I am really confused. In

net-snmp-5.1.1

2008-05-14 Thread Tewen Hsieh
Hi, I installed net-snmp-5.1.1 successfully. But I always got a "no such object"response no matter waht get request(ex: get sysDescr) I sent to snmpd. Is this a bug of net-snmp-5.1.1? Or I missed something? Thanks. I havied tried other versions (5.3.2), there is no this error. iTAS Tewen 永鈦鑫

dlmod error

2008-05-12 Thread Tewen Hsieh
Hi, When I loaded wpWlsCore.so and wpWlsBridge.so, I got following error: /not/usr/sbin> ./snmpd -f -L -DwpWlsCore,dlmod dlmod: register mib dlmod: dlmod_path: /not/usr//lib/snmp/dlmod dlmod: dlmod_create_module dlmod: dlmod_load_module wpWlsCoreMIB: /home/wpWlsCore.so dlopen failed: /home/wpWlsC

about net-snmp version 5.1.1

2008-05-12 Thread Tewen Hsieh
Hi, I just cross compile net-snmp-5.1.1. But when I use "snmpwalk -v 1 -c public localhost system", it only shows "End of MIB". What does it mean? I have tried other version (cross compile 5.3.2), it could send back a correct response. What's the difference in 5.1.1? Or I make a mistake in 5.1.1

about net-snmp-5.1.1

2008-05-12 Thread Tewen Hsieh
Hi, I just cross compile net-snmp-5.1.1. But when I use "snmpwalk -v 1 -c public localhost system", it only shows "End of MIB". What does it mean? I have tried other version (cross compile 5.3.2), it could send back a correct response. What's the difference in 5.1.1? Or I make a mistake in 5.1.1

net-snmp cross compile

2008-05-09 Thread Tewen Hsieh
indicate libcrypto.a is available? Thanks, iTAS Tewen <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>&

net-snmp cross compile

2008-05-09 Thread Tewen Hsieh
;>>>>>>>>>>>>>>>>>>> I think I have already seen the same problem, (I am also cross-compiling 5.1.1) end let me say that it is an hard Work and if your MIB has some (read-create) tables, you will not be able to implement. I think if y

net-snmp cross compile

2008-05-09 Thread Tewen Hsieh
Hi, I tried to cross compile net-snmp-5.1.1, but I failed. My steps were as following: step 1: ./configure --target=mips-linux --with-cc=mips2_fp_be-gcc --host=mips --with-endianness=big --prefix=/not/usr/ --with-install-prefix=/tmp step 2: make step 3: make install step 4: cd /tmp step 5: ta

configure error

2008-05-07 Thread Tewen Hsieh
Hi, I tried to compile a new module into snmp agent. But I failed. I listed my steps as following: 1. I use mib2c to generate tempalate code. ==> mib2c -c mib2c.mfd.conf vdslLineTable Then I got following files: vdslLineTable-README-FIRST.txt vdslLineTable-README-vdslLineTable.txt

I used the example downloaded from net-snmp official website, but there was an error!

2008-04-23 Thread Tewen Hsieh
Hi, I have checked my snmpd and libraries, they have the same versions (5.2.4). Is there any other reason to cause an error in the step 6? But I got an error in step 6. It showed "SNMP table: UCD-DLMOD-MIB::dlmodTable dlmodName dlmodPath

I used the example downloaded from net-snmp official website, but there was an error!

2008-04-21 Thread Tewen Hsieh
Hi, I want to write a dynamically loadable object. I downloaded the example (including: Makefile, NET-SNMP-TUTORIAL-MIB.txt, nstAgentPluginObject.h, nstAgentPluginObject.c) from net-snmp offical website. I did it step by step as following: Steps to test the shared object via runtime MIB configu