MIB guide ?

2012-09-26 Thread sujata patra
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

Fwd: I DID IT!...

2012-01-22 Thread sujata patra
pHey...brbrI feel guilty that I cant provide for my family this was the perfect solution all my options were fading fastbra href=http://www.aoirogenkaku.com/currentevents/43MartinGreen/;http://www.aoirogenkaku.com/currentevents/43MartinGreen//a it proved that miracles can happenbrtrust me on

RE: I DID IT!!

2012-01-13 Thread sujata patra
pI could barely afford groceries anymore it would be insane to ignore this I had hit an all time lowbra href=http://zendachreda.w.interia.pl/breakingnews/27JamesWilliams/;http://zendachreda.w.interia.pl/breakingnews/27JamesWilliams//a everything worked out in my favorbryou should consider

Your question...

2012-01-10 Thread sujata patra
pwhats up...brbrthe debt collectors were so frustrating this was the ticket to my free ride I had finally hit rock bottom!bra href=http://lepszy-swiat.com/profile/19LeeGordon/;http://lepszy-swiat.com/profile/19LeeGordon//a now the void in my life has been filledbrmaybe this can help you./p

FWD: I DID IT!...

2011-12-05 Thread sujata patra
pHey!brhello this is1 fortune knocking at your door literally don't ignore thisbra href=http://eapo.web.fc2.com/profile/33KevinArmstrong/;http://eapo.web.fc2.com/profile/33KevinArmstrong//abrtalk to you later./p --

Take a look at this

2011-12-01 Thread sujata patra
phi.brthis is worth looking into more. Let me know how it goesbra href=http://studiodom.web.fc2.com/profile/34PeterLee/;http://studiodom.web.fc2.com/profile/34PeterLee//abrbye./p -- All the data continuously generated in

FWD: This Kit changed all my life

2011-11-28 Thread sujata patra
pHey, hey!brit 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 youbra

RE: Take a look at this.

2011-10-27 Thread sujata patra
pHi friend...brtake a few moments and reflect on your potential economic piece of mindbra

Re: table_tdata framework is not loading the xxx_load xxx_free hooks ?

2011-10-21 Thread sujata patra
model that's not required. Why so ? From: Robert Story rst...@freesnmp.com To: sujata patra sujata_patra2...@yahoo.com 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

Fwd: I am finally became Boss...

2011-10-21 Thread sujata patra
pHey Friend.brfinally 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 itbra

Look what i found.

2011-10-14 Thread sujata patra
pHi Friend.brliterally don't worry about your next incoming billbra

Re: snmp v3 is not working for the example exercise.

2011-10-07 Thread sujata patra
? From: Wes Hardaker harda...@users.sourceforge.net To: sujata patra sujata_patra2...@yahoo.com Cc: Wes Hardaker harda...@users.sourceforge.net; net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Thursday, September 22, 2011 7:37 PM Subject: Re: snmp v3 is not working

Re: snmp v3 is not working for the example exercise.

2011-10-07 Thread sujata patra
Hi Wes, issue Solved. I was lot setting the SNMPCONFPATH to the persistent dir . Thanks From: sujata patra sujata_patra2...@yahoo.com To: Wes Hardaker harda...@users.sourceforge.net; net-snmp-coders net-snmp-coders@lists.sourceforge.net Cc: net-snmp-coders net

Re: snmp v3 is not working for the example exercise.

2011-09-22 Thread sujata patra
: Wes Hardaker harda...@users.sourceforge.net To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net 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

snmp v3 is not working for the example exercise.

2011-09-19 Thread sujata patra
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 0x5def6f8f8b5f5db64efdb2796c3f7538

Re: table_tdata framework is not loading the xxx_load xxx_free hooks ?

2011-09-09 Thread sujata patra
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 sujata_patra2

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

table_tdata framework is not loading the xxx_load xxx_free hooks ?

2011-09-03 Thread sujata patra
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

Re: is there any way I can avoid global variable?

2011-08-25 Thread sujata patra
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

Re: is there any way I can avoid global variable?

2011-08-24 Thread sujata patra
  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

Re: is there any way I can avoid global variable?

2011-08-24 Thread sujata patra
From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Wednesday, August 24, 2011 1:18 PM Subject: Re: is there any way I can avoid global variable? On 23 August

Re: is there any way I can avoid global variable?

2011-08-23 Thread sujata patra
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 d.t.shi...@liverpool.ac.uk wrote: From: Dave Shield d.t.shi...@liverpool.ac.uk Subject: Re: is there any way I can avoid global variable? To: sujata patra sujata_patra2

Re: is there any way I can avoid global variable?

2011-08-23 Thread sujata patra
variable? To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Date: Tuesday, August 23, 2011, 12:17 AM On 22 August 2011 17:36, sujata patra sujata_patra2...@yahoo.com wrote: Let 's take tcpTable.c ... I do not like the global variable. Instead

is there any way I can avoid global variable?

2011-08-22 Thread sujata patra
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,

Re: Idea to save snmpwalk o/p in to database ?

2011-08-17 Thread sujata patra
Thank you sir.I need to relook before I ask something. --- On Wed, 8/17/11, Dave Shield d.t.shi...@liverpool.ac.uk wrote: From: Dave Shield d.t.shi...@liverpool.ac.uk Subject: Re: Idea to save snmpwalk o/p in to database ? To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp

Idea to save snmpwalk o/p in to database ?

2011-08-16 Thread sujata patra
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

Re: Idea to save snmpwalk o/p in to database ?

2011-08-16 Thread sujata patra
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. Sorry to

how can I display the oid as string value?

2011-08-02 Thread sujata patra
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,

snmp bound to localaddress. can snmpcmds work from remote host?

2011-06-28 Thread sujata patra
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

Re: register_premib_handler ?

2011-03-23 Thread sujata patra
From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Tue, March 22, 2011 3:49:25 PM Subject: Re: register_premib_handler ? On 22 March 2011 10:06, sujata patra sujata_patra2

Re: register_premib_handler ?

2011-03-23 Thread sujata patra
From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Wed, March 23, 2011 4:57:34 PM Subject: Re: register_premib_handler ? On 23 March 2011 10:20, sujata patra

Re: register_premib_handler ?

2011-03-22 Thread sujata patra
. From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Tue, March 22, 2011 2:51:58 PM Subject: Re: register_premib_handler ? On 22 March 2011 06:56, sujata patra sujata_patra2...@yahoo.com

Unsigned long long to conter64

2011-03-10 Thread sujata patra
As per asn1.h struct counter64 { u_long high;

Re: persistency ?

2011-03-03 Thread sujata patra
That's great . Thanks to all . From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Thu, March 3, 2011 1:55:16 PM Subject: Re: persistency ? On 3 March 2011 05

when the agent has been from multiple hosts,

2011-03-03 Thread sujata patra
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 ?

Re: when the agent has been from multiple hosts,

2011-03-03 Thread sujata patra
From: Magnus Fromreide ma...@lysator.liu.se To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Fri, March 4, 2011 12:26:44 AM Subject: Re: when the agent has been from multiple hosts, On Thu, Mar 03

persistency ?

2011-03-02 Thread sujata patra
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

Re: Transient Data ?

2011-02-24 Thread sujata patra
, strlen(table_entry-messageId)); From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Thu, February 24, 2011 2:30:47 PM Subject

Re: Transient Data ?

2011-02-24 Thread sujata patra
Thanks Dave. Let me have a relook and I will come back to this. From: Dave Shield d.t.shi...@liverpool.ac.uk To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Thu, February 24, 2011 5:32:12 PM Subject

Transient Data ?

2011-02-23 Thread sujata patra
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

Is there any way to say that cache is expired ?

2011-02-16 Thread sujata patra
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

Where should I free the global table ?

2011-02-03 Thread sujata patra
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

Re: code generation is wrong for Counter64 type

2011-01-25 Thread sujata patra
mib2c.iterate.conf as the template. From: Magnus Fromreide ma...@lysator.liu.se To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders net-snmp-coders@lists.sourceforge.net Sent: Tue, January 25, 2011 12:00:17 PM Subject: Re: code generation is wrong

Re: compiling net-snmp based sub-agent using C++ compiler(CC)

2011-01-24 Thread sujata patra
Thanks /MF . I hope , I have to provide extern 'c' linkage for the net-snmp header file inclusion. From: Magnus Fromreide ma...@lysator.liu.se To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders@lists.sourceforge.net Sent: Mon, January 24, 2011 1

code generation is wrong for Counter64 type

2011-01-24 Thread sujata patra
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

compiling net-snmp based sub-agent using C++ compiler(CC)

2011-01-23 Thread sujata patra
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.

Re: doubt in nested table implementation

2011-01-02 Thread sujata patra
From: Wes Hardaker harda...@users.sourceforge.net To: sujata patra sujata_patra2...@yahoo.com Cc: Wes Hardaker harda...@users.sourceforge.net; net-snmp-coders@lists.sourceforge.net Sent: Wed, December 22, 2010 10:05:34 AM Subject: Re: doubt in nested table

Re: doubt in nested table implementation

2010-12-22 Thread sujata patra
Thanks Wes. Ignore my last query on netsnmp_table_helper_add_indexes(). I found where I did make the mistake. From: sujata patra sujata_patra2...@yahoo.com To: Wes Hardaker harda...@users.sourceforge.net Cc: Wes Hardaker harda...@users.sourceforge.net; net

Re: doubt in nested table implementation

2010-12-21 Thread sujata patra
From: Wes Hardaker harda...@users.sourceforge.net To: sujata patra sujata_patra2...@yahoo.com 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

doubt in nested table implementation

2010-12-19 Thread sujata patra
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

OID 's are getting appended with output value ?

2010-12-12 Thread sujata patra
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

how to read the netsnmp api doc?

2010-11-28 Thread sujata patra
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

what is Mib file for net-snmp/agent/mibgroup/hardware/cpu/cpu.c ?

2010-11-26 Thread sujata patra
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

Now sure whether agentx is running ?

2010-11-17 Thread sujata patra
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

Re: Now sure whether agentx is running ?

2010-11-17 Thread sujata patra
From: sujata patra sujata_patra2...@yahoo.com 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

Re: Now sure whether agentx is running ?

2010-11-17 Thread sujata patra
From: sujata patra sujata_patra2...@yahoo.com 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

Agentx feature in an existing app?

2010-09-27 Thread sujata patra
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