Obsoletes RFC
Index
1065->1155 // SMI
1066->1156 // MIB
1158->1213 // MIB-II
1212 // Concise MIB Definitions
1215 // A Convention for Defining Traps for use with the SNMP
1229->1573->2233->2863 // interfaces
1442->1902->2578 // SMI for SNMPv2
1443->1903->2579 // Textual Conventions for SMIv2
1444->1904->2580 // Conformance Statements for SMIv2
1514->2790 // host
1759->3805 // printmib
Structure and Identification of Management Information for TCP/IP-based Internets
SMI
STD 16
Request for Comments: 1065 (1988) -> 1155 (1990)
internet OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 } = 1.3.6.1.
directory OBJECT IDENTIFIER ::= { internet 1 }
mgmt OBJECT IDENTIFIER ::= { internet 2 }
experimental OBJECT IDENTIFIER ::= { internet 3 }
private OBJECT IDENTIFIER ::= { internet 4 }
Management Information Base for Network Management of TCP/IP-based internets
MIB
Request For Comments: 1066 (1988) -> 1156 (1990)
RFC1066-MIB { iso org(3) dod(6) internet(1) mgmt(2) 1 } = 1.3.6.1.2.1
mib OBJECT IDENTIFIER ::= { mgmt 1 }
system OBJECT IDENTIFIER ::= { mib 1 }
interfaces OBJECT IDENTIFIER ::= { mib 2 }
at OBJECT IDENTIFIER ::= { mib 3 }
ip OBJECT IDENTIFIER ::= { mib 4 }
icmp OBJECT IDENTIFIER ::= { mib 5 }
tcp OBJECT IDENTIFIER ::= { mib 6 }
udp OBJECT IDENTIFIER ::= { mib 7 }
egp OBJECT IDENTIFIER ::= { mib 8 }
Management Information Base for Network Management of TCP/IP-based internets: MIB-II
MIB-II
Request for Comments: 1158 (1990) -> 1213 (1991)
mib-2 OBJECT IDENTIFIER ::= { mgmt 1 } -- MIB-II
system OBJECT IDENTIFIER ::= { mib-2 1 }
interfaces OBJECT IDENTIFIER ::= { mib-2 2 }
at OBJECT IDENTIFIER ::= { mib-2 3 }
ip OBJECT IDENTIFIER ::= { mib-2 4 }
icmp OBJECT IDENTIFIER ::= { mib-2 5 }
tcp OBJECT IDENTIFIER ::= { mib-2 6 }
udp OBJECT IDENTIFIER ::= { mib-2 7 }
egp OBJECT IDENTIFIER ::= { mib-2 8 }
-- cmot OBJECT IDENTIFIER ::= { mib-2 9 }
transmission OBJECT IDENTIFIER ::= { mib-2 10 }
snmp OBJECT IDENTIFIER ::= { mib-2 11 }
Concise MIB Definitions
STD 16
Request for Comments: 1212 (1991)
A Convention for Defining Traps for use with the SNMP
Request for Comments: 1215 (1991)
The Interfaces Group MIB
Request for Comments: 1229 (1991, Extensions to the Generic-Interface MIB)
-> 1573 (1994, Evolution of the Interfaces Group of MIB-II)
-> 2233 (1997, The Interfaces Group MIB using SMIv2)
-> 2863 (2000, The Interfaces Group MIB)
interfaces OBJECT IDENTIFIER ::= { mib-2 2 }
Structure of Management Information for version 2 of the Simple Network Management Protocol (SNMPv2)
SMI for SNMPv2
mib-2 (1.3.6.1.2.1) 에 대한 것을 정의 - mib-2 FROM SNMPv2-SMI
Request for Comments: 1442 (1993) -> 1902 (1996) -> 2578 (1999)
internet OBJECT IDENTIFIER ::= { iso 3 6 1 }
directory OBJECT IDENTIFIER ::= { internet 1 }
mgmt OBJECT IDENTIFIER ::= { internet 2 }
experimental OBJECT IDENTIFIER ::= { internet 3 }
private OBJECT IDENTIFIER ::= { internet 4 }
enterprises OBJECT IDENTIFIER ::= { private 1 }
security OBJECT IDENTIFIER ::= { internet 5 }
snmpV2 OBJECT IDENTIFIER ::= { internet 6 }
snmpDomains OBJECT IDENTIFIER ::= { snmpV2 1 }
snmpProxys OBJECT IDENTIFIER ::= { snmpV2 2 }
snmpModules OBJECT IDENTIFIER ::= { snmpV2 3 }
Textual Conventions for SMIv2
Textual Conventions for SMIv2
Request for Comments: 1443 (1993) -> 1903 (1996) -> 2579 (1999)
IMPORTS
ObjectSyntax, Integer32, TimeTicks
Conformance Statements for SMIv2
Request for Comments: 1444 (1993, Conformance Statements for SNMPv2) -> 1904 (1996)
-> 2580 (1999, Conformance Statements for SMIv2)
Host Resources MIB
Host Resources MIB
Request for Comments: 1514 (1993) -> 2790 (2000)
host OBJECT IDENTIFIER ::= { mib-2 25 }
hrSystem OBJECT IDENTIFIER ::= { host 1 }
hrStorage OBJECT IDENTIFIER ::= { host 2 }
hrDevice OBJECT IDENTIFIER ::= { host 3 }
hrSWRun OBJECT IDENTIFIER ::= { host 4 }
hrSWRunPerf OBJECT IDENTIFIER ::= { host 5 }
hrSWInstalled OBJECT IDENTIFIER ::= { host 6 }
hrMIBAdminInfo OBJECT IDENTIFIER ::= { host 7 }
Printer MIB
Printer MIB & Printer MIB v2
Request for Comments: 1759 (1995, Printer MIB)
-> 3805 (2004, Printer MIB v2)
printmib MODULE-IDENTITY ::= { mib-2 43 }
Linux SNMP
Net-SNMP : API설명과 간단한 예제
http://net-snmp.sourceforge.net/download.html
ucd-snmp (join C 위키)
SNMP 응용프로그램 만들기
Microsoft Windows/NT SNMP Programmer's Reference
OldSNMP API(?)
In the search for the self or how to find out your IP address and other stuff in Win95 and WinNT
WinSNMP API
http://msdn.microsoft.com/en-us/library/aa379207(VS.85).aspx
The Microsoft® Windows® SNMP Application Programming Interface
Opening and closing a WinSNMP application
- WinSNMP 애플리케이션은 다른 WinSNMP 함수가 호출하기 이전에 반드시 SnmpStartup 함수가 호출되어야 한다.
- SnmpStartup(5)
- SnmpCleanup(0)
Opening and closing a WinSNMP session
- 한 애플리케이션에서 한번에 여러개의 세션을 가질 수 있다.(multiple sessions)
- SnmpCreateSession(4)
- SnmpClose(1)
- Managing traps and notifications
- Working with variable binding lists
- Working with protocol data units
- Sending SNMP messages
- Receiving SNMP messages
- Managing object identifiers
- Freeing WinSNMP descriptors
- Setting the entity and context translation mode
- Managing the retransmission policy
- Writing WinSNMP applications with multiple threads
- Registering an SNMP agent application
WinSNMP Utility Functions
smiOID 구조체 : 메모리 할당과 해제를 구현해놓았음
smiOID 구조체의 ptr 맴버의 메모리 해제를 위해 SnmpFreeDescriptor 함수가 호출되어야 함(must)
다양한 길이의 입력 descriptor 객체들을 할당하기 때문에 그런 것임.
typedef struct { smiUINT32 len; smiLPUINT32 ptr; } smiOID, *smiLPOID;
[변환 함수] OID(smiLPOID) <-> String(LPSTR)
WinSNMP Variable Binding Functions
The SNMP Management Information Base (MIB)
http://msdn.microsoft.com/en-us/library/aa379157(VS.85).aspx
링크
GET - cm_get.c
GETNEXT - cm_tgen.c
WALK(get-next의 반복) - cm_walk.c
TRAP - cm_traps.c
'Network' 카테고리의 다른 글
SNMP - MIB(Management information base) (0) | 2012.09.21 |
---|---|
자신의 IP를 알아내기(영문) (0) | 2012.09.21 |
텔넷으로 이메일 보내기 (0) | 2012.09.21 |
SMTP(Simple Mail Transfer Protocol) (0) | 2012.09.21 |
RPC(Remote procedure call) (0) | 2012.09.21 |