Fwd: Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-20 Thread Simone Moni
"the probable cause of the alarm" ::= { acmLogWatchEntry 3 } snmpset is used to set OID's Values. - perl code: use NetSNMP::agent (':all'); use NetSNMP::ASN (':all'); use NetSNMP::OID(':all'); my $default_SP = "SP 1"; my $def

Re: HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-14 Thread Wes Hardaker via Net-snmp-users
Simone Moni writes: >         if ($request_info->getMode() == MODE_GET) { >             # ... generally, you would calculate value from oid >             if ($oid == new > NetSNMP::OID(".1.3.6.1.4.1.193.37.10.11.64.10.1.2.0")) { >             $request->setValue(ASN_OCTET_STR, $default_SP); >    

HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-07 Thread Simone Moni
"the probable cause of the alarm" ::= { acmLogWatchEntry 3 } snmpset is used to set OID's Values. - perl code: use NetSNMP::agent (':all'); use NetSNMP::ASN (':all'); use NetSNMP::OID(':all'); my $default_SP = "S

snmpset memory issue

2019-10-07 Thread Cathal McGlone
hi there hi there I have been using snmpset in a Win10 command line to set variables in example table netSnmpIETFWGTable and this works perfectly as follows: C:\usr\bin>snmpset -v 2c -c nsCommStrRW 127.1.1.1 NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1.\"wg1\" s jblog1 NET-SNMP

Is there any method to return more infomation from snmp subagent for snmpset request

2018-10-15 Thread 谢鹏
Hi, all Recently I have wrote a subagent and it just work well for me. I used net-snmp 5.7.3. But, I find that if the subagent occur some error while dealing with snmpset, I can only return SNMP_ERR_XXX which is predefined by net-snmp. Looking up the source code of net-snmp, I find

Snmpset and scripts

2018-02-23 Thread Lucas Dutra
se "extend" I can not use the snmpset command in the script I want. What I need is to pass a parameter that I want and run the script through snmp with this parameter. But, I always get a "notWritable" error. So I researched a bit and saw that some people had problems with snmpse

RE: SNMPSET Errors - Cannot find module

2017-11-28 Thread Roy Giles
: SNMPSET Errors - Cannot find module Hi Roy, Unfortunately, the "Cannot find module" messages are simply warnings, and the real errors that you're getting are the timeouts. The snmpset command lines that you gave don't actually require the MIBs; you can get rid of the

Re: SNMPSET Errors - Cannot find module

2017-11-28 Thread Bill Fenner
Hi Roy, Unfortunately, the "Cannot find module" messages are simply warnings, and the real errors that you're getting are the timeouts. The snmpset command lines that you gave don't actually require the MIBs; you can get rid of the '-M ...' arguments on each line a

SNMPSET Errors - Cannot find module

2017-11-28 Thread Roy Giles
Hello, I have an end of life D-Link DGS-3024 switch that I bought off of eBay. I need to reset the login on it. I hope you can help me debug it. Thank You. I found the following script that should reset the login: # File type (switch configuration) snmpset -M DGS3024_MIB_20060721

snmpset does not retain value after restart/reset y

2017-04-27 Thread deepak . sachan deepak . sachan
Hi I have tried communicating b/w agent and client using dynamic module (.so) creation for snmp agent. snmpget and snmpset working fine . But after restart/reset the agent does not retain value . it shows the previous value which has been defined in .c (generated through mib2c) file

Re: snmpset does not set value permanently

2017-04-25 Thread Bill Fenner
tent file. Bill On Tue, Apr 25, 2017 at 12:40 AM, deepak.sachan deepak.sachan < deepak.sac...@deal.drdo.in> wrote: > > Hi > > I have tried communicating b/w agent and client using dynamic module (.so) > creation for snmp agent. > snmpget and snmpset working fine . But if

snmpset does not set value permanently

2017-04-24 Thread deepak . sachan deepak . sachan
Hi I have tried communicating b/w agent and client using dynamic module (.so) creation for snmp agent. snmpget and snmpset working fine . But if restart the agent ,oid value doesnt change . it shows the previous value which has been defined in .c file. Any help ? Thanks in advance

[SPAM] remote ping snmpset question

2015-12-03 Thread zhoujs
SnmpMan, I have a question at this picture.I set the "private" to "write and read",but it prompts "notWritable". I send an order from a Win7 to another Win7. zhoujs-- Go from Idea to Many App Stores Faster with In

snmpset get "Reason: (genError) A general failure occured" and " dropping bad AgentX request (wrong mode 2)" error!! when use delayed_instance.c

2015-02-04 Thread zhou...@kuaiyuetech.com
hi all,        I get a "Reason: (genError) A general failure occured" error!!!   when i use snmpset to netsnmp delayed_instance module with agentx/master, and the delayed_instance module printf warning information :  " dropping bad AgentX request (wrong mode 2)"  , i

snmpset timeout, but did work, help with debug traces

2014-12-18 Thread Francois Bouchard
Hi all, I have an object which takes time to set, around 10 seconds, and the command snmpset returns a timeout, even though the Set action actually worked. The set request is done this way: snmpset -v 3 -u Admin -t 30 -r 0 -a MD5 -A "Admin-00" -l authNoPriv 172.27.42.191

Re: snmpset failes with Reason: notWritable (That object does not support modification) ...Even with rwcommunity permissions

2014-10-28 Thread Vipul Mehta
Thanks Suresh, We have to write /generate a c code even if our mib contains a simple integer. I followed the link , now its snmpset and get are working for me. http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent to create a subagent for my mib . The subagent talks to net-snmp agent

Re: snmpset failes with Reason: notWritable (That object does not support modification) ...Even with rwcommunity permissions

2014-10-27 Thread Pal
;> > On Oct 27, 2014, at 7:15 AM, Vipul Mehta wrote: >> > >> > I have fixed MAX-ACCESS read-write to ACCESS read-write. >> > >> > but still the problem persists . Request all to plz provide valuable >> > inputs. >> > >> >>

Re: snmpset failes with Reason: notWritable (That object does not support modification) ...Even with rwcommunity permissions

2014-10-27 Thread Vipul Mehta
Vipul Mehta wrote: > > > > I have fixed MAX-ACCESS read-write to ACCESS read-write. > > > > but still the problem persists . Request all to plz provide valuable > inputs. > > > >> On Mon, Oct 27, 2014 at 4:24 PM, Vipul Mehta > wrote: > >>

Re: snmpset failes with Reason: notWritable (That object does not support modification) ...Even with rwcommunity permissions

2014-10-27 Thread Pal
ead-write. > > but still the problem persists . Request all to plz provide valuable inputs. > >> On Mon, Oct 27, 2014 at 4:24 PM, Vipul Mehta wrote: >> Hello, >> Need some help related to snmpset command. >> >> I am trying to use netsnmp agent for publishing St

Re: snmpset failes with Reason: notWritable (That object does not support modification) ...Even with rwcommunity permissions

2014-10-27 Thread Vipul Mehta
I have fixed MAX-ACCESS read-write to ACCESS read-write. but still the problem persists . Request all to plz provide valuable inputs. On Mon, Oct 27, 2014 at 4:24 PM, Vipul Mehta wrote: > Hello, > Need some help related to snmpset command. > > I am trying to use netsnmp agent fo

snmpset failes with Reason: notWritable (That object does not support modification) ...Even with rwcommunity permissions

2014-10-27 Thread Vipul Mehta
Hello, Need some help related to snmpset command. I am trying to use netsnmp agent for publishing Statistics of my application on SNMP. My application will call snmpset to push the statistics in snmpd and the monitoring tool will pull statistics from snmpd. Problem is :: that snmp set fails

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread Bill Fenner
ndler_registration > netsnmp_create_table_data > netsnmp_table_helper_add_indexes > netsnmp_register_table > > The problem we are facing is that if our table is columns, c1, c2, and c3, > and if c1 is of string data type. > Now if we are doing “snm

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread sarath azad
he problem we are facing is that if our table is columns,c1, c2, and c3, and if c1 is of string data type. Now if we are doing “snmpset c1  c2  c3 ” we are getting these valuesval1, val2 and val3 properly in code and they are getting properly updated inthe table.But if we are giving columns in

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread Bill Fenner
er_registration > netsnmp_create_table_data > netsnmp_table_helper_add_indexes > netsnmp_register_table > > The problem we are facing is that if our table is columns, c1, c2, and c3, > and if c1 is of string data type. > Now if we are doing “snmpset c1 c2 c3

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread sarath azad
that if our table is columns, c1, c2, and c3, and if c1 is of string data type. Now if we are doing “snmpset c1 c2 c3 ” we are getting these values val1, val2 and val3 properly in code and they are getting properly updated in the table. But if we are giving columns in different order like

Re: problem in SNMPSET on table with string data type columns

2014-09-03 Thread Bill Fenner
solving the below problem, in doing SNMPSET for > tables with string data? > > thanks and regards > S Sarath > > > On Friday, August 22, 2014 9:03 PM, sarath azad > wrote: > > > Hello, > > Could you please help in resolving the below issue? > For SNMPSE

problem in SNMPSET on table with string data type columns

2014-09-03 Thread sarath azad
Hello, Could you please help in solving the below problem, in doing SNMPSET for tables with string data? thanks and regards S Sarath On Friday, August 22, 2014 9:03 PM, sarath azad wrote: Hello, Could you please help in resolving the below issue? For SNMPSET on a table which contains

problem in SNMPSET with string data type columns

2014-08-22 Thread sarath azad
Hello,   Could you please help in resolving the below issue? For SNMPSET on a table which contains a column of "string" data type, if we are giving values of all the columns in the single SNMPSET query, then we are getting the values of the string column properly, only if the order

Re: SNMPSET data resets on hardware reboot

2014-08-14 Thread Nicolas Borderes
Hi, the data you "set" into a device is not saved through reboot. Fortunately, the snmpd.conf file allows you to set the default syslocation / sysname / syscontact values using the following lines : *syslocation my_saved_location* *syscontact my_saved_contact* *sysName my_saved_name* 2014-08-13

SNMPSET data resets on hardware reboot

2014-08-14 Thread Vince Hurst
I can set data fine. (ie: sysName.0 ; sysContact.0 ; sysLocation.0) When I re-probe the devices with my NMS, the data I set shows up. However, if I reboot the device, the data fields return to the default values. I've seen this with a couple different devices. The example I'll use in this cas

RE: snmpset syntax using string which is a textfile

2014-05-22 Thread Paul J. Martijn
Hi, I am trying to load a textfile into a Cisco router using SNMPSET. On SunOS or some other unix flavours I can create a file i.e. snmpset.template, copy this to the /tftpboot folder and execute the command using the syntax below. However when executing this on linux, I get an errormsg

MIB read/write(snmpwalk/snmpset) problem

2013-02-18 Thread bensassi youssef
e : SNMPv2-SMI::enterprises.4890.1.1 = No Such Object available on this agent at this OID So I guess that snmpd is telling me he can't find anything under this tree, because nothing has been set yet. So I tried to set this test variable with snmpset on the shell command : #snmpset -v 2c -c pr

Re: Table or Scalar Command for snmpset

2012-11-26 Thread Wes Hardaker
Sverre Moe writes: > Calling with no parameters > snmpset netSnmpHostsTable.0 > or calling with 3 parameters > snmpset netSnmpHostsTable.1 something netSnmpHostsTable.2 something else > netSnmpHostsTable.3 something more You can do functionally what you want to do, though a

Re: Table or Scalar Command for snmpset

2012-11-26 Thread Sverre Moe
ill setting multiple values/columns for one OID be handled as one request by my handler? I'm thinking perhaps tables is not the right structure for my commands as I might have columns, but only 1 row anyway. After taking a look at the code for getting values from the snmpset command it see

Table or Scalar Command for snmpset

2012-11-23 Thread Sverre Moe
If there is anyone active on this mailing list I hope they can answer me on this question. So down to business: I need to know how I can set multiple parameter values with snmpset for my commands? I have implemented my commands as simple scalars, but lately I was thinking perhaps I needed to

Re: Not able to set value using snmpset

2012-10-31 Thread Anirudha Patil
Hello Dave, Thank you for the comments. I would see to it that i study more on agent and extending the support for agent. With Regards Anirudha Patil On Wed, Oct 31, 2012 at 6:06 PM, Dave Shield wrote: > On 31 October 2012 11:59, Anirudha Patil wrote: > > I have a concern about

Re: Not able to set value using snmpset

2012-10-31 Thread Dave Shield
On 31 October 2012 11:59, Anirudha Patil wrote: > I have a concern about "snmpset" command. I'm not able to set a > hrStorageDescr or hrStorageType. Correct. >From the definition of these objects in HOST-RESOURCES-MIB: hrStorageType OBJECT-TYPE MAX-ACCESS read-only

Not able to set value using snmpset

2012-10-31 Thread Anirudha Patil
Hello, I have a concern about "*snmpset*" command. I'm not able to set a hrStorageDescr or hrStorageType. I have a working system and a CDROM mounted on my server [/mnt]. Now the SNMP response show the type for CDROM detected [mounted on dir /mnt] as * hrStorageFixedDisk*. I wish

Re: snmpget and snmpset don't work HELP PLEASE!

2012-08-20 Thread luiscc1989
Hi Dave, Thanks for your responds, the MIB was created by Mod-Apache-SNMP project that is an open source solution and extension of Apache project for SNMP protocol since 2006. http://mod-apache-snmp.sourceforge.net/english/index.htm http://sourceforge.net/projects/mod-apache-snmp/files/ I downl

snmpget and snmpset don't works HELP PLEASE!

2012-08-20 Thread luiscc1989
che2MIBStatus(2) 5 } When I eject snmpget or snmpset it doesn't work root@PandoraServer:~# snmpget -c apache2 -v 2c 192.168.1.10 serverStatus.0 APACHE2-MIB::serverStatus.0 = No Such Object available on this agent at this OID root@PandoraServer:~# snmpset -c apache2 -v 2c 192.168.1.10 serverStatu

Re: snmpget and snmpset don't work HELP PLEASE!

2012-08-20 Thread Dave Shield
On 20 August 2012 14:27, luiscc1989 wrote: > I'm trying to install a new MIB (APACHE2-MIB) in my host and I think that it > recognizes. I copied the MIB into the default mibdirs, however it doesn't > get any data. Have you written any code for the agent to implement this MIB? Please see the FAQ

Fwd: snmpget and snmpset don't work HELP PLEASE!

2012-08-20 Thread luiscc1989
che2MIBStatus(2) 5 } When I eject snmpget or snmpset it doesn't work root@PandoraServer:~# snmpget -c apache2 -v 2c 192.168.1.10 serverStatus.0 APACHE2-MIB::serverStatus.0 = No Such Object available on this agent at this OID root@PandoraServer:~# snmpset -c apache2 -v 2c 192.168.1.10 serverStatu

Unexplained coverage results for snmpset w/invalid values

2012-05-29 Thread Kevin Stone
I’m starting to use lcov (a coverage tool) on one of our projects that has a net-snmp interface, and I’m getting some false-negatives with the SNMPSET handler code that I can’t explain. I _KNOW_ that the test vector script is exercising each read-write accessible parameter with several boundary

Re: How to disable snmpset?

2012-03-14 Thread Dave Shield
On 14 March 2012 21:52, X Z wrote: > I wonder if snmpset can be turned off without recompiling the source code? Use access control on the agent. If you only have "rocommunity" and/or "rouser" directives (or the equivalent), then SET requests

How to disable snmpset?

2012-03-14 Thread X Z
Hi, I wonder if snmpset can be turned off without recompiling the source code? ThanksXuan-- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes us

specify outgoing interface for snmpset(1)

2012-03-14 Thread Martin T
I'm using snmpset version 4.2.3 on a server, which has multiple subinterfaces(eth0 10.10.10.1/24; eth0:1 192.168.1.3/24; eth0:2 192.168.1.5/24; eth0:200 192.168.1.90/24). I need to use snmpset in a way, that packets sent from this server use source address 192.168.1.5. In other words snmp

Re: net snmp on 64bit ubuntu snmpset failure

2012-03-08 Thread Dave Shield
On 8 March 2012 01:51, Alex Hu wrote: > I am trying to use net snmp for our test project. I have installed net snmp > 6.6.1.1 on my 64 bit Ubuntu machine. > > I can successfully run snmpget command... > But when I try to test its snmpset command, I keep getting WRONG LENGTH >

net snmp on 64bit ubuntu snmpset failure

2012-03-08 Thread Alex Hu
-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = INTEGER: 1 But when I try to test its snmpset command, I keep getting WRONG LENGTH error: snmpset -v 2c -c public localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 i 5 Error in packet. Reason: wrongLength (The set value has an illegal length from

Re: why snmpset doesn't work on some OIDs?

2011-12-28 Thread Dave Shield
On 11 December 2011 09:34, h bagade wrote: > I'm trying to set different OIDs on freebsd8.2 with use of snmpset. In some > cases it works but in others it doesn't! > > I was successful in setting sysName(1.3.6.1.2.1.1.5.0) and sysLocation( > 1.3.6.1.2.1.1.6.0) but

why snmpset doesn't work on some OIDs?

2011-12-11 Thread h bagade
Hi all, I'm trying to set different OIDs on freebsd8.2 with use of snmpset. In some cases it works but in others it doesn't! I was successful in setting sysName(1.3.6.1.2.1.1.5.0) and sysLocation( 1.3.6.1.2.1.1.6.0) but couldn't set ipForwarding( 1.3.6.1.2.1.4.1.0)

Re: snmpset gives different error reasons for v1 and v2c

2011-10-26 Thread ashok kumar
Hello Dave, That was quick and very informative. I will go through the RFCs again. Thanks. Regards, Ashok On Tue, Oct 25, 2011 at 6:30 PM, Dave Shield wrote: > On 25 October 2011 13:17, ashok kumar wrote: >> While I am trying snmpset with -v1 and -v2c, I am getting different >&

Re: snmpset gives different error reasons for v1 and v2c

2011-10-25 Thread Dave Shield
On 25 October 2011 13:17, ashok kumar wrote: > While I am trying snmpset with -v1 and -v2c, I am getting different > reasons for errors. > > Why am I getting noSuchName for -v1? Because that is the defined behaviour for SNMPv1. See RFC 1157, section 4.1.5, step (1) >

snmpset gives different error reasons for v1 and v2c

2011-10-25 Thread ashok kumar
Hello All, I have a community "benu123" configured as read-only. I could do snmpget with both -v1 and -v2c. While I am trying snmpset with -v1 and -v2c, I am getting different reasons for errors. I believe the error reason should be noAccess as in the -v2 case. Why am I getting noSu

noAccess error seen for snmpset operations

2011-08-23 Thread N. Karthikeyan
Hi All,     I am trying to use the shared library with net-snmp. Before trying my .SO lib, I try to test the snmpd with nstAgentPluginObject.so I always get noAccess error for the snmpset operations. Here is the log: kanatara-lnx:270> sudo snmpd -f -L -DnstAgentPluginObject,dlmod & [1

How to set IP address using snmpset command

2011-08-18 Thread devel tech
Hi list, Any one guide me how to SET IP address of PC/Node/Router using SNMP ... Any one try this? plz share it here.. Regards -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabi

Help regarding snmpset for sample nstAgentModuleObject

2011-07-06 Thread Nisha P K
make a set on the variable. # snmpget -v2c -c telpublic localhost nstAgentModuleObject.0 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = INTEGER: 12 The value 12 was because I had given that as the default value in nstAgentModuleObject.c But when I do snmpset it doesn't work. # snmpset -v

Re: snmpset and DISPLAY-HINT

2011-05-23 Thread Wes Hardaker
>>>>> On Thu, 19 May 2011 09:03:49 +0200, "Giuseppe Modugno" >>>>> said: GM> snmpset -v2c -c private agent PRIVATE-MIB::myVar.0 = 23.4V GM> to send to the agent the request to set a the new value 23.4V for GM> myVar. On the wire, the value

snmpset and DISPLAY-HINT

2011-05-19 Thread Giuseppe Modugno
Dear list, I have a private MIB with an INTEGER OID with DISPLAY-HINT "d-1" and UNITS "V". It means that the value 123 is shown (by snmpget or other managers) as "12.3 V". It should be nice if I can use the same format also for SET requests to the agent. So I

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Leo Lin
Understood, thanks so much Dave   Leo; --- On Mon, 4/18/11, Dave Shield wrote: From: Dave Shield Subject: Re: sending an IPC for incoming snmpset commands To: "Leo Lin" Cc: net-snmp-users@lists.sourceforge.net Date: Monday, April 18, 2011, 6:42 AM On 18 April 2011 14:10, Leo

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Dave Shield
On 18 April 2011 14:10, Leo Lin wrote: >  I make use of text file to exchange the value of OID between my main program > and snmpd.  when snmp manager issue a get, snmpd reads the contents from > this text file, and write to it with 'sets'. In which case, it would make more sense to trigger the I

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Leo Lin
;sets'.  I use several modules to extend my snmp agent, and I would like to use IPC to notify my application program when and OID value has changed due to the snmp manager.   Thanks!   Leo; --- On Mon, 4/18/11, Dave Shield wrote: From: Dave Shield Subject: Re: sending an IPC for incomi

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Dave Shield
On 17 April 2011 03:02, Leo Lin wrote: > I would like to send an interprocess communicatio message whenever > an snmpset command is received by the snmpd. Regardless of the OID that is being set? Why? What are you trying to do here? >  I checked the snmpd source code, and seems that

sending an IPC for incoming snmpset commands

2011-04-16 Thread Leo Lin
Hi,   I would like to send an interprocess communicatio message whenever an snmpset command is received by the snmpd.  I checked the snmpd source code, and seems that my custom code should be place in the receive() function, however, I cannot find where the requests are handled beside my custom

Re: problem about snmpset

2011-04-13 Thread Dave Shield
On 13 April 2011 02:05, liuying wrote: >     I have a problem about snmpset,when I set only one variable,all the > values of variables are changed . That's because you only have one underlying variable (example_int). All three scalar MIB objects are reporting this same val

problem about snmpset

2011-04-12 Thread liuying
Dear:  I have a problem about snmpset,when I set only one variable,all the values of variables are changed .         I want to change the value of only one variable,what can I do to solve the problem?   For example,when I use: "snmpste -v2c -c private localhost upFlow.0 i 3&quo

Re: problem about snmpset

2011-04-12 Thread Markus Gaugusch
Hi:     I have a problem about snmpset,when I set only one variable,all the values of variables are changed .     I want to change the value of only one variable,what can I do to solve the problem? Looking forward for your help!     Here is p

Re: problem about snmpset

2011-04-12 Thread Markus Gaugusch
That's easy: make a break :) (After each case block) Br, Markus -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. liuying wrote: Hi: I have a problem about snmpset,when I set only one variable,all the values of variables are changed . I want to c

problem about snmpset

2011-04-12 Thread liuying
Hi:    I have a problem about snmpset,when I set only one variable,all the values of variables are changed .     I want to change the value of only one variable,what can I do to solve the problem? Looking forward for your help!     Here is parts of my program,"example_int"i

Re: change configuraion throught snmpset - (without restart)

2011-03-09 Thread Dave Shield
On 9 March 2011 11:50, Naama Bar Menachem wrote: > Thank you! > But, I fail to set it to 1: > > snmpset -v 2c -c private 127.0.0.1 UCD-SNMP-MIB::versionUpdateConfig i 1 > Error in packet. > Reason: notWritable (That object does not support modification) > Failed

RE: change configuraion throught snmpset - (without restart)

2011-03-09 Thread Naama Bar Menachem
Subject: Re: change configuraion throught snmpset - (without restart) On 9 March 2011 11:50, Naama Bar Menachem wrote: > Thank you! > But, I fail to set it to 1: > > snmpset -v 2c -c private 127.0.0.1 UCD-SNMP-MIB::versionUpdateConfig i 1 > Error in packet. > Reason: notWritable (Th

RE: change configuraion throught snmpset - (without restart)

2011-03-09 Thread Naama Bar Menachem
Thank you! But, I fail to set it to 1: snmpset -v 2c -c private 127.0.0.1 UCD-SNMP-MIB::versionUpdateConfig i 1 Error in packet. Reason: notWritable (That object does not support modification) Failed object: UCD-SNMP-MIB::versionUpdateConfig Thank you, Naama -Original Message- From

Re: change configuraion throught snmpset - (without restart)

2011-03-08 Thread Dave Shield
On 8 March 2011 16:03, Naama Bar Menachem wrote: > But I didn't understand your answer. > What does this option do? If you've changed the contents of the snmpd.conf file, then setting this object will tell the agent to reload those config changes, without having to restart the agent completely.

RE: change configuraion throught snmpset - (without restart)

2011-03-08 Thread Naama Bar Menachem
Sent: Tuesday, March 08, 2011 5:39 PM To: Naama Bar Menachem Cc: net-snmp-users@lists.sourceforge.net Subject: Re: change configuraion throught snmpset - (without restart) On 8 March 2011 15:06, Naama Bar Menachem wrote: > I would like to allow users to change SNMP configuration (for example: >

Re: change configuraion throught snmpset - (without restart)

2011-03-08 Thread Dave Shield
On 8 March 2011 15:06, Naama Bar Menachem wrote: > I would like to allow users to change SNMP configuration (for example: > community name, trap host address…) using a snmpset command. $ snmptranslate -Td UCD-SNMP-MIB::versionUpdateConfig UCD-SNMP-MIB::versionUpdateConfig versionUpdate

change configuraion throught snmpset - (without restart)

2011-03-08 Thread Naama Bar Menachem
Hi I would like to allow users to change SNMP configuration (for example: community name, trap host address...) using a snmpset command. The only way I know to do that is by editing the snmpd.conf file and restart the agent, however that way- I will not be able to respond to the set request

Fwd: snmpset via TCP

2011-02-25 Thread Egor
Hello! I'm trying to use snmpset over TCP protocol, but can't find a way, is somewhere option for snmpset to use TCP protocol? snmpget -v2c -c private 192.168.0.10:171 is timeout, but I'm sure that snmpd on another station is running with 171 opened port. Bes

Re: snmpset via TCP

2011-02-25 Thread Egor
I found solution by myself: snmpwalk -v2c -c private tcp:192.168.0.10:171 anyway thanks =) 2011/2/25 Egor > Hello! > > I'm trying to use snmpset over TCP protocol, but can't find a way, is > somewhere option for snmpset to use TCP protocol? > > snmpget -v2c -c priv

Snmpset response differently on Linux(Debian) and MIPS platform

2011-01-25 Thread Kumar Sanjay-XJD784
Hi, [change the subject line of my previous mail for quick reference] Snmpset response differently on Linux(Debian) and MIPS platform I have another issue For the reference I have attached the file(dot-c and dot-h) When I run snmp on linux machine(Debian) And do the snmpset it works properly

Re: snmpset gives an gen Error message

2010-11-29 Thread Leo Lin
snmpget, it will not create this error, as it does not go through the several SET modes as in snmpset.   Hope it helps,   Leo; --- On Mon, 11/29/10, jack n wrote: From: jack n Subject: Re: snmpset gives an gen Error message To: "Leo Lin" Cc: "Net-snmp-users" Date: Monday,

RE: SNMPSET - Error - :(genError) A general failure occured

2010-11-29 Thread Ramakrishna Dronamraju Venkatavalli
unsubscribe -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with

Re: SNMPSET - Error - :(genError) A general failure occured

2010-11-29 Thread jack n
placed them under > /agent/mibgroup. > > Now when I try to run snmpwalk and SNMPGET request they work succesfully, > but when I run SNMPSET for the same OID, it fails and returns an error. > > *# snmpwalk -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4* > *.1.3.6.1

Re: snmpset gives an gen Error message

2010-11-29 Thread jack n
eo Lin * wrote: > > > From: Leo Lin > Subject: snmpset gives an gen Error message > To: "Net-snmp-users" > Date: Saturday, October 16, 2010, 2:38 PM > > >Hi, > > I've been extending the snmpd with my own modules. I made sure that each > module

Re: simple snmpset for a single SNMP Object

2010-11-28 Thread Kobi Biton
Dave thanks a lot ! worked like magic. Kobi On Sun, 2010-11-28 at 22:05 +, Dave Shield wrote: > On 28 November 2010 20:30, Kobi Biton wrote: > > # snmpset -v 2c -c boodi-set localhost ApocValue i 50 > > Error in packet. > > Reason: notWritable (That object does not

Re: simple snmpset for a single SNMP Object

2010-11-28 Thread Dave Shield
On 28 November 2010 20:30, Kobi Biton wrote: > # snmpset -v 2c -c boodi-set localhost ApocValue i 50 > Error in packet. > Reason: notWritable (That object does not support modification) > Failed object: MY-COMPANY3-MIB::ApocValue > ApocValue OBJECT IDENTIFIER ::= { myCompany3MIB

simple snmpset for a single SNMP Object

2010-11-28 Thread Kobi Biton
hi there I am trying to write a very simple code single mib , single field (see below) , the purpose is to perform an snmpset from bash to this single field via script and then a simple snmpget from manager station , I am using mib2c with this template mib2c.int_watch.conf , themn I am using gcc

snmpset IANA new PEN

2010-11-25 Thread Kobi Biton
hi I recently got my own IANA PEN enterprise number , I am trying to understand what needs to be done In order to enable snmpset under my new number , do I need to write my own mib ? Is there a faster way on doing so ? how complicated is it ? Thanks, Kobi

SNMPSET - Error - :(genError) A general failure occured

2010-11-24 Thread jack n
Hi All, I had placed my private MIBs under /usr/share/snmp/mibs and compiled them using mib2c. I got .c and .h files, added my code in the .c file and placed them under /agent/mibgroup. Now when I try to run snmpwalk and SNMPGET request they work succesfully, but when I run SNMPSET for the same

Re: problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Leo Lin
Hi Dave,   I found my mistake, I used   strlen(requests->requestvb->val.string) to find the length of the string, but this is not null terminated string, so it is returning the longest string I've ever set with snmpset, in this case "private"   if I use, requests->reques

Re: problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Dave Shield
On 18 October 2010 15:13, Leo Lin wrote: > Then, I issue an snmpset and modify the contents to a strlen less than > 'private' (7). > snmpset does it right the first time, but consecutives calls to snmpset, > gives me the remainder of 'private' It sounds as if yo

problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Leo Lin
Hi,   I'm using net-snmp-5.6.rc1, and I just encontered a strange behavior while issuing multiple snmpset on octet string oids.   I have an oid that holds an octet string.  When my module is initialized, the contents of the oid is initialized to "private".   Then, I issue an snmp

Re: snmpset gives an gen Error message

2010-10-16 Thread Leo Lin
I've found the bug, now it's working fine.   Thanks!   Leo; --- On Sat, 10/16/10, Leo Lin wrote: From: Leo Lin Subject: snmpset gives an gen Error message To: "Net-snmp-users" Date: Saturday, October 16, 2010, 2:38 PM Hi,   I've been extending the snmpd wit

snmpset gives an gen Error message

2010-10-16 Thread Leo Lin
Hi,   I've been extending the snmpd with my own modules.  I made sure that each module is working properly before adding another one.   Suddendly, on one of the latest modules, netsnmp builds ok, but I get an error while using snmpset command.   I also tested the snmpset with a library

Re: snmpset table values using oid instead of textual MIB description

2010-10-07 Thread Leo Lin
value of the column given a index,   the syntax is   snmpset -v1 -cprivate localhost ..   my index field is an ASN_OCTET_STR,   ps/ sorry to double-post, hit the wrong key in yahoo mail editor... --- On Thu, 10/7/10, Leo Lin wrote: From: Leo Lin Subject: Re: snmpset table values using oid inst

Re: snmpset table values using oid instead of textual MIB description

2010-10-07 Thread Leo Lin
I added the following code to snmpset.c to display the parsed oid   int oid_count = 0; prinft("\noid = "); for (oid_count = 0; oid_count < name_length; oid_count++){   } --- On Wed, 10/6/10, Leo Lin wrote: From: Leo Lin Subject: snmpset table values using oid instead o

snmpset table values using oid instead of textual MIB description

2010-10-06 Thread Leo Lin
mands that look something like (valid authentication information not shown in these commands): % snmpwalk localhost netSnmpIETFWGTable nsIETFWGChair1."snmpv3" = "Russ Mundy" nsIETFWGChair2."snmpv3" = "David Harrington" % snmpset local

Re: snmpset problem

2010-09-04 Thread Shu Hung (Koala)
So I can't have the same community name for both 'rwcommunity' and 'rocommunity' ... I removed the rocommunity line and it gets better: Error in packet. Reason: notWritable (That object does not support modification) Failed object: UCD-DEMO-MIB::ucdDemoPublicString.0 At least I have some positiv

Re: snmpset problem

2010-09-03 Thread Wes Hardaker
You might try a different community than "public". I'm betting that you have a 'rocommunity' with public around as well and it's conflicting. -- Wes Hardaker Cobham Analytic Solutions -- This SF.net Dev2Dev email is sp

snmpset problem

2010-08-26 Thread Shu Hung (Koala)
Hello, I'm trying to work something out with snmpset (Net-SNMP 5.5). I have added this line to my snmpd.conf rwcommunity public localhost And I did not set any restriction to the community 'public'. Then I try to set a dummy string to it with this command: snmpset -v 2c -c p

SNMPSET v3 problems

2010-07-08 Thread Markus Hofer
Hi everybody I am currently working in implementing a snmpv3 user. While snmpget and snmpwalk work perfectly fine, I have problems with snmpset. I always get the the same notWriteable answer if I wanna change some values So my setup createUser snmpv3_SHA_authNoPriv SHA "helloworld&qu

RE: snmpset - OSPF-MIB

2010-06-30 Thread Nina Cukic
Subject: RE: snmpset - OSPF-MIB To: "Nina Cukic" , net-snmp-users@lists.sourceforge.net Date: Thursday, 1 July, 2010, 1:20 > From: Nina Cukic [mailto:ninacu...@yahoo.co.uk] > Sent: Wednesday, June 30, 2010 4:07 PM > Well I am still having problem with snmpset when I am usig to ch

  1   2   3   4   >