RE: tablesnmpwalk on table not working via subagent - need help please

2008-05-06 Thread Joan Landry
So I am now using: REGISTER_MIB(...) To handle get,get next, and set. This works ok. Is this the recommended approach instead of using the helpers? No. The REGISTER_MIB approach is the old-style code. We are moving away from this towards helper-based MIB modules. I have a question

private MIB test

2008-05-06 Thread CHAHIBI Samira
Hi all, I've installed a newer net-snmp version (5.4) and edited configuration file. It works well. Now I want to extend my agent. I put my mib file under usr/share/snmp/mibs. It is possible now -before writing my functions code on skeleton given by mib2c- to test my private MIB by making an

Re: private MIB test

2008-05-06 Thread Dave Shield
2008/5/6 CHAHIBI Samira [EMAIL PROTECTED]: Now I want to extend my agent. I put my mib file under usr/share/snmp/mibs. It is possible now -before writing my functions code on skeleton given by mib2c- to test my private MIB by making an snmptranslate and see if the agent can translate oids

Re:Re: Re: strange that trapsess causes Segmentation fault when running

2008-05-06 Thread ema
it indeed has no need to set four similar directives that give the four copies of every trap, i only want to try every directive to see whether they could work normally, but to make me surprise that simple trapsess directive gives me unexpected Segment defaut 在2008-05-06,Dave Shield

Re: private mib test

2008-05-06 Thread CHAHIBI Samira
Hi, Thanks for replying so quickly. I'm waiting for IANA's confirmation about my private entreprise number. After editing my private mib, i've tested it on some softs like MG-SOFT and SimpleMIBEditor. my mib seems to be correct. I've changed entreprise oid into 31900 in my mib file until IANA's

RE: Net-SNMP Agent Dying

2008-05-06 Thread Jayson Robinson
Thomas, Thanks for the response. We're currently moving all of our agents over to the new 5.4.1 agent but have not gotten around to packaging all our extensions for solaris yet. What is odd is that this is the only solaris system in our environment running 5.3 that is having this problem.

Re: private mib test

2008-05-06 Thread Dave Shield
2008/5/6 CHAHIBI Samira [EMAIL PROTECTED]: [EMAIL PROTECTED] ~]# snmptranslate -m ltd-mib 1.3.6.1.4.5.1.1.0 No log handling enabled - turning on stderr logging Cannot find module (ltd-mib): At line 0 in (none) Where have you installed the MIB file? What do the first few lines look like?

Re: Net-SNMP Agent Dying

2008-05-06 Thread Dave Shield
2008/5/6 Jayson Robinson [EMAIL PROTECTED]: Any idea what errno 22 is? EINVAL - Invalid argument From select(3c): ERRORS The select() function will fail if: : EINVAL An invalid timeout interval was specified. EINVAL The nfds argument is

Re: private mib test

2008-05-06 Thread CHAHIBI Samira
hi, i only copied my mib file under /usr/share/snmp/mibs here is my mib file: LTD-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, enterprises FROM SNMPv2-SMI OBJECT-GROUP FROM SNMPv2-CONF; --1.3.6.3.4.3.31900.1 ts MODULE-IDENTITY

Re: private mib test

2008-05-06 Thread CHAHIBI Samira
hi, i have installed my mib file in /usr/share/snmp/mibs the first mib file lines look like this: LTD-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, enterprises FROM SNMPv2-SMI OBJECT-GROUP FROM SNMPv2-CONF; --1.3.6.3.4.3.31900

Re private mib test

2008-05-06 Thread CHAHIBI Samira
hi, I found why this command failed: [EMAIL PROTECTED] ~]# snmptranslate -m ltd-mib 1.3.6.1.4.31900.1.1 No log handling enabled - turning on stderr logging Cannot find module (ltd-mib): At line 0 in (none) iso.3.6.1.4.5.1.1.0 in this command. I had to put the mib module name, not the

Huh?!

2008-05-06 Thread Mike Ayers
What am I missing here? SNIP machine$ echo $MIBDIRS /c/mike/wrk/net-snmp-1/iroot/share/snmp/mibs machine$ echo $MIBS all machine$ snmptranslate .1.3.6.1.4.1 SNMPv2-SMI::enterprises machine$ snmptranslate -Ts .1.3.6.1.4.1 SNMPv2-SMI::enterprises machine$ snmptranslate -IR -Ts .1.3.6.1.4.1

Execute script through windows

2008-05-06 Thread Murilo Fujita
Hi, In snmpd.conf (man page) there is a instruction for execute a script (see next line): exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest but /bin/sh belongs to linux. What is the instructions for windows? Thanks! Fujita Murilo Fujita Engineer of Automation Universidade

Re: make test - snmpwalk failure on hpux 11.31 ia64

2008-05-06 Thread Thomas Anders
Cath Fawcet wrote: Tried installing it anyway (just to see how bad things are) and on running snmpwalk, snmpd dies. Could you get us a backtrace, please? See http://www.net-snmp.org/wiki/index.php/Debugger for details. +Thomas