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
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
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
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
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
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.
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?
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
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
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
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
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
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
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
14 matches
Mail list logo