concept and initial code
This commit is contained in:
16
custom_snmp_script.py
Normal file
16
custom_snmp_script.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
import random
|
||||
import time
|
||||
|
||||
# Initial value
|
||||
value = 1385062
|
||||
|
||||
while True:
|
||||
# Increment the value by a random amount between 0 and 6
|
||||
value += random.randint(0, 6)
|
||||
|
||||
# Output the value in the required format
|
||||
print(f"INTEGER: {value}")
|
||||
|
||||
# Wait for 4 minutes
|
||||
time.sleep(240)
|
||||
Reference in New Issue
Block a user