Design new SNMP MIB

2006-08-23 Thread Michal Ludvig
Hi all,

I have a software package for which I need to report some status /
configuration tables via SNMP/AgentX. Each table has a bunch of
key=value pairs, where the list of keys could change in time (e.g. with
new version), so I prefer not to hardcode them to the MIB directly.

1) My idea is to have some simple tables:

One table should be read only for status reports:
myDevice.tabStatus.varName.0 = STRING: "num_connections"
myDevice.tabStatus.varName.1 = STRING: "mem_used"
myDevice.tabStatus.varValue.0 = STRING: 123
myDevice.tabStatus.varValue.1 = STRING: 98765

The other read-write for setting system variables:
myDevice.tabConfig.varName.0 = STRING: "max_connections"
myDevice.tabConfig.varName.1 = STRING: "max_mem"
myDevice.tabConfig.varValue.0 = STRING: 999
myDevice.tabConfig.varValue.1 = STRING: 9

So this is the basic. Drawback is it could be a bit of pain to do GET/
SET as I'll need to query the whole list of names from
myDevice.tabStatus.varName, get the index of what I want and only then
in another query get the actual variable.

Or is there a shortcut? like:
snmpget tabStatus.varValue.(tabStatus.varName=="mem_used")
... I doubt so.

Another thing is that I'll need to return all varValue.X as STRINGs even
if some of them are actually integers. Or can I have each index in a
table of a different type?

2) Now I thought it would be nice to have some well known and often used
status and config variables accessible directly through MIB, e.g.
myDevice.statusVar.num_connections = INTEGER: 123
the drawback being that the names are hardcoded in the MIB which may
become obsolete once we add new variables. OTOH I could specify the
variable types (some are STRING, some are INTs).

3) Or perhaps all of them in a similar fashion to what 'extend' does in
snmpd.conf, i.e.
"myDevice.statusVar."num_connections" = INTEGER: 123"
>From the user perspective it looks cool but is it a clean way to do from
the SNMP/MIB point? Plus - can I list all variables in such case? And
again I'll probably have to work without types, i.e. all-STRINGs.


What would you recommend?

Is is OK to have one variable accessible in two ways, i.e. via both #1
and #2 or #3? I'm sure #1 is by far the most flexible while the others
are more convenient. So my preference would be #1 plus either #2 or #3.

BTW How should I assign OID to my MIB? Do I need to apply for an
Enterprise ID with IANA? Is there an OID reserved for testing / development?

I don't know yet much about designing and writing MIBs so I'm seeking
some advices here. Any thoughts and pointers are highly appreciated!

Thanks

Michal

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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?

Well, that does sound like a generic statistics table.
You can't change the number of *columns* dynamically, but you can
certainly add new rows (corresponding to new statistics).

So you'd probably have three columns in this table (plus the external
genServerIndex):

  *  genStatisticsIndex - to distinguish between multiple statistics
relating to the same server
  *  genStatisticsDescr - a textual description of what this statistic reports
  *  genStatisticsValue - the value for this statistics

So you might have a table such as:

1   1"# Silly Questions received"23
1   2"# Sarcastic Answers"22
1   3"# Clearly phrased Questions"   3
2   2"# Silly Questions received"   17
2   3"# Patient Answers"18


Note that a given "genStatisticsIndex" value can refer to two
different statistic for two different servers.

OK?

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 genServerIndex and genStateIndex, and the 
column 'State'
- 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? Is is feasible?

Thanks for your help.

>From: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>To: net-snmp-users@lists.sourceforge.net
>Subject: Re: How can I extend a MIB with a subagentX
>Date: Wed, 23 Aug 2006 14:50:16 +0200
>
>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
>- State
>
>Application 2:
>- Number of messages received
>- Number of messages processed
>- Number of messages processed by second
>- Number of pending messages
>- State
>
>Application 3:
>- Number of threads
>- Number of active threads
>- Number of operations processed by thread
>- State
>
>Each application can be launched on several databases and can be launched
>multiple times (for performance reasons) on each database.
>
>Let's imagine I have a MIB containing a list of servers (by using a
>SEQUENCE). My problems are:
>- How can I define specific caracteristics (different for each server) with
>a generic MIB?
>- If, in the manager console, I have four instances of the same server:
>  - Application1 on database DB1 (First instance)
>  - Application1 on database DB1 (Second instance on the same database
>for performance reason)
>  - Application1 on database DB2 (third instance)
>  - Application1 on database DB3 (Fourth instance)
>All these servers are subagent (AgentX).
>If the manager executes a get of 'State' for the first instance, how does
>the master agent ask the correct subagent about the metric?
>
>
> >From: "Dave Shield" <[EMAIL PROTECTED]>
> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
> >CC: net-snmp-users@lists.sourceforge.net
> >Subject: Re: How can I extend a MIB with a subagentX
> >Date: Tue, 18 Jul 2006 20:28:06 +0100
> >
> >On 18/07/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
> >>I want to know if I can avoid creating hundreds of MIBS to monitor
> >>specific
> >>applications with specific metrics.
> >
> >That sounds as if you need to define a fairly generic MIB structure,
> >that can handle the various specific metrics within a single fixed
> >framework.
> >
> >
> >>By dynamically adding, I mean:
> >>- dynamically create a metric in a MIB
> >
> >If the metric is defined as a table (or tables), then this equates to
> >adding one or more new row(s).  That's a perfectly reasonable
> >approach.  Creating completely new MIB objects on the fly is a much
> >less workable approach.
> >
> >
> >>- instrument it (by dynamically set a callback to retrieve the value of
> >>this
> >>metric) so that I can do an snmpget on this dynamic metric
> >
> >That's no problem - using either new rows in a fixed tables or
> >completely new MIB structure. Just register the row or subtree with
> >the master agent.
> >
> >But there are two sides to this sort of dynamic updating - it's not
> >simply a matter of  instrumenting the agent to report the new value.
> >You've also got to inform the management application (or network
> >manager) that there *is* a new value to retrieve, and what it means.
> >If you're working with new rows in a fairly generic table, then that
> >would be fairly easy - it's just a matter of walking the table as
> >usual.  But if you are defining completely new MIB objects on the fly,
> >how is the manager to know about them?
> >
> >
> >I would *strongly* recommend looking at a fairly flexible but fixed
> >MIB framework, with separate rows (or groups of rows) for each
> >application.   You might well end up with a relatively sparse table,
> >where only selected columns are valid for a given application - see
> >the DisMan expression MIb for one possible approach.
> >
> >I'm not sure whether that is necessarily the best approach - perhaps
> >you could give us something more concrete to work with.  Consider two
> >typical applications - what are they, and what are the metrics you'd
> >want to be able to report for them?  That might be an easier way to
> >start designing the sort of general structure it sounds that you'll
> >need.
> >
> >Dave
>
>_
>Express yourself instantly with MSN Messenger! Download today it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>

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 support on Solaris 9

[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)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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
-
./snmpd -d -Lo -p udp:161,udp6:161

After agent start up I got following message on console
/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/share/snmp/snmpd.conf: line 11: 
Warning: Unknown token: rocommunity6.
/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/share/snmp/snmpd.conf: line 12: 
Warning: Unknown token: rwcommunity6.

Results of SNMP Command
---
[102]% snmpget -v2c -c SNMP_COMMUNITY-1 146.208.148.62 sysName.0
SNMPv2-MIB::sysName.0 = STRING: kaveri

[103]% snmpget -v2c -c SNMP_COMMUNITY-1-IPv6 udp6:[fe80::203:baff:fe2a:a645] 
sysName.0
No match

As I see it IPv4 is OK but IPv4 is still giving the same problems.
Perhaps the issue lies during building of agent.

Sincerely,
Rahul K



-Original Message-
From: Thomas Anders [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 9:02 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; net-snmp-users@lists.sourceforge.net
Subject: Re: Frustrated with enabling Ipv6 support on Solaris 9

[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)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 through I checked configure.log and found following
...
configure:12581: checking ipv6 stack type
conftest.c:43:45: /usr/local/v6/include/sys/types.h: No such file or directory
conftest.c:43:22: features.h: No such file or directory
configure:12755: result: "unknown, no"
...

In fact I did not find directory v6 under /usr/local let alone the file.

I was wondering why this is so.

As of now I suspect that I have a runtime only IPv6 environment 
And My gcc is not fully loaded and does not supports compiling IPv6 code 
because of which I do not have v6 directory under /usr/local

Please suggest a way out...

Sincerely,
Rahul K

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 the RHEL3 box to 
> that net-snmp version too.

Version 5.1.2 is fairly old by now (and support for that line has
actually been closed down).
Try installing the most recent release - 5.3.1
That's seen quite a lot of work to improve 64-bit support.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 only remove the index field of the lo
interface. I found a way by repeating the line with
the second digit incrementing by one:

view vn1 excluded ifEntry.1.1
view vn1 excluded ifEntry.2.1
view vn1 excluded ifEntry.3.1
view vn1 excluded ifEntry.4.1
...

but we have 22 items in each ifEntry and for interface
to remove.

In the help page you talk about setting the mask to
eliminate stuff, what is the recipe to eliminate from
my view the first for interface of the table?

Thanks,

Dominique





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 (2.6.9-34.0.2.ELsmp) 
and net-snmp-5.1.2-11.EL4.6, I upgraded the RHEL3 box to that net-snmp version 
too.

However, I continue to have that problem...

Any suggestions on what to try next?

Thx a lot! georg

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[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 net-snmp version 
too.

However, I continue to have that problem...

Any suggestions on what to try next?

Thx a lot! georg

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 create a MIB with the traps information?

Thanks,
Sebastian-


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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
- State

Application 2:
- Number of messages received
- Number of messages processed
- Number of messages processed by second
- Number of pending messages
- State

Application 3:
- Number of threads
- Number of active threads
- Number of operations processed by thread
- State

Each application can be launched on several databases and can be launched 
multiple times (for performance reasons) on each database.

Let's imagine I have a MIB containing a list of servers (by using a 
SEQUENCE). My problems are:
- How can I define specific caracteristics (different for each server) with 
a generic MIB?
- If, in the manager console, I have four instances of the same server:
 - Application1 on database DB1 (First instance)
 - Application1 on database DB1 (Second instance on the same database 
for performance reason)
 - Application1 on database DB2 (third instance)
 - Application1 on database DB3 (Fourth instance)
All these servers are subagent (AgentX).
If the manager executes a get of 'State' for the first instance, how does 
the master agent ask the correct subagent about the metric?


>From: "Dave Shield" <[EMAIL PROTECTED]>
>To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>CC: net-snmp-users@lists.sourceforge.net
>Subject: Re: How can I extend a MIB with a subagentX
>Date: Tue, 18 Jul 2006 20:28:06 +0100
>
>On 18/07/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
>>I want to know if I can avoid creating hundreds of MIBS to monitor 
>>specific
>>applications with specific metrics.
>
>That sounds as if you need to define a fairly generic MIB structure,
>that can handle the various specific metrics within a single fixed
>framework.
>
>
>>By dynamically adding, I mean:
>>- dynamically create a metric in a MIB
>
>If the metric is defined as a table (or tables), then this equates to
>adding one or more new row(s).  That's a perfectly reasonable
>approach.  Creating completely new MIB objects on the fly is a much
>less workable approach.
>
>
>>- instrument it (by dynamically set a callback to retrieve the value of 
>>this
>>metric) so that I can do an snmpget on this dynamic metric
>
>That's no problem - using either new rows in a fixed tables or
>completely new MIB structure. Just register the row or subtree with
>the master agent.
>
>But there are two sides to this sort of dynamic updating - it's not
>simply a matter of  instrumenting the agent to report the new value.
>You've also got to inform the management application (or network
>manager) that there *is* a new value to retrieve, and what it means.
>If you're working with new rows in a fairly generic table, then that
>would be fairly easy - it's just a matter of walking the table as
>usual.  But if you are defining completely new MIB objects on the fly,
>how is the manager to know about them?
>
>
>I would *strongly* recommend looking at a fairly flexible but fixed
>MIB framework, with separate rows (or groups of rows) for each
>application.   You might well end up with a relatively sparse table,
>where only selected columns are valid for a given application - see
>the DisMan expression MIb for one possible approach.
>
>I'm not sure whether that is necessarily the best approach - perhaps
>you could give us something more concrete to work with.  Consider two
>typical applications - what are they, and what are the metrics you'd
>want to be able to report for them?  That might be an easier way to
>start designing the sort of general structure it sounds that you'll
>need.
>
>Dave

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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) {
case ASN_INTEGER:
vp->val.integer = (long *) vp->buf;
vp->val_len = sizeof(long);
asn_parse_int(..., sizeof(*vp->val.integer));
break;
case ASN_COUNTER:
case ASN_GAUGE:
case ASN_TIMETICKS:
case ASN_UINTEGER:
vp->val.integer = (long *) vp->buf;
vp->val_len = sizeof(u_long);
asn_parse_unsigned_int(, vp->val_len);
break;


Dave



>
> -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 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. (sizeof(int) gives 4 on that machine)?
> >
> > What does "sizeof(long)" give?  4 or 8?
> > Note that (for historical reasons), integer values are held internally
> > as "long" rather than "int".This is so pervasive that it would be
> > extremely difficult to change now.
> >
> > I believe that what's been done to address this problem, is to mask
> > off the bottom 32-bits of all integer values (other than Counter64) -
> > probably when building the PDU.   You could either tweak your library
> > code to do the same, or do an equivalent masking when setting the
> > values.  As long as the *value* is 32-bits, it doesn't actually matter
> > if the variable that holds it is 64.
> >
> > Dave
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 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. (sizeof(int) gives 4 on that machine)?
> 
> What does "sizeof(long)" give?  4 or 8?
> Note that (for historical reasons), integer values are held internally
> as "long" rather than "int".This is so pervasive that it would be
> extremely difficult to change now.
> 
> I believe that what's been done to address this problem, is to mask
> off the bottom 32-bits of all integer values (other than Counter64) -
> probably when building the PDU.   You could either tweak your library
> code to do the same, or do an equivalent masking when setting the
> values.  As long as the *value* is 32-bits, it doesn't actually matter
> if the variable that holds it is 64.
> 
> Dave


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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. (sizeof(int) gives 4 on that machine)?

What does "sizeof(long)" give?  4 or 8?
Note that (for historical reasons), integer values are held internally
as "long" rather than "int".This is so pervasive that it would be
extremely difficult to change now.

I believe that what's been done to address this problem, is to mask
off the bottom 32-bits of all integer values (other than Counter64) -
probably when building the PDU.   You could either tweak your library
code to do the same, or do an equivalent masking when setting the
values.  As long as the *value* is 32-bits, it doesn't actually matter
if the variable that holds it is 64.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem on 64 bit machine

2006-08-23 Thread Sachin Mishra
I have my own mib, where the objects are defined to have SYNTAX as
Integer32. 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. (sizeof(int) gives 4 on that machine)? Also, where
this value gets set by net-snmp?

Thanks,
Sachin

On Wed, 2006-08-23 at 14:55, Dave Shield wrote:
> 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' is a parameter to the UCD v4-style module API, so it will be
> set individually for each different MIB object.   Some of the utility
> routines may set this to a default value, but it's quite common for
> particular MIB object implementations to reset it.
> 
> More details needed.
> 
> Dave


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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' is a parameter to the UCD v4-style module API, so it will be
set individually for each different MIB object.   Some of the utility
routines may set this to a default value, but it's quite common for
particular MIB object implementations to reset it.

More details needed.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 /usr/local/share/snmp/mibs.  The snmpd 
> agent doesn't need them, but when it starts up it complains 
> and logs messages like this for each mib it can't find
> there:
> 
> Cannot find module (SNMPv2-TM): At line 2 in (none)
> 
> With ucd-snmp I didn't have this problem.  Is there an easy 
> way to keep net-snmp snmpd from complaining about this?  I am 
> using net-snmp 5.3.1.
> 
> Thanks,
> 
> Bruce

Bruce,

Try

configure --disable-mib-loading

or if you only want to parse a few specific MIBs try something like:

configure--with-mibs="RFC1213-MIB:Your-MIB:..."

HTH,

Holger

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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,
> there's no point in compiling the code and expecting this feature to
> work.

... unless we ignore (some of) the results of those configure tests
because they're known to not cover all current IPv6 stacks which I think
is currently the case.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How to integrate multi modules into a subagent?

2006-08-23 Thread Dave Shield
On 23/08/06, MCG PENG Mingxing <[EMAIL PROTECTED]> wrote:
>  would you please tell me How to integrate multi modules into a subagent?

Just the same way as with a single module - run 'net-snmp-config
--compile-subagent' and list the (multiple) modules that you need to
include.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 { noAuthentication(1), simplePassword(2), md5(3) }
  MAX-ACCESS    read-create
  STATUS    current
  DESCRIPTION   "The type of Authentication used on this
   interface."
  DEFVAL    { noAuthentication }
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) rip2(23) rip2IfConfTable(3) rip2IfConfEntry(1) 3 }


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: (genError) A general failure occured
Failed object: RIPv2-MIB::rip2IfConfAuthType.5.5.5.5

Plz, tell me, what could be the problem.

Rgrds,
Yuvi

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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! 



example-demon is up and running.


example-demon is processing the request from manager!


example-demon is processing the request from manager!


example-demon is processing the request from manager!


example-demon is processing the request from manager!


example-demon is processing the request from manager!


example-demon is processing the request from manager!


example-demon is processing the request from manager!


--

PENG Mingxing

ext: 6196

RDR/MCG/ASB



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 (thomas.anders at blue-cable.de)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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

RDR/MCG/ASB



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 reason?

With the details you have provided so far, the only person who could
tell you the reason is a mind-reader!   For the rest of us mere
mortals, you'll need to be much clearer about exactly what you're
doing.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 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,
there's no point in compiling the code and expecting this feature to
work.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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: (genError) A general failure occured
>  Failed object: RIPv2-MIB::rip2IfConfAuthType.5.5.5.5
>
>  Plz, tell me, what could be the problem.

There is a flaw in the code you have written to implement this object.

Not a very useful answer, I know - but then you didn't exactly give us
much detail to work with.   If you don't tell us what you've done, we
can't help.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 starting the agent using

snmpd -m "" .

You can turn these messages off completely (and reduce the size of the
libraries slightly) by running configure using "--disable-mib-loading"
and re-compiling.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 running the I see following message on console
...
Ipv6 stack ... [unknown, no]
...

For the IPv6 enabled host I have checked that IPv6 support is up and running 
using following tools
from another Ipv6 enabled host
1) ping  (works ok)
2) telnet  13 (works ok)
3) netstat -a (shows IPv6 connections between the hosts)

I proceeded with the installation but I do not have support for IPv6 directives 
that I need to use in snmpd.conf
The output of command "./snmpd -H" does not shows "rocommunity6 and 
rwcommunity6".
Of course any further attempts for starting agent with udp6 yields errors and 
none of the snmpget command fetches replies from the agent. IPv6 part is ok 
though.

Please provide help/pointers to enable IPv6 support on Solaris 9.

Sincerely,
Rahul K

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 snmpd with the new snmpd.conf.

What do you mean by "restarts the snmpd"?
Do you mean kill off the currently running agent and start a fresh
one?   'Cos I don't think that will work - if nothing else, it's the
parent of the script that's trying to kill it.  I'm not sure that
patricide is safe!

Why don't you just signal to the currently running agent to re-read
its configuration?
The agent is already set up to do that - simply send it a HUP signal.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users