Помогите разобраться, как пользоваться MIB? Как узнать по нему нужный OID? Например есть MIB'ы Dlink'a. Нужно узнать версию прошивки на свитче. Ищем в папке файл, содержащий «firm». Находим SingleIP.mib, в нем:
swSingleIPMSFirmwareVer OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..64))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Specifies the firmware version of the switch ."
::= { swSingleIPMSEntry 4 }
swSingleIPMSEntry OBJECT-TYPE
SYNTAX SwSingleIPMSEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of information about member switchs belongs to the single IP management group."
INDEX { swSingleIPMSID }
::= { swSingleIPMSTable 1 }
SwSingleIPMSEntry ::=
SEQUENCE {
swSingleIPMSID
INTEGER,
swSingleIPMSDeviceName
DisplayString,
swSingleIPMSMacAddr
MacAddress,
swSingleIPMSFirmwareVer
DisplayString,
swSingleIPMSCapability
DisplayString,
swSingleIPMSPlatform
DisplayString,
swSingleIPMSHoldtime
INTEGER,
swSingleIPMSCasSource
INTEGER,
swSingleIPMSPassword
OCTET STRING,
swSingleIPMSRowStatus
RowStatus
}
swSingleIPMSTable OBJECT-TYPE
SYNTAX SEQUENCE OF SwSingleIPMSEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table contain information of member switchs which belong to the
single IP management group .
A member will be joined into the group by row creation . Before a switch joined into
a group as a member switch , it must exist in the candidate table list . "
::= { swSingleIPMgmt 3 }
swSingleIPMgmt OBJECT IDENTIFIER ::= { swSingleIPMIB 1 }
swSingleIPMIB MODULE-IDENTITY
LAST-UPDATED "9911220000Z"
ORGANIZATION "Working Group"
CONTACT-INFO
" "
DESCRIPTION
"The Single IP management MIB."
::= { dlink-common-mgmt 8}
IMPORTS
IpAddress
FROM RFC1155-SMI
ifIndex
FROM RFC1213-MIB
MODULE-IDENTITY, OBJECT-TYPE
FROM SNMPv2-SMI
DisplayString ,MacAddress, RowStatus
FROM SNMPv2-TC
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF
dlink-common-mgmt FROM DLINK-ID-REC-MIB;
-- D-Link Common MIBs
-- DLINK-ID-REC
-- Version 1.0.12 01-29-2002
DLINK-ID-REC-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises FROM RFC1155-SMI;
AgentNotifyLevel ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Notification leveling."
SYNTAX INTEGER {
critical(0),
major(1),
minor(2),
warning(3)
}
dlink OBJECT IDENTIFIER ::= { enterprises 171 }
dlink-products OBJECT IDENTIFIER ::= { dlink 10 }
dlink-mgmt OBJECT IDENTIFIER ::= { dlink 11 }
dlink-common-mgmt OBJECT IDENTIFIER ::= { dlink 12 }
END
Есть только .8.1.3.1.4 как узнать не достающее начало OID'а?