/usr/lib/python3/dist-packages/pysnmp/smi/mibs/instances/__SNMP-FRAMEWORK-MIB.py is in python3-pysnmp4 4.2.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | import time
( MibScalarInstance, ) = mibBuilder.importSymbols(
'SNMPv2-SMI',
'MibScalarInstance'
)
( snmpEngineID,
snmpEngineBoots,
snmpEngineTime,
snmpEngineMaxMessageSize ) = mibBuilder.importSymbols(
'SNMP-FRAMEWORK-MIB',
'snmpEngineID',
'snmpEngineBoots',
'snmpEngineTime',
'snmpEngineMaxMessageSize'
)
__snmpEngineID = MibScalarInstance(snmpEngineID.name, (0,), snmpEngineID.syntax)
__snmpEngineBoots = MibScalarInstance(snmpEngineBoots.name, (0,), snmpEngineBoots.syntax.clone(1))
__snmpEngineTime = MibScalarInstance(snmpEngineTime.name, (0,), snmpEngineTime.syntax.clone(int(time.time())))
__snmpEngineMaxMessageSize = MibScalarInstance(snmpEngineMaxMessageSize.name, (0,), snmpEngineMaxMessageSize.syntax.clone(4096))
mibBuilder.exportSymbols(
'__SNMP-FRAMEWORK-MIB',
snmpEngineID = __snmpEngineID,
snmpEngineBoots = __snmpEngineBoots,
snmpEngineTime = __snmpEngineTime,
snmpEngineMaxMessageSize = __snmpEngineMaxMessageSize
)
|