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

2021-05-20 Thread Simone Moni
atchProbableCauseOBJECT-TYPE > SYNTAX DisplayString > MAX-ACCESS read-write > STATUS current > DESCRIPTION > "the probable c

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-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 = "S

Snmp is frozen if the snmpset is delayed in subagent

2021-02-01 Thread Bláha Jakub
blems: 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 m

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

2020-09-16 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&#

A question for error of snmpset command

2019-11-13 Thread [email protected]
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". Unfo

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 < [email protected]> 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

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: Unable to perform SNMPSET operation

2013-02-19 Thread Magnus Fromreide
On Tue, Feb 19, 2013 at 05:00:41PM +, [email protected] 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

RE: Unable to perform SNMPSET operation

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

RE: Unable to perform SNMPSET operation

2012-11-30 Thread keshav.lute
: Unable to perform SNMPSET operation Hello, Is your device configured to handle SetRequest? - sandvige - Hello sandvige, Its prompting as Response Time Out but am also able to see the TCP Dump packet generated as below. > 10.213.85.246.s

RE: Unable to perform SNMPSET operation

2012-11-30 Thread keshav.lute
hav,DMR C; [email protected] 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

RE: Unable to perform SNMPSET operation

2012-11-29 Thread Edouard COLE
l Message- From: Edouard COLE [mailto:[email protected]] Sent: Wednesday, November 28, 2012 3:53 PM To: Lute,K,Keshav,DMR C; [email protected] Subject: RE: Unable to perform SNMPSET operation Hi, What's the prompted error? - sandvige --

RE: Unable to perform SNMPSET operation

2012-11-28 Thread Edouard COLE
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 properly. I am able to get device details through snmpget

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

Re: problem with snmpset

2012-05-03 Thread Dave Shield
On 3 May 2012 05:01, Durga Sree 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

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@newus

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 t

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

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 pr

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 (T

Re: problem with snmpset

2012-05-01 Thread Dave Shield
On 1 May 2012 13:15, Jasti Durgashree 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 can

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

2012-04-18 Thread Dave Shield
On 18 April 2012 16:44, Jasti Durgashree 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; snmp_parse_oid(names

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 wrote: > 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-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 - [email protected] The purp

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 monitori

Re: snmpset with multiple OIDs

2011-11-25 Thread Dave Shield
On 25 November 2011 09:36, Nilesh Karle 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 version of t

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 m

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
>>>>> On Wed, 7 Sep 2011 01:51:14 -0700 (PDT), sujata patra >>>>> said: sp> I like to define an MIB(OID) and implement in extention agent . As sp> part of that implementation I like to run an application  script ( sp> let's say to start or stop an a

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, [email protected] 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 SNMP_ERR_NOE

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 [email protected] 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 joe

Re: using snmpset to create community entry

2010-08-10 Thread Dave Shield
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 snmp

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? Or

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 > 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 command . It'

Re: how to code snmpset for scalar type object

2010-04-13 Thread Hemant Soundankar
Thanks for replying ,.. please tell me where is the string value cached in the following set command snmpset -v 2c -c democommunity localhost confileServerName.0 s "Postgres" and in which case will the switch statement jump when i run the above command . Thank you On Tue, Apr 1

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 > 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 proper agent with

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

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

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

Re: snmpset question.. can be possible ?

2010-01-04 Thread Dave Shield
2009/12/28 Francesco Andreozzi - 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 syntax is only used with GET* reques

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 ? or

Re: snmpset response

2009-12-25 Thread Bart Van Assche
On Thu, Dec 24, 2009 at 5:48 PM, nathan 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

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

Re: snmpset response

2009-12-23 Thread Manjit
You can use some OID to send the meaningful information, and everytime you do the set include those OID. Other than OID response you can not get anything else. Dave Shield wrote: > 2009/12/23 nathan : > >> I am just wondering if I can customize the response as a result

Re: snmpset response

2009-12-23 Thread Dave Shield
2009/12/23 nathan : > 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 requ

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 fails on MIPS

2009-12-14 Thread Dave Shield
2009/12/9 nathan : > 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 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 wrote: > From: Dave Shield > Subject: Re: snmpset fails on MIPS > To: "nathan" > Cc: "netsnmp cod

Re: snmpset fails on MIPS

2009-12-09 Thread Dave Shield
2009/12/9 nathan : > I am calling snmpset on an OID like this...snmpset -v2c -cpublic 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 o

snmpset fails on MIPS

2009-12-08 Thread nathan
Hi, I am calling snmpset on an OID like this...snmpset -v2c -cpublic 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 by the

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 it.

Re: snmpset ipv6

2009-09-01 Thread Dave Shield
2009/9/1 Karthika Arunkumar : >  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 suite is fundamentally an

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: [(flash)r...@sunsp-:/e

Re: snmpset ipv6

2009-08-28 Thread Dave Shield
2009/8/28 Karthika Arunkumar : > 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 should only need one of

Re: snmpset ipv6

2009-08-28 Thread Karthika Arunkumar
riginal 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 o

Re: snmpset ipv6

2009-08-22 Thread Dave Shield
t type for IP 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' in

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 ipv

Re: snmpset ipv6

2009-08-19 Thread Dave Shield
2009/8/19 Karthika Arunkumar : > 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)

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.

Re: snmpset -z option

2009-07-08 Thread Wes Hardaker
> On Tue, 7 Jul 2009 17:43:06 -0600, chinmaya 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 returns The

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

Re: snmpset

2009-05-06 Thread Dave Shield
2009/5/6 崔适男 : >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 s

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

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: [email protected] Subject: Re: processing of the multi varbinds in one snmpset command 2009/3/19 EYRE Bernadette : > if the snmpset command line has multiple varbinds (variables) to modify for > the same table >

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

Re: processing of the multi varbinds in one snmpset command

2009-03-20 Thread Dave Shield
2009/3/19 EYRE Bernadette : > 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 are processed i

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 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 wrote: > 2009/2/6 Pranesh Kulkarni : > > Thanks to Dave and Robert, > > I am using SNMP v2c , so I cannot do this . > > Then use an appropri

Re: snmpset and non-root user

2009-02-06 Thread Dave Shield
2009/2/6 Pranesh Kulkarni : > 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. USM is a security

Re: snmpset and non-root user

2009-02-06 Thread Pranesh Kulkarni
m 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 us

Re: snmpset and non-root user

2009-02-06 Thread Dave Shield
2009/2/5 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 requireme

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

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

RE: snmpset max string length.

2008-10-22 Thread Oleg Rabinovich
rs [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 08:43 To: Oleg Rabinovich Cc: [email protected] 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 f

Re: snmpset max string length.

2008-10-06 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 Oleg Rabinovich
:[EMAIL PROTECTED] Sent: Monday, October 06, 2008 17:36 To: Oleg Rabinovich Cc: [email protected] 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

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 fi

Re: snmpset null

2007-12-27 Thread Wes Hardaker
>>>>> "MF" == Magnus Fromreide <[EMAIL PROTECTED]> writes: MF> Is it a stupid idea to make snmpset able to et values of type NULL? MF> If it is then I think we should return the 'n' type list in snmpset. MF> If it isn't then I think we sh

snmpset null

2007-12-20 Thread Magnus Fromreide
Hello! Is it a stupid idea to make snmpset able to et values of type NULL? If it is then I think we should return the 'n' type list in snmpset. If it isn't then I think we should add support for the 'n' type. It boils down to the attached patch since most of the suppo

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 . som

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: snmpset problem

2007-11-28 Thread Eirik Nordbrøden
From: [EMAIL PROTECTED] [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:

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:

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 possib

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 te

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

  1   2   >