Re: snmpget: Remove quotes in output string

2020-10-01 Thread Wes Hardaker via Net-snmp-coders
Pushpa Thimmaiah writes: > Why output of few mib-object of data-type string are enclosed in quote and few > are not > Eg: > IF-MIB::ifName.5 = STRING: eth2    <- No quotes > RFC1213-MIB::sysName.0 = STRING: "pushpat-ThinkPad-L480"  <- Quotes > > Wireshark shows that quot

Re: snmpget: Remove quotes in output string

2020-09-19 Thread Pushpa Thimmaiah
t; > 1 ) Few mib-object with string type has no double-quotes > IF-MIB::ifName.5 = STRING: eth2 > HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory > HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2020-9-19,14:33:8.0,+5:30 > > 2) snmpcmd/snmpget has no options to hide

Re: snmpget: Remove quotes in output string

2020-09-19 Thread Pushpa Thimmaiah
Hi Wes Hardaker, I have noticed following 1 ) Few mib-object with string type has no double-quotes IF-MIB::ifName.5 = STRING: eth2 HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2020-9-19,14:33:8.0,+5:30 2) snmpcmd/snmpget has no

Re: snmpget: Remove quotes in output string

2020-09-18 Thread Wes Hardaker via Net-snmp-coders
Pushpa Thimmaiah writes: > Hi All, > > I can understand response to snmpget/snmpwalk display string datatype  in > double-quotes as in following example.  Kindly let me know If there any way to > remove or hide quotes from display. I know you anwsered yourself, but you migh

RE: snmpget: Remove quotes in output string

2020-09-16 Thread Drovalev R.N.
Pashpa, thank you very mach! Сhanging the parameter to “1234” helped me! It remains to figure out how to convert an address from an integer. From: Pushpa Thimmaiah [mailto:pushpa.thimma...@gmail.com] Sent: Wednesday, September 16, 2020 6:39 AM To: Net-SNMP Coders Subject: snmpget: Remove

snmpget: Remove quotes in output string

2020-09-15 Thread Pushpa Thimmaiah
Hi All, I can understand response to snmpget/snmpwalk display string datatype in double-quotes as in following example. Kindly let me know If there any way to remove or hide quotes from display. Output of SNMPWALK

Ptoblem to use snmpget

2019-12-04 Thread diego dinarte
Hello, when i use the following command, i have the following problem (ubuntu 64 bits): snmpget -v 2c -c .1.3.6.1.4.1.15004.4.10.2.2.2.2.2.1.2 Error in packet Reason: wrongLength (The set value has an illegal length from what the agent expects) Failed object: iso

Re: SNMPv3 TSM snmpget doubt

2014-11-19 Thread sandhya reddy
*snmp_client.c::snmp_sess_synch_response(*) code is erroneous. snmpget request must sent a query for discovering snmpEngineID which the following code is sending. After this it is supposed to send the actual SNMP get request for a MIB variable say sysContact.0 When it does context probing it

SNMPv3 TSM snmpget doubt

2014-11-18 Thread sandhya reddy
I have installed net-snmp 5.6.2.1 and sent out snmp get request using snmpget command. This is a SNMPv3 request over TLS that i'm sending. snmpget request sends out two get request 1) Read operation for snmpEngineID.0 2) Actual get request querying for a MIB variable say sysContact.0 >

Re: MFD compiled extension agent: snmpget returns "Timeout: No Response from localhost:1161."

2014-09-06 Thread Bill Fenner
On Fri, Sep 5, 2014 at 1:57 AM, Kenneth Hung wrote: > netsnmp_udp_getSecName: no com2sec entries < Am I > missing something here in the conf file? > Yes - despite your subject line mentioning extension agent, you're running a full agent, meaning that you have to configure it

Re: MFD compiled extension agent: snmpget returns "Timeout: No Response from localhost:1161."

2014-09-04 Thread Kenneth Hung
debug token adeSensorsTable, 1 > adeSensorsTable:init_adeSensorsTable: Registering adeSensorsTable as a > mibs-for-dummies table. > > > ----- > On my 2nd terminal of the same PC: > I then tried to use snmpget to reach one of my extens

MFD compiled extension agent: snmpget returns "Timeout: No Response from localhost:1161."

2014-09-04 Thread Kenneth Hung
ered debug token adeSensorsTable, 1 adeSensorsTable:init_adeSensorsTable: Registering adeSensorsTable as a mibs-for-dummies table. - On my 2nd terminal of the same PC: I then tried to use

Re: SNMP TLS snmpget error

2014-08-11 Thread sandhya reddy
I have one basic doubt. Why do we mention the their_identity in snmpget TLS request as the peers certificate info will be unknown?? our_identity will be sufficient right ? I'm trying to setup agent also locally. Using the DTLS turtorial i have done the following 1) *In Server(Agent)* i

Re: SNMPv2 snmpget error

2014-08-07 Thread sandhya reddy
t; For USM, the command which you quoted will work not for TLS. > > Thanks > Sandhya > > > On Thu, Aug 7, 2014 at 2:46 PM, Ilya Etingof wrote: > >> >> Yes, try, for example: >> >> snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1

Re: SNMPv2 snmpget error

2014-08-07 Thread Ilya Etingof
o:i...@glas.net>> wrote: Yes, try, for example: snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1demo.snmplabs.com <http://demo.snmplabs.com> 1.3.6.1.2.1.1.1.0 More working SNMPv3 usernames and keys are on the web page: http://snmpsim.

Re: SNMPv2 snmpget error

2014-08-07 Thread sandhya reddy
Ilya, I want to try SNMPv3 with *TLS *which is* TSM *model *not USM.* For USM, the command which you quoted will work not for TLS. Thanks Sandhya On Thu, Aug 7, 2014 at 2:46 PM, Ilya Etingof wrote: > > Yes, try, for example: > > snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A

Re: SNMPv2 snmpget error

2014-08-07 Thread Ilya Etingof
Yes, try, for example: snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1 demo.snmplabs.com 1.3.6.1.2.1.1.1.0 More working SNMPv3 usernames and keys are on the web page: http://snmpsim.sourceforge.net/public-snmp-simulator.html On 08/07/2014 12:43 PM, sandhya

Re: SNMPv2 snmpget error

2014-08-07 Thread sandhya reddy
Thanks a lot Ilya. I'm able to get response for snmpget from my local manager to agent demo.snmplabs.com Does this agent simulator at demo.snmplabs.com support SNMPv3 with TLS. If so what is the command to be given for SNMPv3 TLS snpget request from Windows machine. Thanks, Sandhya On Thu

Re: SNMPv2 snmpget error

2014-08-06 Thread Ilya Etingof
There is another public snmp agent out there in case test.net-snmp.org is down: http://snmpsim.sourceforge.net/public-snmp-simulator.html > On Aug 7, 2014, at 9:36, sandhya reddy wrote: > > I'm trying to work with a simple SNMPv2 snmpget request from windows machine > to

SNMPv2 snmpget error

2014-08-06 Thread sandhya reddy
I'm trying to work with a simple SNMPv2 snmpget request from* windows* machine to *test.net-snmp.org <http://test.net-snmp.org>* agent. I can see the request going out but no response is received. What could be the reason for it? Following is the command that i have given. snmpg

Re: SNMP TLS snmpget error

2014-08-05 Thread sandhya reddy
c, 533: >> sslctx_client: using private key: tutorial-joecool.key >> cert:find:params: looking for remote_peer(2) in MULTIPLE(0x200), hint >> 161503528 >> cert:find:params: looking for remote_peer(2) in FINGERPRINT(0x2), hint >> 161503528 >> cert:find:params: hint

Re: SNMP TLS snmpget error

2014-08-01 Thread sandhya reddy
) in FILE(0x1), hint 161503528 > cert:find:params: hint = Agent-83 > 9:cert:subset:found: 0 matches > trace: netsnmp_tlstcp_open(): transports/snmpTLSTCPDomain.c, 709: > tlstcp: connecting to tlstcp 10.253.6.83:10161 > tlstcp: failed to ssl_connect > trace: netsnmp_sess_config_a

Re: SNMP TLS snmpget error

2014-07-31 Thread sandhya reddy
10161 tlstcp: failed to ssl_connect trace: netsnmp_sess_config_and_open_transport(): snmp_api.c, 1540: *snmp_sess: couldn't interpret peername* snmpget: Unknown host (tlstcp:10.253.6.83) Thanks sandhya On Fri, Aug 1, 2014 at 10:01 AM, sandhya reddy wrote: > Is there any way that we set the

Re: SNMP TLS snmpget error

2014-07-31 Thread sandhya reddy
etup one PC as Net-SNMP Agent and other as manager. > 2) On the PC which is an Agent i have started snmpd service on port 10161 > using snmpd tlstcp:10161 command. > This port is in LISTEN state. > 3) I have generated certificate in Agent using net-snmp-cert command with > name as

Re: SNMP TLS snmpget error

2014-07-31 Thread sandhya reddy
ISTEN state. 3) I have generated certificate in Agent using net-snmp-cert command with name as Agent-89. I give this name in snmpget request their_identity parameter. Do i have to give the agent certificate name also when sending snmpget request from manager? If so why? Command: snmpget -T our_ide

Re: SNMP TLS snmpget error

2014-07-31 Thread sandhya reddy
certificate for agent. 4) I have tried giving the command you gave. I get an error. $ snmpget -T our_identity=tutorial-joecool -T their_identity=tutorial-agent \ > -t 10 tls:test.net-snmp.org sysUpTime.0 *Error: * *No log handling enabled - using stderr loggingtlstcp: fa

Re: SNMP TLS snmpget error

2014-07-25 Thread Bill Fenner
I followed the step by step directions from http://www.net-snmp.org/wiki/index.php/TUT:Using_TLS and got: $ snmpget -T our_identity=tutorial-joecool \ > -T their_identity=tutorial-agent \ > -t 10 tls:test.net-snmp.org sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeIn

Re: SNMP TLS snmpget error

2014-07-25 Thread sandhya reddy
Hi Bill, Glad to see your response. I have retrieved the entire certificate tar-ball http://www.net-snmp.org/tutorial/tutorial-5/certificates/tutorial-.snmp.tar.gz and uncompressed it. Initially, i tried to send the snmpget request to test.net-snmp.org using the certificates from the tutorial

Re: SNMP TLS snmpget error

2014-07-24 Thread Bill Fenner
lished set of keys. Bill On Wed, Jul 23, 2014 at 7:08 AM, sandhya reddy wrote: > > > Hi Coders and Users, > > I've setup NET-SNMP 5.6.2.1 and configured tsm model. > I've done this setup on two Ubuntu 14.04 PCs > I'm trying to send out snmpget request ov

Re: SNMP TLS snmpget error

2014-07-24 Thread sandhya reddy
I've done this setup on two Ubuntu 14.04 PCs > I'm trying to send out snmpget request over tlstcp:10161 The folowing are > the steps i follow > 1) Start snmpd using the command : snmpd tlstcp:10161 > 2) snmpget -T > our_identity=CD:74:45:C9:A3:A3:55:0A:6C:37:03:B2:49:38:B1:01

Fwd: SNMP TLS snmpget error

2014-07-23 Thread sandhya reddy
Hi Coders and Users, I've setup NET-SNMP 5.6.2.1 and configured tsm model. I've done this setup on two Ubuntu 14.04 PCs I'm trying to send out snmpget request over tlstcp:10161 The folowing are the steps i follow 1) Start snmpd using the command : snmpd tlstcp:10161 2) snmpget -T

Re: Problem in snmpget

2013-09-11 Thread Anish
well to check the sematics before coming to an conclusion. -- Anish From: Geet Bhatia To: Anish Cc: Net-snmp-coders Sent: Tuesday, 10 September 2013 2:38 PM Subject: Re: Problem in snmpget Hi Anish, Thanks for responding. The output of print_variable

Re: Problem in snmpget

2013-09-10 Thread Geet Bhatia
Hi, I am not using any str* functions. Its only memcpy. Please check the code below: for(vars=response->variables;vars;vars=vars->next_variable) { if(vars->type == ASN_OCTET_STR) { char *sp = (char*)malloc(1+vars->val_len); memcpy(sp,vars->val.string,vars->v

Re: Problem in snmpget

2013-09-10 Thread Geet Bhatia
Hi Anish, Thanks for responding. The output of print_variable is: 00 02 04 08 10 20 40 7E 0C 1E 3B 00 00 0B 0B 0D 09 01 01 16 FF FF FF 00 09 01 01 03 FF FF FF 00 00 00 00 00 00 00 00 00 The ouput of snmpget command is: SNMPv2-SMI::enterprises.29665.101.1.0 = Hex-STRING: 00 02 04 08 10 20 40 7E

Re: Problem in snmpget

2013-09-09 Thread Anish
9 September 2013 2:22 PM Subject: Problem in snmpget Hi, I have written a code to send snmp request and receive response from agent. The program is also processing the response. For this I memcpy the response in a buffer. I am using the following code to copy the response after rece

Re: Problem in snmpget

2013-09-09 Thread Niels Baggesen
Den 09-09-2013 10:52, Geet Bhatia skrev: > The value sent by agent is correct. I have checked it on wireshark. Even > the print_variable is printing correct value on console. But I am not > able to get this value copied in buffer. This does not make sense. If print_variable can print it, then the

Problem in snmpget

2013-09-09 Thread Geet Bhatia
Hi, I have written a code to send snmp request and receive response from agent. The program is also processing the response. For this I memcpy the response in a buffer. I am using the following code to copy the response after receiving it in "response" snmp_pdu variable: for(vars=response->variab

Problem in snmpget

2013-09-06 Thread Geet Bhatia
Hi, I have written a code to send snmp request and receive response from agent. The program is also processing the response. For this I memcpy the response in a buffer. I am using the following code to copy the response after receiving it in "response" snmp_pdu variable: for(vars=response->variab

snmpget, netsnmp_query_get from performance point of veiw

2013-02-12 Thread saifullah M A
Hi, 'snmpget' command line tool works from shell command. And 'netsnmp_query_get' works programatically. So the letter is better from the point of performance, right? Can you please give other differences? I mean netsnmp_query_get() can take all options as snmpget, so limia

Net-snmp: SNMPGet display special chars for OID

2012-11-26 Thread chengkeke
Hi All, When I executed a snmpget command, in result, some special chars are displayed in result instead of correct OID information. Could any body help me on it? Is there any length limitation when display OID? snmpget -v 2c -c private -t 20 -r 3 192.168.0.2 MIB::NodeName

Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
y, October 31, 2012 12:57 PM Subject: RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work) Add it in snmp.conf, remove from snmpd.conf than restart  the service, if you cannot find  snmp.conf simply  create it at desired location and add just a single line in it !!! From:avihai

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
@lists.sourceforge.net Subject: Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work) Thank you I tried your suggestion to add mibs to the top of my snmpd.conf file (i restart service ) , but didnt work. I added this line at the top of the conf : mibs +MONITOR-MIB However

Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
hiano' Cc: Net-snmp-coders@lists.sourceforge.net Sent: Wednesday, October 31, 2012 12:03 PM Subject: RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work) As I told you in previous mail To find the location of snmp.conf you can use :   snmpd -Dread_config -H 2>&1 |

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
mp.conf or /snmp/snmp.conf (as per your installation )) mibs +TEST-MIB then restart agent From: avihai marchiano [mailto:avihai...@yahoo.com] Sent: 31 October 2012 15:25 To: Jatin Bodarya Cc: Net-snmp-coders@lists.sourceforge.net Subject: Re: net-snmp snptranslate dosnt work for my MIB (snmpget

Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
: net-snmp snptranslate dosnt work for my MIB (snmpget does work) To find the location of snmp.conf you can use :   snmpd -Dread_config -H 2>&1 | grep "config path" | sort –u   then tell the tools to load this MIB   (examples)::     snmpwalk -m +MY-MIB .     (load it fo

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
To find the location of snmp.conf you can use : snmpd -Dread_config -H 2>&1 | grep "config path" | sort -u then tell the tools to load this MIB (examples):: snmpwalk -m +MY-MIB . (load it for this command only) or export MIBS=+MY-MIB

net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
I add my own MIB module to net-snmp. I put my Mib txt file under - '/usr/local/share/snmp/mibs' I see that if i change net-snmp files their the change is reflected , so this mibs are loaded correct. It seems that it not load my MIB file from there. When i run snmptranslate on my Mib like this: sn

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-08-01 Thread Madhu Sudhana Rao
Thanks, Dave. I will look into the issues you pointed out below -madhu. On Wed, Aug 1, 2012 at 1:23 PM, Dave Shield wrote: > On 1 August 2012 07:23, Madhu Sudhana Rao wrote: > > I think table is registering correctly, as I am getting snmpget output > looks > > correct >

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-08-01 Thread Dave Shield
On 1 August 2012 07:23, Madhu Sudhana Rao wrote: > I think table is registering correctly, as I am getting snmpget output looks > correct Yes - that sounds reasonable. > only problem is with snmpwalk and getnext I see from your code that you are using the iterator helper. This is

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Madhu Sudhana Rao
On Tue, Jul 31, 2012 at 5:53 PM, Dave Shield wrote: > On 31 July 2012 13:14, Madhu Sudhana Rao wrote: > > It is not part of the standard agent, I added this proprietary table. > > > > Copied .c and .h files of myifTable from (agent/mibgroup), which is > working &g

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Dave Shield
On 31 July 2012 13:14, Madhu Sudhana Rao wrote: > It is not part of the standard agent, I added this proprietary table. > > Copied .c and .h files of myifTable from (agent/mibgroup), which is working > properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but in

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Madhu Sudhana Rao
rt of the standard agent? > It is not part of the standard agent, I added this proprietary table. Copied .c and .h files of myifTable from (agent/mibgroup), which is working properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but in latest version only snmpget is working

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Dave Shield
On 30 July 2012 15:27, Madhu Sudhana Rao wrote: > I replaced net-snmp version 5.2.1 to 5.6.2 which is working on all the > tables but for one of the table, Which table? Is this one you wrote yourself, or part of the standard agent? >

snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-30 Thread Madhu Sudhana Rao
Hi, I replaced net-snmp version 5.2.1 to 5.6.2 which is working on all the tables but for one of the table, snmpget command is working fine but snmpwalk command is giving " NO SUCH OBJECT ON THIS OID" and for snmptable I am getting "No entries. I wrote few snmp_log messages and de

Re: Reading OID sent using snmpget

2011-12-30 Thread Dave Shield
On 30 December 2011 04:54, Mandar Joshi wrote: >> But what is the exact code that you are using to register the OID? >> > > This is the code I'm using http://pastebin.com/fRvv0CFX > The only change I've made from the sample is add a handler which prints out > the last part of the OID using DEBUGMS

Re: Reading OID sent using snmpget

2011-12-30 Thread Mandar Joshi
> This is the code I'm using http://pastebin.com/fRvv0CFX > The only change I've made from the sample is add a handler which prints out > the last part of the OID using DEBUGMSGTL Thanks Dave. I got the solution I was looking for from this part of the FAQ http://www.net-snmp.org/docs/FAQ.html#How_

Re: Reading OID sent using snmpget

2011-12-29 Thread Mandar Joshi
> But what is the exact code that you are using to register the OID? > This is the code I'm using http://pastebin.com/fRvv0CFX The only change I've made from the sample is add a handler which prints out the last part of the OID using DEBUGMSGTL

Re: Reading OID sent using snmpget

2011-12-29 Thread Dave Shield
On 29 December 2011 15:23, Mandar Joshi wrote: >>> I've registered the OID "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" in my module. >> >> How?   What is the code that you have used to register this OID? > > I am using the sample code from data_set.c But what is the exact code that you are using to reg

Re: Reading OID sent using snmpget

2011-12-29 Thread Mandar Joshi
playing with the sample code until now. All I want is to get the OID in my module. If someone issues the command "snmpget localhost 1.3.6.1.4.1.39166.1.1.1.123" I should be able to read the value 123 in my module If someone issues the command "snmpget localhost 1.3.6.1.4.1.39166.1

Re: Reading OID sent using snmpget

2011-12-29 Thread Dave Shield
valid instances under this tree will be of the form .1.3.6.1.4.1.8072.2.2.1.1.{2,3}."string" ) > If I execute the command > snmpget localhost .1.3.6.1.4.1.8072.2.2.1. > I should be able to read the last part of the OID i.e. in my module The point of the MIB hel

Reading OID sent using snmpget

2011-12-29 Thread Mandar Joshi
1234 If I execute the command snmpget localhost .1.3.6.1.4.1.8072.2.2.1. I should be able to read the last part of the OID i.e. in my module How do I go about doing this? -- Ridiculously easy VDI. With Citrix

Re: Snmpget or snmpwalk timeout error

2011-11-29 Thread Dave Shield
On 20 October 2011 08:15, Franco, Battista wrote: > I want to get info from my UPS. > I copied XUPS-mib.txt (file attached) into folder C:\usr\share\snmp\mibs > But when I ran snmpget or snmpwalk (see attached error.jpg) there’s timeout > error. Have you tried specifying the versi

Re: Regarding snmpv3 snmpget.

2011-06-23 Thread Wes Hardaker
>>>>> On Mon, 20 Jun 2011 15:25:50 +0530, Kunal Kishor >>>>> said: KK> As I can't see there is any community option there in snmpv3 snmpget. But the help output you showed indicates there is community options: KK> -v 1|2c|3 speci

Re: Regarding snmpv3 snmpget.

2011-06-20 Thread Dave Shield
On 20 June 2011 10:55, Kunal Kishor wrote: > But still I can see that my snmp manger is using this community string while > doing the snmpget for the snmpv3 agent. What is the command that you are using for this snmpget? Remember that the Net-SNMP agent is typically a multi-version age

Regarding snmpv3 snmpget.

2011-06-20 Thread Kunal Kishor
Hi, Could you please help me with this snmpv3 snmpget. As I can't see there is any community option there in snmpv3 snmpget. root@chittha:/kunal# /usr/sfw/bin/snmpget -help USAGE: snmpget [OPTIONS] AGENT OID [OID]... Version: 5.0.9 Web: http://www.net-snmp.org/ Email:net

Re: Issue with "snmpget" requests on multiple hosts in v3

2011-05-25 Thread Marco Bascetta
Could anyone help me? I need to understand if there is some memory corruption or if I forgot a call to destroy functions Thanks, regards Marco Bascetta On 16/05/2011 16:07, Marco Bascetta wrote: Hi all, I'm working on an snmp application, written in C, that requests information from many de

Re: netsnmp agent error for snmpget()

2011-05-16 Thread Ravi Depa
n Fri, May 13, 2011 at 3:15 AM, Dave Shield wrote: > On 12 May 2011 19:07, Ravi Depa wrote: > >The problem what I have is when I > > send a snmpget request to agent, snmp agent is not responding for one > > specific OID which is related to TIMETICKS >

Issue with "snmpget" requests on multiple hosts in v3

2011-05-16 Thread Marco Bascetta
Hi all, I'm working on an snmp application, written in C, that requests information from many devices (I'm working with many "H3C S3600" switches and some debian hosts). You can find a simple extract of program with some test cases attached. When I run the program, some requests working, other

Re: netsnmp agent error for snmpget()

2011-05-12 Thread Dave Shield
On 12 May 2011 19:07, Ravi Depa wrote: >The problem what I have is when I > send a snmpget request to agent, snmp agent is not responding for one > specific OID which is related to TIMETICKS >     char return_val[256]; >     case MODE_GET: >     snmp_s

netsnmp agent error for snmpget()

2011-05-12 Thread Ravi Depa
Hi, I am running Debian 6.0 with netsnmp 5.4.3. I developed a snmp agent with dlmod. The basic agent source code is generated using mib2c tool and I modified the source files for my project. The problem what I have is when I send a snmpget request to agent, snmp agent is not responding for one

Re: snmpget: symbol lookup error : undefined symbol: RAND_bytes

2010-09-20 Thread Robert Story
On Mon, 20 Sep 2010 16:46:31 +0530 MALLIKARJUN (MALLIKARJUN) wrote: AM(> I am getting RAND_bytes error. Please provide suggestion/solution for this issue. Are your apps linking with the openssl libraries? -- Start unco

snmpget: symbol lookup error : undefined symbol: RAND_bytes

2010-09-20 Thread ANANTHALA, MALLIKARJUN (MALLIKARJUN)
Hi team, I am getting RAND_bytes error. Please provide suggestion/solution for this issue. [vkal_telnet_4241]dslam124:/cm4/tools/GNU/src/net-snmp/Linux_2.4.7/bin $ snmpget snmpget: symbol lookup error: /cm4/tools/GNU/src/net-snmp/Linux_2.4.7/lib/libnetsnmp.so.5: undefined symbol

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: Adding the MIB's directory into the snmpget sourcecode

2010-02-05 Thread Dave Shield
On 5 February 2010 10:17, Poondichetlur kishanKumar wrote: > when I use the snmpget to access the device, I get a list of messages > "cannot find module (IP-MIB): "  and a number of other similar messages. Are these MIB files installed on your system? Where? > I understand t

Adding the MIB's directory into the snmpget sourcecode

2010-02-05 Thread Poondichetlur kishanKumar
hello, I am a newbie in this project . I have some basic knowledge in c and c++ . I am doing an internship in a company. my task is the following, I have to access a network device called MD 8000 and have to use the snmpget command to get a variable value to be executed from the device. when I

Re: snmpget

2010-01-20 Thread Dave Shield
2010/1/20 Hemant Soundankar : > Why we cannot issue snmpget request on any object inside a table? You can. Or at least, you can issue an snmpget request on an *instance* of an object within a table. I.e. you need to include the indexing values. But that's true for _any_ GET request (i

snmpget

2010-01-19 Thread Hemant Soundankar
Why we cannot issue snmpget request on any object inside a table? -- Hemant Soundankar -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, cre

RE: No Such Object available --snmpget problem

2009-12-17 Thread Lv, Bo (EXT-Other - CN/Hangzhou)
, 2009 4:33 PM To: Lv, Bo (EXT-Other - CN/Hangzhou) Cc: ext Dave Shield; net-snmp-coders Subject: Re: No Such Object available --snmpget problem On Thu, 2009-12-17 at 15:48 +0800, Lv, Bo (EXT-Other - CN/Hangzhou) wrote: > Hello, Dave > > I've a problem in running snmpget in a windrive

Re: No Such Object available --snmpget problem

2009-12-17 Thread Magnus Fromreide
On Thu, 2009-12-17 at 15:48 +0800, Lv, Bo (EXT-Other - CN/Hangzhou) wrote: > Hello, Dave > > I've a problem in running snmpget in a windriver linux server. > > snmpget -v 2c -c public -M /usr/share/snmp/mibs/ localhost > ucdDemoPublicString.0 > > UCD-DEMO-MIB::uc

No Such Object available --snmpget problem

2009-12-16 Thread Lv, Bo (EXT-Other - CN/Hangzhou)
Hello, Dave I've a problem in running snmpget in a windriver linux server. snmpget -v 2c -c public -M /usr/share/snmp/mibs/ localhost ucdDemoPublicString.0 UCD-DEMO-MIB::ucdDemoPublicString.0 = No Such Object available on this agent at this OID What's strange to me is, this variable is

Re: (openWRT)net-snmp - snmpwalk or snmpget is not picking my oid

2009-05-15 Thread Dave Shield
ompiled to the MIPS platform using the same way as I did for > x86 and i "installed" it. > Then, I did snmpwalk and snmpget. snmpwalk did work but it was not displaying > my oids. > Are there any additonal steps I need to do while installing it into my target > ? Ha

(openWRT)net-snmp - snmpwalk or snmpget is not picking my oid

2009-05-14 Thread nathan
rything OK. snmpwalk and snmpget worked, fine and great. Then I cross-compiled to the MIPS platform using the same way as I did for x86 and i "installed" it. I checked the processes and I found SNMPD running fine wiht these options, /usr/sbin/snmpd -Lf /dev/null -p /var/run/snm

snmpget -v3 with wrong privacy password

2009-04-17 Thread B V Narasimhulu
? can you please give me some input in this. r...@node98:~# snmpget -v3 -l authPriv -u venket -a MD5 -A 12345678 -x AES -X 12345678 localhost sysName.0 SNMPv2-MIB::sysName.0 = STRING: MXE r...@node98:~# snmpget -v3 -l authPriv -u venket -a MD5 -A 1234567890 -x AES -X 12345678 localhost sysName.0 s

RE: SNMPGET error

2009-02-06 Thread Kumar, Santhosh IN BLR SISL
-coders@lists.sourceforge.net Subject: Re: SNMPGET error 2009/1/20 Kumar, Santhosh IN BLR SISL : > As per the Procedure given in Tutorial section I have generated the .c and > .h file for the object "nstAgentModuleObject" existing in the > NET-SNMP-TUTORIAL-MIB for WINDOWS.

Re: SNMPGET error

2009-02-06 Thread Dave Shield
2009/1/20 Kumar, Santhosh IN BLR SISL : > As per the Procedure given in Tutorial section I have generated the .c and > .h file for the object "nstAgentModuleObject" existing in the > NET-SNMP-TUTORIAL-MIB for WINDOWS. Did you update the "netsnmpmibs" VC++ project and 'mib_module_inits.h' file, as

Re: SNMPGET error

2009-02-05 Thread Robert Story
On Tue, 20 Jan 2009 15:53:16 +0530 Santhosh IN BLR SISL wrote: KSIBS> After successful build I started the AGENT and issued the command KSIBS> snmpget.Instead of getting the value, am getting the following error KSIBS> KSIBS> Error in packet KSIBS> KSIBS> Reason: (noSuchName) There is no such var

SNMPGET error

2009-01-20 Thread Kumar, Santhosh IN BLR SISL
Dear all, As per the Procedure given in Tutorial section I have generated the .c and .h file for the object "nstAgentModuleObject" existing in the NET-SNMP-TUTORIAL-MIB for WINDOWS. I have copied the NET-SNMP-TUTORIAL-MIB into the directory C:\usr\share\snmp\mibs. After successful build

Re: Timeout for snmpget

2008-12-01 Thread Wes Hardaker
>>>>> On Sat, 15 Nov 2008 17:28:56 +0530, "Ambika Tripathy" <[EMAIL PROTECTED]> >>>>> said: AT> I am using net-snmp-5.4.2.1 version source to test AT> http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module example. But AT> when tr

Timeout for snmpget

2008-11-17 Thread Ambika Tripathy
Hi Experts, I am using net-snmp-5.4.2.1 version source to test http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module example. But when trying to execute the snmpget -v 1 -c public localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 it is showing Timeout: No Response from

Re: Memory leak problem in snmpget

2008-06-05 Thread Dave Shield
김성환 wrote: > > I am using the following function modified from the main function of > 'snmpget' program. > Bear in mind that this code is a "use once" program. It doesn't necessarily try to tidy up cleanly, since all memory will be released automatically wh

Memory leak problem in 'snmpget'

2008-06-04 Thread 김성환
Hello, I am using the following function modified from the main function of 'snmpget' program. The SNMP library version is 5.4.1. But, it has a memory leak problem. When I call the functions infinitely, the memory size of the program grows. How can I solve the problem? Please, l

Memory leak problem in snmpget

2008-06-04 Thread 김성환
Hello,   I am using the following function modified from the main function of 'snmpget' program. The SNMP library version is 5.4.1. But, it has a memory leak problem. When I call the functions infinitely, the memory size of the program grows. How can I solve the problem? P

RE: Error running snmpget script from crontab - solaris 10

2007-06-06 Thread Mostow, Glenn B
Thank you. I actually found my solution. Sorry for the newb question -Original Message- From: Thomas Anders [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 11:22 AM To: Mostow, Glenn B Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Error running snmpget script from

Re: Error running snmpget script from crontab - solaris 10

2007-06-05 Thread Thomas Anders
Mostow, Glenn B wrote: > Running a series of scripts containing the net-snmp tools from my > crontab I get the following error: > > ld.so.1: snmpget: fatal: libgcc_s.so.1: open failed: No such file or > directory The path to libgcc_s.so.1 isn't in your system's lib

Error running snmpget script from crontab - solaris 10

2007-06-05 Thread Mostow, Glenn B
I am sure that this is probably an easy fix, but it is alluding me. Running a series of scripts containing the net-snmp tools from my crontab I get the following error: ld.so.1: snmpget: fatal: libgcc_s.so.1: open failed: No such file or directory The tools run just fine from the command line

Re: No more snmpget after enabling agentx

2007-05-09 Thread Dave Shield
On 09/05/07, chiel <[EMAIL PROTECTED]> wrote: > For a program that I'm using I had to enabled "master agentx" in my > snmpd.conf. > But after that I can't do snmpget anymore against this system. Is this > normal and is there a way to keep using both?? No

No more snmpget after enabling agentx

2007-05-09 Thread chiel
Hello For a program that I'm using I had to enabled "master agentx" in my snmpd.conf. But after that I can't do snmpget anymore against this system. Is this normal and is there a way to keep using both?? Version: NET-

Fwd: followup 2: snmpget: Error building ASN.1 representation

2007-01-16 Thread Alef Veld
nmpv1 code and ipAdEntNetMask). Many thanks for anyone who wants to put their time into it. Kind regards, Alef Begin forwarded message: From: Alef Veld <[EMAIL PROTECTED]> Date: December 11, 2006 3:01:05 PM GMT+01:00 To: Net-Snmp- Subagent Subject: followup 2: snmpget: Error bui

followup 2: snmpget: Error building ASN.1 representation

2006-12-11 Thread Alef Veld
It seems that it only occurs when checking a mib instance of type "Ip Address". Is it because i'm using SNMPv1 maybe ? Begin forwarded message: From: Alef Veld <[EMAIL PROTECTED]> Date: December 10, 2006 10:53:25 PM GMT+01:00 To: Net-Snmp- Subagent Subject: followup: sn

Re: snmpget cannot find the mibs

2006-12-05 Thread Dave Shield
On 05/12/06, Lakshmi <[EMAIL PROTECTED]> wrote: > Thanks a lot for your overwhelming response. > After executing the command $export MIBS=ALL , > i am not seeing the warning messges. Actually, I suspect it's more likely to be Narayana's suggestion of setting MIBDIRS. Particularly if you can now r

  1   2   >