| Eigene MIB einkompilieren | ![]() |
© Michael Kalinka, 2003 | IV.6 |
./configure --with-mib-modules="mkMIB"
...
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
Net-SNMP Version: 5.0.8
Building for: linux
Network transport support: Callback Unix TCP UDP
SNMPv3 Security Modules: usm
Agent MIB code: mibII ..... mkMIB
Authentication support: MD5 SHA1
Encryption support: DES
---------------------------------------------------------
make; make install
/usr/local/sbin/snmpd -c /etc/netsnmpd.conf -l /var/log/snmpd.conf
michael@thin1:~> snmpget -v 1 -c public 192.168.0.98 .1.3.6.1.4.1.2222.1.1.0 SNMPv2-SMI::enterprises.2222.1.1.0 = INTEGER: 4711
MK-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, enterprises FROM SNMPv2-SMI;
mkMIB MODULE-IDENTITY
LAST-UPDATED "200305120000Z" -- 12 May 2003
ORGANIZATION "MKalinka IT-Beratung und Training"
CONTACT-INFO
"Michael Kalinka
Postal: Hoofiesen 9
24226 Heikendorf
Germany
Phone: +49 431 728426
Mob : 0177 7202365
Email: mkalinka@synergie-gmbh.de"
DESCRIPTION
"This Module was built for no other reason than to test
the access of self-defined variables within a NM-structure"
REVISION "200305120000Z" -- 12 May 2003
DESCRIPTION
"The original version"
::= { enterprises 2222 }
mkNode OBJECT IDENTIFIER ::= { mkMIB 1 }
mkVar OBJECT-TYPE
SYNTAX INTEGER (0..127)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A test-variable retrieving the value 4711"
::= { mkNode 1 }
END