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
|
#
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.proto import rfc1157, rfc1905
readClassPDUs = {
rfc1157.GetRequestPDU.tagSet: 1,
rfc1157.GetNextRequestPDU.tagSet: 1,
rfc1905.GetRequestPDU.tagSet: 1,
rfc1905.GetNextRequestPDU.tagSet: 1,
rfc1905.GetBulkRequestPDU.tagSet: 1
}
writeClassPDUs = {
rfc1157.SetRequestPDU.tagSet: 1,
rfc1905.SetRequestPDU.tagSet: 1
}
responseClassPDUs = {
rfc1157.GetResponsePDU.tagSet: 1,
rfc1905.ResponsePDU.tagSet: 1,
rfc1905.ReportPDU.tagSet: 1
}
notificationClassPDUs = {
rfc1157.TrapPDU.tagSet: 1,
rfc1905.SNMPv2TrapPDU.tagSet: 1,
rfc1905.InformRequestPDU.tagSet: 1
}
internalClassPDUs = {
rfc1905.ReportPDU.tagSet: 1
}
confirmedClassPDUs = {
rfc1157.GetRequestPDU.tagSet: 1,
rfc1157.GetNextRequestPDU.tagSet: 1,
rfc1157.SetRequestPDU.tagSet: 1,
rfc1905.GetRequestPDU.tagSet: 1,
rfc1905.GetNextRequestPDU.tagSet: 1,
rfc1905.GetBulkRequestPDU.tagSet: 1,
rfc1905.SetRequestPDU.tagSet: 1,
rfc1905.InformRequestPDU.tagSet: 1
}
unconfirmedClassPDUs = {
rfc1157.GetResponsePDU.tagSet: 1,
rfc1905.ResponsePDU.tagSet: 1,
rfc1157.TrapPDU.tagSet: 1,
rfc1905.ReportPDU.tagSet: 1,
rfc1905.SNMPv2TrapPDU.tagSet: 1
}
|