summaryrefslogtreecommitdiff
path: root/MIBS/dlink/DLINKSW-TELNET-MIB
blob: 54d5cc7547156f066c68437a4fb001f4225c67ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
--  *****************************************************************
--  DLINKSW-TELNET-MIB.mib : TELNET MIB
-- 
--  Copyright (c) 2013 D-Link Corporation, all rights reserved.
--   
--  *****************************************************************

DLINKSW-TELNET-MIB DEFINITIONS ::= BEGIN

    IMPORTS
        MODULE-IDENTITY, OBJECT-TYPE, Unsigned32 
            FROM SNMPv2-SMI
        MODULE-COMPLIANCE, OBJECT-GROUP
            FROM SNMPv2-CONF 
        TruthValue
            FROM SNMPv2-TC 
        InterfaceIndexOrZero          
            FROM IF-MIB
        InetAddressType,InetAddress
            FROM INET-ADDRESS-MIB 
        SnmpAdminString
            FROM SNMP-FRAMEWORK-MIB  
        dlinkIndustrialCommon			
			FROM DLINK-ID-REC-MIB;

     
    dlinkSwTelnetMIB MODULE-IDENTITY
        LAST-UPDATED "201304220000Z"
        ORGANIZATION "D-Link Corp."
        CONTACT-INFO
            "         D-Link Corporation
             Postal: No. 289, Sinhu 3rd Rd., Neihu District,
                     Taipei City 114, Taiwan, R.O.C
             Tel:    +886-2-66000123
             E-mail: tsd@dlink.com.tw
            "
        DESCRIPTION
            "This MIB module defines objects for TELNET application."

        REVISION     "201304220000Z"
        DESCRIPTION 
            "First release of this MIB."
        ::= { dlinkIndustrialCommon 40 }

-- -----------------------------------------------------------------------------
    dTelnetNotifications    OBJECT IDENTIFIER ::= { dlinkSwTelnetMIB 0 }
    dTelnetObjects          OBJECT IDENTIFIER ::= { dlinkSwTelnetMIB 1 }
    dTelnetConformance      OBJECT IDENTIFIER ::= { dlinkSwTelnetMIB 2 }

-- -----------------------------------------------------------------------------
    dTelnetServerEnabled OBJECT-TYPE
        SYNTAX          TruthValue
        MAX-ACCESS      read-write
        STATUS  current
        DESCRIPTION
            "This object specifies whether the TELNET server function on
            the device is enabled."
        DEFVAL { true }
        ::= { dTelnetObjects 1 } 
        
    dTelnetServerTcpPort OBJECT-TYPE
        SYNTAX         Unsigned32 (1..65535)
        MAX-ACCESS     read-write
        STATUS         current
        DESCRIPTION
            "This object indicates TCP port for the TELNET server.
            The well-known TCP port for the TELNET server is 23.
            "
        DEFVAL { 23 } 
        ::= { dTelnetObjects 2 }                

    dTelnetSourceInterfaceIndex OBJECT-TYPE
        SYNTAX         InterfaceIndexOrZero
        MAX-ACCESS     read-write
        STATUS         current
        DESCRIPTION
            "This object indicates the ifIndex of the interface whose IP address
            will be used as the source address of packets that initiates a TELNET
            connection.
            A zero value indicates the source interface is not specified and the
            IP address of the closest interface will be used.
            "
        DEFVAL { 0 } 
        ::= { dTelnetObjects 3 } 

-- -----------------------------------------------------------------------------
    dTelnetSessionTable OBJECT-TYPE
        SYNTAX          SEQUENCE OF DTelnetSessionEntry
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
            "This table contains a list of TELNET users."
        ::= { dTelnetObjects 4 }

    dTelnetSessionEntry OBJECT-TYPE
        SYNTAX          DTelnetSessionEntry
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
            "An entry contains the information of a TELNET session."
        INDEX  { dTelnetSessionID }
        ::= { dTelnetSessionTable 1 }

    DTelnetSessionEntry ::=        SEQUENCE {
        dTelnetSessionID                  Unsigned32,
        dTelnetSessionUserName            SnmpAdminString,
        dTelnetSessionUserPrivilegeLvl    Unsigned32,
        dTelnetSessionLoginDuration       Unsigned32,            
        dTelnetSessionHostAddrType        InetAddressType,
        dTelnetSessionHostAddr            InetAddress            
     }  

    dTelnetSessionID OBJECT-TYPE
        SYNTAX          Unsigned32 (0..65535)
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
            "A unique number that identifies the TELNET session."
        ::= { dTelnetSessionEntry 1 }

    dTelnetSessionUserName OBJECT-TYPE
        SYNTAX          SnmpAdminString (SIZE (1..32))
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "This object indicates the name of the TELNET user."
        ::= { dTelnetSessionEntry 2 }
                                    
    dTelnetSessionUserPrivilegeLvl OBJECT-TYPE
        SYNTAX          Unsigned32 (1.. 15)
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "This object indicates the privilege level of the entry."
        ::= { dTelnetSessionEntry 3 }
   
    dTelnetSessionLoginDuration OBJECT-TYPE
        SYNTAX          Unsigned32
        UNITS           "seconds"
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "This object indicates the elapsed time the user has
	        loginned."
        ::= { dTelnetSessionEntry 4 }
    
    dTelnetSessionHostAddrType OBJECT-TYPE
        SYNTAX          InetAddressType    
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "The host address type of the TELNET client.           
            "
        ::= { dTelnetSessionEntry 5 }    

    dTelnetSessionHostAddr OBJECT-TYPE
        SYNTAX          InetAddress    
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "The host address of the TELNET client.           
            "
        ::= { dTelnetSessionEntry 6 }       

-- Conformance
  

    dTelnetCompliances    OBJECT IDENTIFIER ::= { dTelnetConformance 1 }

    dTelnetGroups         OBJECT IDENTIFIER ::= { dTelnetConformance 2 }        
       
       
   dTelnetCompliance MODULE-COMPLIANCE
        STATUS   deprecated
        DESCRIPTION
                "The compliance statement for entities which
                 implement the DLINKSW-TELNET-MIB."
        MODULE MANDATORY-GROUPS { 
            dTelnetConfigGroup,
            dTelnetSessionInfoGroup
        }

       OBJECT          dTelnetSourceInterfaceIndex       
       MIN-ACCESS      read-only
       DESCRIPTION
            "It is compliant to implement this object as read-only. 
            Support for configurable source interface is only
            required on the platform which supports TELNET client."
       
        ::= { dTelnetCompliances 1 }

    dTelnetConfigGroup OBJECT-GROUP
        OBJECTS   {  
            dTelnetServerEnabled,
            dTelnetServerTcpPort,
            dTelnetSourceInterfaceIndex
        }
        STATUS current
        DESCRIPTION 
             "A collection of objects for TELNET configuration."
            ::= { dTelnetGroups 1 }
        
    dTelnetSessionInfoGroup OBJECT-GROUP
        OBJECTS            {   
            dTelnetSessionUserName,
            dTelnetSessionUserPrivilegeLvl, 
            dTelnetSessionLoginDuration,
            dTelnetSessionHostAddrType, 
            dTelnetSessionHostAddr             
        }
        STATUS current
        DESCRIPTION 
            "A collection of objects to display TELNET connection related
            information."
        ::= { dTelnetGroups 2 }
            
   
END