Re: Calculationg CPU usage using ssCpuRawIdle

2005-04-27 Thread Dave Shield
On Tue, 2005-04-26 at 22:58, frank wrote:
 I do get error 
 messages about the exec feature being deprecated

Actually, it's not exec that's being deprecated. It's the
*relocatable* form of exec. A directive of the form:

exec name /my/prog -args

is fine.  It's just the version:

exec .some.other.oid   name /my/prog -args

that will run into difficulties.

The basic problem is that the MIB output that this produces
is fundamentally broken.  It does not form a valid MIB table,
or a valid scalar group.

  and an incredibly vague 
 pointer to NET-SNMP-EXTEND-MIB that allegedy describes the
 preferred method of doing what I'm doing.

There's an equivalent directive extend which works in the
same way as exec, but formats the output somewhat differently.
In particular, the two entries:

extend name /my/prog -args
and extend .some.other.oid  name /my/prog -args

will produce exactly the same structure of output
(unlike their exec alternatives), and this output
forms a legal MIB table (unlike exec .OID ...)
Or rather it forms three parallel tables.


 P.S. If someone can explain to me how to craft my alternative
 exec call I'd really appreciate it. 

If you're seeing this warning, then I think that means that
your agent includes EXTEND-MIB support.  Try configuring
the following two entries in your snmpd.conf file:

exec   .some.oid.1  test1  /your/prog  -args
extend .some.oid.2  test2  /your/prog  -args

(with the appropriate commands, obviously).  It doesn't
matter what OIDs you use, but make sure they're different.
Then run

snmpwalk ...   .some.oid.1
snmpwalk ...   .some.oid.2

and compare the output.   You should see that the second
form includes all the same information as the first, but
structured rather differently.  There are also some things
that the second form provides which the first doesn't.
But this should be clear from comparing the output.

  We would strongly suggest that you look at converting
your management scripts to this second approach.  The first
(broken) form will be removed in due course.  But we're
aware that this may well affect many people - hence the
warnings.


I'm sorry that you didn't find the warning text very
informative.  Can you please suggest a better alternative?

Dave



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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


SNPV3

2005-04-27 Thread Ashok kumar
Hi All,

Anybody knows,

How to create username and password for SNMPV3 Agent.
And also how to create authkey,privkey.

I am using Linux 7.3.


Please let me know.

Thanks,
Ashok.



__ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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: SNPV3

2005-04-27 Thread Dave Shield
On Wed, 2005-04-27 at 10:09, Ashok kumar wrote:
 How to create username and password for SNMPV3 Agent.
 And also how to create authkey,privkey.

This is described in the file README.snmpv3

Dave



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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 does proxfix work??

2005-04-27 Thread Vincent AARON
Hi all
I'm trying to use Net-SNMP to supervise some system daemon. So I added 
on the Net-SNMP configuration file those lines.

procsyslogd
procntpd
procypbind
procfix ypbind /sbin/service ypbind reload
procfix ntpd /sbin/service ntpd reload
procfix syslogd /sbin/service syslogd reload
But If I voluntarily stop the ntpd daemon, it seems that the snmpd 
daemon is unable to reload the ntpd using procfix instruction.
Is my configuration is correct?
Do you know how to implement this?
Best Regards and thanks for you help.
Vincent

--
- 
|  __ | Vincent Aaron.  | 
| | |'.   | IT Administrator.   |
| | | ||  | Mentor Graphics - Meta Systems. |
| |_|~| 3, avenue du Canada. Bat Sigma. |
| _) (_   | 91975 Les Ulis, Courtaboeuf.|
|   || | Phone : +33 1 64 86 62 24   |
|   (o_   | | | Fax   : +33 1 64 86 61 61   |
|   //\   |  Pili.  | |=|
|   V_/_  |.---.| | Mail  : [EMAIL PROTECTED]| 
|   | web   : www.mentor.com  | 
-
  Being a Tux or not to be? That's the questions.


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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


help please

2005-04-27 Thread M. Vivek

I am facing the followig problem while 
compiling the netsnmp source code,
./.libs/libnetsnmpmibs.a: could not read symbols: Archive has no index;
kindly suggest me a solution for this problem

-- 
regards,
Vivek M


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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


snmptrapd.conf forward directive

2005-04-27 Thread Paul Dowdy








Hi. Im new to this, so please bear with me.

We downloaded the net-snmp-5.2.1 gzip file from
sourceforge.net, unpacked it into /usr/local/net-snmp-5.2.1, built it,
installed it, and lots of functions are working, but ...



Im trying to configure the snmptrapd to forward traps
as advertised on the following ...

http://net-snmp.sourceforge.net/docs/man/snmptrapd.conf.html



forward OID|default
DESTINATION 

Forwards traps received to DESTINATION if they match the
notification type indicated by OID (or the word default forwards them all). 



When i start the program, the following output is displayed
...

[EMAIL PROTECTED]//var$ /usr/sbin/snmptrapd -o
/var/net-snmp/snmptrapd.log -C -c /etc/snmp/snmptrapd.conf 

[1] 15638

/etc/snmp/snmptrapd.conf: line 2: Warning: Unknown token:
forward.





Help commands output the following ...



[EMAIL PROTECTED]//var$ snmptrapd -H

/etc/snmp/snmptrapd.conf: line 2: Warning: Unknown token:
forward.

Configuration directives understood:

 In snmptrapd.conf and snmptrapd.local.conf:


traphandle
oid|default program [args ...] 


createUser
username (MD5|SHA) passphrase [DES [passphrase]]


format1
format


format2
format


dontRetainLogs
(1|yes|true|0|no|false)


engineID
string


engineIDType
num


engineIDNic
string

PLUS MORE not included here.



[EMAIL PROTECTED]//var$ snmptrapd -h

Usage: snmptrapd [OPTIONS] [LISTENING ADDRESSES]



 NET-SNMP
Version: 5.0.9


Web: http://www.net-snmp.org/


Email: net-snmp-coders@lists.sourceforge.net

PLUS MORE not included here.







Can you provide any suggestions?

Also, the Lf log-file-name doesnt seem to work
either; hence, the use of the -o command line argument.



thx. pd :-)












RE: accounting traffic by ports

2005-04-27 Thread Andrey Brokanov

Robert,

Thank you for your response. Now we have a MIB with needed structure for
traffic accounting. How could we extend snmp-agent for getting traffic by
ports? Are there any net-snmp api-functions that we can use to obtain this?
Your advice would be very appreciated.

Best regards,
Andrey Brokanov
 

-Original Message-
From: Robert Story [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 15, 2005 11:55 PM
To: Andrey Brokanov
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: accounting traffic by ports

On Thu, 14 Apr 2005 18:28:55 +0400 Andrey wrote:
AB We need to account network traffic dividing by ports and hosts using
SNMP.
AB Is that possible and how can we do this with net-snmp agent?

Not by default. The ifTable only reports traffic by interface. So first
you'd need someplace to get the statistics from and a MIB to define the
structure of the more detailed traffic accounting. Then you'd need to
implement the code and link it into the agent.

If you only need a few specific bits of information, then you could use the
pass or extend directives in snmpd.conf to run a script/app to report on
those bits of information.

--
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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: Timeout: No response from localhost

2005-04-27 Thread LIAO, GUANGDENG
Hi,
When I use your patch for net-snmp, it can not work again:)

But this time the error information in snmpd.log is different, see them as 
followings:
send_trap: failed to convert v1-v2 template PDU
Received SNMP packet(s) from 127.0.0.1
send_trap: failed to insert copied snmpTrapOID varbind
send_trap: failed to convert v1-v2 template PDU
send_trap: failed to insert copied snmpTrapOID varbind
send_trap: failed to convert v1-v2 template PDU
send_trap: failed to insert copied snmpTrapOID varbind
send_trap: failed to convert v1-v2 template PDU
send_trap: failed to insert copied snmpTrapOID varbind
send_trap: failed to convert v1-v2 template PDU
send_trap: failed to insert copied snmpTrapOID varbind
send_trap: failed to convert v1-v2 template PDU
send_trap: failed to insert copied snmpTrapOID varbind
send_trap: failed to convert v1-v2 template PDU

What happens?
Any help?


Thanks
Danny
-Original Message-
From: Robert Story [mailto:[EMAIL PROTECTED] 
Sent: 2005年4月26日 0:45
To: LIAO, GUANGDENG
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Problem on 64 bit machine: Timeout: No response from localhost

On Fri, 22 Apr 2005 14:17:46 +0800 LIAO, wrote:
LG The OS environment: RHEL Alpha 3 with NET-SNMP 5.1.2.

Can your try this patch?

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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

handle set requests with pass_persist

2005-04-27 Thread Jakob Scheck
Hello,
after some difficulties in subscribing I hope this mail is send ok.
Sorry, if there were multiple copies of this question in the list.
I use a perl script as pass_persist EXEC to handle some OIDs.
snmpget and snmpgetnext requests work fine but I am not sure about set 
requests.

# snmpget -v 2c -c COMMUNITY HOST OIOD TYPE STRING
results in
# Error in packet.
# Reason: notWritable (That object does not support modification)
I did not find any explicit descriptions about handling set requests 
with pass_persist in the snmpd.conf manual. Is it possible to handle set 
resquests with pass_persist at all? Did I oversee anything?

Thank you in advance for any hint.
Jakob

---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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: about set failure

2005-04-27 Thread Dave Shield
On Tue, 2005-04-26 at 12:38, ericyosho wrote:
 i have no problem when trying to get,but really
 comfused working with set.
 
 i always get the message
 Error in packet
 Reason:notWritable(That object does not support modification)

How have you configured the access control for your agent?
See the FAQ entries:

I cannot set any variables in the MIB.
and How do I configure access control?


Dave



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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 winsock build errors on Cygwin

2005-04-27 Thread Roberts, Allison R.
Thanks, Alex.  Yes, I needed both patches, and yes, they worked like a
charm!

-Original Message-
From: Alex Burger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 7:56 PM
To: Roberts, Allison R.
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Net-snmp winsock build errors on Cygwin

Roberts, Allison R. wrote:
 Greetings,
   I am compiling the net-snmp 5.2.1 package on Cygwin under XP (sp2)
 and have run into errors due to winsock.h.
 
 I used the recommended win32 configure:
 sh configure --with-mib-modules=host agentx disman/event-mib
 examples/example --with-out-mib-modules=host/hr_network
 
 During make, I get the following error from
 agent/mibgroup/host/hr_swrun.c:82:
 
 winsock.h: error: redefinition of 'struct timeval'
 
 and many more similar errors
 
 Does anyone have any suggestions on how to get past this problem?
 Thanks!

Please try the attached patch patch-cygwin-host_res and let me know if 
it solves your problem.

Are you using an older installation of Cygwin?  I am using a recent 
version, and I also had an error regarding PID_ZOMBIE.  The attached 
patch patch-cygwin-PID_ZOMBIE should fix that problem if you upgrade 
your Cygwin.

Alex




---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
___
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


test.net-snmp.org test site

2005-04-27 Thread Dave Carol Hardin



Seems to be not responding. I had been successfully 
doing gets from it usng the

snmpget -c demopublic -v 2c test.net-snmp.org 
system.sysUpTime.0

command,but am 
now not getting a "Timeout: No repsonse from test.net-snmp.org." messge. Can 
ping test.net-snmp.org, so I can reach it.

thanks, and regards


about set failure

2005-04-27 Thread ericyosho
Dear all
i'm using mib2c.scalar.conf to work on a scalar in
RFC3812,called mplsTunnelNotificationMaxRate.
though,i have no problem when trying to get,but really
comfused working with set.

i always get the message
Error in packet
Reason:notWritable(That object does not support
modification)


Here is my code:

#include net-snmp/net-snmp-config.h
#include net-snmp/net-snmp-includes.h
#include net-snmp/agent/net-snmp-agent-includes.h
#include mplsTunnelNotificationMaxRate.h

static unsigned mplsTunnelNotificationMaxRate;

/** Initializes the mplsTunnelNotificationMaxRate
module */
void
init_mplsTunnelNotificationMaxRate (void)
{
  static oid mplsTunnelNotificationMaxRate_oid[] =
{ 1, 3, 6, 1, 2, 1, 10, 166, 3, 1, 5 };

  netsnmp_register_scalar
(netsnmp_create_handler_registration
   (mplsTunnelNotificationMaxRate,
handle_mplsTunnelNotificationMaxRate,
mplsTunnelNotificationMaxRate_oid,
OID_LENGTH (mplsTunnelNotificationMaxRate_oid),
HANDLER_CAN_RWRITE));
  mplsTunnelNotificationMaxRate = 8;
}

int
handle_mplsTunnelNotificationMaxRate
(netsnmp_mib_handler * handler,
  netsnmp_handler_registration * reginfo,
  netsnmp_agent_request_info * reqinfo,
  netsnmp_request_info * requests)
{
  unsigned *temp;

  switch (reqinfo-mode)
{

case MODE_GET:
  snmp_set_var_typed_value (requests-requestvb,
ASN_UNSIGNED, (u_char *)
 mplsTunnelNotificationMaxRate,
sizeof (mplsTunnelNotificationMaxRate));
  break;

case MODE_SET_RESERVE1:
  if (  requests-requestvb-type != ASN_UNSIGNED)
{
  netsnmp_set_request_error (reqinfo, requests,
 SNMP_ERR_WRONGTYPE);
  return;
}
  if (requests-requestvb-val_len  sizeof
(unsigned))
{
  netsnmp_set_request_error (reqinfo, requests,
SNMP_ERR_WRONGVALUE);
  return;
}
  break;

case MODE_SET_RESERVE2:

  temp = (unsigned *) malloc (sizeof (unsigned));
  if (NULL == temp)
{
  netsnmp_set_request_error (reqinfo, requests,
 SNMP_ERR_RESOURCEUNAVAILABLE);
  return;
}
  break;

case MODE_SET_FREE:
  free (temp);
  break;

case MODE_SET_ACTION:
  * temp = mplsTunnelNotificationMaxRate;
  mplsTunnelNotificationMaxRate = (unsigned) *
(requests-requestvb-val.integer);
  break;

case MODE_SET_COMMIT:
  free (temp);
  break;

case MODE_SET_UNDO:
  mplsTunnelNotificationMaxRate = *temp;
  free(temp);
  break;

default:
  snmp_log (LOG_ERR,
unknown mode (%d) in
handle_mplsTunnelNotificationMaxRate\n,
reqinfo-mode);
  return SNMP_ERR_GENERR;
}

  return SNMP_ERR_NOERROR;
}

please help me !
thx


_
Do You Yahoo!?
150MP3
http://music.yisou.com/

http://image.yisou.com
1G1000
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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: accounting traffic by ports

2005-04-27 Thread Robert Story
On Tue, 26 Apr 2005 16:53:40 +0400 Andrey wrote:
AB Thank you for your response. Now we have a MIB with needed structure for
AB traffic accounting. How could we extend snmp-agent for getting traffic by
AB ports? Are there any net-snmp api-functions that we can use to obtain this?

mib2c can generate skeleton code based on a MIB. Then you flesh out the
details, and you can compile the code into the agent or a sub-agent.

Since you are probably gathering data from outside the agent, I'd recommend
that you look at the mfd or iterate conf files for mib2c.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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: SNPV3

2005-04-27 Thread Sridhar S
Ashok,

Run snmpd with -H option and look at the 'createUser' token.

SrIdhar

On Wed, 27 Apr 2005 02:09:13 -0700 (PDT), Ashok kumar
[EMAIL PROTECTED] said:
 Hi All,
 
 Anybody knows,
 
 How to create username and password for SNMPV3 Agent.
 And also how to create authkey,privkey.
 
 I am using Linux 7.3.
 
 
 Please let me know.
 
 Thanks,
 Ashok.
 
 
   
 __ 
 Do you Yahoo!? 
 Make Yahoo! your home page 
 http://www.yahoo.com/r/hs
 
 
 ---
 SF.Net email is sponsored by: Tell us your software development plans!
 Take this survey and enter to win a one-year sub to SourceForge.net
 Plus IDC's 2005 look-ahead and a copy of this survey
 Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
 ___
 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


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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 does proxfix work??

2005-04-27 Thread Vincent AARON
Sorry!
My Net-Snmp version is 5.0.9-2.30
and my issue seems to be a bug 
https://sourceforge.net/mailarchive/message.php?msg_id=10521263
Vincent

Vincent AARON wrote:
Hi all
I'm trying to use Net-SNMP to supervise some system daemon. So I added 
on the Net-SNMP configuration file those lines.

procsyslogd
procntpd
procypbind
procfix ypbind /sbin/service ypbind reload
procfix ntpd /sbin/service ntpd reload
procfix syslogd /sbin/service syslogd reload
But If I voluntarily stop the ntpd daemon, it seems that the snmpd 
daemon is unable to reload the ntpd using procfix instruction.
Is my configuration is correct?
Do you know how to implement this?
Best Regards and thanks for you help.
Vincent


--
- 
|  __ | Vincent Aaron.  | 
| | |'.   | IT Administrator.   |
| | | ||  | Mentor Graphics - Meta Systems. |
| |_|~| 3, avenue du Canada. Bat Sigma. |
| _) (_   | 91975 Les Ulis, Courtaboeuf.|
|   || | Phone : +33 1 64 86 62 24   |
|   (o_   | | | Fax   : +33 1 64 86 61 61   |
|   //\   |  Pili.  | |=|
|   V_/_  |.---.| | Mail  : [EMAIL PROTECTED]| 
|   | web   : www.mentor.com  | 
-
  Being a Tux or not to be? That's the questions.


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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: snmptrapd.conf forward directive

2005-04-27 Thread Dave Shield
On Tue, 2005-04-26 at 22:08, Paul Dowdy wrote:
 We downloaded the net-snmp-5.2.1 gzip file from sourceforge.net,
 unpacked it into /usr/local/net-snmp-5.2.1, built it, installed it,
 and lots of functions are working, but ...

 $  /usr/sbin/snmptrapd 

Are you sure that this is the version of 'snmptrapd' that
you built from source?   Might it not possibly be the
version that came with the O/S ?

I'd expect locally built versions to be installed into
/usr/local/sbin/  (unless you explicitly requested otherwise).

Try
/usr/sbin/snmptrapd -v

to check the version.

Dave



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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


pass_persist and set requests (wrong-type)

2005-04-27 Thread Jakob Scheck
Hi,
i am trying to set some oid values using a perl script started as a 
'pass_persist' EXEC in snmpd.conf.
It work great except one problem concerning setting wrong types.
Although the script is returning wrong-type to STDOUT on attempts to 
set mismatching types, no errors are shown at snmpset execution.

The object under consideration is:
...
tempVal OBJECT-TYPE
   SYNTAX DisplayString
   MAX-ACCESS read-write
...
the corresponding output:
# snmpset ...tmpVal i 43
# SNMPv2-SMI:... = INTEGER: 43
The snmpd.conf manual states for 'pass' EXECs:
...Return nothing to stdout, and the  set  will assumed to have been 
successful.
Otherwise, return one of the following error strings to signal an error: 
not-writable, or wrong-type
and the appropriate error response  will  be generated instead...

Doesn't it hold for 'pass_persist' EXECs also?
What am i overlooking?
Would be great if anyone could help or give me a hint.
Thanks in advance
jakob
---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
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