Re: Is there any api for net-snmp to reread it's conf?

2007-12-03 Thread Dave Shield
On 01/12/2007, goon863 [EMAIL PROTECTED] wrote: I want to change the notification trap time through an oid in agent What do you mean by the notification trap time ? Dave - SF.Net email is sponsored by: The Future of Linux

Re: [SNMP4J] diskIOWrites - cached responses

2007-12-03 Thread Frank Fock
Dave Shield schrieb: On 01/12/2007, Frank Fock [EMAIL PROTECTED] wrote: What seems to be strange, that a walk on diskIOWrites.5 returns a diskIOWrites.5 instance. I would have expected an instance with OID diskIOWrites.5 instead. That's deliberate. Conceptually, the behaviour of

[no subject]

2007-12-03 Thread Bojan Andonoski
-- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop

How to decode addresses when receiving traps (version 5.4.1).

2007-12-03 Thread Alain GUENRO
Hello list, I am porting a trap handler code from net-snmp-4.2.7 to net-snmp-5.4.1 on Solaris and linux platforms To extract addresses (with net-snmp-4.2.7), there was the following code: char agentAddr[50]; char senderAddr[50]; struct sockaddr_in *agentIp = (struct sockaddr_in

Re: Opaque types

2007-12-03 Thread Dave Shield
On 03/12/2007, Violette Moulin [EMAIL PROTECTED] wrote: case MODE_SET_ACTION: myFloat = atof(netsnmp_strdup_and_null(requests-requestvb- val.string, requests-requestvb-val_len)); break; No - the Net-SNMP library has already converted the value into a float.

Re: How to decode addresses when receiving traps (version 5.4.1).

2007-12-03 Thread Dave Shield
On 03/12/2007, Alain GUENRO [EMAIL PROTECTED] wrote: With net-snmp-5.4.1, the stuct snmp_dpu fields were modified: - snmp_ipaddr address; was replaced by void * transport_data; - snmp_ipaddr agent_addr; was replaced by unsigned char agent_addr[4]; Which code can be use to extract addresses

Opaque types

2007-12-03 Thread Violette Moulin
Hi all, Please excuse me for my bad english, I hope you'll understand my problem. I've set an Opaque type (float) in my MIB. In my subagent C file, I wrote : static float myFloat; ... int SnmpEagleSubagent::handleInstance(...) { switch (reqinfo-mode) { case MODE_GET:

Should (keys %SNMP::MIB) work?

2007-12-03 Thread Matthew Dougherty
I'm trying to generate output in the form OID, attribute, Description. With no agent session, if the mibs are loaded, the following works: print $SNMP::MIB{sysDescr}{description}.\n; By the following returns an empty array: @array=(keys %SNMP::MIB); Any advice would be helpful. Thanks, Matt

Question regarding SNMP GET response PDU

2007-12-03 Thread somenath.pal
Hi All, I have one basic question regarding SNMPv2 GET response PDU. Suppose manager has queried for 3 attributes say v1, v2, v3, v4 Now suppose the response for the attributes are as follows. V1success V2 error (No Such instance) V3 error (No