Re:SNMP HELP

2010-01-07 Thread
I run the commands in CLI  on my machine below:
  
 snmpget -OvQ -c public  -v 1 localhost  
enterprises.ucdavis.systemStats.ssCpuIdle.0   
 *public*   *localhost* are in my machine.
 snmpwalk -OvQ -c public  -v 1 localhost  enterprises.ucdavis.memory
 memoy
 snmpwalk -Os -c public  -v 1 localhost  host.hrStorage.hrStorageTable
 disk data

  You need replace 'public' 'localhost' for your environment,whatever,it is 
work perfect in my machine.
  
 Is it right,Dave?
  
 Alex
  
  
  
 -- Original --
   From:  astal vistaastal.vista...@gmail.com;
 Date:  Thu, Jan 7, 2010 04:38 PM
 To:  net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 
 Subject:  SNMP HELP

  
I have configured net-snmp on RHEL-5.

I am very much confused with MIBs and OIDs.

now i am able to get the output.but
my requirement is...

I want to retrieve the CPU usage and Disk free usage SNMP agent.
I want to monitor one application that is running on SNMP agent.

how can i do that?

Can anyone help me in this regard.


Thank you.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

/:includetail--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Warning! five '-' does not conform to the comment rule in the net-snmp program !

2010-01-05 Thread
Thank you,Dave!U R right!
 
  
 -- 原始邮件 --
  发件人: Dave Shieldd.t.shi...@liverpool.ac.uk;
 发送时间: 2010年1月5日(星期二) 晚上11:06
 收件人: 飞飞chenyapu1...@qq.com; 
 抄送: net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 主题: Re: snmptranslate -IR -Tp reserved word problem

  
 2009/12/31 飞飞 chenyapu1...@qq.com:
 ---
 703 --nicSetting OBJECT IDENTIFIER ::= { systeminfoController 6 }
 704 
 705 --nicControllerA OBJECT IDENTIFIER ::= { nicSetting 1 }
 706 -
 /*Warning! five '-' does not conform to the comment rule in the net-snmp 
program   */
 707 --nicControllerB OBJECT IDENTIFIER ::= { nicSetting 2 }


That's where the problem lies.
Line 706 contains five dashes.

Delete one of these, and the MIB should parse correctly.

Dave--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmptranslate -IR -Tp reserved word problem

2010-01-04 Thread
Dear Dave, Mike and All:
  
 '--' work in a similar manner to the C-style comments is a perfect explaining.
  
 In my MIb(a very long .mib file) , the long '-' and the short '' 
just want to the mib file easy to read and simple for my boss to understand the 
mib file structure,so it is not a good idea because some specific reasons. I 
will use the good style you teaching me in my project now.Thank you.
   
 But I really think the reserved work problem in my mib has a another explain:
  
 Do the 'Space' and the 'Table' key between the myObject and 'OBJECT IDENTIFIER'
 have different effects on the current function? I replaced something between 
myObject and 'OBJECT IDENTIFIER' use 'Space'  then the command run is OK.
  
 I donot know why the reason is,but it is worked.
  
 In my country,the prommer ususlly use four 'Space' instead 'Table' key,it is 
so do I.
  
  
 Thank you.
  
 Alex
  -- Original --
  From:  Dave Shieldd.t.shi...@liverpool.ac.uk;
 Date:  Mon, Jan 4, 2010 06:55 PM
 To:  飞飞chenyapu1...@qq.com; 
 Cc:  net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 Subject:  Re: snmptranslate -IR -Tp reserved word problem

  
2009/12/31 Mike Ayers mike_ay...@tvworks.com:
I do not believe you can place comment markers (--) inside a comment.
I believe you need to add a space after the comment markers.
I do not believe you can put a comment marker within a comment,

That's not strictly true.
The ASN.1 comment marker  '--'   works in a similar manner
to the C-style /*  */  comments (as well as C++-style // comments).
   I.e. double-dash denotes the start of a comment, and a second
double-dash (or the end of the line) denotes the end of the comment.

So
 myObject -- this is a comment --  OBJECT IDENTIFIER
is perfectly valid syntax.


This means that a line of dashes will work correctly,
as long as there are an even number (or 4n-1) of dashes
in the line.   But if you have 4n+1 dashes, then the first 4n
will be interpreted as n (empty) comments, and the final
dash will be parsed as active syntax, and throw an error.

So you *can* use lines of dashes to separate different sections
of the MIB, and you've fot a 75% chance of getting away with it!


But I would agree with Mike's advice:

  i.e., don't do --.

If you want to have horizontal rules in your MIB,
try something like

   - - = = = = = = = = = =

(without the spaces!)

Dave--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


snmptranslate -IR -Tp reserved word problem

2009-12-30 Thread
Hi Dave,Mike and ALL:
  
 In CLI I got:
  
 sys-man mibs # snmptranslate  -IR  -Tp uit
No log handling enabled - turning on stderr logging
- (is a reserved word): At line 710 in 
/usr/local/share/snmp/mibs/SV7000GUI-MIB.txt
OBJECT (is a reserved word): At line 710 in 
/usr/local/share/snmp/mibs/SV7000GUI-MIB.txt
: (is a reserved word): At line 710 in 
/usr/local/share/snmp/mibs/SV7000GUI-MIB.txt
Bad operator (1): At line 710 in /usr/local/share/snmp/mibs/SV7000GUI-MIB.txt
Unknown object identifier: uit
  
 I use MG-soft check my mib file,0 warning,0 error,and got smidb file.
 Some pieces of my mib file is:
  
 701   
702 
---
703 --nicSetting  OBJECT IDENTIFIER ::= { systeminfoController 6  } 
704 
705 --nicControllerA   OBJECT IDENTIFIER ::= { nicSetting 1  }
706 -
707 --nicControllerB   OBJECT IDENTIFIER ::= { nicSetting 2  }
708 
709 

710 systemInfoUserManagementOBJECT IDENTIFIER ::= { 
systeminfoSystemManagement 1 }
711 --
712 usersTotalNumber OBJECT-TYPE
713 SYNTAX INTEGER
714 ACCESS read-only
715 STATUS current
716 DESCRIPTION
717  users Total Number.
718 ::= { systemInfoUserManagement 1 } 
719 --
720  usersInformationTable OBJECT-TYPE
721   SYNTAX SEQUENCE OF UsersInformationEntry
722   ACCESS read-only
723   STATUS current
724   DESCRIPTION
725 A table of managed UsersInformationEntry. The number of entries
726 is related to number of UsersInformationEntry discovered in the
727 system.
728 Note: The properties in this table may not be applicable to all 
entries.
729::= { systemInfoUserManagement 2 }
730  usersInformationEntry OBJECT-TYPE
731   SYNTAX UsersInformationEntry
732   ACCESS read-only
733   STATUS current
734   DESCRIPTION
735 An entry in the table of UsersInformationEntry. A row in this table 
cannot
736 be created or deleted by SNMP operations on columns of the table.
737   INDEX { 
738  userName
739 }
740::= { usersInformationTable 1 }  
  

 Any body tell me why?
  
  
 TIA
  
 Alex--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Can snmp support nested tables?

2009-12-10 Thread
Can anybody tell me whether snmp support nested tables?if so,give me some hints 
or links,
  
 TIA
  
 Alex--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


回复: 回复: Can snmp support nested tables?

2009-12-10 Thread
Sorry,that mail I  fogot to CC to the list.pls mail it to Mike,thank you !:0)
  
 YES,I want to get some models for modelling,Here is my problem.
  
 portal bonding_mode descriptor: this is a table.
components  bytes  type  range  unit  description  ---the 
entries of the table 
ge1_des  16  struct ge_descriptor  see below  1byte  ge1 descriptor  
ge2_des  16  struct ge_descriptor  see below  1byte  ge2 descriptor  
ge3_des  16  struct ge_descriptor  see below  1byte  ge3 descriptor  
ge4_des  16  struct ge_descriptor  see below  1byte  ge4 descriptor  
ge5_des  16  struct ge_descriptor  see below  1byte  ge5 descriptor  
ge6_des  16  struct ge_descriptor  see below  1byte  ge6 descriptor  
ge7_des  16  struct ge_descriptor  see below  1byte  ge7 descriptor  
ge8_des  16  struct ge_descriptor  see below  1byte  ge8 descriptor  
bond1_des  16  struct bond_descriptor  see below  1byte  bond1 descriptor  
bond2_des  16  struct bond_descriptor  see below  1byte  bond2 descriptor  
bond3_des  16  struct bond_descriptor  see below  1byte  bond3 descriptor  
bond4_des  16  struct bond_descriptor  see below  1byte  bond4 descriptor  
  
The struct of geN_descriptor : --the struct of the 
table's entry
component  bytes  type  range  unit  description   
ip  4  uint8[4]  0~255.0~255.0~255.0~255  1byte  ip address  
gateway  4  uint8[4]  0~255.0~255.0~255.0~255  1byte  gateway  
netmask  4  uint8[4]  0~255.0~255.0~255.0~255  1byte  netmask  
  
The struct of bondN_descriptor : 
component  bytes  type  range  unit  description  
ip  4  uint8[4]  0~255.0~255.0~255.0~255  1byte  ip address  
gateway  4  uint8[4]  0~255.0~255.0~255.0~255  1byte  gateway  
netmask  4  uint8[4]  0~255.0~255.0~255.0~255  1byte  netmask  

 So,My problem is whether the net-snmp MIB table support the composite 
structure,especially,we want to the table's entry is a struct or another 
table,How can I deal with this requirement?This is what I call it promote the 
potential sub-table as the second table to of the up-level,this is my tough 
situation,this where main-table,parallel table processing VS 
main-table,sub-table(nested table) processing  come from.
  
 Thank you Dave,You help me a lot!
  
 Alex
  
  
  
   
  
  -- 原始邮件 --
  发件人: Dave Shieldd.t.shi...@liverpool.ac.uk;
 发送时间: 2009年12月10日(星期四) 晚上7:30
 收件人: 飞飞chenyapu1...@qq.com; 
 抄送: net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 主题: Re: 回复: Can snmp support nested tables?

  
[ First - *please* don't mail me privately, without copying
 any responses to the mailing list.  I don't have the time
 or inclination to offer private, unpaid, SNMP consultancy.
 Keep discussions to the list, where others can both learn
 and offer advice.  Thanks.   ]

2009/12/10 飞飞 chenyapu1...@qq.com:
 I decide to promote the potential sub-table as the second table to the
 up-level entry.does it has the same function as the sub-table doed(if it
 does)?

I'm sorry - I don't understand what you are talking about here.

Rather than discussing the detailed structure of the MIB tables,
why don't you describe whatever it is that you are trying to model
here.
   The structure of a MIB should always be driven by the underlying
information that it represents.  Without knowing about this, it's
impossible to provide sensible advice.

Dave--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Can snmp support nested tables?main-table, parallel table processing VS main-table, sub-table(nested table) processing

2009-12-09 Thread
I want to know which one is better,or right.Here is my code:
 1.main-table,parallel table processing
  
  mappingTable OBJECT-TYPE   
 SYNTAX  SEQUENCE OF MappingEntry   
 MAX-ACCESS  read-only   
 STATUS  current
 
 DESCRIPTION Property tables for each Mapping interface  
 in the system.

 ::= { mapping 1 }  
 
 mappingEntry OBJECT-TYPE   
 SYNTAX  MappingEntry   
 MAX-ACCESS  read-only   
 STATUS  current 
 DESCRIPTION Mapping interface properties.   
 INDEX   {   
  inituuID   
 }   
 ::= { mappingTable 1 } 
   MappingEntry ::= SEQUENCE {
   inituuID
   Counter64,
   lunCount
   Counter32  
   }  
 inituuID  OBJECT-TYPE
 SYNTAX   Counter64
 MAX-ACCESS   read-only
 STATUS   current
 DESCRIPTION 
  Host/HG Unique Number.
 ::= { mappingEntry 1 }
 lunCount  OBJECT-TYPE
 SYNTAX   Counter32
 MAX-ACCESS   read-only
 STATUS   current
 DESCRIPTION 
  Numbers of LUN(Max 128).
 ::= { mappingEntry 2 } 

 inituuIDTable OBJECT-TYPE   
 SYNTAX  SEQUENCE OF InituuIDEntry   
 MAX-ACCESS  read-only   
 STATUS  current
 
 DESCRIPTION Property tables for each InituuID interface  
 in the system.

 ::= { mapping 2 }  
 
 inituuIDEntry OBJECT-TYPE   
 SYNTAX  InituuIDEntry   
 MAX-ACCESS  read-only   
 STATUS  current 
 DESCRIPTION InituuID interface properties.   
 INDEX   {   
  lun   
 }   
 ::= { inituuIDTable 1 } 
   InituuIDEntry ::= SEQUENCE {
   lun
   INTEGER,
   lvnuuID
   Counter64 
   } 
 lun  OBJECT-TYPE
 SYNTAX   INTEGER
 MAX-ACCESS   read-only
 STATUS   current
 DESCRIPTION 
  LUN Number.
 ::= { inituuIDEntry 1 }
 lvnuuID  OBJECT-TYPE
 SYNTAX   Counter64
 MAX-ACCESS   read-only
 STATUS   current
 DESCRIPTION 
  LV N Unique Number.
 ::= { inituuIDEntry 2 } 
  
 2.main-table,sub-table(nested table) processing
  
 lunuuID OBJECT IDENTIFIER ::= { mappingEntry  3 } 
  
  lunuuIDTable OBJECT-TYPE   
 SYNTAX  SEQUENCE OF LunuuIDEntry   
 MAX-ACCESS  read-only   
 STATUS  current
 
 DESCRIPTION Property tables for each lunuuID interface  
 in the system.

 ::= { lunuuID 1 }  
 
 lunuuIDEntry OBJECT-TYPE   
 SYNTAX  LunuuIDEntry   
 MAX-ACCESS  read-only   
 STATUS  current 
 DESCRIPTION lunuuID interface properties.   
 INDEX   {   
  lun   
 }   
 ::= { lunuuIDTable 1 }
   LunuuIDEntry::= SEQUENCE {



 lun
 INTERGE.
 uuID
 Counter64
   }--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


How many hosts can be sent by trap????????

2009-12-07 Thread
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How many hosts can be sent by trap????????

2009-12-07 Thread
My meaning is,if I want to trap to a or some particular host(s),how many hosts 
I can use?
  
 Dave's explanation is perfect.(I donnot think trap to multiple hosts is a good 
idea.)
   
 Thank you Dave!
  
 Alex
  
  -- Original --
  From:  Dave Shieldd.t.shi...@liverpool.ac.uk;
 Date:  Mon, Dec 7, 2009 07:00 PM
 To:  飞飞chenyapu1...@qq.com; 
 Cc:  net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 Subject:  Re: How many hosts can be sent by trap

  
I'm not entirely sure what you are asking here.

A notification request will be sent to a particular host.
If you need to inform multiple hosts of a given event,
then this involves multiple Trap PDUs.
There's no inbuilt limit to the number of trap destinations
that you can have.

If that's not what you meant, then you're going to
have to elaborate.

Dave--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


回复: How to initialise the c ontents of the table ?

2009-12-03 Thread
I use the command 'mib2c  -Scache=1  -c  mib2c.table_data.conf uit' and then I 
got this hint:

no variable specified for -S flag. at /usr/local/bin/mib2c line 96.

Who can mail me your  modified .c file which generated by mib2c.table_data.conf 
from a simple table mib file?

Oh my God,anything is welcome!

Many thanks!

Alex
 
 
-- 原始邮件 --
发件人: Dave Shieldd.t.shi...@liverpool.ac.uk;
发送时间: 2009年12月2日(星期三) 晚上6:44
收件人: 飞飞chenyapu1...@qq.com; 
抄送: net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
主题: Re: How to initialise the contents of the table ?

 
 2009/12/2 飞飞 chenyapu1...@qq.com:

 void
 initialize_table_diskSystemTable(void)
 {
  :
  netsnmp_tdata_register( reg, table_data, table_info );
  /* Initialise the contents of the table here */
 /* what am I do something here???*/

   Call the routine 'diskSystemTable_createEntry()'
for each row that you need to have in the table.
 }


Alternatively, if you use the command

   mib2c -Scache=1 -c mib2c.table_data.conf ...

to generate the code, this will include a caching
mechanism, including a 'myTable_load' routine,
to populate the table from some external source.

It depends on whether changes to the table will
be driven via SNMP, or other external mechanisms.

Dave

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


How do I modify the init_XXX(void) function get OIDs use mib2c.table_data.conf template???

2009-12-01 Thread
Hi all:

when I use template mib2c.scalar.conf I get OIDs in init_uit() rightly(My mib 
data entries are all simply scalars);but when my mib is a simple table,I use 
mib2c.table_data.conf,I cannot get oids in init_uit() function.

I want to some one tell me where  I am wrong and how to fix it.

TIA

Alex

init_uit() function generated by mib2c.table_data.conf template (a table mib)
void
init_uit(void)
{
  
/* here we initialize all the tables we're planning on supporting */
initialize_table_diskSystemTable();
}

init_uit() function generated by mib2c.scalar.conf template (a simple mib file 
are all scalars like above)
void
init_uit(void)
{
static oid portID_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,1 };
static oid encID_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,2 };
static oid slotID_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,3 };
static oid speed_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,4 };
static oid status_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,5 };
static oid revNew_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,6 };
static oid smtStatus_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,7 };
static oid bufStatus_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,8 };
static oid dstype_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,9 };
static oid uuID_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,10 };
static oid size_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,11 };
static oid diskID_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,12 };
static oid vendor_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,13 };
static oid revision_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,14 };
static oid product_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,15 };
static oid sn_oid[] = { 1,3,6,1,4,1,30901,2090,7000,1,16 };
  
  DEBUGMSGTL((uit, Initializing\n));

netsnmp_register_scalar(
netsnmp_create_handler_registration(portID, handle_portID,
   portID_oid, OID_LENGTH(portID_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(encID, handle_encID,
   encID_oid, OID_LENGTH(encID_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(slotID, handle_slotID,
   slotID_oid, OID_LENGTH(slotID_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(speed, handle_speed,
   speed_oid, OID_LENGTH(speed_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(status, handle_status,
   status_oid, OID_LENGTH(status_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(revNew, handle_revNew,
   revNew_oid, OID_LENGTH(revNew_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(smtStatus, handle_smtStatus,
   smtStatus_oid, OID_LENGTH(smtStatus_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(bufStatus, handle_bufStatus,
   bufStatus_oid, OID_LENGTH(bufStatus_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(dstype, handle_dstype,
   dstype_oid, OID_LENGTH(dstype_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(uuID, handle_uuID,
   uuID_oid, OID_LENGTH(uuID_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(size, handle_size,
   size_oid, OID_LENGTH(size_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(diskID, handle_diskID,
   diskID_oid, OID_LENGTH(diskID_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(vendor, handle_vendor,
   vendor_oid, OID_LENGTH(vendor_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(revision, handle_revision,
   revision_oid, OID_LENGTH(revision_oid),
   HANDLER_CAN_RONLY
));
netsnmp_register_scalar(
netsnmp_create_handler_registration(product, 

which mib2c template should I use?(my mib file has many tables)

2009-11-30 Thread
Hi all:

in my mib file,I have many tables,so which mib2c template should I use?
can I get the the whole constructure of the mib tables file(.c,.h) one time?



TIA

Alex--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Thank you Dave!my new problem is table structure mib file testing now

2009-11-30 Thread
Dave:
  
 Thank you ! I have done this job Got .c, .h, static load my mib use command 
./configure --with-mib-modules=,I got the wrong init_uit() function.
  
 a very simple(the mib file just include several scalars) experimental 
prototype was finished,now I am run a simple table mib file test 
now.http://www.net-snmp.org/wiki/index.php/FAQ:Coding is a very useful tool.
  
 Thank you very much!God blss you and your team!
 
Arsenal Sunday’s 3-0 defeat to Chelsea at Emirates Stadium make me feel so 
ashamed...
  
 Alex
   
  
  -- 原始邮件 --
  发件人: Dave Shieldd.t.shi...@liverpool.ac.uk;
 发送时间: 2009年11月30日(星期一) 晚上6:57
 收件人: 飞飞chenyapu1...@qq.com; 
 抄送: net-snmp-codersnet-snmp-cod...@lists.sourceforge.net; 
 主题: Re: Got .c, .h, static load my mib use command ./configure 
--with-mib-modules= recompilation failure

  
2009/11/26 飞飞 chenyapu1...@qq.com:
 I want to static load my MIB module use the command
 ./configure --with-mib-modules=uit;make;make install

Did the make run successfully, or did it show any errors?

Did you restart the new agent after installing it?



 when I had done the installation,I cannot load my uit module,I use command
 'snmpwalk -v2c -c public localhost' and 'snmpget'but get nothing i really
 need about my mib.

 Who can tell me where I was wrong here about my mib?

Please see the FAQ entry
 Why doesn't my new MIB module report anything?

for some other things to check.

Dave--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


回复: About Dynamically Load my MIB

2009-11-20 Thread
r...@ubuntu:/usr/share/snmp/mibs# snmpd -f -Le -Duit,dlmod 6161
registered debug token uit, 1
registered debug token dlmod, 1
dlmod: register mib
dlmod: dlmod_path: /usr/lib/snmp/dlmod
dlmod: dlmod_create_module
dlmod: dlmod_load_module uit: /usr/share/snmp/mibs/uit.so
NET-SNMP version 5.4.1
  
  
 command stop there,and what  should I do next?
  
  
   -- 原始邮件 --
  发件人: Dave Shieldd.t.shi...@liverpool.ac.uk;
 发送时间: 2009年11月16日(星期一) 下午4:39
 收件人: 飞飞chenyapu1...@qq.com; 
 抄送: net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 主题: Re: About Dynamically Load my MIB

  
[ First - *please* don't mail me privately, without copying
 any responses to the mailing list.  I don't have the time
 or inclination to offer private, unpaid, SNMP consultancy.
 Keep discussions to the list, where others can both learn
 and offer advice.  Thanks.   ]


2009/11/16 飞飞 chenyapu1...@qq.com:
 r...@ubuntu:/usr/share/snmp/mibs# snmpd -f -L -Duit,dlmod
 registered debug token uit, 1
 registered debug token dlmod, 1
 dlmod: register mib
 dlmod: dlmod_path: /usr/lib/snmp/dlmod
 /* I really have no idea what its meaning */

This is the default directory where the agent will look for
.so modules to load.   But you specify a full path below,
so don't need to worry about this.


 dlmod: dlmod_create_module
 dlmod: dlmod_load_module uit: /usr/share/snmp/mibs/uit.so

No is error displayed here, so it looks as if the module is
being loaded successfully.


 /etc/snmp/snmpd.conf: line 430: Warning: Unknown token: mibs.

The mibs directive is typically aimed at client applications,
and belongs in the file snmp.conf, not the agent-specific file.


 Error opening specified endpoint 
 Server Exiting with code 1

Typically that would indicate that you're running the
agent as a non-root user, and trying to open the standard
(privileged) port.   Which fails.

But given that you seem to be running this as root,
my suspicion is that you're already running an SNMP
agent, listening on this port.

Either stop this standard agent before running your
new one, or run your testing on a different port
e,g:
snmpd -f -Le -Duit,dlmod   6161


 /* /etc/snmp/snmpd.conf: line 430 is: mibs +ALL is anything wrong? */

This directive belongs in snmp.conf


Dave


 I modified a Makefile file for my own use,as follows:

 CC=gcc
 OBJS1=snmpdemoapp.o
 OBJS2=example-demon.o uit.o
 OBJS3=asyncapp.o
 TARGETS=example-demon snmpdemoapp asyncapp
 CFLAGS=-I. `net-snmp-config --cflags`
 BUILDLIBS=`net-snmp-config --libs`
 BUILDAGENTLIBS=`net-snmp-config --agent-libs`
 # shared library flags (assumes gcc)
 DLFLAGS=-fPIC -shared
 all: $(TARGETS)
 snmpdemoapp: $(OBJS1
  $(CC) -o snmpdemoapp $(OBJS1) $(BUILDLIBS)
 asyncapp: $(OBJS3)
  $(CC) -o asyncapp $(OBJS3) $(BUILDLIBS)
 example-demon: $(OBJS2)
  $(CC) -o example-demon $(OBJS2) $(BUILDAGENTLIBS)
 clean:
  rm $(OBJS2) $(OBJS2) $(TARGETS)
 uit.so: uit.c Makefile
  $(CC) $(CFLAGS) $(DLFLAGS) -c -o uit.o uit.c
  $(CC) $(CFLAGS) $(DLFLAGS) -o uit.so uit.o
 Is anything wrong here?

 Alex

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re:RE: 回复:RE: 回复:RE: The problem about the net-snmp in stallation

2009-11-20 Thread
I had been read them all,but,I got nothing useful to me.
  
 I just want to know one thing ,how the steps i need to do so I can install the 
net-snmp in my OS?I test several OSs,Ubuntu,SuSE,Redhat,I cannot install 
net-snmp use source code download from the offical site.
  
 All my job now need I compile net-snmp source code so install it to my OS,so I 
can static load my subagent(re-compile source code added my .c,.h files).
  
 If you donot believe it,just test it and tell me why.
  
 Thank you very much.
  
  
  
  
  
   
  
  -- Original --
  From:  mike_ayers-net-snmp-mike_ay...@tvworks.com;
 Date:  Thu, Nov 19, 2009 02:13 AM
 To:  chenyapu1982chenyapu1...@qq.com; 
net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 
 Subject:  RE: 回复:RE: 回复:RE: The problem about the net-snmp installation

  
 From: chenyapu1...@qq.com [mailto:chenyapu1...@qq.com]
 Sent: Tuesday, November 17, 2009 5:46 PM

 I run the command /usr/local/sbin/snmpd start,I got NOTHING.

That wasn't the command I asked you to run.  Slow down and start reading up 
- `man snmpd` and man `snmpd.conf` are good starting places.  Mind the details 
- they're important.


HTH,

Mike

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


/usr/local/sbin/./snmpd cannot find 'libnetsnmpagent.so.20'---------what is wrong with it?

2009-11-20 Thread
sys-man sbin # ./snmpd
./snmpd: error while loading shared libraries: libnetsnmpagent.so.20: cannot 
open shared object file: No such file or directory

  
  
  
  
  
 libnetsnmpagent.so.20--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


/usr/local/sbin # ./snmpd -f -Le error information

2009-11-19 Thread
 NETWORK not 
properly configured
/usr/local/share/snmp/snmpd.conf: line 418: Warning: Unknown token: mibs.
net-snmp: 1 error(s) in config file(s)
NET-SNMP version 5.5
^CReceived TERM or STOP signal...  shutting down...


   
  
  -- 原始邮件 --
  发件人: Dave Shieldd.t.shi...@liverpool.ac.uk;
 发送时间: 2009年11月18日(星期三) 晚上6:56
 收件人: 飞飞chenyapu1...@qq.com; 
 抄送: net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 主题: Re: 回复:RE: 回复:RE: The problem about the net-snmp installation

  
2009/11/18 飞飞 chenyapu1...@qq.com:
 Failed!

 I run the command /usr/local/sbin/snmpd start,I got NOTHING.

But Mike didn't tell you to run
/usr/local/sbin/snmpd start

He told you to run
/usr/local/sbin/snmpd (nothing else).


Personally, I;d suggest running
   /usr/local/sbin/snmpd -f -Le
   at least initially - so that you can see whether there
are any errors being reported.
If that works (and you can query the agent),
then ^C this, and run as Mike suggests.



But you need to be clear about the distinction between
the SNMP agent itself (usually /usr/local/sbin/snmpd or
/usr/sbin/snmpd)   and the script used to control this
agent (typically something like /etc/init.d/snmpd)

The first is a binary program, and is described in
the man page snmpd(8).   The second is a shell
script, and takes the options start and stop.

These are two different things - don't treat them
as equivalent.

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


make error information analysis

2009-11-18 Thread
Hi:
  
 at the end of the make command output,I got error information below(the 
net-snm-5.4.2.1 source code put  /usr/local/src/):
  
 collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/local/src/net-snmp-5.4.2.1/agent'
make: *** [subdirs] Error 1
  
 Does anybody to tell me why and how to fix it ?
  
 TIA
  
 Alex--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


回复:RE: 回复:RE: The proble m about the net-snmp installation

2009-11-18 Thread
Failed!
  
 I run the command /usr/local/sbin/snmpd start,I got NOTHING.
 run netstat |grep 161 I got UNIX 3 STREAM CONNECTED 13161 
  
 It doesnot make sense.Oh,my God
  
 Who can tell me a normal installation method and detailed steps? use source 
code and compile it.my OS kernel is something like-linux,so if I can run it in 
linux OS,my project may be is ok.
  
 Thank you very much!
  
 Alex
  
   
  -- 原始邮件 --
  发件人: mike_ayers-net-snmp-mike_ay...@tvworks.com;
 发送时间: 2009年11月18日(星期三) 上午9:28
 收件人: chenyapu1982chenyapu1...@qq.com; 
net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 
 主题: RE: 回复:RE: The problem about the net-snmp installation

  
 From: chenyapu1...@qq.com [mailto:chenyapu1...@qq.com]
 Sent: Tuesday, November 17, 2009 12:53 AM
 
 I  got snmpd in directory /usr/local/sbin/  but I cannot start it use
 command ./snmpd start,the hint is no snmpd service. can you tell me
 more detailed???

You are getting confused.  Your OS ships with a customized version of 
net-snmp: the install directories (/usr/sbin, /usr/bin, /etc, etc.), modules, 
configurations, etc. are configured to suit the distribution maintainers, who 
also integrated it with their platform via the init script.  When you built and 
installed your own version, it used the default install directories 
(/usr/local/sbin, /usr/local/bin, /usr/local/etc, etc.), and thus the init 
scripts will not find it.  Just use:

/usr/local/sbin/snmpd

To start your version.


HTH,

Mike--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Magic net-snmp installation problem

2009-11-17 Thread
Hello everybody:
  
 SuSE 11.2,net-snmp 5.5,I downloaded the source,and run the commands:
  
 tar -zxvf net-snmp-5.5.tar.gz
 cd net-snmp-5.5
 ./configuresome 
options here
 make 
 sudo make install 
  
 no error message and tips in the whole process.there is no directory 
/usr/share/snmp  but /usr/local/share/snmp; snmpd is in the directory  
/usr/local/sbin/.But I cannot use the command service snmpd start to start the 
deamon. I copied the snmpd.conf and snmp.conf in the directory 
/usr/local/share/snmp/.
  
 who can tell me why?
  
 Alex--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


回复:RE: The problem about th e net-snmp installation

2009-11-17 Thread
-- 原始邮件 --
  发件人: mike_ayers-net-snmp-mike_ay...@tvworks.com;
 发送时间: 2009年11月17日(星期二) 凌晨3:57
 收件人: 飞飞chenyapu1...@qq.com; 
net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
 
 主题: RE: The problem about the net-snmp installation

  
  From: 飞飞 [mailto:chenyapu1...@qq.com]
 Sent: Sunday, November 15, 2009 7:16 PM

 Apparently everything is OK,but when I run service snmpd start in root
 I get service:no such service snmpd,who can tell me why?(OS
 Ubuntu9.04,9.10,SuSE11.2)

The service script is not part of the net-snmp distribution.  It comes from 
the OS vendor, and assumes that net-snmp is installed in the location they 
chose (typically /usr/bin, /usr/sbin, /etc, etc...).  If you wish to use it, 
edit it and change the paths to snmp components to match the ones you installed 
to.
  
 I  got snmpd in directory /usr/local/sbin/  but I cannot start it use command 
./snmpd start,the hint is no snmpd service. can you tell me more detailed??? 
  
 

 2.when I install net-snmp use System-administrator-synatpic Package
 Manage in  Ubuntu and Start-Computer-Install Software in SuSE we can
 run the command service snmpd start normally,the default net-snmp
 install directory is /usr/share/snmp/ not the /usr/local/share/snmp
 described in some website. this way involed another problem:I cannot
 get the net-snmp source code,I cannot compile the program in my way
 when I want ro add my subagent statically.

Yes, either accept the distro's choice of install options, or install and 
maintain it yourself.  This is true for all packages.


HTH,

Mike--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


net-snmp-config --compile-subagent------error information

2009-11-16 Thread
somebody can tell me what wrong with this?
  
  
 r...@ubuntu:/usr/share/snmp/mibs# net-snmp-config  --compile-subagent uit uit.c
generating the tmporary code file: netsnmptmp.2852.c
void init_uit(void);
checking for init_uit in uit.c
init_uit(void)
running: cc  -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE 
-Ulinux -Dlinux=linux  -I. -I/usr/include -o uit netsnmptmp.2852.c  uit.c -W
 l,-Bsymbolic-functions -L/usr/lib -lnetsnmpmibs -lnetsnmpagent 
-lnetsnmphelpers -lnetsnmp  -Wl,-E
In file included from /usr/include/net-snmp/library/snmp_logging.h:14,
 from /usr/include/net-snmp/library/container.h:19,
 from /usr/include/net-snmp/utilities.h:54,
 from /usr/include/net-snmp/net-snmp-includes.h:74,
 from netsnmptmp.2852.c:6:
/usr/lib/gcc/i486-linux-gnu/4.4.1/include/varargs.h:4:2: error: #error GCC no 
longer implements varargs.h.
/usr/lib/gcc/i486-linux-gnu/4.4.1/include/varargs.h:5:2: error: #error Revise 
your code to use stdarg.h.
In file included from /usr/include/net-snmp/library/snmp_logging.h:14,
 from /usr/include/net-snmp/library/container.h:19,
 from /usr/include/net-snmp/utilities.h:54,
 from /usr/include/net-snmp/net-snmp-includes.h:74,
 from uit.c:7:
/usr/lib/gcc/i486-linux-gnu/4.4.1/include/varargs.h:4:2: error: #error GCC no 
longer implements varargs.h.
/usr/lib/gcc/i486-linux-gnu/4.4.1/include/varargs.h:5:2: error: #error Revise 
your code to use stdarg.h.
removing the tmporary code file: netsnmptmp.2852.c
r...@ubuntu:/usr/share/snmp/mibs#--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


The problem about the net-snmp installation

2009-11-16 Thread
Hello,everybody:
  
 Help!
  
 Here are something comfused me for couple of days:
  
 1.when I download the net-snmp (5.4.1,5.5)source code frome the official site 
to my local system,I run commans like this
  
 tar -zxvf net-snmp-5.4.2.1
cd net-snmp-5.4.2.1
./configure/*here some Configuration Options*/
make 
make install 
  
 Apparently everything is OK,but when I run service snmpd start in root I get 
service:no such service snmpd,who can tell me why?(OS 
Ubuntu9.04,9.10,SuSE11.2)
  
 2.when I install net-snmp use System-administrator-synatpic Package Manage 
in  Ubuntu and Start-Computer-Install Software in SuSE we can run the command 
service snmpd start normally,the default net-snmp install directory is 
/usr/share/snmp/ not the /usr/local/share/snmp described in some website. this 
way involed another problem:I cannot get the net-snmp source code,I cannot 
compile the program in my way when I want ro add my subagent statically.
 
They are my problems for this moment,I really want to know why.I have done my 
mibs,but first, I want to test a subagent(a very simple mib file) original 
mold,I want to run it right.I am a newbie in net-snmp.
  
 Thank you very much for your patient.
 
Alex,from China.--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


got the .so,want to dynamic loading it and then???

2009-11-13 Thread
i got the .so file use gcc example.c -fPIC -shared -o  example.so 
(/usr/share/snmp/mibs/)
  
 who can tell me the next step i need to do ? I want to dynamic loading the 
example.so file to my snmpd so i can use snmpwalk command to verify my work is 
or not right.
  
 Good day!thanks for your warm reply,or anything.
  
 alex--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


About MIB,somebody HELP me!

2009-08-28 Thread
Hi all, 
  
 im a new fish here,I need write a MIB text,can some body tell me some thing 
first thing first about the MIB How-to ? i stay on the web net-snmp.org for a 
long time,but i got nothing for really help,maybe i just need somebody to tell 
me how to start write a MIB text.thanks! 
  
 Alex--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users