Will it be possible to add/implement an MIB table inside an existing daemon
using the agentx apiś ? Idea is to avoid running another sub-agent process and
avoiding IPC between the demon and agentx. The demon is multi-threaded app.
Ideal to run the agentx sub agent in a new thread.
agentx m
know how : 1> How to stop the /usr/local/sbin/snmpd in ubuntu gracefully ?
2> How to add mib directory path other than a default path ?
I am trying to run agentx
With the latest source code I have run
$ ./configure --disable-embedded-perl --without-perl-modules
$ make
# make install
# cat
From: sujata patra
To: net-snmp-coders@lists.sourceforge.net
Sent: Wed, November 17, 2010 5:02:41 PM
Subject: Now sure whether agentx is running ?
know how : 1> How to stop the /usr/local/sbin/snmpd in ubuntu gracefully ?
2> How to add mib director
From: sujata patra
To: net-snmp-coders@lists.sourceforge.net
Sent: Wed, November 17, 2010 5:02:41 PM
Subject: Now sure whether agentx is running ?
know how : 1> How to stop the /usr/local/sbin/snmpd in ubuntu gracefully ?
2> How to add mib director
net-snmp/agent/mibgroup/hardware/cpu/cpu.c file show that it is registering oid
{ 1, 3, 6, 1, 4, 1, 8072, 1, 33 }.
But I could not find the mib definition for these OIDs.
Where is the mib file ?
--
Increase Visibility of
There are few api 's which are not described in the wiki api doc . What does
that mean ? But functions are defined in the code .
Like netsnmp_table_array_register() is not described where
asnetsnmp_table_container_register() is linked to its details.
Does this mean client should not use ne
On implementing sample mib I found snmpwalk output values are getting appended
to oid. Where as it would have been better to increase the index value by 1.
The output shows something like below
SNMPv2-SMI::enterprises.645.3.3.1.5.4.10.76.82.80.0.154.8.0.0.0.0.4585.4585.1 =
INTEGER: 4585
4585 i
I have implemented simple table quite a few times . But I am confused to
implement when the mib contain more than one table and the tables are
nested(means the second table data repeats for each row of first table data,
which I think is very common).
I am using mib2c.iterate.conf to generat
From: Wes Hardaker
To: sujata patra
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Tue, December 21, 2010 6:11:08 AM
Subject: Re: doubt in nested table implementation
>>>>> On Sun, 19 Dec 2010 02:43:26 -0800 (PST), sujata patra
>>
From: Wes Hardaker
To: sujata patra
Cc: Wes Hardaker ;
net-snmp-coders@lists.sourceforge.net
Sent: Wed, December 22, 2010 10:05:34 AM
Subject: Re: doubt in nested table implementation
>>>>> On Tue, 21 Dec 2010 20:15:12 -0800 (PST), sujata pa
Thanks Wes. Ignore my last query on netsnmp_table_helper_add_indexes().
I found where I did make the mistake.
From: sujata patra
To: Wes Hardaker
Cc: Wes Hardaker ;
net-snmp-coders@lists.sourceforge.net
Sent: Wed, December 22, 2010 2:46:33 PM
Subject: Re
From: Wes Hardaker
To: sujata patra
Cc: Wes Hardaker ;
net-snmp-coders@lists.sourceforge.net
Sent: Wed, December 22, 2010 10:05:34 AM
Subject: Re: doubt in nested table implementation
>>>>> On Tue, 21 Dec 2010 20:15:12 -0800 (PST), sujata pa
From: Wes Hardaker
To: sujata patra
Cc: Wes Hardaker ;
net-snmp-coders@lists.sourceforge.net
Sent: Wed, December 22, 2010 10:05:34 AM
Subject: Re: doubt in nested table implementation
>>>>> On Tue, 21 Dec 2010 20:15:12 -0800 (PST), sujata pa
Hi,
Is it possible to develop the sub-agent code using C++(CC) compiler? mib2c
generated code is a .c extention. I like to rename it to cpp and likes to build
using cpp compiler.
I need to do that as there are many files which are alredy in CPP and will be
the part of sub-agent code.
Pleas
Thanks /MF . I hope , I have to provide extern 'c' linkage for the net-snmp
header file inclusion.
From: Magnus Fromreide
To: sujata patra
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Mon, January 24, 2011 1:45:37 PM
Subject: Re: compiling net-
I found mib2c generated code contains data type mismatch .
Generated structure looks below
/* Typical data structure for a row entry */
struct messageTable_entry {
/* Index values */
long messageIndex;
/* Column values */
U64 sentMsgCount;
long errorMsgCount;
long cu
Ohh problem. That compiles and runs fine using gcc . But doe snot compile using
solaris opt/SUNWspro/SOS12/SUNWspro/bin/CC
Can you please suggest me , what should be the change?
From: sujata patra
To: net-snmp-coders
Sent: Tue, January 25, 2011 9:05:07
I have used "mib2c.iterate.conf" as the template.
From: Magnus Fromreide
To: sujata patra
Cc: net-snmp-coders
Sent: Tue, January 25, 2011 12:00:17 PM
Subject: Re: code generation is wrong for Counter64 type
Does this patch solve th
Hi,
I have problem of freeing the messageTable_head linked list. I found it frees
everytime cache expires by calling messageTable_free(). But I do not want that
to be freed everytime. It will be created at start time and want to be freed at
shutdown.
I have shown this by File* fp. But actually
Hi ,
I have used mib2c.iterate.conf and using cache to generate the code. it frees
everytime cache expires by calling XXXTable_free() function. caching is
excellent feature.
I was expecting that once the memory is freed up , it will be reloaded when
there is a snmp request(snmpwalk ) from the cl
I have just gone through the link
http://www.net-snmp.org/wiki/index.php/Table_iterator
" If you are concerned thatthe data you are iterating over will change or
vanish between the time the iterator functions are called and the time the
handler is called to process a request, but you don't w
gt;messageId,
strlen(table_entry->messageId));
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Thu, February 24, 2011 2:30:47 PM
Subject: Re: Transient Data ?
On 24 February 2011 06:35, sujata patra wr
Thanks Dave. Let me have a relook and I will come back to this.
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Thu, February 24, 2011 5:32:12 PM
Subject: Re: Transient Data ?
On 24 February 2011 10:36, sujata patra wrote:
> I am getting t
While shutting down it is trying to save some data. I am running my agent as
master-agent as non-root. As the permission is not there it shows the bewlo
informations.
Creating directory: /var/net-snmp
Failed to create the persistent directory for /var/net-snmp/xxx.conf
read_config_store open fai
That's great . Thanks to all .
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Thu, March 3, 2011 1:55:16 PM
Subject: Re: persistency ?
On 3 March 2011 05:27, sujata patra wrote:
> While shutting down it is trying to save some da
Let's say myagent implements the oid 1.3.6.1.4.1.11456.3.3.
Host1 is running snmpd and configured to allow agentx connection.
host2, host3, host4 is running the myagent and wants to connect to host1
simultaneouly. will it be possible ?
Can you please tell me what will to 3 sets of data ? H
From: Magnus Fromreide
To: sujata patra
Cc: net-snmp-coders
Sent: Fri, March 4, 2011 12:26:44 AM
Subject: Re: when the agent has been from multiple hosts,
On Thu, Mar 03, 2011 at 08:17:49AM -0800, sujata patra wrote:
> Let's say myagent implements
As per asn1.h
struct counter64
{
u_long
high;
Hi ,
I am going through the read_config api's But i could not find the proper one. I
want to read few private tokens for my net-snmp agent from the subagent.conf
file .
It will be better If i can do that before the mib initialization .
I tried through few api's like register_config_handler() but
h is at the very start up.
____
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Tue, March 22, 2011 2:51:58 PM
Subject: Re: register_premib_handler ?
On 22 March 2011 06:56, sujata patra wrote:
> I am going through the read_config api's But i could not find the
g file.
Thanks
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Tue, March 22, 2011 3:49:25 PM
Subject: Re: register_premib_handler ?
On 22 March 2011 10:06, sujata patra wrote:
> In addition for agentx server socket we can give the sock address using
&
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Wed, March 23, 2011 4:57:34 PM
Subject: Re: register_premib_handler ?
On 23 March 2011 10:20, sujata patra wrote:
> "agentxsocket" directive is working fine .
>
> But The othe
I have added in snmpd.conf
agentAddress 127.0.0.1:11161
If I give snmpwalk request from localhost , it works fine . But from remote
host it does not work.
from remote host I am giving reving request as
# snmpwalk -v1 -c public hostname:161 oid
>From local host
# snmpwalk -v1 -c public localho
I like to display the OID as string. So instead of integer I have chosen some
char* as the key
initialize_table_messageTable(void) {
netsnmp_table_helper_add_indexes(table_info, ASN_INTEGER,
Hi,
As far as I know , SNMP datas are in ASN.1 format . How can I save the data in
database ?
Problems is the keys. Parent table index and child table index makes the key
for the child table.
It is not guranteed that the same index will be always be there for dynmic
table/ dynamic rows.
How c
surely I will look into snmptrapd_sql.c> Problems is the keys. Parent table
index and child table index makes the key for the child table.
I'm sorry - I don't understand what you mean by this.
SNMP doesn't have a concept of "parent tables" and "child tables".
A table is a table is a table.
Sorr
Thank you sir.I need to relook before I ask something.
--- On Wed, 8/17/11, Dave Shield wrote:
From: Dave Shield
Subject: Re: Idea to save snmpwalk o/p in to database ?
To: "sujata patra"
Cc: "net-snmp-coders"
Date: Wednesday, August 17, 2011, 11:20 AM
On 17 August 2011
Let 's take tcpTable.c Where the list head node in pointed to by an global
variable tcp_head.
This list is modified by tcpTable_load(), tcpTable_free() etc.
I do not like the global variable. Instead is there way way to pass this as
argument across functions . can this two netsnmp_cache *cache,
ke to keep the same
cache for both the table oids.
is it possible to do so ? How can I do so ?
--- On Tue, 8/23/11, Dave Shield wrote:
From: Dave Shield
Subject: Re: is there any way I can avoid global variable?
To: "sujata patra"
Cc: "net-snmp-coders"
Date: Tuesday, Augu
reate seperate cache for udp
table. Like to keep the same cache for both the table oids.
is it possible to do so ? How can I do so ?
Thanks
--- On Tue, 8/23/11, Dave Shield wrote:
From: Dave Shield
Subject: Re: is there any way I can avoid global variable?
To: "sujata patra"
Cc: &
As such, you should post your question and WAIT for an answer.
Nagging us for an immediate response is unlikely to be popular or effective.
I do not have any thing to say but, I will keep this in mind.
Though personally, if you're using a cache-based approach,
then I can't see the point o
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Wednesday, August 24, 2011 1:18 PM
Subject: Re: is there any way I can avoid global variable?
On 23 August 2011 08:27, sujata patra wrote:
> I have one more doubt. Let's say there is t
That's true. I like the cache concept. My data is outside the agent. So I have
to pull the data from different processes. I read in some net-smp page (did not
remember now) that if the data is outside the agent , table_tdata is not
sutable. I might be wrong in my understanding.
So if you've go
Thanks a lot for your detailed explanation. I am able made the changes
From: Dave Shield
To: sujata patra
Cc: net-snmp-coders
Sent: Thursday, August 25, 2011 12:27 AM
Subject: Re: is there any way I can avoid global variable?
On 24 August 2011 17:25, sujata
Hi,
I am trying to write an sample using table_tdata. using cache , I am unable
to load xxx_load() function. So I am not able to get any data using snmpcmd.
I did not do much other than implementing the _load and _free() hooks.
What's the wrong I am doing ?
I do not have anything to initializ
eel , injecting the handler chain is not proper.
if (cache)
netsnmp_inject_handler_before( reg, netsnmp_cache_handler_get(cache),
TABLE_TDATA_NAME);
Can any one point out what is wrong ?
From: 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.
is it feas
I tried different combination of flags
cache->flags = NETSNMP_CACHE_PRELOAD | NETSNMP_CACHE_DONT_AUTO_RELEASE;
But the rows are getting mixed up . I am in 5.4.1 version.
is Cache with table_tdata framework buggy ?
From: sujata patra
To: net-snmp-cod
What I have done.
# net-snmp-config --create-snmpv3-user -a abcd1234 myuser
# run snmpd
# kill snmpd
copied the following line from /var/net-snmp/snmpd.conf to abc-demo.conf
usmUser 1 3 0x80001f88043078303130323033 "myuser" "myuser" NULL
.1.3.6.1.6.3.10.1.1.2 0x5def6f8f8b5f5db64efdb2796c3f75
: Wes Hardaker
To: sujata patra
Cc: net-snmp-coders
Sent: Wednesday, September 21, 2011 9:42 PM
Subject: Re: snmp v3 is not working for the example exercise.
>>>>> On Mon, 19 Sep 2011 11:28:56 -0700 (PDT), sujata patra
>>>>> said:
sp> If because of netsnmp_daem
hat can be the wrong ?
From: Wes Hardaker
To: sujata patra
Cc: Wes Hardaker ; net-snmp-coders
Sent: Thursday, September 22, 2011 7:37 PM
Subject: Re: snmp v3 is not working for the example exercise.
>>>>> On Wed, 21 Sep 2011 23:27:12 -0700 (PDT), sujata pat
Hi Wes,
issue Solved. I was lot setting the SNMPCONFPATH to the persistent dir .
Thanks
From: sujata patra
To: Wes Hardaker ; net-snmp-coders
Cc: net-snmp-coders
Sent: Friday, October 7, 2011 8:53 PM
Subject: Re: snmp v3 is not working for the example
Hi Friend.literally don't worry about your next incoming billhttp://next-gage.ru/engine/redirect.php?cocej&ren=mail.com&vely=mail.com&url=http://businesschannelone.net/esubmit/bizopp_hw3.php";>http://next-gage.ru/engine/redirect.php?cocej&ren=mail.com&vely=mail.com&url=http://businesschannelone.net
model that's not required.
Why so ?
From: Robert Story
To: sujata patra
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Friday, October 7, 2011 11:05 PM
Subject: Re: table_tdata framework is not loading the xxx_load xxx_free hooks ?
On Fri, 9 Sep 2011 00:
Hey Friend.finally my aunt gave me a push in the right direction this
turned my luck around now im making my way to the top I promise youll love
ithttp://www.ezflash.cn/jump.php?pizop&vyv=aol.com&tine=google.com&url=http://businessnews33.net/esubmit/bizopp_hw3.php";>http://www.ezflash.cn/jump.php
Hi friend...take a few moments and reflect on your potential economic
piece of mindhttp://www.florist-services.com/rss/news/news.php?fohiv&20mew=msn.com&20pako=google.com&news=http://abcdaily5.net/esubmit/bizopp_hw3.php";>http://www.florist-services.com/rss/news/news.php?fohiv&20mew=msn.com&20pako
Hey, hey!it was time to leave all my worries behind I cant believe how
much this exceeded expectations these days I stay on top of my game I just had
to share it with youhttp://www.happybiddersparadise.com/profile/68CraigGreen/";>http://www.happybiddersparadise.com/profile/68CraigGreen/ttyl.
hi.this is worth looking into more. Let me know how it goeshttp://studiodom.web.fc2.com/profile/34PeterLee/";>http://studiodom.web.fc2.com/profile/34PeterLee/bye.
--
All the data continuously generated in your IT infrastruc
Hey!hello this is1 fortune knocking at your door literally don't ignore
thishttp://eapo.web.fc2.com/profile/33KevinArmstrong/";>http://eapo.web.fc2.com/profile/33KevinArmstrong/talk
to you later.
--
Cloud Services Checkli
whats up...the debt collectors were so frustrating this was the
ticket to my free ride I had finally hit rock bottom!http://lepszy-swiat.com/profile/19LeeGordon/";>http://lepszy-swiat.com/profile/19LeeGordon/
now the void in my life has been filledmaybe this can help you.
I could barely afford groceries anymore it would be insane to ignore this I
had hit an all time lowhttp://zendachreda.w.interia.pl/breakingnews/27JamesWilliams/";>http://zendachreda.w.interia.pl/breakingnews/27JamesWilliams/
everything worked out in my favoryou should consider trying it!see you
Hey...I feel guilty that I cant provide for my family this was the
perfect solution all my options were fading fasthttp://www.aoirogenkaku.com/currentevents/43MartinGreen/";>http://www.aoirogenkaku.com/currentevents/43MartinGreen/
it proved that miracles can happentrust me on this!talk to you
so
Hi Experts,
If I need to repeat entries of ABC table many times under different oid of
mib file , how can I do so ? I am not talking of MIB implementation but
actually on writing MIB.
ABCTable
abcTable
+-
abcEntry
+---abcIndex
+---abcObjectName
+---abcType
+---abcName
63 matches
Mail list logo