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 > w

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::ciscoDmpMIBBrows

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 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: U

Reload MIB file

2009-01-30 Thread Mitul Sen (misen)
Hello, I had defined a new MIB and was able to query the managed object within my MIB using snmpget. However at this point I changed the name of the object in my MIB file and also added a few more objects (within the same MIB file). I followed the same procedure as I had done before for all t

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, i

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

2009-01-30 Thread Mike Ayers
> From: Philip Mason [mailto:phil.ma...@crystalvision.tv] > Sent: Friday, January 30, 2009 3:34 AM > Is it not possible (I know it's an unwise thing to do) to set > rwcommunity to public? If not it isn't clear to me why it > wasn't working > with the snmpd.conf above. You are asking the

RE: Sending Traps for different destinations at the same time

2009-01-30 Thread Angela Lazaro
Hi all, Thank you zeeshan! Does it mean that I have to use trap2sink? But if I want to use only SNMPv3, how can I send a multi destination trap? Is there a way to do that? Thank you all. Best Regards, Ângela -Original Message- From: m.zeeshan [mailto:m.zees...@advancedims.com] Sent:

RE: snmp script

2009-01-30 Thread Fernández Piñas , David
Add to snmpd.conf: pass .1.3.6.1.4.1.11821 /home/fede/snmp_script/prova1 pass .1.3.6.1.4.1.11822 /home/fede/snmp_script/prova2 and use two separate scripts: # prova1 #!/bin/sh echo .1.3.6.1.4.1.11821 echo integer echo 20 # prova2 #!/bin/sh echo .1.3.6.1.4.1.11822 echo integer echo 21 -

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 anothe

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

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 (table_info->coln

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 dest

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 it

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 rwu

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

2009-01-30 Thread Dave Shield
2009/1/30 Philip Mason : > 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 - what access control se

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 pub

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 wrote: From: Dave Shield Subject: Re: Index in Table request for explanation To: m.zees...@advancedims.com Cc: net-snmp-users@lists.sourceforg

Re: How can I define my own trap?

2009-01-30 Thread Dave Shield
2009/1/29 Ignasi Paredes Oliva : > 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 variable type

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

2009-01-30 Thread Dave Shield
2009/1/29 M. Zeeshan - IMS : > 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 earlier in the cod

Re: Linux number of CPUs?

2009-01-30 Thread Dave Shield
2009/1/29 Les Mikesell : > 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 information is available by