Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
Once I created the /var/agentx directory manually then everything works as the tutorial indicates. Unfortunately, I do not have any idea how to get my MfD code to be used by a subagent. Not really sure what I need to do here. I did see when the "make example-demon" command executed then the

Re: how do I encoding long / int values for snmp_set_var_typed_value() ?

2007-06-13 Thread Erik Earle
Thanks Dave. I also found this thread in the users list that you answered shortly after I sent the question (I'd been searching the coders list): http://www.mail-archive.com/[EMAIL PROTECTED]/msg08879.html --- Dave Shield <[EMAIL PROTECTED]> wrote: >$ cd agent/mibgroup/mibII >$ grep

Re: how do I encoding long / int values for snmp_set_var_typed_value() ?

2007-06-13 Thread Dave Shield
$ cd agent/mibgroup/mibII $ grep snmp_set_var_typed *.c icmp.c: snmp_set_var_typed_value(idx, ASN_INTEGER, (u_char *)&icmp_stats_table[i].ipVer, sizeof(uint32_t)); (and various other examples) Dave --

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Dave Shield
On 13/06/07, Need Help <[EMAIL PROTECTED]> wrote: > I am using NetSNMP v5.4 > > Executing the "ls -l /var/agentx" command results in the following error: > > ls: /var/agentx: No such file or directory Are you running the snmpd agent as root? Try creating the /var/agentx directory before star

Re: Is there a support for MIPS-64 in Net-Snmp

2007-06-13 Thread Brian A. Seklecki
Depends on whether its NetBSD or IRIX. Are there there are new options that I don't know about? ~BAS On Mon, 2007-06-11 at 20:59 +0530, mushtaq khan wrote: > Hi, > > It looks like Net-Snmp has a support for mips64, i found mips64 in > basic-machine set in file config.sub. > Can any one suggest

how do I encoding long / int values for snmp_set_var_typed_value() ?

2007-06-13 Thread Erik Earle
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ ---

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
Yes, slowing down is probably best :>P I am using NetSNMP v5.4 Executing the "ls -l /var/agentx" command results in the following error: ls: /var/agentx: No such file or directory My "snmpd.conf" file has the following two lines only: master agentx rocommunity mycommunity_ro My "s

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Dave Shield
On 13/06/07, Need Help <[EMAIL PROTECTED]> wrote: > 1) Here is the output I get when using the -Le option: > > [EMAIL PROTECTED] net-snmp]# > /export/home/myname/snmp/usr/local/sbin/snmpd -f -Le & > [1] 27644 > [EMAIL PROTECTED] net-snmp]# Turning on AgentX master support. > Error: Couldn't open a

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
1) Here is the output I get when using the -Le option: [EMAIL PROTECTED] net-snmp]# /export/home/myname/snmp/usr/local/sbin/snmpd -f -Le & [1] 27644 [EMAIL PROTECTED] net-snmp]# Turning on AgentX master support. Error: Couldn't open a master agentx socket to listen on (): Obviously I am not con

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Dave Shield
On 13/06/07, Need Help <[EMAIL PROTECTED]> wrote: > I was not sure where to put these files It doesn't matter. The whole point of a standalone subagent is that it's standalone. It doesn't depend on the rest of the source tree. As long as you've got the Net-SNMP suite installed, the Makefile wil

Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
I am interested in having a subagent handle all requests for my particular MIB. As a result, I am reading the tutorial entitled "Writing a SubAgent' located here: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent I did not think "auto-building" the subagent using the "net-snmp-c

Re: Replace SNMP commands with ones which read the ".conf" file settings

2007-06-13 Thread Dave Shield
On 13/06/07, Need Help <[EMAIL PROTECTED]> wrote: > 1) When I integrate all of this NetSNMP code into my environment, I was > going to install it into the default "/usr/local/" directory which would > result in the existing "snmpwalk", "snmpget", etc... commands being > overwritten with the new ver

Does row_prep() routine utilize cache data?

2007-06-13 Thread Need Help
I have my cache is set to be 60 seconds. When I issue a "snmpget" request multiple times for the same data field (just playing around with snmp) within a table, I notice the row_prep() routine is called for each request. Since I have code in the row_prep() routine to load the row data, then th

Replace SNMP commands with ones which read the ".conf" file settings

2007-06-13 Thread Need Help
When starting out learning about NetSNMP, I installed everything into the following private directory location for testing /export/home/myname/snmp/usr/local/ I updated the "snmpd.conf" and "snmp.conf" files accordingly to include MIB information, etc but I had trouble with the "MIB files

Re: Why does Table2_row_prep() get called when walking through Table1

2007-06-13 Thread Need Help
Ok, then this means when a "snmpwalk" command for Table1 occurs then I will be populating "one row" of data from Table2 everytime, since I have code in the Table2_row_prep() routine. I just wanted to make sure it was not a problem. Thanks for clarifying. Dave Shield <[EMAIL PROTECTED]> wr

Re: Why does Table2_row_prep() get called when walking through Table1

2007-06-13 Thread Dave Shield
On 12/06/07, Need Help <[EMAIL PROTECTED]> wrote: > I noticed when I perform a "snmpwalk" of Table1, then all the data is > displayed correctly and then "one" call is made to Table2_row_prep() with > row index = 1. > > Is this normal? Yes. Remember that the walk doesn't know when it's reached the

Re: How to configure sub-agent to connect to snmpd on another machine

2007-06-13 Thread Dave Shield
On 12/06/07, Shivani Garg <[EMAIL PROTECTED]> wrote: > Can anyone help me with this. My master agent snmpd daemon is running on a > different machine. How can I configure my sub-agent to connect to the same? Please see the FAQ entry How can I run AgentX with a different socket address?

RE: How to configure sub-agent to connect to snmpd on another machine

2007-06-13 Thread Pamidipati Suresh-G20238
Hi You can configure subagent to connect to master agent by specifying the the following in subagent's configuration file. agentxsocket tcp:: Here is the machine address on which SNMPD runs and is the port on which SNMPD listens for agentx connections. Assuming SNMPD and subagent run on th

Re: problem in set request for multiple indexes column!

2007-06-13 Thread Awadhesh Kumar
Hi Robert, I am creating row initially at startup. I am using following code in init method of code. int init_gsomcGrpCfgTable(void){ netsnmp_index index; oid index_oid[2]; for(int indexVal = 0; indexVal< 5; indexVal++){ /*initialize the index value*/ index_oid[0] = indexVal; //first index value

VC++

2007-06-13 Thread oualid LEBTAINI
Hy everybody, i have a question, it is possible to use net-snmp library to develop a VC++ project?? tank you in advance -- LEBTAINI Oualid 2A415 Cité U. des cézeaux rue Roche genès 63170 Aubière Cedex tél. 06 50 66 25 67 [EMAIL PROTECTED] -

Re: problem in set request for multiple indexes column!

2007-06-13 Thread Awadhesh Kumar
Hi Robert, Thanks for reply. I ran the agent in debug mode, no proper messgae is coming while debugging which shows error. If i do the SET request on OID .1.3.6.1.4.1.303.3.3.9.35.5.2.8.1.4.1.1 with value 3, it is showing the following output at linux console [EMAIL PROTECTED] socks]# agentx/mas