Net-SNMP Distributed MIBs (Management Information Base)
SMI(Structure and identification of Management Information)
The following are the MIB files distributed with Net-SNMP. Note that because they are distributed with Net-SNMP does not mean the agent implements them all. Another good place for finding other MIB definitions can be found at the MIB depot.
MIB | RFC | Description |
---|---|---|
SNMPv2-TM [mib file] |
rfc3417 | The MIB module for SNMP transport mappings. |
SNMPv2-MIB [mib file] |
rfc3418 | The MIB module for SNMP entities. |
SNMP-FRAMEWORK-MIB [mib file] |
rfc3411 | The SNMP Management Architecture MIB |
SNMP-MPD-MIB [mib file] |
rfc3412 | The MIB for Message Processing and Dispatching |
SNMP-TARGET-MIB [mib file] |
rfc3413 | This MIB module defines MIB objects which provide |
SNMP-NOTIFICATION-MIB [mib file] |
rfc3413 | This MIB module defines MIB objects which provide |
SNMP-PROXY-MIB [mib file] |
rfc3413 | This MIB module defines MIB objects which provide |
SNMP-USER-BASED-SM-MIB [mib file] |
rfc3414 | The management information definitions for the |
SNMP-VIEW-BASED-ACM-MIB [mib file] |
rfc3415 | The management information definitions for the |
SNMP-COMMUNITY-MIB [mib file] |
rfc2576 | This MIB module defines objects to help support coexistence |
TRANSPORT-ADDRESS-MIB [mib file] |
rfc3419 | This MIB module provides commonly used transport |
IF-MIB [mib file] |
rfc2863 | The MIB module to describe generic objects for network |
IF-INVERTED-STACK-MIB [mib file] |
rfc2864 | The MIB module which provides the Inverted Stack Table for |
EtherLike-MIB [mib file] |
rfc3635 | The MIB module to describe generic objects for |
IP-MIB [mib file] |
rfc4293 | The MIB module for managing IP and ICMP implementations, but |
IP-FORWARD-MIB [mib file] |
rfc4292 | The MIB module for the management of CIDR multipath IP |
IANA-RTPROTO-MIB [mib file] |
This MIB module defines the IANAipRouteProtocol and |
|
TCP-MIB [mib file] |
rfc4022 | The MIB module for managing TCP implementations. |
UDP-MIB [mib file] |
rfc4113 | The MIB module for managing UDP implementations. |
INET-ADDRESS-MIB [mib file] |
rfc4001 | This MIB module defines textual conventions for |
HCNUM-TC [mib file] |
rfc2856 | A MIB module containing textual conventions |
HOST-RESOURCES-MIB [mib file] |
rfc2790 | This MIB is for use in managing host systems. The term |
HOST-RESOURCES-TYPES [mib file] |
rfc2790 | This MIB module registers type definitions for |
RMON-MIB [mib file] |
rfc2819 | Remote network monitoring devices, often called |
IPV6-MIB [mib file] |
rfc2465 | The MIB module for entities implementing the IPv6 |
IPV6-ICMP-MIB [mib file] |
rfc2466 | The MIB module for entities implementing |
IPV6-TCP-MIB [mib file] |
rfc2452 | The MIB module for entities implementing TCP over IPv6. |
IPV6-UDP-MIB [mib file] |
rfc2454 | The MIB module for entities implementing UDP over IPv6. |
DISMAN-EVENT-MIB [mib file] |
rfc2981 | The MIB module for defining event triggers and actions |
DISMAN-SCRIPT-MIB [mib file] |
rfc3165 | This MIB module defines a set of objects that allow to |
DISMAN-SCHEDULE-MIB [mib file] |
rfc3231 | This MIB module defines a MIB which provides mechanisms to |
NOTIFICATION-LOG-MIB [mib file] |
rfc3014 | The MIB module for logging SNMP Notifications, that is, Traps |
SNMP-USM-AES-MIB [mib file] |
rfc3826 | Definitions of Object Identities needed for |
SNMP-USM-DH-OBJECTS-MIB [mib file] |
rfc2786 | The management information definitions for providing forward |
AGENTX-MIB [mib file] |
rfc2742 | This is the MIB module for the SNMP Agent Extensibility |
IANAifType-MIB [mib file] |
This MIB module defines the IANAifType Textual |
|
IANA-LANGUAGE-MIB [mib file] |
The MIB module registers object identifier values for |
|
IANA-ADDRESS-FAMILY-NUMBERS-MIB [mib file] |
The MIB module defines the AddressFamilyNumbers |
|
NET-SNMP-TC [mib file] |
Textual conventions and enumerations for the Net-SNMP project |
|
NET-SNMP-MIB [mib file] |
Top-level infrastructure of the Net-SNMP project enterprise MIB tree |
|
NET-SNMP-AGENT-MIB [mib file] |
Defines control and monitoring structures for the Net-SNMP agent. |
|
NET-SNMP-EXAMPLES-MIB [mib file] |
Example MIB objects for agent module example implementations |
|
NET-SNMP-EXTEND-MIB [mib file] |
Defines a framework for scripted extensions for the Net-SNMP agent. |
|
UCD-SNMP-MIB [mib file] |
Clarify behaviour of objects in the memory & systemStats groups |
|
UCD-DEMO-MIB [mib file] |
The UCD-SNMP Demonstration MIB. |
|
UCD-IPFWACC-MIB [mib file] |
This module defines MIB components for reading information |
|
UCD-DLMOD-MIB [mib file] |
This file defines the MIB objects for dynamic |
|
UCD-DISKIO-MIB [mib file] |
This MIB module defines objects for disk IO statistics. |
|
NET-SNMP-VACM-MIB [mib file] |
Defines Net-SNMP extensions to the standard VACM view table. |
http://www.net-snmp.org/
테스트
snmptest로 접속해보면 다음과 같다.
[root@ns ucd-snmp-4.2.1]# snmptest localhost public
Variable: sysLocation.0
Variable: sysServices.0
Variable: sysContact.0
Variable: 엔터
Received Get Response from 127.0.0.1
requestid 0x78794697 errstat 0x0 errindex 0x0
system.sysLocation.0 = "Seoul Korea"
system.sysServices.0 = 76
system.sysContact.0 = "kang myung gyu, kang@dbakorea.pe.kr"
보통 라우터의 경우 자체OS에 snmp agent가 심어져 있지만, 일반 호스트서버의 경우,
위와 같이(snmpd) agnet를 실행해줘야 한다.
사용된 변수(udpInDatagrams)의 이름은 대소문자를 구분함
테이블이 아닌 일반변수의 경우, 마지막에 .0을 붙여서 질의한다.
snmp application의 사용예
snmpget
[kang@ns kang]$ snmpget localhost public udpInDatagrams.0
snmpwalk
[kang@ns kang]$ snmpwalk localhost public udpInDatagrams.0
[kang@ns kang]# snmpwalk localhost public interface
[kang@ns mrtg]$ snmpwalk -Of localhost private memory (full oid output)
[kang@ns mrtg]$ snmpwalk -On localhost private memory (oid를 숫자형식으로 출력)
snmpgetnext
[kang@ns kang]$ snmpget localhost public udpInDatagrams.0
udp.udpInDatagrams.0 = Counter32: 3404
[kang@ns kang]$ snmpgetnext localhost public udpInDatagrams.0
udp.udpNoPorts.0 = Counter32: 285
[kang@ns kang]$ snmpgetnext localhost public udpNoPorts.0
udp.udpInErrors.0 = Counter32: 0
[kang@ns kang]$ snmpgetnext localhost public udpInErrors.0
udp.udpOutDatagrams.0 = Counter32: 3594
snmptest
[root@ns ucd-snmp-4.2.1]# snmptest localhost public
Variable: sysDescr.0
Variable: sysObjectID.0
Variable: sysUpTime.0
Variable: sysContact.0
Variable: sysName.0
Variable: sysLocation.0
Variable: sysServices.0
Variable:
Received Get Response from 127.0.0.1
requestid 0x449D7035 errstat 0x0 errindex 0x0
system.sysDescr.0 = Linux ns.dbakorea.pe.kr 2.4.4 #2 Wed May 2 11:52:31 KST 2001 i586
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (23439) 0:03:54.39
system.sysContact.0 = "kang myung gyu, kang@dbakorea.pe.kr"
system.sysName.0 = ns.dbakorea.pe.kr
system.sysLocation.0 = "Seoul Korea"
system.sysServices.0 = 76
Variable:
snmptranslate
[kang@ns mrtg]$ snmptranslate .1.3.6.1.4.enterprises.ucdavis.dskTable.dskEntry.dskPercent.1
.1.3.6.1.4.1.2021.9.1.9.1
SNMP MIB관계
UCD-SNMP AGENT
ucd-snmp AGENT는 대부분의 정보를 mib tree중 .1.3.6.1.4.1.2021섹션에 질의하여 REPORT한다.
.iso.org.dod.internet.private.enterprises.ucdavis (.1.3.6.1.4.1.2021)
161은 snmp, 162번 포트는 snmp-trap이 사용하는 포트이다.
company.com에 snmp agent가 동작중인가는 다음과 같이 파악할 수 있다.
nmap -sU -p 161,162 company.com
MRTG 리소스모니터링 예제
/usr/local/src/mrtg-2.9.10/contrib/
SNMP에 관한 링크
http://www.ieng.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
http://net-snmp.sourceforge.net/tutorial/mrtg/index.html
MIB 목록
/usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt
참고 매뉴얼 페이지
snmpd.conf, snmp.conf, snmptrapd.conf, snmp_config
728x90
댓글