1--  =================================================================
2-- Copyright (C) 2009 by  HUAWEI TECHNOLOGIES. All rights reserved
3--
4-- Description: HUAWEI HTTP MIB, this mib will maintain information of HTTP
5--              protocol for datacomm product.
6-- Reference:
7-- Version:     V1.00
8-- History:
9--
10--  V1.00 2009-03-27 initial version
11-- =================================================================
12HUAWEI-HTTP-MIB DEFINITIONS ::= BEGIN
13	IMPORTS
14    DateAndTime
15        FROM SNMPv2-TC
16
17		OBJECT-GROUP
18        FROM SNMPv2-CONF
19
20    MODULE-IDENTITY, OBJECT-TYPE, Integer32,OBJECT-IDENTITY,
21    IpAddress, Unsigned32, NOTIFICATION-TYPE
22        FROM SNMPv2-SMI
23
24 	EnabledStatus
25        FROM P-BRIDGE-MIB
26
27    hwDatacomm
28        FROM HUAWEI-MIB;
29
30    hwHttpMIB MODULE-IDENTITY
31        LAST-UPDATED "200903271630Z"		-- July 15, 2008 at 14:30 GMT
32        ORGANIZATION
33            "Huawei Technologies co.,Ltd."
34        CONTACT-INFO
35            "R&D NanJing, Huawei Technologies co.,Ltd.
36				High hope mansion,
37				Baixia road,
38				Nanjing city
39				Zip:100085
40				Http://www.huawei.com
41				E-mail:support@huawei.com
42				Zip:100000
43            "
44        DESCRIPTION
45            "This file is a HTTP MIB. It provides the functions such as
46           globally enabling or disabling the HTTP service, configuring the global
47           port number, showing http server and users information."
48            ::= { hwDatacomm 192 }
49
50    -- ============================================================================
51    -- Node definitions
52    -- ============================================================================
53		hwHttpObjects  OBJECT IDENTIFIER ::= { hwHttpMIB 1 }
54		hwHttpConformance  OBJECT IDENTIFIER ::= { hwHttpMIB 2 }
55
56	  -- ============================================================================
57	  --
58	  -- ======================= Objects definitions=================================
59	  --
60	  -- ============================================================================
61		hwHttpConfiguration  OBJECT IDENTIFIER ::= { hwHttpObjects 1 }
62
63    hwHttpEnable OBJECT-TYPE
64    SYNTAX   EnabledStatus
65		{
66			 enabled(1),
67			 disabled(2)
68		}
69		MAX-ACCESS read-write
70		STATUS current
71		DESCRIPTION
72			"The object indicates globally enable or disable the HTTP configuration. If the hwHttpEnable
73       	 	is 1, HTTP server is enabled. If the hwHttpEnable is 2, HTTP server is
74       	 	disabled. By default, HTTP server is enabled."
75		DEFVAL { 1 }
76		::= { hwHttpConfiguration 1 }
77
78	hwHttpPortNum OBJECT-TYPE
79    SYNTAX   Integer32 (80|1025..55535)
80		MAX-ACCESS read-write
81		STATUS current
82		DESCRIPTION
83			"The object indicates globally port number the HTTP configuration.  The value rangs from 1025 to 55535,
84			   User can modify HTTP server listen in port number,
85			   By default, HTTP server listen in 80 port."
86		DEFVAL { 80 }
87		::= { hwHttpConfiguration 2 }
88
89	hwHttpAclNum OBJECT-TYPE
90    SYNTAX   Integer32 (0|2000..2999)
91		MAX-ACCESS read-write
92		STATUS current
93		DESCRIPTION
94			"The object indicates globally ACL the HTTP configuration.  The value rangs from 2000 to 2999,
95			   user can modify HTTP server ACL number,By default, the ACL number is 0."
96		::= { hwHttpConfiguration 3 }
97
98	hwHttpTimeOut OBJECT-TYPE
99    SYNTAX   Integer32 (1..35791)
100		MAX-ACCESS read-write
101		STATUS current
102		DESCRIPTION
103			"The object indicates globally overtime the HTTP configuration.  The value rangs from 1 to 35791,
104			   User can modify HTTP server overtime interval,
105			   By default, The time is 3 minutes."
106		DEFVAL { 3 }
107		::= { hwHttpConfiguration 4 }
108
109	hwHttpOnlineUserNum OBJECT-TYPE
110    SYNTAX   Integer32 (0..5)
111		MAX-ACCESS read-only
112		STATUS current
113		DESCRIPTION
114			"The object indicates the number of concurrent server users online."
115		::= { hwHttpConfiguration 5 }
116
117	hwHttpMaxUserNum OBJECT-TYPE
118    SYNTAX   Integer32
119		MAX-ACCESS read-only
120		STATUS current
121		DESCRIPTION
122			"The object indicates maximum number of concurrent server users allowed."
123		::= { hwHttpConfiguration 6 }
124
125  hwHttpUserInfoTable  OBJECT-TYPE
126    SYNTAX SEQUENCE OF HwHttpUserInfoEntry
127    MAX-ACCESS not-accessible
128    STATUS current
129    DESCRIPTION
130	  "HTTP user infomation configuration table."
131    ::= { hwHttpConfiguration  7 }
132
133  hwHttpUserInfoEntry OBJECT-TYPE
134    SYNTAX HwHttpUserInfoEntry
135		MAX-ACCESS not-accessible
136    STATUS current
137    DESCRIPTION
138    "Entries of the HTTP user infomation configuration table."
139    INDEX{ hwHttpUserIndex }
140    ::= { hwHttpUserInfoTable 1}
141
142  HwHttpUserInfoEntry ::=
143  	SEQUENCE{
144  			hwHttpUserIndex            Integer32,
145  	    	hwHttpUserName             OCTET STRING,
146  	    	hwHttpUserIpAddr           IpAddress,
147			hwHttpUserLoginTime        DateAndTime,
148			hwHttpUserTimeOut          Integer32
149      		}
150
151   hwHttpUserIndex  OBJECT-TYPE
152  	SYNTAX Integer32(1..5)
153  	MAX-ACCESS not-accessible
154  	STATUS current
155 		DESCRIPTION
156 				"The object indicates the user index of user has logined HTTP server. The value rangs from 1 to 5."
157   		::= {hwHttpUserInfoEntry 1}
158
159  hwHttpUserName  OBJECT-TYPE
160  	SYNTAX OCTET STRING(SIZE(1..64))
161  	MAX-ACCESS read-only
162  	STATUS current
163 		DESCRIPTION
164 				"The object indicates the user name of user has logined HTTP server. It ranges from 1
165     		     to 64."
166   		::= {hwHttpUserInfoEntry 2}
167
168  hwHttpUserIpAddr  OBJECT-TYPE
169  	SYNTAX IpAddress
170  	MAX-ACCESS read-only
171  	STATUS current
172 		DESCRIPTION
173 				"The object indicates the source IP address of user has logined HTTP server."
174   		::= {hwHttpUserInfoEntry 3}
175
176  hwHttpUserLoginTime  OBJECT-TYPE
177  	SYNTAX DateAndTime
178  	MAX-ACCESS read-only
179  	STATUS current
180 		DESCRIPTION
181 				"The object indicates the date and time of user logined HTTP server."
182   		::= {hwHttpUserInfoEntry 4}
183
184   hwHttpUserTimeOut  OBJECT-TYPE
185  	SYNTAX Integer32
186  	MAX-ACCESS read-only
187  	STATUS current
188 		DESCRIPTION
189 				"The object indicates the overtime of user logined HTTP server."
190   		::= {hwHttpUserInfoEntry 5}
191
192    --
193	-- ***********************************************************
194	--
195	-- HAUWEIDLDPMIBCONFORMANCE
196	--
197	-- ***********************************************************
198	--
199
200  hwHttpCompliances OBJECT IDENTIFIER ::= { hwHttpConformance 1 }
201	hwHttpGroups OBJECT IDENTIFIER ::= { hwHttpConformance 2 }
202	-- compliance statements
203	hwHttpCompliance MODULE-COMPLIANCE
204	STATUS current
205	DESCRIPTION
206		"The compliance statement for SNMP entities which implement
207		the HUAWEI-HTTP-MIB."
208	MODULE -- this module
209	MANDATORY-GROUPS {
210	hwHttpConfigGroup,
211	hwHttpInfoGroup
212	}
213	::= { hwHttpCompliances 1 }
214
215	-- MIB groupings
216	hwHttpConfigGroup OBJECT-GROUP
217	OBJECTS {
218	hwHttpEnable,
219	hwHttpPortNum,
220	hwHttpAclNum,
221	hwHttpTimeOut
222	}
223	STATUS current
224	DESCRIPTION
225		"The collection of objects which are used to configure the
226		HTTP implementation behavior.
227		This group is mandatory for agents which implement the HTTP."
228	::= { hwHttpGroups 1 }
229
230	hwHttpInfoGroup OBJECT-GROUP
231	OBJECTS {
232	hwHttpOnlineUserNum,
233	hwHttpMaxUserNum,
234	hwHttpUserName,
235	hwHttpUserIpAddr,
236	hwHttpUserLoginTime,
237	hwHttpUserTimeOut
238	}
239	STATUS current
240	DESCRIPTION
241		"The collection of objects indicates the information of HTTP server and users."
242	::= { hwHttpGroups 2 }
243
244	END
245
246--
247-- HUAWEI-HTTP-MIB.mib
248--
249
250
251
252
253