query to dsx1Intervaltable always kills the subagent

2011-03-24 Thread Malathi Panyam
Hi, We are trying to support DS1 MIB(RFC4805) on our device. We use NetSNMP 5.4.2.1 and use the mib2c generated code for tables. Our subagent for dsx1IntervaTable always getting killed when queried. I don't find any core file though. Definition of dsx1IntervalTable is Dsx1IntervalEntry ::=

Re: number of ip addresses through a router

2011-03-24 Thread Dave Shield
On 24 March 2011 17:31, Jaime Lozano wrote: > Hi again, > Scott I'm not such optimistic. I don't know if there is any MIBs guru > listening. I'm not sure that I'd claim to be a MIB guru, but I'll offer some general thoughts. Whenever there's a question about "how can I find a MIB for X?"

Re: number of ip addresses through a router

2011-03-24 Thread Hans Jørgen Jakobsen
On Thu, 24 Mar 2011, Jaime Lozano wrote: > Does anyone knows how to get the number of ip addresses going through a > router? The router is not doing NAT (in that case I could get the NAT table) > I'm talking about a Juniper MX480. I don't know if there is a standard OID > or exists a propietary

Re: number of ip addresses through a router

2011-03-24 Thread Jaime Lozano
Hi again, Scott I'm not such optimistic. I don't know if there is any MIBs guru listening. I've been looking for and I can say there are some interesant OIDs like the standard *ipForwDatagrams* that is "the number of input Datagrams for which this entity was not their final IP destination" But this

Re: Raw-table doesn't work.

2011-03-24 Thread Dave Shield
On 24 March 2011 17:00, Naama Bar Menachem wrote: > Thanks, however in "nsDemodEventsTable_get_next_entry" function, there > is no "reqinfo" that "netsnmp_set_request_error" expect to get as first > parameter. Don't set this in the 'get_next_entry' funtion - handle it in the main handler routine.

RE: Raw-table doesn't work.

2011-03-24 Thread Naama Bar Menachem
Thanks, however in "nsDemodEventsTable_get_next_entry" function, there is no "reqinfo" that "netsnmp_set_request_error" expect to get as first parameter. Here's the function header: static struct nsDemodEventsTable_entry * nsDemodEventsTable_get_next_entry(netsnmp_handler_registration *reginfo,

Re: Raw-table doesn't work.

2011-03-24 Thread Dave Shield
On 23 March 2011 14:40, Naama Bar Menachem wrote: > I suppose that my getnext function is not handling right the case when > we get to the end of the table. > What am I doing wrong? Try setting the varbind to have the error EndOfMibView i.e. netsnmp_set_request_error(reqinfo, request,

How does net-snmp know to go to the next branch when reach the end of current?

2011-03-24 Thread Naama Bar Menachem
On "get_next" or "walk" commands, how does net-snmp know to go to the strart of the next branch when reaching the end of the current branch? Best Regards, Naama Bar Menachem SW Eng. This e-mail may contain confidential and/or privileged information. If you are not the intended recip

Re: number of ip addresses through a router

2011-03-24 Thread William Muriithi
Jaime, On 2011-03-24, at 8:01 AM, Scott Baker wrote: > On 03/24/2011 04:42 AM, Jaime Lozano wrote: >> Does anyone knows how to get the number of ip addresses going through >> a router? The router is not doing NAT (in that case I could get the >> NAT table) I'm talking about a Juniper MX480. I don'

get next index update

2011-03-24 Thread Naama Bar Menachem
Hi I have implemented a "raw-table" mib. I am implementing get and get_next function. Question: in get_next function, what should I return it max index exceeded? How do I notify the end of table? Do I need to provide next OID of next branch of the tree? Best Regards, Naama Bar

Re: How to cache scalar mib objects. Any example of code would be appreciated

2011-03-24 Thread sunaina mangla
Hi, Please somebody respond on that. I am in need of this. I appreciate the quick response on this. regards, Sunaina On Tue, Mar 22, 2011 at 7:23 AM, sunaina mangla wrote: > Hi, > > I have scalar mib objects which has the data with external process and > not with agent itself. I want to cache

RE: Question on Net-SNMP (SNMPD)

2011-03-24 Thread Sun Paul
Thanks for your advice is there any sample that can guide me thru?? - RBK From: arif hussain [mailto:arifo...@gmail.com] Sent: Thursday, 24 March, 2011 20:12 To: Sun Paul Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Question on Net-SNMP (SNMPD) I think You can use snm

Re: Question on Net-SNMP (SNMPD)

2011-03-24 Thread arif hussain
I think You can use snmpd daemon for the same. You can implement your own Table which will extract required information from DB. 2011/3/24 Sun Paul > Hi All > > I hope I post on the correct channel.If not, please allow me to say sorry > here. > > I am planning to develop a daemon to receive SNM

Re: number of ip addresses through a router

2011-03-24 Thread Scott Baker
On 03/24/2011 04:42 AM, Jaime Lozano wrote: > Does anyone knows how to get the number of ip addresses going through > a router? The router is not doing NAT (in that case I could get the > NAT table) I'm talking about a Juniper MX480. I don't know if there is > a standard OID or exists a propietary

number of ip addresses through a router

2011-03-24 Thread Jaime Lozano
Does anyone knows how to get the number of ip addresses going through a router? The router is not doing NAT (in that case I could get the NAT table) I'm talking about a Juniper MX480. I don't know if there is a standard OID or exists a propietary OID; a table or a integer... But I think it is usefu

Question on Net-SNMP (SNMPD)

2011-03-24 Thread Sun Paul
Hi All I hope I post on the correct channel.If not, please allow me to say sorry here. I am planning to develop a daemon to receive SNMPGET, and once it received, it will try to go to query a PGSQL/Oracle DB to extract the information, and returning back the value back to original SNMP polling

RE: Raw-table doesn't work.

2011-03-24 Thread Naama Bar Menachem
Hello After further checking we found that when sending a getnext request with index higher than the last entry in the table the handler is called repeatedly, as shown bleow. I suppose the I do not update correctly the information in the get_next function when reaching the end of the table. hand

Re: How snmpget encryption-decryption keys exchanged between Agent and remote host.

2011-03-24 Thread Dave Shield
On 23 March 2011 21:20, sunaina mangla wrote: > You mean to say if I have any > default user created in snmpd.conf . > then can't I just use username and passphrase in snmpget command and I > am good to go. Yes - of course you can. > What initial set

Re: Set values in the table

2011-03-24 Thread Dave Shield
On 24 March 2011 09:25, ring wrote: > But in my real project,there are more than 50 para in the table. So the table has 50 columns?That feels a little cumbersome. It might be worth reviewing the design of the table But that's a separate issue Do any of these columns take "default" values? If

Set values in the table

2011-03-24 Thread ring
Hi:    Maybe I don't express my problem clealy.   Here is my example:   when there is only one column(id) ,I use    "js50PMTable_createEntry(12)"   to set value to the para.   when there are two para (id,name)in the table.I use   "js50PMTable_createEntry(12,"test",4,)" .   But i

Re: Help about how to assign to the objects in the table

2011-03-24 Thread Dave Shield
On 24 March 2011 03:09, ring wrote: >     In my real project,I need many objects in the table.But I don't know > how to  assign to each object in my program. How do you know the list of objects to go in the table? Is it available from some other source? (a configuration file, some API ca

Re: HP-UNIX::processTable = No Such Object available on this agent at this OID

2011-03-24 Thread Dave Shield
2011/3/24 高川 : > I just want to get information like this: > $ snmpbulkwalk ... .1.3.6.1.4.1.11.2.3.1.4.2 > HP-UNIX::processPID.0 = INTEGER: 0 > HP-UNIX::processPID.1 = INTEGER: 1 > HP-UNIX::processPID.2 = INTEGER: 2 Note that this is part of the 'HP-UNIX' MIB - a private MIB implemented by HP's

Help about how to assign to the objects in the table

2011-03-24 Thread ring
Hi:I write a simple test MIB,and create a dynamic library using the mib2c.iterate.conf .There are two objects (id,name)in the table.In my test program,I use "js50PMTable_createEntry(12,"test",4,)" to assign to the objects.    In my real project,I need many objects in the table.But I don

default user

2011-03-24 Thread anant garg
Hi, In net-snmp 5.6.1, using snmpv3 , Can I have a default user? The goal is to have a default user which needs to be present on every system ( embedded device)? like we put a default user in a config file and that file is made a part of root file system which can provide an default user access