1-- *****************************************************************
2-- NMS-NAT.my:  NMS NAT MIB file
3-- OCT. 25 2003
4-- *****************************************************************
5--
6
7            NMS-NAT DEFINITIONS ::= BEGIN
8
9            IMPORTS
10            	MODULE-IDENTITY,
11        		OBJECT-TYPE
12            		FROM SNMPv2-SMI
13
14            	DisplayString
15					FROM RFC1213-MIB
16
17                nmsMgmt
18					FROM NMS-SMI;
19
20nmsNatMIB  MODULE-IDENTITY
21        LAST-UPDATED    "200310250000Z"
22        ORGANIZATION    ""
23        CONTACT-INFO
24                	""
25
26        DESCRIPTION
27            "This MIB module defines the generic managed objects
28            for NAT."
29        ::= { nmsMgmt 100 }
30
31
32
33nmsNatObjects   OBJECT IDENTIFIER ::= { nmsNatMIB 1 }
34
35         -- The NAT PAT link Table
36         	--.1
37         nmsNatSessionNumber OBJECT-TYPE
38              SYNTAX  INTEGER
39              ACCESS  read-only
40              STATUS  mandatory
41              DESCRIPTION
42                      "The number of the total session in the NAPT rule."
43              ::= { nmsNatObjects 1 }
44
45		--jiudian mib .2.1.1--.2.1.12
46         nmsNatSessionTableJD OBJECT-TYPE
47              SYNTAX  SEQUENCE OF NMSNatSessionEntryJD
48              ACCESS  not-accessible
49              STATUS  mandatory
50              DESCRIPTION
51              		"The (conceptual) table containing one entry for each
52             		NAT session currently active on this NAT device."
53              ::= { nmsNatObjects 2 }
54
55          nmsNatSessionEntryJD OBJECT-TYPE
56              SYNTAX  NMSNatSessionEntryJD
57              ACCESS  not-accessible
58              STATUS  mandatory
59              DESCRIPTION
60              		"An entry (conceptual row) containing information
61             		about an active NAT session on this NAT device."
62              INDEX   { nmsNatSessionId }
63              ::= { nmsNatSessionTableJD 1 }
64
65          NMSNatSessionEntryJD ::= SEQUENCE {
66			    nmsNatSessionIdJD                  OCTET STRING,
67			    nmsNatSessionProtocolTypeJD        INTEGER,
68			    nmsNatSessionDirectionJD           INTEGER,
69			    nmsNatSessionIntAddrJD			    OCTET STRING,
70			    nmsNatSessionIntPortJD     		INTEGER,
71			    nmsNatSessionExtAddrJD			    IpAddress,
72			    nmsNatSessionExtPortJD             INTEGER,
73			    nmsNatSessionRemoteAddrJD      	IpAddress,
74			    nmsNatSessionRemotePortJD      	INTEGER,
75			    nmsNatSessionUpTimeJD              TimeTicks,
76			    nmsNatSessionIdletimeJD		    TimeTicks,
77			    nmsNatSessionContextJD             DisplayString,
78			    nmsNATLimitedHostSessionsJD		INTEGER,
79			    nmsNATHostFlowsJD		INTEGER
80		  }
81
82		  nmsNatSessionIdJD OBJECT-TYPE
83			    SYNTAX     OCTET STRING
84			    ACCESS 	   read-only
85			    STATUS     current
86			    DESCRIPTION
87			            "The session ID for this NAT session."
88			    ::= { nmsNatSessionEntryJD 1 }
89
90		  nmsNatSessionProtocolTypeJD OBJECT-TYPE
91			    SYNTAX     INTEGER{
92                        		other (-1), -- not specified
93                        		icmp (1),
94                        		udp (2),
95                        		tcp (4)
96                        	}
97			    ACCESS 	   read-only
98			    STATUS     mandatory
99			    DESCRIPTION
100			            "The protocol type of this session.
101
102			             TCP and UDP sessions are uniquely identified by the
103			             tuple of (source IP address, source UDP/TCP port,
104			             destination IP address, destination TCP/UCP port).
105			             ICMP query sessions are identified by the tuple of
106			             (source IP address, ICMP query ID, destination IP
107			             address)."
108			    ::= { nmsNatSessionEntryJD 2 }
109
110		  nmsNatSessionDirectionJD OBJECT-TYPE
111			    SYNTAX     INTEGER {
112			                   inbound (1),
113			                   outbound (2)
114			               }
115			    ACCESS 	   read-only
116			    STATUS     mandatory
117			    DESCRIPTION
118			            "The direction of this session with respect to the
119			             local network. 'inbound' indicates that this session
120			             was initiated from the public network into the private
121			             network. 'outbound' indicates that this session was
122			             initiated from the private network into the public
123			             network."
124			    ::= { nmsNatSessionEntryJD 3 }
125
126		  nmsNatSessionIntAddrJD OBJECT-TYPE
127			    SYNTAX     OCTET STRING
128			    ACCESS 	   read-only
129			    STATUS     mandatory
130			    DESCRIPTION
131			            "The original IP address of the session endpoint that
132			             lies in the private network."
133			    ::= { nmsNatSessionEntryJD 4 }
134
135         	 nmsNatSessionIntPortJD OBJECT-TYPE
136			    SYNTAX     INTEGER
137			    ACCESS 	   read-only
138			    STATUS     mandatory
139			    DESCRIPTION
140			            "The original transport port of the session endpoint that
141			             belongs to the private network. If this is an ICMP session
142			             then the value is the ICMP request ID."
143			    ::= { nmsNatSessionEntryJD 5 }
144
145		  nmsNatSessionExtAddrJD OBJECT-TYPE
146			    SYNTAX     IpAddress
147			    ACCESS	   read-only
148			    STATUS     mandatory
149			    DESCRIPTION
150			            "The translated IP address of the session endpoint that
151			             lies in the private network."
152			    ::= { nmsNatSessionEntryJD 6 }
153
154		  nmsNatSessionExtPortJD OBJECT-TYPE
155			    SYNTAX     INTEGER
156			    ACCESS 	   read-only
157			    STATUS     mandatory
158			    DESCRIPTION
159			    		"The original IP address of the session endpoint that lies
160             			in the public network."
161			    ::= { nmsNatSessionEntryJD 7 }
162
163		  nmsNatSessionRemoteAddrJD OBJECT-TYPE
164			    SYNTAX     IpAddress
165			    ACCESS 	   read-only
166			    STATUS     current
167			    DESCRIPTION
168			            "The original IP address of the session endpoint that lies
169			             in the public network."
170    			::= { nmsNatSessionEntryJD 8 }
171
172		  nmsNatSessionRemotePortJD OBJECT-TYPE
173			    SYNTAX     INTEGER
174			    ACCESS 	   read-only
175			    STATUS     current
176			    DESCRIPTION
177			            "The original transport port of the session endpoint that
178			             belongs to the public network. If this is an ICMP
179			             session then the value contains the ICMP request ID."
180			    ::= { nmsNatSessionEntryJD 9 }
181
182		  nmsNatSessionUpTimeJD OBJECT-TYPE
183			    SYNTAX     TimeTicks
184			    ACCESS 	   read-only
185			    STATUS     mandatory
186			    DESCRIPTION
187			            "The up time of this session in one-hundredths of a
188			             second."
189			    ::= { nmsNatSessionEntryJD 10 }
190
191		  nmsNatSessionIdletimeJD OBJECT-TYPE
192			    SYNTAX     TimeTicks
193			    ACCESS 	   read-only
194			    STATUS     current
195			    DESCRIPTION
196			            "The time in one-hundredths of a second since a packet
197			             belonging to this session was last detected."
198			    ::= { nmsNatSessionEntryJD 11 }
199
200          	nmsNatSessionContextJD OBJECT-TYPE
201	              SYNTAX  DisplayString (SIZE (0..255))
202	              ACCESS  read-only
203	              STATUS  mandatory
204	              DESCRIPTION
205	                      "A textual string containing information about the
206	                      protocol context of the session."
207	              ::= { nmsNatSessionEntryJD 12 }
208
209
210			-- wangba mib .3
211          nmsNATLimitedTotalSessions OBJECT-TYPE
212              SYNTAX  INTEGER
213              ACCESS  read-write
214              STATUS  mandatory
215              DESCRIPTION
216                      "The number of the total permitted session in the NAPT rule."
217              ::= { nmsNatObjects 3 }
218
219                       -- .4.1.1 - .4.1.14
220          NMSNatSessionEntry ::= SEQUENCE {
221			    nmsNatSessionId                  OCTET STRING,
222			    nmsNatSessionProtocolType        OCTET STRING,
223			    nmsNatSessionDirection           OCTET STRING,
224			    nmsNatSessionIntAddr			OCTET STRING,
225			    nmsNatSessionIntPort     		OCTET STRING,
226			    nmsNatSessionExtAddr			    OCTET STRING,
227			    nmsNatSessionExtPort             OCTET STRING,
228			    nmsNatSessionRemoteAddr      	OCTET STRING,
229			    nmsNatSessionRemotePort      	OCTET STRING,
230			    nmsNatSessionUpTime              OCTET STRING,
231			    nmsNatSessionIdletime		    OCTET STRING,
232			    nmsNatSessionContext             OCTET STRING,
233			    nmsNATLimitedHostSessions		OCTET STRING,
234			    nmsNATHostFlows		OCTET STRING
235		  }
236
237         nmsNatSessionTable OBJECT-TYPE
238              SYNTAX  SEQUENCE OF NMSNatSessionEntry
239              ACCESS  not-accessible
240              STATUS  mandatory
241              DESCRIPTION
242              		"The (conceptual) table containing one entry for each
243             		NAT session currently active on this NAT device."
244              ::= { nmsNatObjects 4 }
245
246          nmsNatSessionEntry OBJECT-TYPE
247              SYNTAX  NMSNatSessionEntry
248              ACCESS  not-accessible
249              STATUS  mandatory
250              DESCRIPTION
251              		"An entry (conceptual row) containing information
252             		about an active NAT session on this NAT device."
253              INDEX   { nmsNatSessionId }
254              ::= { nmsNatSessionTable 1 }
255
256		  nmsNatSessionId OBJECT-TYPE
257			    SYNTAX     OCTET STRING
258			    ACCESS 	   read-only
259			    STATUS     current
260			    DESCRIPTION
261			            "The session ID for this NAT session."
262			    ::= { nmsNatSessionEntry 1 }
263
264		  nmsNatSessionProtocolType OBJECT-TYPE
265			    SYNTAX     OCTET STRING
266			    ACCESS 	   read-only
267			    STATUS     mandatory
268			    DESCRIPTION
269			            "The protocol type of this session.
270
271			             TCP and UDP sessions are uniquely identified by the
272			             tuple of (source IP address, source UDP/TCP port,
273			             destination IP address, destination TCP/UCP port).
274			             ICMP query sessions are identified by the tuple of
275			             (source IP address, ICMP query ID, destination IP
276			             address)."
277			    ::= { nmsNatSessionEntry 2 }
278
279		  nmsNatSessionDirection OBJECT-TYPE
280			    SYNTAX     OCTET STRING
281			    ACCESS 	   read-only
282			    STATUS     mandatory
283			    DESCRIPTION
284			            "The direction of this session with respect to the
285			             local network. 'inbound' indicates that this session
286			             was initiated from the public network into the private
287			             network. 'outbound' indicates that this session was
288			             initiated from the private network into the public
289			             network."
290			    ::= { nmsNatSessionEntry 3 }
291
292		  nmsNatSessionIntAddr OBJECT-TYPE
293			    SYNTAX     OCTET STRING
294			    ACCESS 	   read-only
295			    STATUS     mandatory
296			    DESCRIPTION
297			            "The original IP address of the session endpoint that
298			             lies in the private network."
299			    ::= { nmsNatSessionEntry 4 }
300
301         	 nmsNatSessionIntPort OBJECT-TYPE
302			    SYNTAX     OCTET STRING
303			    ACCESS 	   read-only
304			    STATUS     mandatory
305			    DESCRIPTION
306			            "The original transport port of the session endpoint that
307			             belongs to the private network. If this is an ICMP session
308			             then the value is the ICMP request ID."
309			    ::= { nmsNatSessionEntry 5 }
310
311		  nmsNatSessionExtAddr OBJECT-TYPE
312			    SYNTAX     OCTET STRING
313			    ACCESS	   read-only
314			    STATUS     mandatory
315			    DESCRIPTION
316			            "The translated IP address of the session endpoint that
317			             lies in the private network."
318			    ::= { nmsNatSessionEntry 6 }
319
320		  nmsNatSessionExtPort OBJECT-TYPE
321			    SYNTAX     OCTET STRING
322			    ACCESS 	   read-only
323			    STATUS     mandatory
324			    DESCRIPTION
325			    		"The original IP address of the session endpoint that lies
326             			in the public network."
327			    ::= { nmsNatSessionEntry 7 }
328
329		  nmsNatSessionRemoteAddr OBJECT-TYPE
330			    SYNTAX     OCTET STRING
331			    ACCESS 	   read-only
332			    STATUS     current
333			    DESCRIPTION
334			            "The original IP address of the session endpoint that lies
335			             in the public network."
336    			::= { nmsNatSessionEntry 8 }
337
338		  nmsNatSessionRemotePort OBJECT-TYPE
339			    SYNTAX     OCTET STRING
340			    ACCESS 	   read-only
341			    STATUS     current
342			    DESCRIPTION
343			            "The original transport port of the session endpoint that
344			             belongs to the public network. If this is an ICMP
345			             session then the value contains the ICMP request ID."
346			    ::= { nmsNatSessionEntry 9 }
347
348		  nmsNatSessionUpTime OBJECT-TYPE
349			    SYNTAX     OCTET STRING
350			    ACCESS 	   read-only
351			    STATUS     mandatory
352			    DESCRIPTION
353			            "The up time of this session in one-hundredths of a
354			             second."
355			    ::= { nmsNatSessionEntry 10 }
356
357		  nmsNatSessionIdletime OBJECT-TYPE
358			    SYNTAX     OCTET STRING
359			    ACCESS 	   read-only
360			    STATUS     current
361			    DESCRIPTION
362			            "The time in one-hundredths of a second since a packet
363			             belonging to this session was last detected."
364			    ::= { nmsNatSessionEntry 11 }
365
366          	nmsNatSessionContext OBJECT-TYPE
367	              SYNTAX  OCTET STRING
368	              ACCESS  read-only
369	              STATUS  mandatory
370	              DESCRIPTION
371	                      "A textual string containing information about the
372	                      protocol context of the session."
373	              ::= { nmsNatSessionEntry 12 }
374
375          	nmsNATLimitedHostSessions OBJECT-TYPE
376	              SYNTAX  OCTET STRING
377	              ACCESS  read-write
378	              STATUS  mandatory
379	              DESCRIPTION
380	                      "The number of the permitted single session in the NAPT rule."
381	              ::= { nmsNatSessionEntry 13 }
382
383		nmsNATHostFlows OBJECT-TYPE
384	              SYNTAX  OCTET STRING
385	              ACCESS  read-only
386	              STATUS  mandatory
387	              DESCRIPTION
388	                      "The bytes number of each link during one period."
389	              ::= { nmsNatSessionEntry 14 }
390
391         nmsNatCpuPercent OBJECT-TYPE
392              SYNTAX  INTEGER
393              ACCESS  read-only
394              STATUS  mandatory
395              DESCRIPTION
396                      "The number of the total cpu usage percent."
397              ::= { nmsNatObjects 5 }
398
399         nmsNatHeapPercent OBJECT-TYPE
400              SYNTAX  INTEGER
401              ACCESS  read-only
402              STATUS  mandatory
403              DESCRIPTION
404                      "The number of the total heap allocation percent."
405              ::= { nmsNatObjects 6 }
406
407         nmsNatMblkPercent OBJECT-TYPE
408              SYNTAX  INTEGER
409              ACCESS  read-only
410              STATUS  mandatory
411              DESCRIPTION
412                      "The number of the total Mblk allocation percent."
413              ::= { nmsNatObjects 7 }
414
415         nmsNathostlimitset OBJECT-TYPE
416              SYNTAX  INTEGER
417              ACCESS  read-write
418              STATUS  mandatory
419              DESCRIPTION
420                      "set the count that nat can service for inside users"
421              ::= { nmsNatObjects 8 }
422
423         nmsNathostlimitcurrent OBJECT-TYPE
424              SYNTAX  INTEGER
425              ACCESS  read-only
426              STATUS  mandatory
427              DESCRIPTION
428                      "currently, nat service how many inside user."
429              ::= { nmsNatObjects 9 }
430
431         nmsNathostlimitenable OBJECT-TYPE
432              SYNTAX  INTEGER
433              ACCESS  read-write
434              STATUS  mandatory
435              DESCRIPTION
436                      "enable limit-user function."
437              ::= { nmsNatObjects 10 }
438
439         nmsNatIf OBJECT-TYPE
440              SYNTAX  OCTET STRING
441              ACCESS  read-only
442              STATUS  mandatory
443              DESCRIPTION
444                      "the ifindex of NAT Interface."
445              ::= { nmsNatObjects 11 }
446
447	-- End of table
448
449
450END
451