Re: query on using system call

2006-08-23 Thread Dave Shield
On 22/08/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using a system call in my snmp agent code where I want to run a script in the background. This scripts does some tasks at the end it wants to restart the snmpd with the latest configuration, so it tries to restarts the

Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread rahul_k_sharma
Hi, I am frustrated with enabling Ipv6 support on Solaris 9. The software versions I am using are as follows 1) Net-SNMP 5.1.3.1 2) GCC 3.3 3) Solaris 5.9 The configure command used as follows ./configure --prefix=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol --enable-ipv6 When the configure is

Re: net-snmp complains on start up without mib text files

2006-08-23 Thread Dave Shield
On 22/08/06, Bruce M. Penrod [EMAIL PROTECTED] wrote: I'm operating net-snmp snmpd in an embedded environment and don't have room on the flash for all of the mib text files Is there an easy way to keep net-snmp snmpd from complaining about this? You can suppress these messages at run-time, by

Re: read-create variable

2006-08-23 Thread Dave Shield
On 23/08/06, yuva raj [EMAIL PROTECTED] wrote: This following is the MIB extraction of OID rip2IfConfAuthType , which is read-creatable [snip] When I create a new one, [EMAIL PROTECTED] ~]# snmpset -v 2c -c accton 10.10.10.10 rip2IfConfAuthType.5.5.5.5 i 2 Error in packet. Reason:

Re: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread Dave Shield
On 23/08/06, Thomas Anders [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am frustrated with enabling Ipv6 support on Solaris 9. Try net-snmp 5.3.1 which should have working IPv6 support for Solaris 9. And if that still doesn't work, have a look in 'config.log' for where configure

Re: Regarding subagent of snmpd!

2006-08-23 Thread Dave Shield
On 23/08/06, MCG PENG Mingxing [EMAIL PROTECTED] wrote: Is there any paper about subagent of snmpd daemon? No. I have run a samples for the subagent, but there is no output What exactly have you tried? run a sample is not very informative. just log as following: who can tell me the

How to integrate multi modules into a subagent?

2006-08-23 Thread MCG PENG Mingxing
Title: How to integrate multi modules into a subagent? Hi All: would you please tell me How to integrate multi modules into a subagent? and such a subagent How to work together with the snmpd daemon? Is there any samples about it ? thanks in advance!!! -- PENG Mingxing ext: 6196

Re: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread Thomas Anders
[EMAIL PROTECTED] wrote: I am frustrated with enabling Ipv6 support on Solaris 9. The software versions I am using are as follows 1) Net-SNMP 5.1.3.1 This version simply doesn't exist. Try net-snmp 5.3.1 which should have working IPv6 support for Solaris 9. +Thomas -- Thomas Anders

read-create variable

2006-08-23 Thread yuva raj
hello, This following is the MIB extraction of OID rip2IfConfAuthType , which is read-creatable [EMAIL PROTECTED] ~]# snmptranslate -IR -Td rip2IfConfAuthType RIPv2-MIB::rip2IfConfAuthType rip2IfConfAuthType OBJECT-TYPE -- FROM RIPv2-MIB SYNTAX INTEGER {

Regarding subagent of snmpd!

2006-08-23 Thread MCG PENG Mingxing
Title: Regarding subagent of snmpd! Hi All: sorry to bother you! Is there any paper about subagent of snmpd daemon? I have run a samples for the subagent, but there is no output ,just log as following: who can tell me the reason? thanks in advance!

Re: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread Thomas Anders
Dave Shield wrote: And if that still doesn't work, have a look in 'config.log' for where configure tests for the presence of the IPv6 stack. If it's not detecting this stack correctly, then this problem needs to be fixed before proceeding. If configure fails to detect a necessary feature,

RE: net-snmp complains on start up without mib text files

2006-08-23 Thread holger.klaas
-Original Message- On Behalf Of Bruce M. Penrod Sent: 22 August 2006 23:54 Subject: net-snmp complains on start up without mib text files I'm operating net-snmp snmpd in an embedded environment and don't have room on the flash for all of the mib text files usually located in

Re: Problem on 64 bit machine

2006-08-23 Thread Dave Shield
On 22/08/06, Sachin Mishra [EMAIL PROTECTED] wrote: Its difficult at this point to upgrade. I will like to know where exactly this value(val_len) is filled. If someone can point to the location in the code, that will be helpful. Which module (and which object) are you talking about? 'val_len'

Re: Problem on 64 bit machine

2006-08-23 Thread Dave Shield
On 23/08/06, Sachin Mishra [EMAIL PROTECTED] wrote: When I am trying to set the value of the object on a 64 bit machine, the requests variable passed in the table_handler function has requests-requestvb-val_len assigned as 8. I want to know why this value is 8 and not 4.

Re: Problem on 64 bit machine

2006-08-23 Thread Sachin Mishra
Thanks Dave. Size of long is 8. Was just curious if I can get the portion of the code where the value is assigned. -Sachin On Wed, 2006-08-23 at 15:19, Dave Shield wrote: On 23/08/06, Sachin Mishra [EMAIL PROTECTED] wrote: When I am trying to set the value of the object on a

Re: Problem on 64 bit machine

2006-08-23 Thread Dave Shield
On 23/08/06, Sachin Mishra [EMAIL PROTECTED] wrote: Thanks Dave. Size of long is 8. Was just curious if I can get the portion of the code where the value is assigned. Ummm... Probably as follows: snmplib/snmp_api.c:snmp_pdu_parse(): lines 4429ff: switch ((short) vp-type) {

Re: How can I extend a MIB with a subagentX

2006-08-23 Thread Arnaud BODENAN
Hi, Let's detail, for example, 3 different applications i want to monitor (in reality, I have almost 60) For the 3 applications, we have the following metrics(this is an overview): Application 1: - Number of SQL updates executed - Number of SQL updates per second - Number of failed operations -

How to send a v1 trap (newbie)

2006-08-23 Thread Sebastian Bello
Hi list, I want to send v1 traps from my C/C++ application using Net-SNMP. I've been reading the documentation but am a bit confused. Maybe someone can give me some hint: - where can I find a simple code example on how to send a trap? - do I need the full Net-SNMP installed? - do I need to

[no subject]

2006-08-23 Thread G_K
I have the following problem: On a RHEL3 64-Bit box (2.4.21-40.ELsmp), IF-MIB::ifInOctets.X always returns 2, and IF-MIB::ifOutOctets.X always 0. Since this works fine on another 64-Bit machine with RHEL4 (2.6.9-34.0.2.ELsmp) and net-snmp-5.1.2-11.EL4.6, I upgraded the RHEL3 box to that

IF-MIB::ifInOctets does not increment

2006-08-23 Thread G_K
Sorry, I completely forgot the Subject... -- I have the following problem: On a RHEL3 64-Bit box (2.4.21-40.ELsmp), IF-MIB::ifInOctets.X always returns 2, and IF-MIB::ifOutOctets.X always 0. Since this works fine on another 64-Bit machine with RHEL4

try to remove row in ifTable

2006-08-23 Thread Dominique bastien
I try to remove some rows in the ifTable, the loopback interface and some interface use for internal communication. I program the snmpd.conf with these lines: com2sec sec1 default public group gp1 v1 sec1 group gp1 v2c sec1 view vn1 included .1 view vn1 excluded ifEntry.1.1 0x3:0xf9 But this

Re: IF-MIB::ifInOctets does not increment

2006-08-23 Thread Dave Shield
On 23/08/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On a RHEL3 64-Bit box (2.4.21-40.ELsmp), IF-MIB::ifInOctets.X always returns 2, and IF-MIB::ifOutOctets.X always 0. Since this works fine on another 64-Bit machine with RHEL4 (2.6.9-34.0.2.ELsmp) and net-snmp-5.1.2-11.EL4.6, I upgraded

RE: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread rahul_k_sharma
Hi, Now I tried installing Net-SNMP-5.3.1 on Solaris9 Configure command was used as follows ./configure --prefix=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol --enable-ipv6 When running configure the following error repeated ... checking ipv6 stack type... unknown, no ... After configure was

Re: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread Thomas Anders
[EMAIL PROTECTED] wrote: Now I tried installing Net-SNMP-5.3.1 on Solaris9 [...] checking ipv6 stack type... unknown, no Like I said: ignore this for the moment. What happens if you actually build and install the package? +Thomas -- Thomas Anders (thomas.anders at blue-cable.de)

RE: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread rahul_k_sharma
Hi, I completed the make and make install. The problems still persists. Details of snmpd.conf - rocommunity SNMP_COMMUNITY-1 rwcommunity SNMP_COMMUNITY-2 rocommunity6SNMP_COMMUNITY-1-IPv6 rwcommunity6SNMP_COMMUNITY-2-IPv6 SNMP Agent started as follows

Re: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread Thomas Anders
[EMAIL PROTECTED] wrote: SNMP Agent started as follows - ./snmpd -d -Lo -p udp:161,udp6:161 Does it properly bind to the IPv6 localhost address, at least? +Thomas -- Thomas Anders (thomas.anders at blue-cable.de)

RE: Frustrated with enabling Ipv6 support on Solaris 9

2006-08-23 Thread rahul_k_sharma
How can I check that? Please tell, I do not know. Sincerely, Rahul K -Original Message- From: Thomas Anders [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 9:53 PM To: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Frustrated with enabling Ipv6

FW: Re: How can I extend a MIB with a subagentX

2006-08-23 Thread Arnaud BODENAN
To be more detailed, if I have a generic MIB with the following tables: - genServerTable with the index genServerIndex, and columns 'name', 'ipAddress' and 'portNumber' - genDBServerTable with the index genServerIndex and genDBServerIndex, and column 'dbName' - genStateTable with the index

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-23 Thread Dave Shield
On 23/08/06, Arnaud BODENAN [EMAIL PROTECTED] wrote: - genStatisticsTable with the index genServerIndex and genStatisticsIndex : statistics here are specific to each server Is there a generic way to create the genStatisticsTable with columns that can be added dynamically by a sub agent?