1-- -----------------------------------------------------------------------------
2-- MIB NAME : LED mib
3-- FILE NAME: led.mib
4-- DATE     : 2011/06/10
5-- VERSION  : 1.02
6-- PURPOSE  : To construct the MIB structure of LED information for proprietary
7-- 			  enterprise
8-- -----------------------------------------------------------------------------
9-- MODIFICTION HISTORY:
10-- -----------------------------------------------------------------------------
11-- Version 1.02, 2011/06/10, will liang
12-- Add speed type 10Gbps for swLedInfoFrontPanelLedStatus
13--
14-- Version 1.01, 2010/05/26, will liang
15-- Take octect 10 in node swLedInfoFrontPanelLedStatus to carry the value of port
16-- LED control state
17--
18-- Version 1.00, 2010/03/02, jespersen cai
19-- This is the first formal version for universal MIB definition.
20-- -----------------------------------------------------------------------------
21
22DGS3120-24TC-LED-MIB	DEFINITIONS ::= BEGIN
23
24	IMPORTS
25		MODULE-IDENTITY , OBJECT-TYPE		FROM SNMPv2-SMI
26		dlink-Dgs3120Proj-DGS-3120-24TC-bx		FROM SWDGS3120PRIMGMT-MIB;
27
28	swLedMIB MODULE-IDENTITY
29		LAST-UPDATED "201106100000Z"
30	    ORGANIZATION "D-Link Corp."
31	    CONTACT-INFO
32	        "http://support.dlink.com"
33	    DESCRIPTION
34		    "The Structure of LED Information for the proprietary enterprise."
35        ::= { dlink-Dgs3120Proj-DGS-3120-24TC-bx 4 }
36
37	swLedMIBObject OBJECT IDENTIFIER ::={swLedMIB 1}
38
39	swLedInfoTable OBJECT-TYPE
40        SYNTAX  SEQUENCE OF SwLedInfoEntry
41        MAX-ACCESS  not-accessible
42        STATUS  current
43        DESCRIPTION
44            "This table contains the LED information."
45        ::= { swLedMIBObject 1 }
46
47	swLedInfoEntry OBJECT-TYPE
48        SYNTAX  SwLedInfoEntry
49        MAX-ACCESS  not-accessible
50        STATUS  current
51        DESCRIPTION
52            "A list of front panel LED information for each unit in the system."
53        INDEX  { swLedInfoUnitId }
54        ::= { swLedInfoTable 1 }
55
56	SwLedInfoEntry ::=
57        SEQUENCE {
58				swLedInfoUnitId
59					INTEGER,
60				swLedInfoFrontPanelLedStatus
61					OCTET STRING
62		}
63
64	swLedInfoUnitId OBJECT-TYPE
65        SYNTAX  INTEGER (1..13)
66        MAX-ACCESS  read-only
67        STATUS  current
68        DESCRIPTION
69            "The object indicates the unit ID."
70        ::= { swLedInfoEntry 1 }
71
72	swLedInfoFrontPanelLedStatus OBJECT-TYPE
73        SYNTAX  OCTET STRING
74        MAX-ACCESS  read-only
75        STATUS  current
76        DESCRIPTION
77				"This object is a set of system LED indicators. The first 32 octets are
78				defined as next, and following octets are for logical port LED.
79
80				Octet 1 is box ID led
81						bit 7-6:
82							reserved
83						bit 5-4:
84							00B = no error
85							01B = system self-test error
86							10B = safeguard engine entering the exhausted mode
87						bit 3-0:
88							The actual box ID.
89							0x1 = box ID 1
90							0x2 = box ID 2
91							...
92
93				Octet 2 is power led:
94						0x01 = power work normally
95						0x02 = power fail
96
97				Octet 3 is RPS led:
98						0x01 = RPS is not connected
99						0x02 = RPS is connected to switch but not ready to power the switch
100						0x03 = RPS is ready to power the switch
101						0x04 = RPS is powering the switch
102
103				Octet 4 is console led:
104						0x01 = system start up
105						0x02 = a user is login through console
106						0x03 = no user is login through console
107
108				Octet 5 is master led:
109						0x00 = standalone
110						0x01 = master
111						0x02 = back master
112						0x03 = slave
113
114				Octet 6 is fan led:
115						0x01 = all fans are OK
116						0x02 = one or more fans fail
117
118				Octet 7 is SD card led:
119						0x01 = SD card is unplugged
120						0x02 = SD card is plugged
121						0x03 = reading/writing
122						0x04 = read/write fail
123
124				Octet 8 is SIO port led:
125						bit 7-2:
126							reserved
127						bit 1:
128							SIO1 link state
129							0B = linkdown
130							1B = linkup
131						bit 0:
132							SIO2 link state
133							0B = linkdown
134							1B = linkup
135
136				Octet 9 is POE led:
137						0x01 = can not support POE
138						0x02 = link/act/speed mode
139						0x03 = POE mode
140
141				Octet 10 is port led control state:
142						0x00 = Port LED control state enabled
143						0x01 = Port LED control state disabled
144
145				Octet 11-32 are reserved.
146
147				The continued octets are the logic port led. Each octet presents one port.
148
149				There are two modes: link/act/speed mode and POE mode.
150					The link/act/speed mode presents the speed duplex of port.
151					The POE mode presents if the port deliver power to PD.
152					The POE mode is supported by POE Switch only.
153
154				The mode is determined by Octet 9. If the switch can not support POE,
155				the mode is link/act/speed only.
156
157				In each octet:
158				link/act/speed mode:
159						bit 7:
160							0B = port is not activity
161							1B = port is activity
162						bit 6:
163							0B = not combo port
164							1B = combo port
165
166						bit 5:
167							the bit is available only when the port is combo port and linkup
168							0B = fiber linkup
169							1B = copper linkup
170
171						bit 4:
172							reserved
173						bit 3:
174							0B = half duplex
175							1B = full duplex
176
177						bit 2-0:
178							0x0 = link down
179							0x1 = 10Mbps
180							0x2 = 100Mbps
181							0x3 = 1000Mbps
182							0x4 = 10Gbps
183
184				POE mode:
185						0x01 = no deliver power to PD
186						0x02 = deliver power to PD."
187        ::= { swLedInfoEntry 2 }
188
189END
190