File: IPV6-TCP-MIB.py

package info (click to toggle)
python-pysnmp4-mibs 0.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 12,116 kB
  • ctags: 23,168
  • sloc: python: 47,088; sh: 50; makefile: 18
file content (65 lines) | stat: -rw-r--r-- 7,842 bytes parent folder | download | duplicates (3)
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
# PySNMP SMI module. Autogenerated from smidump -f python IPV6-TCP-MIB
# by libsmi2pysnmp-0.1.3 at Mon Apr  2 20:39:13 2012,
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)

# Imports

( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
( Ipv6Address, Ipv6IfIndexOrZero, ) = mibBuilder.importSymbols("IPV6-TC", "Ipv6Address", "Ipv6IfIndexOrZero")
( ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup")
( Bits, Integer32, ModuleIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, experimental, mib_2, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Integer32", "ModuleIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "experimental", "mib-2")

# Objects

tcp = MibIdentifier((1, 3, 6, 1, 2, 1, 6))
ipv6TcpConnTable = MibTable((1, 3, 6, 1, 2, 1, 6, 16))
if mibBuilder.loadTexts: ipv6TcpConnTable.setDescription("A table containing TCP connection-specific information,\nfor only those connections whose endpoints are IPv6 addresses.")
ipv6TcpConnEntry = MibTableRow((1, 3, 6, 1, 2, 1, 6, 16, 1)).setIndexNames((0, "IPV6-TCP-MIB", "ipv6TcpConnLocalAddress"), (0, "IPV6-TCP-MIB", "ipv6TcpConnLocalPort"), (0, "IPV6-TCP-MIB", "ipv6TcpConnRemAddress"), (0, "IPV6-TCP-MIB", "ipv6TcpConnRemPort"), (0, "IPV6-TCP-MIB", "ipv6TcpConnIfIndex"))
if mibBuilder.loadTexts: ipv6TcpConnEntry.setDescription("A conceptual row of the ipv6TcpConnTable containing\ninformation about a particular current TCP connection.\nEach row of this table is transient, in that it ceases to\nexist when (or soon after) the connection makes the transition\nto the CLOSED state.\n\nNote that conceptual rows in this table require an additional\nindex object compared to tcpConnTable, since IPv6 addresses\nare not guaranteed to be unique on the managed node.")
ipv6TcpConnLocalAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 6, 16, 1, 1), Ipv6Address()).setMaxAccess("noaccess")
if mibBuilder.loadTexts: ipv6TcpConnLocalAddress.setDescription("The local IPv6 address for this TCP connection. In\nthe case of a connection in the listen state which\nis willing to accept connections for any IPv6\naddress associated with the managed node, the value\n::0 is used.")
ipv6TcpConnLocalPort = MibTableColumn((1, 3, 6, 1, 2, 1, 6, 16, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("noaccess")
if mibBuilder.loadTexts: ipv6TcpConnLocalPort.setDescription("The local port number for this TCP connection.")
ipv6TcpConnRemAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 6, 16, 1, 3), Ipv6Address()).setMaxAccess("noaccess")
if mibBuilder.loadTexts: ipv6TcpConnRemAddress.setDescription("The remote IPv6 address for this TCP connection.")
ipv6TcpConnRemPort = MibTableColumn((1, 3, 6, 1, 2, 1, 6, 16, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("noaccess")
if mibBuilder.loadTexts: ipv6TcpConnRemPort.setDescription("The remote port number for this TCP connection.")
ipv6TcpConnIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 6, 16, 1, 5), Ipv6IfIndexOrZero()).setMaxAccess("noaccess")
if mibBuilder.loadTexts: ipv6TcpConnIfIndex.setDescription("An index object used to disambiguate conceptual rows in\nthe table, since the connection 4-tuple may not be unique.\n\nIf the connection's remote address (ipv6TcpConnRemAddress)\nis a link-local address and the connection's local address\n(ipv6TcpConnLocalAddress) is not a link-local address, this\nobject identifies a local interface on the same link as\nthe connection's remote link-local address.\n\nOtherwise, this object identifies the local interface that\nis associated with the ipv6TcpConnLocalAddress for this\nTCP connection.  If such a local interface cannot be determined,\nthis object should take on the value 0.  (A possible example\nof this would be if the value of ipv6TcpConnLocalAddress is ::0.)\n\nThe interface identified by a particular non-0 value of this\nindex is the same interface as identified by the same value\nof ipv6IfIndex.\n\nThe value of this object must remain constant during the life\nof the TCP connection.")
ipv6TcpConnState = MibTableColumn((1, 3, 6, 1, 2, 1, 6, 16, 1, 6), Integer().subtype(subtypeSpec=SingleValueConstraint(4,6,7,8,5,11,9,12,1,10,2,3,)).subtype(namedValues=NamedValues(("closed", 1), ("closing", 10), ("timeWait", 11), ("deleteTCB", 12), ("listen", 2), ("synSent", 3), ("synReceived", 4), ("established", 5), ("finWait1", 6), ("finWait2", 7), ("closeWait", 8), ("lastAck", 9), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipv6TcpConnState.setDescription("The state of this TCP connection.\n\nThe only value which may be set by a management station is\ndeleteTCB(12).  Accordingly, it is appropriate for an agent\nto return an error response (`badValue' for SNMPv1, 'wrongValue'\nfor SNMPv2) if a management station attempts to set this\nobject to any other value.\n\nIf a management station sets this object to the value\ndeleteTCB(12), then this has the effect of deleting the TCB\n(as defined in RFC 793) of the corresponding connection on\nthe managed node, resulting in immediate termination of the\nconnection.\nAs an implementation-specific option, a RST segment may be\nsent from the managed node to the other TCP endpoint (note\nhowever that RST segments are not sent reliably).")
ipv6TcpMIB = ModuleIdentity((1, 3, 6, 1, 3, 86)).setRevisions(("1998-01-29 00:00",))
if mibBuilder.loadTexts: ipv6TcpMIB.setOrganization("IETF IPv6 MIB Working Group")
if mibBuilder.loadTexts: ipv6TcpMIB.setContactInfo("       Mike Daniele\n\nPostal: Compaq Computer Corporation\n        110 Spitbrook Rd\n        Nashua, NH 03062.\n        US\n\nPhone:  +1 603 884 1423\nEmail:  daniele@zk3.dec.com")
if mibBuilder.loadTexts: ipv6TcpMIB.setDescription("The MIB module for entities implementing TCP over IPv6.")
ipv6TcpConformance = MibIdentifier((1, 3, 6, 1, 3, 86, 2))
ipv6TcpCompliances = MibIdentifier((1, 3, 6, 1, 3, 86, 2, 1))
ipv6TcpGroups = MibIdentifier((1, 3, 6, 1, 3, 86, 2, 2))

# Augmentions

# Groups

ipv6TcpGroup = ObjectGroup((1, 3, 6, 1, 3, 86, 2, 2, 1)).setObjects(*(("IPV6-TCP-MIB", "ipv6TcpConnState"), ) )
if mibBuilder.loadTexts: ipv6TcpGroup.setDescription("The group of objects providing management of\nTCP over IPv6.")

# Compliances

ipv6TcpCompliance = ModuleCompliance((1, 3, 6, 1, 3, 86, 2, 1, 1)).setObjects(*(("IPV6-TCP-MIB", "ipv6TcpGroup"), ) )
if mibBuilder.loadTexts: ipv6TcpCompliance.setDescription("The compliance statement for SNMPv2 entities which\nimplement TCP over IPv6.")

# Exports

# Module identity
mibBuilder.exportSymbols("IPV6-TCP-MIB", PYSNMP_MODULE_ID=ipv6TcpMIB)

# Objects
mibBuilder.exportSymbols("IPV6-TCP-MIB", tcp=tcp, ipv6TcpConnTable=ipv6TcpConnTable, ipv6TcpConnEntry=ipv6TcpConnEntry, ipv6TcpConnLocalAddress=ipv6TcpConnLocalAddress, ipv6TcpConnLocalPort=ipv6TcpConnLocalPort, ipv6TcpConnRemAddress=ipv6TcpConnRemAddress, ipv6TcpConnRemPort=ipv6TcpConnRemPort, ipv6TcpConnIfIndex=ipv6TcpConnIfIndex, ipv6TcpConnState=ipv6TcpConnState, ipv6TcpMIB=ipv6TcpMIB, ipv6TcpConformance=ipv6TcpConformance, ipv6TcpCompliances=ipv6TcpCompliances, ipv6TcpGroups=ipv6TcpGroups)

# Groups
mibBuilder.exportSymbols("IPV6-TCP-MIB", ipv6TcpGroup=ipv6TcpGroup)

# Compliances
mibBuilder.exportSymbols("IPV6-TCP-MIB", ipv6TcpCompliance=ipv6TcpCompliance)