Re: Linux number of CPUs?

2009-01-30 Thread Dave Shield
2009/1/29 Les Mikesell lesmikes...@gmail.com: But what are you supposed to do with a value like 400% CPU usage if you don't know how many processors are running? An average value might be useful but how can you use a total of percentages without knowing how many were totaled? That

Re: Index in Table .... request for explanation

2009-01-30 Thread Dave Shield
2009/1/29 M. Zeeshan - IMS m.zees...@advancedims.com: 3. when i generated code using mib2c with mib2c.create-dataset.conf file, then the indexing was done with the function netsnmp_table_set_add_indexes(), while the example in data_set.c uses the function netsnmp_table_row_add_index() a bit

Re: How can I define my own trap?

2009-01-30 Thread Dave Shield
2009/1/29 Ignasi Paredes Oliva ipare...@ac.upc.edu: I only have one last simple question. One of the attributes that I extract from the database (the time) has the following format: 19:55:57. I defined it as STRING on my MIB tree but when I execute snmptrap command, it complains: Time: Bad

Re: Index in Table .... request for explanation

2009-01-30 Thread M. Zeeshan - IMS
Thanx Alot Dave, that really cleared every thing i had in mind. Thanx Mike as well. Regards. - Muhammad Zeeshan --- On Fri, 30/1/09, Dave Shield d.t.shi...@liverpool.ac.uk wrote: From: Dave Shield d.t.shi...@liverpool.ac.uk Subject: Re: Index in Table request for explanation To:

FW: Unable to set the object from the scalar_int example

2009-01-30 Thread Philip Mason
Hi all, I've added the compiled the example code from http://net-snmp.sourceforge.net/dev/agent/scalar__int_8c-example.html  to my agent and if I do an SNMP walk I can see the object OK and it has the value I initialise it to. If I try to set it I get the following message: $ snmpset -c

Re: FW: Unable to set the object from the scalar_int example

2009-01-30 Thread Dave Shield
2009/1/30 Philip Mason phil.ma...@crystalvision.tv: If I try to set it I get the following message: $ snmpset -c public -v 2c 10.0.0.27 1.3.6.1.4.1.8072.2.1.1.0 i 19 Error in packet. Reason: notWritable (That object does not support modification) How is the agent configured? In particular -

RE: FW: Unable to set the object from the scalar_int example

2009-01-30 Thread Philip Mason
Replying to my earlier message I hadn't noticed this: In each case, only one directive should be specified for a given SNMPv3 user, or community string. It is not appropriate to specify both rouser and rwuser directives referring to the same SNMPv3 user (or equivalent community settings). The

RE: FW: Unable to set the object from the scalar_int example

2009-01-30 Thread Philip Mason
My snmpd.conf was rocommunity public rwcommunity public authtrapenable 1 trapsink 10.0.0.45 public trapcommunity public rwuser philm noauth I thought I had tried it with rwcommunity private but obviously not because when I just did it started working (modifying the set command as well). Is

Sending Traps for different destinations at the same time

2009-01-30 Thread Angela Lazaro
Hi everyone! I'm using net-snmp 5.3.2 and I'm trying to find a way to send traps to different destinations at the same time. So far I've tried to defined different trapsess in the snmpd.conf file (the configuration file for the agent) or pass multi destinations in the same trapsess in the

Parsing Get/Set Requests in Table_Handler

2009-01-30 Thread M. Zeeshan - IMS
Required Scenairo/Psedocode: I want to parse the Get/Set requests inside the Table_Handler() registered via netsnmp_register_table_data_set(); Table_Handler() {   for (; requests; requests = requests-next) {     switch (reqinfo-mode) {         case MODE_GET:         switch

Re: Sending Traps for different destinations at the same time

2009-01-30 Thread m.zeeshan
Hi everyone! I'm using net-snmp 5.3.2 and I'm trying to find a way to send traps to different destinations at the same time. So far I've tried to defined different trapsess in the snmpd.conf file (the configuration file for the agent) or pass multi destinations in the same trapsess in the

snmp script

2009-01-30 Thread f.mos...@inwind.it
i wrote a simple script #!/bin/sh echo .1.3.6.1.4.1.11821 echo integer echo 20 i insert in snmpd.conf pass .1.3.6.1.4.1.11821 /home/fede/snmp_script/prova and when i do snmpget -O n -v1 -c public localhost .1.3.6.1.4.1.11821 is's ok . 1.3.6.1.4.1.11821 = INTEGER: 20 now, if i want add

Writing a MIb Module and compiling in visual c++

2009-01-30 Thread Rodolfo Leffa
Hi, i'm trying to add a mib module to my agent. I've already write the mib and run mib2c to get the .c and .h of the data i want to provide. But i've have a problem on compiling this on Windows XP, using Visual C ++. I'm trying to compile it using visual studio because with Configure and nmake,

RE: Reload MIB file

2009-01-30 Thread Mike Ayers
From: Mitul Sen (misen) [mailto:mi...@cisco.com] Sent: Friday, January 30, 2009 3:31 PM ... parse-mibs: Processing IMPORTS for module 0 UCD-DEMO-MIB parse-mibs: Processing import: ucdavis parse-mibs: Module CISCO-DMP-MIB already loaded CISCO-DMP-MIB::ciscoDmpMIBBrowserURL.0: Unknown

RE: Reload MIB file

2009-01-30 Thread Mitul Sen (misen)
Hi, -Original Message- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Fri 1/30/2009 4:07 PM To: Mitul Sen (misen) Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Reload MIB file From: Mitul Sen (misen) [mailto:mi...@cisco.com] Sent: Friday, January 30, 2009 3:31 PM

RE: Reload MIB file

2009-01-30 Thread Mike Ayers
From: Mitul Sen (misen) [mailto:mi...@cisco.com] Sent: Friday, January 30, 2009 4:10 PM ... parse-mibs: Processing IMPORTS for module 0 UCD-DEMO-MIB parse-mibs: Processing import: ucdavis parse-mibs: Module CISCO-DMP-MIB already loaded CISCO-DMP-MIB::ciscoDmpMIBBrowserURL.0:

RE: Reload MIB file

2009-01-30 Thread Mitul Sen (misen)
I directly updated the MIB so that the MIB under /usr/local/share/snmp/mibs is now the newer version (same name). I did have MIBS set to all. Hmmm... that should work. Did you perhaps change the name of an imported object? If so, you must change the name where it is