snmp newbie

2004-11-26 Thread Tony
I am a newbie in the snmp world. I am trying to check link usage on my linux routers with kernel versions 2.4.24-ck1 and 2.2.17 with mrtg. How do I setup snmpd and snmpd.conf to respond to snmp polls. I tried copying snmpd and snmpd from a router which is already being monitored by mrtg but whe

AW: snmp newbie

2004-11-26 Thread Sven Herzing
Title: AW: snmp newbie -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Tony Gesendet: Fr 26.11.2004 23:33 An: [EMAIL PROTECTED] Betreff: snmp newbie I am a newbie in the snmp world. I am trying to check link usage on my linux routers with kernel versions 2.4.24-ck1

Re: heartbeats

2004-11-26 Thread Users
On Thu, 25 Nov 2004 09:33:12 +0100 Raphaël wrote: R> How can I make snmpd to send regulary traps as "heart beats" ? Edit the code to add an alarm that runs periodically to send the trap. Some grepping through the code should reveal examples of both alarms and sending traps. -- Robert S

Re: snmp newbie

2004-11-26 Thread Users
On Fri, 26 Nov 2004 14:33:40 -0800 Tony wrote: T> when I run the script with command snmpd -c /etc/snmpd.conf, I get T> "cannot run binary file". If the other machines have the same config, os version and hardware, you should be able to copy the applications (and libraries, if the applications w

Re: why I cannot snmpwalk the value?

2004-11-26 Thread Users
On Thu, 25 Nov 2004 14:28:19 +0800 C wrote: CY>I have compiled a snmp agent whose OID is "1.3.6.1.4.1.20280.1" and CY> there is a MIB file of {enterprise:20280}. CY> However,when I use "snmpwalk localhost -c public CY> 1.3.6.1.4.1.20280.1",there is an error: CY> "SNMPv2-SMI::enterprises.2

Re: Setting SNMP Agent version

2004-11-26 Thread Users
On Wed, 24 Nov 2004 10:41:44 +0530 Sridhar wrote: SS> [...] forcing the SNMP agent to re-read the new configuraiton file [...]. SS> But I couldn't set the SNMP version to operate. I tried by setting SS> 'defVersion' token to 1 and v2c but no use. This token is only for the library and command lin

Re: WRB - Data-set Table Implementation - browsing behavior.

2004-11-26 Thread Users
On Tue, 23 Nov 2004 17:55:39 -0800 [EMAIL PROTECTED] wrote: WC> However, as we should all know, the call to the function WC> netsnmp_table_set_multi_add_default_row creates the row, as a default. It seems we know different things. This does not add a row to the table at all. It defines the default

Re: Proxy agent giving response with wrong community string

2004-11-26 Thread Users
On 24 Nov 2004 15:55:23 +0530 A. wrote: AKR> I was expecting the the snmp req to fail at the proxy agent if the AKR> community string is incorrect. instead it is forwarding the req to the AKR> device and the device responds. If the community string is completely invalid, e.g. it doesn't appear any

Re: monitor retry ?

2004-11-26 Thread Users
On Wed, 24 Nov 2004 16:04:51 +0100 Raphaël wrote: R> When I've less than 40% percent of disk space, I've got a trap. Okay. R> But this situation still occurs, I've no more trap... R> R> If I understand the manual, -r option should tell snmpd to retry every R> 60 seconds but I don't get a trap ever

Re: Please tell me how to implement USM and VACM in SNMPv3

2004-11-26 Thread Users
On Wed, 24 Nov 2004 19:05:02 +0900 [EMAIL PROTECTED] wrote: NNC> It's mostly work fine, but I don't know about SNMPv3 IP-based NNC> access control(com2sec directive in /usr/share/snmp/snmpd.conf). NNC> NNC> How can I restrict SNMPv3 access by ip_address? The agent doesn't support that. The idea

Re: WRB - Tutorial 5

2004-11-26 Thread Users
On Fri, 19 Nov 2004 12:43:05 -0800 [EMAIL PROTECTED] wrote: WC> /* change the word "undef" to "define" to try the (insecure) SNMPv1 WC> version */ WC> #define DEMO_USE_SNMP_VERSION_3 WC> WC> Clearly, the extract should read as: WC> WC> /* change the word "define" to "undef" to try the (insecu

Re: snmpwalk: STRING output instead of Hex-String

2004-11-26 Thread Users
On Tue, 23 Nov 2004 18:31:48 +0100 Wondraschek, wrote: WP> In almost all cases, the mib variable returned has WP> Hex-Strings, but in some cases there are STRING variables returned If a variable doesn't have a display hint, the agent tries to guess the way to display the value based on the content

Re: why I cannot snmpwalk the value?

2004-11-26 Thread C Y
Thanks. But I have implemented the mib module and compiled it into the agent.Attached is the .c file.Is there any error? From: Robert Story (Users) <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "C Y" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: why I cannot snmpwalk the value? Dat