Re: snmptable Unknown host

2019-07-22 Thread jayshankar nair
I can run the snmpwalk command on these ip successfully without any error. Hence ping should also work. But when i run a modified version of snmptable, i get snmp_sess_open (Unknown host error). Also this problem happens only on solaris(linux it works fine). On Sun, Jul 21, 2019 at 8:59 PM

Re: snmptable Unknown host

2019-07-21 Thread Magnus Fromreide
hines? I.e. does ping hostname-snmptable-fails-to-find work? /MF ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

snmptable Unknown host

2019-07-19 Thread jayshankar nair
Hi, I am running modified version of snmptable.c. On certain machines i am getting snmp_sess_open error "Unknown host". Any idea??. Thanks, Jayshankar ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net

snmptable

2017-09-15 Thread jayshankar nair
Hi , I have modified snmptable program to accept the command line arguments. The parameter which i hardcoded in the program is version, peername and tableName. On running the program i get the following error. ./snmptable snmptable: Unknown host (192.168.1.4) (Address already in use). Thanks

Re: snmptable netSnmpIETFWGTable: No entries

2014-08-13 Thread Bill Fenner
This is a bug in the perl script. It does a "poor-man's" lexicographical ordering, only handling objects that it knows about. This works for a walk, but does not work for the (valid) request that snmptable makes. The easiest fix would be for the agent to learn that $next_oid{net

snmptable netSnmpIETFWGTable: No entries

2014-08-12 Thread mar work
Hi: Well first of all thanks for taking a look into this, my main problem is that I'm looking forward to get an agent to display the information in a table mode with snmptable command, other examples I have seen do parse the output of a table, and other issues I found where the table w

Re: snmptable queries excess data

2013-11-12 Thread Чугунов Дмитрий
n I inject > cache handle but if I remove it, the problem remains). So if I query a table > using the next command: > snmptable -v 2c -c public -r 0 -t 15 localhost:10161 > .1.3.6.1.4.1.11.1.3.4 > i get this table correctly. But when I look at logs, I see that handlers of

snmptable queries excess data

2013-11-12 Thread Чугунов Дмитрий
oblem remains). So if I query a table using the next command: snmptable -v 2c -c public -r 0 -t 15 localhost:10161 .1.3.6.1.4.1.11.1.3.4 i get this table correctly. But when I look at logs, I see that handlers of all next OID's (.1.3.6.1.4.1.11.1.3.5,.1.3.6.1.4.1.11

snmptable queries excess data

2013-11-12 Thread Чугунов Дмитрий
Hello. I have the following OID's: .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 .1.3.6.1.4.1.11.1.3.1 ---

[patch] snmptable -CB does not work for sparse tables

2013-07-20 Thread Claus Klein
I have tried to fix the problem, but it is not as easy as it should.With my patch I get this:apps/snmptable -CbB   localhost:161 myPropSeqOfStructItemAttribTable# SNMP table: my-PROPERTY-MIB::myPropSeqOfStructItemAttribTable# #  Boolean Char Octet Long Short     ULong UShort String

snmptable -CB does not work for sparse tables

2013-07-19 Thread Claus Klein
Hi I'm wondering why is there a different output for the same table with and without -CB option: snmptable -CibB -r0 -t15 localhost:161 myPropSeqOfStructItemAttribTable # SNMP table: my-PROPERTY-MIB::myPropSeqOfStructItemAttribTable # # index Boolean Char Octet Long Short ULong U

Re: How to set value in snmptable?

2011-04-28 Thread Zimmer Hu
Dave, The code is here: char * get_netSnmpHostAddress(void *data_context, size_t * ret_len) { my_data_info *datainfo = data_context; *ret_len = sizeof(in_addr_t); /* XXX: make sure it's 4 */ return (char *) &datainfo->theaddr; } int set_netSnmpHostAddress(void *data_cont

Re: How to set value in snmptable?

2011-04-27 Thread Dave Shield
On 27 April 2011 16:05, Zimmer Hu wrote: >> snmpset -v 2c -c private localhost netSnmpHostAddress.\"coconut\" = 7F000101 > Error in packet. > Reason: wrongValue (The set value is illegal or unsupported in some way) What does the code that handles this MIB object look like? In particular, the cod

Re: How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
Sorry, my mistake. I set community string wrongly. I checked my snmpd.conf and reset it to private, and get another issue (wrong value): > snmpset -v 2c -c private localhost .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.n

Re: How to set value in snmptable?

2011-04-27 Thread Dave Shield
On 27 April 2011 15:39, Zimmer Hu wrote: > Here is the command feedback: > >> snmpset -v 2c -c public localhost netSnmpHostAddress.\"coconut\" s 7F000101 > Error in packet. > Reason: noAccess This is an error from the remote end. It's telling you that the agent doesn't allow SET requests with

Re: How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
Dave, Here is the command feedback: > snmpset -v 2c -c public localhost .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.netSnmpHostAddress.\"coconut\" s 7F000101 Error in packet. Reason: noAccess Failed object: .1.3.6.1.4.

Re: How to set value in snmptable?

2011-04-27 Thread Dave Shield
On 27 April 2011 15:08, Zimmer Hu wrote: >> snmpset -v 2c -c public localhost  netSnmpHostAddress."coconut" s 7FABC101 Try escaping the quotes around "coconut" i.e. snmpset -v 2c -c public localhost netSnmpHostAddress.\"coconut\" s 7FABC101 Dave -

Re: How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
One more comment: I used .coconut s 7FABC101 instead of ."coconut" s &FABC101 and get the same result. I tried the following command, and get noAccess error as following: > snmpset -v 2c -c public localhost .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.n

How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
Hi All, I have made example code netSnmpHostsTable running as an independent agent. And I can make mbrowse to set value for netSnmpHostAddress with index value ("coconut") correctly, no problem with creation, modification and deletion. But when I run snmpset in command line, I get "Unknown Object

Re: CFV: Fix bug 3118631: snmptable segfaults if index contains : character

2011-02-22 Thread Wes Hardaker
> On Tue, 22 Feb 2011 15:07:34 +0100, Niels Baggesen > said: NB> The following simple fix does it - and this get more severe as we get NB> more IPv6 usage :-) +1 -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net --

Re: CFV: Fix bug 3118631: snmptable segfaults if index contains : character

2011-02-22 Thread Dave Shield
On 22 February 2011 14:07, Niels Baggesen wrote: > The following simple fix does it - and this get more severe as we get > more IPv6 usage :-) +1 (for all active lines) Dave -- Index, Search & Analyze Logs and other I

CFV: Fix bug 3118631: snmptable segfaults if index contains : character

2011-02-22 Thread Niels Baggesen
The following simple fix does it - and this get more severe as we get more IPv6 usage :-) --- apps/snmptable.c(revision 19965) +++ apps/snmptable.c(working copy) @@ -703,7 +703,7 @@ NETSNMP_DS_LIB_OID_OUTPUT_FORMAT)) {

Re: Segmentation fault with snmptable command

2010-03-15 Thread Dave Shield
On 15 March 2010 10:27, Manjit wrote: > For some of the value(wrong values ) of mib-oid's snmptable is giving > segmentation fault. This is fixed by the patch to bug report #2837998 (SVN revision 17857) See http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/apps/snm

Segmentation fault with snmptable command

2010-03-15 Thread Manjit
Hi All, For some of the value(wrong values ) of mib-oid's snmptable is giving segmentation fault. e.g [r...@localhost make]# snmptable -v 2c -c demopublic localhost .1 Segmentation fault [r...@localhost make]# snmptable -v 2c -c demopublic localhost .2 Was that a table? joint-iso-cci

Saving persistant data from a snmptable across system reboot

2009-09-20 Thread sandeep patra
Hi, I am trying to save some persistant data from a snmptable when net-snmp goes down or when user do a hard reboot/shutdown. for that i need to know the last routine called in both the cases for net-snmp. It would be a great help to me if anyone help me in knowing the last routine getting called

Re: SnmpTable Infinite Loop?

2009-02-10 Thread Wes Hardaker
> On Fri, 6 Feb 2009 16:21:21 -0500, Vinh Hoang said: VH> I'm have subagent generated be mib2c of a snmp table. And I'm returning VH> SNMP_ERR_GENERR, in "tablename"_handler(...) in the case MODE_GET. I'm only VH> returning the error if the request was not a valid one, ie request for a row V

SnmpTable Infinite Loop?

2009-02-06 Thread Vinh Hoang
I'm have subagent generated be mib2c of a snmp table. And I'm returning SNMP_ERR_GENERR, in "tablename"_handler(...) in the case MODE_GET. I'm only returning the error if the request was not a valid one, ie request for a row not on the table. Anyways when I try to do a table get by using GETNEXT,

Re: question marks ('?') in snmptable output

2006-08-31 Thread Dave Shield
and its messing with > the secondary index. One possibility would to run "snmptable -d" (or "snmptable -Ddump") which would print out the request/response packets as they are sent/received. You could then wade through the mountains of output(!), to try and locate an indivi

Re: question marks ('?') in snmptable output

2006-08-31 Thread Mike Varley
Thanks Dave. One problem we have with this bug is it is very difficult to reproduce; I am trying to create some samples which will simulate the failure. The indexes are accessible. Thanks for the clarification on what a 'gap' or '?' might be; it will help me in creating the samples :) The cur

Re: question marks ('?') in snmptable output

2006-08-31 Thread Dave Shield
On 31/08/06, Mike Varley <[EMAIL PROTECTED]> wrote: > Don't you hate it when people withhold information? :) a) You might say that - I couldn't possibly comment b) You get used to it after two or three years on the list :-( > So here is a more accurate sample of the output: > > id(index1) num(

Re: question marks ('?') in snmptable output

2006-08-31 Thread Mike Varley
Thanks Dave, here is some more information on our bug. Dave Shield wrote: > On 31/08/06, Mike Varley <[EMAIL PROTECTED]> wrote: > >> we are seeing an snmptable command respond with question >> marks ('?') as the result for some of the column entries; and I

Re: question marks ('?') in snmptable output

2006-08-31 Thread Dave Shield
On 31/08/06, Mike Varley <[EMAIL PROTECTED]> wrote: > we are seeing an snmptable command respond with question > marks ('?') as the result for some of the column entries; and I am > wondering if this is normal behaviour if net-snmp encounters an error > while tr

question marks ('?') in snmptable output

2006-08-31 Thread Mike Varley
Appologies if this is the wrong list to ask, but I am currently chasing a bug where we are seeing an snmptable command respond with question marks ('?') as the result for some of the column entries; and I am wondering if this is normal behaviour if net-snmp encounters an error while

RE: snmptable command

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 13:24, [EMAIL PROTECTED] wrote: > I have to set a particular value say in 3rd row, 2nd > column in a table. How I can do this in agent and how > I can invoke this from manager. How is the table indexed? That will affect how to invoke this request from the manager. How is th

Re: snmptable command

2005-06-22 Thread David T. Perkins
12:18, [EMAIL PROTECTED] wrote: > > To set/add this values in table can I use snmptable command > > or I have to set one by one using snmpset? > > $ man snmptable > NAME >snmptable - obtain and print an SNMP table >^^^

RE: snmptable command

2005-06-22 Thread kanda.samy
: Re: snmptable command On Wed, 2005-06-22 at 12:18, [EMAIL PROTECTED] wrote: > To set/add this values in table can I use snmptable command > or I have to set one by one using snmpset? $ man snmptable NAME snmptable - obtain and print an SNMP

Re: snmptable command

2005-06-22 Thread Dave Shield
On Wed, 2005-06-22 at 12:18, [EMAIL PROTECTED] wrote: > To set/add this values in table can I use snmptable command > or I have to set one by one using snmpset? $ man snmptable NAME snmptable - obtain and print an SNMP table DESCR

snmptable command

2005-06-22 Thread kanda.samy
values in table can I use snmptable command or I have to set one by one using snmpset?   With regards    S.Kandasamy   Wipro Technologies No 70/1,  Keonics Electronic city,  Bangalore -560 100.        Phone:08030295183 Ext :15183 Mobile  : (+91) 9886812502

Re: Why do I get such response when using command "snmptable"?

2005-04-20 Thread Dave Shield
On Wed, 2005-04-20 at 02:46, Hongjunli wrote: > Why do I get such response when using command "snmptable"? What was the exact command you ran? "snmptable " > > LocalIPAddrRemoteIPAddr LocalPort RemotePort > &

Why do I get such response when using command "snmptable"?

2005-04-20 Thread Hongjunli
Why do I get such response when using command "snmptable"? LocalIPAddrRemoteIPAddr LocalPort RemotePort 86.102.137.103 101.71.120.106 5678 9876 Wrong Type (should be Gauge32 or Unsigned32): 86.118.137.103 101.151.120.106

Re: When I use snmptable to visite myself table,I get "USER-MIB::AdminUsrTable: No entries"

2005-04-15 Thread Robert Story
On Wed, 13 Apr 2005 15:43:13 +0800 Hongjunli wrote: H> When I use snmptable to visite myself table,I get "USER-MIB::AdminUsrTable: H> No entries". Could you tell me the cause? 1) Your table isn't setting up the indexes properly or 2) the handler isn't settind th

Why will my function xxxTable_load(...) be called twice after only one snmpwalk/snmptable used ?

2005-04-15 Thread Hongjunli
Why will my function xxxTable_load(...) be called twice after only one snmpwalk/snmptable used ?I have traced tcpTable_load(...),but it is called just once. Could you expain the cause? thanks a lot.

When I use snmptable to visite myself table,I get "USER-MIB::AdminUsrTable: No entries"

2005-04-15 Thread Hongjunli
When I use snmptable to visite myself table,I get "USER-MIB::AdminUsrTable: No entries".Could you tell me the cause?