summaryrefslogtreecommitdiff
path: root/MIBS/transition/TN-HTTPS-MIB
blob: 241e7070999444540282d3d19b6e6ff6a35e66d9 (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
220
221
222
223
224
225
226
227
228
229
230
231
-- *****************************************************************
-- TN-HTTPS-MIB
--
-- Copyright (c) 2013, Transition Networks Inc.
-- All rights reserved.
-- *****************************************************************
TN-HTTPS-MIB DEFINITIONS ::= BEGIN

IMPORTS
    Unsigned32
        FROM SNMPv2-SMI
    TruthValue,DisplayString
        FROM SNMPv2-TC
    InetAddressType, InetAddress
        FROM INET-ADDRESS-MIB
    tnDevMgmt
        FROM TN-MGMT-MIB;

tnHttpsMib         OBJECT IDENTIFIER ::= { tnDevMgmt 41 }

--
-- sub HTTPS
--

tnHttpsConfig              OBJECT IDENTIFIER ::= { tnHttpsMib 1 }
tnHttpsCertGene            OBJECT IDENTIFIER ::= { tnHttpsMib 2 }

-- HTTPS Configuration

tnHttpsConfigMode           OBJECT-TYPE
    SYNTAX                  TruthValue
    MAX-ACCESS              read-write
    STATUS                  current
    DESCRIPTION
        "Indicates the HTTPS mode operation. When the
         current connection is HTTPS, to apply HTTPS
         disabled mode operation will automatically
         redirect web browser to an HTTP connection.
         Possible modes are:
         Enabled: Enable HTTPS mode operation.
         Disabled: Disable HTTPS mode operation."
    ::= { tnHttpsConfig 1 }

tnHttpsConfigAutoRedirect   OBJECT-TYPE
    SYNTAX                  TruthValue
    MAX-ACCESS              read-write
    STATUS                  current
    DESCRIPTION
        "Indicates the HTTPS redirect mode operation.
         It only significant if HTTPS mode 'Enabled' is
         selected. Automatically redirects web browser
         to an HTTPS connection when both HTTPS mode
         and Automatic Redirect are enabled. Possible
         modes are:
         Enabled: Enable HTTPS redirect mode operation.
         Disabled: Disable HTTPS redirect mode operation."
    ::= { tnHttpsConfig 2 }

-- HTTPS Certificate Generate

tnHttpsCertGenerate         OBJECT-TYPE
    SYNTAX                  INTEGER {
                                rsa(1),
                                dsa(2)
                            }
    MAX-ACCESS              read-write
    STATUS                  current
    DESCRIPTION
        "The Generate dropdown lets you select RSA or DSA
         as the public key algorithm. RSA: Generate an RSA
         key. Uses the RSA internet encryption and
         authentication system. DSA: Generate a DSA key.
         Uses the digital signature algorithm (DSA). When
         done, click the Generate button to generate the
         certificate as defined at the Generate dropdown.
         Depending on the encryption method selected (RSA or
         DSA) here, the HTTPS Certificate > View section
         displays one of two signature algorithms in effect,
         either:
         Signature Algorithm: dsaWithSHA1,
         or
         Signature Algorithm: sha1WithRSAEncryption."
    ::= { tnHttpsCertGene 1 }

-- HTTPS Certificate Load

tnHttpsCertLoadTable        OBJECT-TYPE
    SYNTAX                  SEQUENCE OF TnHttpsCertLoadEntry
    MAX-ACCESS              not-accessible
    STATUS                  current
    DESCRIPTION
        "Lets you select a new HTTPS certificate and load
         it.
         The information of this table should be sent in
         a network entry through snmpset command."
    ::= { tnHttpsMib 3 }

tnHttpsCertLoadEntry        OBJECT-TYPE
    SYNTAX                  TnHttpsCertLoadEntry
    MAX-ACCESS              not-accessible
    STATUS                  current
    DESCRIPTION
        "Each entry represents an excution of HTTPS
         certificate loading."
    INDEX { tnHttpsCertLoadId }
    ::= { tnHttpsCertLoadTable 1 }

TnHttpsCertLoadEntry     ::= SEQUENCE {
    tnHttpsCertLoadId       Unsigned32,
    tnHttpsCertLoadAddrType InetAddressType,
    tnHttpsCertLoadAddr     InetAddress,
    tnHttpsCertLoadFileName DisplayString,
    tnHttpsCertLoadStatus   TruthValue,
    tnHttpsCertLastLoad     INTEGER
}

tnHttpsCertLoadId           OBJECT-TYPE
    SYNTAX                  Unsigned32
    MAX-ACCESS              not-accessible
    STATUS                  current
    DESCRIPTION
        "The index of HTTPS certificate load."
    ::= { tnHttpsCertLoadEntry 1 }

tnHttpsCertLoadAddrType     OBJECT-TYPE
    SYNTAX                  InetAddressType
    MAX-ACCESS              read-create
    STATUS                  current
    DESCRIPTION
        "Address type of host. For a detailed description
         of this type, please refer to INET-ADDRESS-MIB.
         Because we cannot access the hostname of the load
         file dirctly, so we assume the return value is
         unknown(0)."
    ::= { tnHttpsCertLoadEntry 2 }

tnHttpsCertLoadAddr         OBJECT-TYPE
    SYNTAX                  InetAddress
    MAX-ACCESS              read-create
    STATUS                  current
    DESCRIPTION
        "Address of host. For a detailed description of this
         type, please refer to INET-ADDRESS-MIB.
         Because we cannot access the hostname of the load
         file dirctly, so we return nothing."
    ::= { tnHttpsCertLoadEntry 3 }

tnHttpsCertLoadFileName     OBJECT-TYPE
    SYNTAX                  DisplayString (SIZE (1..64))
    MAX-ACCESS              read-create
    STATUS                  current
    DESCRIPTION
        "Absolute filename on the local file system for loading
         HTTPS certificate.
         Because we cannot access to the load file dirctly, so
         we return nothing."
    ::= { tnHttpsCertLoadEntry 4 }

tnHttpsCertLoadStatus       OBJECT-TYPE
    SYNTAX                  TruthValue
    MAX-ACCESS              read-create
    STATUS                  current
    DESCRIPTION
        "When uploading files of HTTPS certificate, the loading
         status of HTTPS certificate must keep enabled temporarily.
         Otherwise, the status will be disabled.
         "
    ::= { tnHttpsCertLoadEntry 5 }

tnHttpsCertLastLoad         OBJECT-TYPE
    SYNTAX                  INTEGER {
                                true(1),
                                false(2)
                            }
    MAX-ACCESS              read-only
    STATUS                  current
    DESCRIPTION
        "The result of uploaded HTTPS certificate last time. If
         HTTPS certificate uploaded success last time, the result
         is true. Otherwise, the result must be false."
    ::= { tnHttpsCertLoadEntry 6 }

-- HTTPS Certificate View

tnHttpsCertViewTable        OBJECT-TYPE
    SYNTAX                  SEQUENCE OF TnHttpsCertViewEntry
    MAX-ACCESS              not-accessible
    STATUS                  current
    DESCRIPTION
        "Displays the current HTTPS certificate (see above).
         Each certificate contains Data and a Signature
         Algorithm."
    ::= { tnHttpsMib 4 }

tnHttpsCertViewEntry        OBJECT-TYPE
    SYNTAX                  TnHttpsCertViewEntry
    MAX-ACCESS              not-accessible
    STATUS                  current
    DESCRIPTION
        "Each entry represents a part of HTTPS certificate
         message."
    INDEX { tnHttpsCertId }
    ::= { tnHttpsCertViewTable 1 }

TnHttpsCertViewEntry    ::= SEQUENCE {
    tnHttpsCertId           Unsigned32,
    tnHttpsCertMessage      DisplayString
}

tnHttpsCertId               OBJECT-TYPE
    SYNTAX                  Unsigned32
    MAX-ACCESS              not-accessible
    STATUS                  current
    DESCRIPTION
        "The index of HTTPS certificate.
         Each index represets the corresponding line number
         of HTTPS certificate, so the maximum index is the max
         line number of HTTPS certificate."
    ::= { tnHttpsCertViewEntry 1 }

tnHttpsCertMessage          OBJECT-TYPE
    SYNTAX                  DisplayString (SIZE (1..255))
    MAX-ACCESS              read-only
    STATUS                  current
    DESCRIPTION
        "A part of HTTPS certificate mseeage.
         Each part message represets a line of certificate
         mseeage in the corresponding line number and ended by
         'NL'. The ASCII value of 'NL' is equal to 10."
    ::= { tnHttpsCertViewEntry 2 }
END