]> git.stg.codes - stg.git/blob - stglibs/smux.lib/RFC1157-SNMP.asn1
All right in GetParamValue and GetPropertyValue
[stg.git] / stglibs / smux.lib / RFC1157-SNMP.asn1
1
2 -- WinAgents MIB Extraction Wizard\r
3 -- Extracted from rfc1157.txt 16.03.2005 20:20:14\r
4 \r
5 RFC1157-SNMP DEFINITIONS ::= BEGIN\r
6 \r
7  IMPORTS\r
8      ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks\r
9          FROM RFC1155-SMI;\r
10 \r
11 \r
12      -- top-level message\r
13 \r
14      Message ::=\r
15              SEQUENCE {\r
16                  version          -- version-1 for this RFC\r
17                      INTEGER {\r
18                          version-1(0)\r
19                      },\r
20 \r
21                  community        -- community name\r
22                      OCTET STRING,\r
23 \r
24                  data             -- e.g., PDUs if trivial\r
25                      ANY          -- authentication is being used\r
26              }\r
27 \r
28 \r
29      -- protocol data units\r
30 \r
31      PDUs ::=\r
32              CHOICE {\r
33                          get-request\r
34                              GetRequest-PDU,\r
35 \r
36                          get-next-request\r
37                              GetNextRequest-PDU,\r
38 \r
39                          get-response\r
40                              GetResponse-PDU,\r
41 \r
42                          set-request\r
43                              SetRequest-PDU,\r
44 \r
45                          trap\r
46                              Trap-PDU\r
47                      }\r
48 \r
49 \r
50 \r
51 \r
52      -- PDUs\r
53 \r
54      GetRequest-PDU ::=\r
55          [0]\r
56              IMPLICIT PDU\r
57 \r
58      GetNextRequest-PDU ::=\r
59          [1]\r
60              IMPLICIT PDU\r
61 \r
62      GetResponse-PDU ::=\r
63          [2]\r
64              IMPLICIT PDU\r
65 \r
66      SetRequest-PDU ::=\r
67          [3]\r
68              IMPLICIT PDU\r
69 \r
70      PDU ::=\r
71              SEQUENCE {\r
72                 request-id\r
73                      INTEGER,\r
74 \r
75                  error-status      -- sometimes ignored\r
76                      INTEGER {\r
77                          noError(0),\r
78                          tooBig(1),\r
79                          noSuchName(2),\r
80                          badValue(3),\r
81                          readOnly(4),\r
82                          genErr(5)\r
83                      },\r
84 \r
85                  error-index       -- sometimes ignored\r
86                     INTEGER,\r
87 \r
88                  variable-bindings -- values are sometimes ignored\r
89                      VarBindList\r
90              }\r
91 \r
92      Trap-PDU ::=\r
93          [4]\r
94             IMPLICIT SEQUENCE {\r
95                  enterprise        -- type of object generating\r
96                                    -- trap, see sysObjectID in [5]\r
97 \r
98 \r
99                      OBJECT IDENTIFIER,\r
100 \r
101                  agent-addr        -- address of object generating\r
102                      NetworkAddress, -- trap\r
103 \r
104                  generic-trap      -- generic trap type\r
105                      INTEGER {\r
106                          coldStart(0),\r
107                          warmStart(1),\r
108                          linkDown(2),\r
109                          linkUp(3),\r
110                          authenticationFailure(4),\r
111                          egpNeighborLoss(5),\r
112                          enterpriseSpecific(6)\r
113                      },\r
114 \r
115                  specific-trap  -- specific code, present even\r
116                      INTEGER,   -- if generic-trap is not\r
117                                 -- enterpriseSpecific\r
118 \r
119                  time-stamp     -- time elapsed between the last\r
120                      TimeTicks, -- (re)initialization of the  network\r
121                                 -- entity and the generation of the trap\r
122 \r
123                   variable-bindings -- "interesting" information\r
124                      VarBindList\r
125              }\r
126 \r
127 \r
128      -- variable bindings\r
129 \r
130      VarBind ::=\r
131              SEQUENCE {\r
132                  name\r
133                      ObjectName,\r
134 \r
135                  value\r
136                      ObjectSyntax\r
137              }\r
138 \r
139     VarBindList ::=\r
140              SEQUENCE OF\r
141                 VarBind\r
142 \r
143     END