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

2021-05-20 Thread Simone Moni
leCauseOBJECT-TYPE > SYNTAX DisplayString > MAX-ACCESS read-write > STATUS current > DESCRIPTION > "the probable cause of th

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 $default_PC = "PC 1"; sub myhandler {

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

2021-05-14 Thread Wes Hardaker via Net-snmp-coders
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 = "SP 1"; my $default_PC = "PC 1";

Snmp is frozen if the snmpset is delayed in subagent

2021-02-01 Thread Bláha Jakub
: Case no. 1) If the SNMPSET arrives to my subagent and it is marked as delayed, the while snmp system is frozen. No other clients can do snmp commands such as snmpget, snmpset, snmpwalk,.. After the delayed snmpset request is marked as non delayed, then clients can again communicate with master

Perl extension NetSNMP::agent. How to get value in perl through "snmpset"

2020-09-17 Thread Drovalev R.N.
Hello! How to get value in perl extension via command as below. snmpset -c private -v 1 localhost .1.3.6.1.4.1.318.2.1.2.1.2.1 s i.e. How to get the value "" for the variable $string_value Thanks - code - #!/usr/bin/perl use NetSNMP::OID (':all'); u

A question for error of snmpset command

2019-11-13 Thread baobut...@pinduoduo.com
hello, I have a question of snmpset command. Do you know how to solve this problem. I execute the command "snmpset -v 3 -u [username] -l authPriv -a sha -A [password] -x aes -X [cipherkey] [ip] ".1.3.6.1.4.1.2011.5.25.42.3.1.1.1.1.3.33" x "3F FF FF FF FF FF F8".

snmpset does not retain value after restart/reset y

2017-04-28 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
ill 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 restart the

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

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

2014-10-03 Thread sarath azad
    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 val1  c2 val2  c3 val3” we are getting these valuesval1, val2 and val3 properly in code and they are getting properly updated inthe

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

2014-10-03 Thread Bill Fenner
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 val1 c2 val2 c3 val3” we are getting these values val1, val2 and val3 properly in code

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

2014-09-04 Thread sarath azad
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 val1 c2 val2 c3 val3” 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

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

2014-09-04 Thread Bill Fenner
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 val1 c2 val2 c3 val3” we are getting

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

2014-09-03 Thread Bill Fenner
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 saraths...@yahoo.co.in wrote: Hello, Could you please help in resolving the below issue? For SNMPSET on a table which contains a column of string

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 of column values

RE: Unable to perform SNMPSET operation

2013-02-19 Thread keshav.lute
to view the content of this VLAN.DAT file. Best Regards, Keshav Lute -Original Message- From: Edouard COLE [mailto:e...@rg-systemes.com] Sent: Thursday, November 29, 2012 8:56 PM To: Lute,K,Keshav,DMR C; net-snmp-coders@lists.sourceforge.net Subject: RE: Unable to perform SNMPSET

Re: Unable to perform SNMPSET operation

2013-02-19 Thread Magnus Fromreide
On Tue, Feb 19, 2013 at 05:00:41PM +, keshav.l...@bt.com wrote: HI, I have downloaded vlan.dat file from the Cisco IOS router using SNMP TFTP transfer. Now I am unable to view the content of this .dat file as I have tried opening it with notepad,Wordpad,textpad,Microsoft word but

RE: Unable to perform SNMPSET operation

2012-11-30 Thread keshav.lute
-coders@lists.sourceforge.net Subject: RE: Unable to perform SNMPSET operation Hi, What's the prompted error? - sandvige - HI Team,     I have installed net-snmp tool Version:  5.6.1 on my linux box and found that SNMPSET is not working

Unable to perform SNMPSET operation

2012-11-28 Thread keshav.lute
HI Team, I have installed net-snmp tool Version: 5.6.1 on my linux box and found that SNMPSET is not working properly. I am able to get device details through snmpget but not through snmpset. Getting an timeout response. What can be the cause here. Best Regards, Keshav Lute

RE: problem with snmpset

2012-05-03 Thread Durga Sree
Am able to solve that problem if i run with sysName am getting the correct result but when i use other objects am getting the following error root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysName.0 s office SNMPv2-MIB::sysName.0 = STRING: office root@newuser-desktop

Re: problem with snmpset

2012-05-03 Thread Dave Shield
On 3 May 2012 05:01, Durga Sree durga.s...@lnties.com wrote: Am able to solve that problem if i run with sysName am getting the correct result but when i use other objects am getting the following error root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysName.0 s

problem with snmpset

2012-05-02 Thread Durga Sree
Hi, I am facing problem with snmpset. after alkl settings in access control still am not able to solve the problem I am getting the following error root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysLocation.0 s Hello Error in packet. Reason: notWritable (That object does

Re: problem with snmpset

2012-05-02 Thread Robert Story
On Wed, 2 May 2012 09:35:31 + Durga wrote: DS Hi, DS I am facing problem with snmpset. DS after alkl settings in access control still am not able to solve the DS problem I am getting the following error DS DS root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost DS

snmpset

2012-05-02 Thread Jasti Durgashree
Hi, Am getting different error when i run snmptrap command.following is the error root@newuser-desktop:/home/newuser # snmpset -v 2c -c private XXX-MIB::XXX.0 i 100 i: Bad object type:1 if i change the data type to s (string,i.e just to check which error it gives) instead of i it gives

Re: snmpset

2012-05-02 Thread Niels Baggesen
Den 02-05-2012 17:36, Jasti Durgashree skrev: Hi, Am getting different error when i run snmptrap command.following is the error root@newuser-desktop:/home/newuser # snmpset -v 2c -c private XXX-MIB::XXX.0 i 100 i: Bad object type:1 Where is the hostname? /Niels -- Niels Baggesen

problem with snmpset

2012-05-01 Thread Jasti Durgashree
Hi all, I am facing a problem with snmpset, even though i have defined my mib object to be read-write am getting the following problem so can anyone please help? root@ubuntu:/home/user# snmpset -v 2c -c public localhost XXX.0 s mumbai Error in packet. Reason: noAccess Failed object: SNMPv2

Re: problem with snmpset

2012-05-01 Thread Dave Shield
On 1 May 2012 13:15, Jasti Durgashree shreemo...@gmail.com wrote:   I am facing a problem with snmpset, even though i have defined my mib object to be read-write am getting the following problem  so can anyone please help? Check the access control settings for your agent. From the FAQ: Why

Re: snmpset

2012-04-18 Thread Jasti Durgashree
i understood what is snmpset bt am asking how to parse oid in code On Tue, Apr 17, 2012 at 9:53 PM, Niels Baggesen n...@users.sourceforge.netwrote: On Tue, Apr 17, 2012 at 08:47:04PM +0530, Jasti Durgashree wrote: Hi all, can anyone please tell me about how to set oid value in snmpset.c

Re: snmpset

2012-04-18 Thread Dave Shield
On 18 April 2012 16:44, Jasti Durgashree shreemo...@gmail.com wrote: i understood what is snmpset bt am asking how to parse oid in code From the code file you referenced: oid name[MAX_OID_LEN]; size_t name_length; name_length = MAX_OID_LEN

snmpset

2012-04-17 Thread Jasti Durgashree
Hi all, can anyone please tell me about how to set oid value in snmpset.c? -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app

Re: snmpset

2012-04-17 Thread Niels Baggesen
On Tue, Apr 17, 2012 at 08:47:04PM +0530, Jasti Durgashree wrote: Hi all, can anyone please tell me about how to set oid value in snmpset.c? man snmpset ??? What is it you do not understand? /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose

snmpset with multiple OIDs

2011-11-25 Thread Nilesh Karle
Hi, I found snmpset misbehaves when multiple OIDs are given. Note: One OID of agent and one of sub-sgent. Even when the oid of main agen is not writable , snmpset shows the result as succeded. Any hint/suggestion on this ? Thanks, Nils This message and any

Re: snmpset with multiple OIDs

2011-11-25 Thread Dave Shield
On 25 November 2011 09:36, Nilesh Karle nilesh.ka...@qlogic.com wrote: I found “snmpset” misbehaves when multiple OIDs are given. Note: One OID of agent and one of sub-sgent. Even when the oid of main agen is not writable, snmpset shows the result as succeded. Hmmm... sounds odd. What

How to set ip address with snmpset for a device using IF-MIB

2011-11-18 Thread sundararaman.dheivanayagam
Hi, Please let me know how to set IP address for a device e.g. Linux server using IF-MIB with snmpset application. Sundar -- All the data continuously generated in your IT infrastructure contains a definitive

Re: snmpset ?

2011-09-14 Thread Wes Hardaker
the sp snmpset command to the snmp agent, which in turn will start the 3rd sp party application. sp is it feasible ? is it a practice in net-snmp ? Yes it is; and in fact that's one purpose from the original version of the agent a long time ago. See the snmpd.conf manual page on the 'extend', 'pass

snmpset ?

2011-09-07 Thread sujata patra
I like to define an MIB(OID) and implement in extention agent . As part of that implementation I like to run an application  script ( let's say to start or stop an application). User will throw the snmpset command to the snmp agent, which in turn will start the 3rd party application

Re: I have some problem when I use snmpset command.

2010-12-20 Thread Niels Baggesen
Den 15-12-2010 04:27, nattaphon.phongwetpan...@thomsonreuters.com skrev: Dear Robert Story, Sorry for my mistake. It is joeTest.0. However, it still have a same problem. Your function does not specify a return value, so it will be some random value. You should normally return

RE: I have some problem when I use snmpset command.

2010-12-15 Thread Nattaphon.Phongwetpanich
Dear Robert Story, Sorry for my mistake. It is joeTest.0. However, it still have a same problem. #snmpset -u amstest -a MD5 -l AuthNoPriv -c private -A 0spring1 -v 2c localhost REUTERS-JO-TEST-MIB::joeTest.0 i 1 Error in packet. Reason: (genError) A general failure occured Failed object

Re: I have some problem when I use snmpset command.

2010-12-14 Thread Robert Story
On Tue, 14 Dec 2010 15:32:39 +0700 nattaphon.phongwetpan...@thomsonreuters.com wrote: NPC #snmpset -u amstest -a MD5 -l AuthNoPriv -c private -A 0spring1 -v 2c NPC localhost REUTERS-JO-TEST-MIB::joeTest.1 i 1 Is joeTest.1 a typo? The oid you registered and the oid in the error are joeTest.0

using snmpset to create community entry

2010-08-10 Thread Eyre, Bernadette (Bernadette)
All, Is it possible to do snmpwalk on the snmpCommunityTable? If so do you use v1, v2, or v3 command options? In addition, is it possible to use snmpset command to create a new community entry in snmpCommunityTable? If so which snmpset command options must be used, v1, v2, or v3 options

Re: using snmpset to create community entry

2010-08-10 Thread Dave Shield
- if the information simply isn't there, then you can't retrieve it! In addition, is it possible to use snmpset command to create a new community entry in snmpCommunityTable? In principle, yes - assuming the SNMP agent implements this table. In the case of the Net-SNMP agent - no. If so which snmpset command

Re: how to code snmpset for scalar type object

2010-04-13 Thread Wes Hardaker
On Tue, 13 Apr 2010 15:20:57 +0530, Hemant Soundankar hemantsoundan...@gmail.com said: HS please tell me where is the string value cached in the following set HS command In the request-requestvb varbind structure. HS and in which case will the switch statement jump when i run the HS above

Re: how to code snmpset for scalar type object

2010-04-12 Thread Wes Hardaker
On Sun, 11 Apr 2010 10:45:32 +0530, Hemant Soundankar hemantsoundan...@gmail.com said: HS case MODE_SET_ACTION: HS Please tell me where do i make changes and what changes are to be made. The real change should be in the ACTION phase, and the rest of the code is to allow you to implement a

how to code snmpset for scalar type object

2010-04-10 Thread Hemant Soundankar
Hello ALL, I am trying to work on snmpget and snmpset on an simple MIB that i have created. The objective of my subagent will be - I have a simple text file which will contain only one word (eg either Postgres or MySQL). Now from the agent's machine i have to run a snmpset command for this file

snmpget and snmpset for a scalar object of the syntax: DisplayString

2010-04-08 Thread Hemant Soundankar
Hello ALL, I am trying to work on snmpget and snmpset on an simple MIB that i have created. The objective of my subagent will be - I have a simple text file which will contain only one word (eg either Postgres or MySQL). Now from the agent's machine i have to run a snmpset command for this file

Re: snmpset fails on MIPS

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Tue, 8 Dec 2009 20:35:22 -0800 (PST) nathan wrote: N I am calling snmpset on an OID like this...snmpset -v2c -cpublic IP

Re: snmpset question.. can be possible ?

2010-01-04 Thread Dave Shield
2009/12/28 Francesco Andreozzi - Gamestorm.it francesco.andreo...@gamestorm.it: I write some agents, all works great! when i start a snmpd some agent have a null value.. The value of a MIB object must match the syntax defined in the MIB file. This cannot include the type NULL. The NULL

snmpset question.. can be possible ?

2009-12-28 Thread Francesco Andreozzi - Gamestorm.it
Hi all, just a question... i hope for a solution :D I write some agents, all works great! when i start a snmpd some agent have a null value.. i can work on my agent with snmpget and snmpset without problem, but my question is... there is a way to set a value to NULL with an snmpset command

Re: snmpset response

2009-12-25 Thread Bart Van Assche
On Thu, Dec 24, 2009 at 5:48 PM, nathan nitha_2...@yahoo.com wrote: You can use some OID to send the meaningful information, and everytime you do the set include those OID. You mean I need to do a snmpget on another OID to get the meaningfull info after I do the snmpset

Re: snmpset response

2009-12-24 Thread nathan
You can use some OID to send the meaningful information, and everytime you do the set include those OID. You mean I need to do a snmpget on another OID to get the meaningfull info after I do the snmpsetif this is what you meant are there any other ways, not snmptrap, to send back

snmpset response

2009-12-23 Thread nathan
Hi, I am just wondering if I can customize the response as a result of a snmpset. In other words, i want to send back some meaningfull information as a result of snmpset. currently, the response of snmpset is the OID and the value you set thanks

Re: snmpset response

2009-12-23 Thread Dave Shield
2009/12/23 nathan nitha_2...@yahoo.com: I am just wondering if I can customize the response as a result of a snmpset. No. currently, the response of snmpset is the OID and the value you set Correct. That's what the specification of SNMP requires. Dave

Re: snmpset fails on MIPS

2009-12-14 Thread Dave Shield
2009/12/9 nathan nitha_2...@yahoo.com: The OID is my own, and it is nothing to do with OS. It is a very simple integer value from  my MIB tree. Ah - so it's presumably a cross-compiling issue. I'm afraid that I have no experience of cross-compiling, so can't help you with this one. Dave

Re: snmpset fails on MIPS

2009-12-09 Thread Dave Shield
2009/12/9 nathan nitha_2...@yahoo.com: I am calling snmpset on an OID like this...snmpset -v2c -cpublic IP OID i 23. In x86 platform, the agent gets this message and the value 23, executes fine. Then I cross compiled for MIPS, the same code, and issued  the same cmd.. now the agent

Re: snmpset fails on MIPS

2009-12-09 Thread nathan
thanks for your response. The OID is my own, and it is nothing to do with OS. It is a very simple integer value from my MIB tree. --- On Wed, 12/9/09, Dave Shield d.t.shi...@liverpool.ac.uk wrote: From: Dave Shield d.t.shi...@liverpool.ac.uk Subject: Re: snmpset fails on MIPS To: nathan

snmpset fails on MIPS

2009-12-08 Thread nathan
Hi, I am calling snmpset on an OID like this...snmpset -v2c -cpublic IP OID i 23. In x86 platform, the agent gets this message and the value 23, executes fine. Then I cross compiled for MIPS, the same code, and issued the same cmd..now the agent is running on MIPS. Now the value received

Re: snmpset ipv6

2009-09-10 Thread Karthika Arunkumar
Hi Dave, I was able to stop the snmp which was respawning itself even it was stopped. And started the snmpd with ipv6. But seems there is no com2sec6 support. It warns me and errors saying unable to open specified endpoint. Should I explicitly add code to construct com2sec6 directive and parse

Re: snmpset ipv6

2009-09-01 Thread Karthika Arunkumar
Hi Dave, okay,If the config file snmpd.conf is not relevant to the NMS, why does it reside in NMS? Will this be used by the other end(Agent) or something? I am working as root in the Manager and another user(but with admin powers) in Agent. Before starting:

Re: snmpset ipv6

2009-09-01 Thread Dave Shield
2009/9/1 Karthika Arunkumar karthika.arunku...@gmail.com:  okay,If the config file snmpd.conf is not relevant to the NMS, why does it reside in NMS? It wouldn't. Will this be used by the other end(Agent) or something? Yes - this is the agent configuration file. Remember, the Net-SNMP

Re: snmpset ipv6

2009-08-28 Thread Karthika Arunkumar
of SNMP. It has since been superceded by the use of Textual Conventions, based on an underlying (binary) string type. So if you are using low-level commands (like snmpset), then you'd typically use type 'x' instead. One other main thing is I have an agent where snmp is implemented. How do

Re: snmpset ipv6

2009-08-28 Thread Dave Shield
2009/8/28 Karthika Arunkumar karthika.arunku...@gmail.com: 1)snmpd.local.conf (I edited agentaddress udp:161   to  agentaddress udp:161,udp6:161 ) 2) shell script which invokes my snmpd. I invoke it as snmpd udp:161,udp6:161 instead of snmpd udp:161 These two have the same effect. You

Re: snmpset ipv6

2009-08-22 Thread Dave Shield
addresses was a design mistake in the original specification of SNMP. It has since been superceded by the use of Textual Conventions, based on an underlying (binary) string type. So if you are using low-level commands (like snmpset), then you'd typically use type 'x' instead. One other main

Re: snmpset ipv6

2009-08-21 Thread Karthika Arunkumar
Thanks Dave. I saw the FAQ and that had the solution. Now I can set the IP for Alert destination for object ...AlertDestinationIP snmpset -v1 -c public 192.168.2.112 OID a 192.168.2.152 Here type 'a' is of type IPaddress. once the agent will start to support ipv6, I will try to set ipv6 and find

snmpset ipv6

2009-08-19 Thread Karthika Arunkumar
Hi all, How do I set an ipv6 through snmpset command. Does type 'a' support anyother type or only IPV4. Also setting ipv4 says a read-write variable is notwritable. How shall I proceed. Thanks so much, Karthika. -- Let

Re: snmpset ipv6

2009-08-19 Thread Dave Shield
2009/8/19 Karthika Arunkumar karthika.arunku...@gmail.com: How do I set an ipv6 through snmpset command. What is the exact MIB object that you are trying to set? Does type 'a' support anyother type or only IPV4. No - 'a' is specifically for IPv4. More recent MIBs tend to use a (binary

Re: snmpset -z option

2009-07-09 Thread Wes Hardaker
On Tue, 7 Jul 2009 17:43:06 -0600, chinmaya chinm...@gmail.com said: c It seem like somewhere in between version 5.2.1.2 and 5.4.2.1 c snmp_sess_init was updated to disable engine id probe (session-flags c |= SNMP_FLAGS_DONT_PROBE;), as a result of snmpv3_engineID_probe does c nothing, just

Re: snmpset -z option

2009-07-07 Thread chinmaya
: snmpset). And engine time details for the authoritative engine is added during snmp session open call (snmp_open) and its done by snmpv3_engineID_probe. It seem like somewhere in between version 5.2.1.2 and 5.4.2.1 snmp_sess_init was updated to disable engine id probe (session-flags

snmpset

2009-05-06 Thread 崔适男
hi my snmp version is 5.1.3 when i try to snmpset -v2c -c public localhost .1.3.6.1.2.1.4.21.1.3.1 i 4 /*(this is the second ip table)*/ the wrong messsage like this: Error in packet. Reason: noCreation (that table does not support row creation)Failed object: RFC1213-MIB::ipRouteMetric1.1

Re: snmpset

2009-05-06 Thread Dave Shield
2009/5/6 崔适男 r...@tdg-tech.com: my snmp version is 5.1.3 That is a very old version, and is no longer being supported. We suggest you upgrade. when i try to snmpset -v2c -c public localhost .1.3.6.1.2.1.4.21.1.3.1 i 4 /*(this is the second ip table)*/ What do you see if you

RE: processing of the multi varbinds in one snmpset command

2009-03-25 Thread EYRE Bernadette
Shield Sent: Fri 3/20/2009 5:44 AM To: EYRE Bernadette Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: processing of the multi varbinds in one snmpset command 2009/3/19 EYRE Bernadette bernadette.e...@alcatel-lucent.com: if the snmpset command line has multiple varbinds (variables) to modify

Re: processing of the multi varbinds in one snmpset command

2009-03-20 Thread Dave Shield
2009/3/19 EYRE Bernadette bernadette.e...@alcatel-lucent.com: if the snmpset command line has multiple varbinds (variables) to modify for the same table and the same row (index), how can one ensures that all vars are processed in one request struct? That's the reason that SET requests

RE: processing of the multi varbinds in one snmpset command

2009-03-20 Thread Bell, Adam
: processing of the multi varbinds in one snmpset command 2009/3/19 EYRE Bernadette bernadette.e...@alcatel-lucent.com: if the snmpset command line has multiple varbinds (variables) to modify for the same table and the same row (index), how can one ensures that all vars are processed in one

processing of the multi varbinds in one snmpset command

2009-03-19 Thread EYRE Bernadette
Hello All, if the snmpset command line has multiple varbinds (variables) to modify for the same table and the same row (index), how can one ensures that all vars are processed in one request struct? Here is simple case of what I do and have: I use snmpset command to set a variable but I also

Re: snmpset and non-root user

2009-02-06 Thread Dave Shield
2009/2/6 Pranesh Kulkarni pranes...@gmail.com: Thanks to Dave and Robert, I am using SNMP v2c , so I cannot do this . Then use an appropriate (secret) community string. That is the access control mechanism used for SNMPv1/2c I will give try in SNMPV2/USM . That doesn't make sense.

Re: snmpset and non-root user

2009-02-06 Thread Pranesh Kulkarni
By Mistake I gave as SNMPV2/USM . I will try in SNMPV3/USM I am now using as commity(secret) string . On Fri, Feb 6, 2009 at 3:15 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: 2009/2/6 Pranesh Kulkarni pranes...@gmail.com: Thanks to Dave and Robert, I am using SNMP v2c , so I

Re: snmpset and non-root user

2009-02-06 Thread Pranesh Kulkarni
wrote: PK I am running my agent as the subagent under the root user. If I am PK login as normal user , and do the snmpset operation , it is allowing to set PK the parameter.But my requirement says , it should only set the parameter if PK it is root user ??? The snmp packet does

Re: snmpset and non-root user

2009-02-05 Thread Robert Story
On Tue, 3 Feb 2009 13:13:50 +0530 Pranesh wrote: PK I am running my agent as the subagent under the root user. If I am PK login as normal user , and do the snmpset operation , it is allowing to set PK the parameter.But my requirement says , it should only set the parameter if PK it is root

snmpset and non-root user

2009-02-02 Thread Pranesh Kulkarni
Hi All, I am facing problem in *snmpset* operation. I am running my agent as the subagent under the root user. If I am login as normal user , and do the snmpset operation , it is allowing to set the parameter.But my requirement says , it should only set the parameter if it is root

HOW to use snmpset to set value of a COUNTER64 type OID parameter

2008-11-04 Thread varun taneja
Hi ALL, I want to set a OID parameter which is of type COUNTER64 using 'snmpset'. The parameter has MAX-ACCESS read-write and is member of a Table. I am trying following command snmpset -v2c -cpublic localhost MY-MIB::Variable.1 U 1234 But agent sends back a response with error status

RE: snmpset max string length.

2008-10-22 Thread Oleg Rabinovich
:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 08:43 To: Oleg Rabinovich Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: snmpset max string length. Oleg Rabinovich wrote: Is there any changes after the release (5.4.2) that can affect this issue? I can try to build it from SVN trunk

Re: snmpset max string length.

2008-10-07 Thread Thomas Anders
Oleg Rabinovich wrote: Is there any changes after the release (5.4.2) that can affect this issue? I can try to build it from SVN trunk if needed. Yes, I'd say it's worth a try. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de)

Re: snmpset max string length.

2008-10-06 Thread Thomas Anders
Oleg Rabinovich wrote: I need to be able to send a large string (about 8K) to my agentX extension using snmpset. After getting such string the master agent hangs and doesn't answer to replies. When the string size is smaller ( like 512) all is working fine. What net-snmp version

RE: snmpset max string length.

2008-10-06 Thread Oleg Rabinovich
:[EMAIL PROTECTED] Sent: Monday, October 06, 2008 17:36 To: Oleg Rabinovich Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: snmpset max string length. Oleg Rabinovich wrote: I need to be able to send a large string (about 8K) to my agentX extension using snmpset. After getting such string

Sending a NULL value with snmpset

2007-12-04 Thread thermal
Hi Is there a way to force snmpset to send a SET request with a null value (ie. a 0-length octet string) ? I`ve searched the docs but I didn`t find any information how to do it. Best regards, -- Maciej Grela - SF.Net

Re: Sending a NULL value with snmpset

2007-12-04 Thread Dave Shield
On 04/12/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a way to force snmpset to send a SET request with a null value (ie. a 0-length octet string) ? I`ve searched the docs but I didn`t find any information how to do it. Doesn't snmpset . someObject.0 s '' work? Dave

RE: snmpset problem

2007-11-28 Thread Eirik Nordbrøden
] [mailto:[EMAIL PROTECTED] On Behalf Of wqs Sent: 28. november 2007 04:26 To: net-snmp-coders Subject: snmpset problem I have compiled my module into the agent,and run snmpset,first time I set a long string:,it's ok;next time,I set a shorter string:bb,but the value in the mib became bbaaa

snmpset problem

2007-11-27 Thread wqs
I have compiled my module into the agent,and run snmpset,first time I set a long string:,it's ok;next time,I set a shorter string:bb,but the value in the mib became bbaaa,how could that happen? my code related: case MODE_SET_ACTION: if ( sizeof(def_nodeType) strlen(requests

Re: about snmpset and hrSystemDate

2006-12-15 Thread Dave Shield
On 15/12/06, Clement Hsu [EMAIL PROTECTED] wrote: the version I used is net-snmp 5-4, and its mib template seems much simple than net-snmp-5-3-1. Unlikely. Both versions of the toolkit offer the choice of several different MIB templates, and v54 will include *all* that 5.3.1 does (and possibly

Re: about snmpset and data_set.c notification.c

2006-12-14 Thread Dave Shield
[Firstly, having asked a question, can you please *NOT* repeat the same question again. The people who support this software are unpaid volunteers, and answering queries has to fit around other commitments - most particularly paid employment. Having sent your first message, please be patient

Fwd: about snmpset and data_set.c notification.c

2006-12-14 Thread Clement Hsu
Dear Dave: Thank you a lot , and I will follow your suggestion and not violate this mistake again, and thanks once again; Best Regards, Clement Hsu -- Forwarded message -- From: Dave Shield [EMAIL PROTECTED] Date: 2006/12/14 下午 5:09 Subject: Re: about snmpset and data_set.c

about snmpset and hrSystemDate

2006-12-14 Thread Clement Hsu
Dear Dave: I am really sorry for post the same message last time. And I will not make this mistake again. the version I used is net-snmp 5-4, and its mib template seems much simple than net-snmp-5-3-1. The problem is that many codes which net-snmp package provided is so different to mib

about snmpset and data_set.c notification.c

2006-12-13 Thread Clement Hsu
Dear All: I am Clement. when I try to develop my own mib, I found I do not realize the c template after mib2c, why you using switch (reqinfo-mode) switch (reqinfo-mode) { case MODE_GET: case MODE_SET_RESERVE1 case MODE_SET_RESERVE2: case MODE_SET_FREE case

snmpset on read-create table for MacAddress object with Hex values crashes

2006-11-30 Thread Balamurugan V
Dear All, seting Hex values for MacAddress type MIB object with snmpset command crahes for read-create table snmpset -v 2c -c private destMacAddr.1 x 0x0a0b0c0d0e0f destRowStatus.1 i 4 any specific approch to handle the hex string data for OCTET-STRING? It is not accepting the value if i give

Problem with snmpset when trying to set successive string values

2006-08-18 Thread ayan
Hi, I am writing code to get and set values for our internal vendor-defined MIB. When I set a string value using SNMPSET, the following problem occurs: - if the string is longer than the previously set value, SNMPSET works fine; - if the string is shorter than the previously set value

Re: Problem with snmpset when trying to set successive string values

2006-08-18 Thread Wes Hardaker
a == ayan [EMAIL PROTECTED] writes: a - if the string is shorter than the previously set value, a the rest of the string buffer retains the characters a from the previous SNMPSET operation. It sounds like the code you're using copies the string into the old buffer but doesn't append a '\0

Re: Problem with snmpset when trying to set successive string values

2006-08-18 Thread Dave Shield
On 18/08/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I set a string value using SNMPSET, the following problem occurs: - if the string is longer than the previously set value, SNMPSET works fine; - if the string is shorter than the previously set value, the rest of the string buffer

RE: Disabling snmpset for a specific OID

2005-12-29 Thread Ravi, Rajagopal Shanmugam (Rajagopal Shanmugam)** CTR **
, Rajagopal Shanmugam (Rajagopal Shanmugam)** CTR ** Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Disabling snmpset for a specific OID On Tue, 27 Dec 2005 11:36:27 +0530 Rajagopal Shanmugam (Rajagopal Shanmugam)** CTR ** wrote: RRS Is it possible to disable snmpset for a particular object

Re:Disabling snmpset for a specific OID

2005-12-29 Thread Ravi, Rajagopal Shanmugam (Rajagopal Shanmugam)** CTR **
Hi snmp-gurus, I am newbie to SNMP. Can somebody help me in setting SNMP_ERR_NOTWRITABLE handler. I want to disable snmpset for a particular oid. Can help me with small example or online tutorial with example. Ravi R.S -Original Message- From: Robert Story [mailto:[EMAIL PROTECTED

Re: Disabling snmpset for a specific OID

2005-12-28 Thread Robert Story
On Tue, 27 Dec 2005 11:36:27 +0530 Rajagopal Shanmugam (Rajagopal Shanmugam)** CTR ** wrote: RRS Is it possible to disable snmpset for a particular object for a specified RRS interval of time? This is for my project requirement. Sure, just have the handler set the error for the varbind

  1   2   >