Applications
Stop a script that is currently running
IX20 User Guide
468
}
})
client.publish(PREFIX "/system", json.dumps(msg))
runt.start()
serial = runt.get("system.serial")
PREFIX = "router/" + serial
PREFIX_EVENT = "event/" + PREFIX
PREFIX_CMD = "cmd/" + PREFIX
PREFIX_RSP = "rsp/" + PREFIX
client = mqtt.Client()
client.on_connect = on_connect
client.on_message = on_message
try:
client.connect("192.168.1.100", 1883, 60)
client.loop_start()
except:
print("Failed to connect to MQTT server")
sys.exit(1)
while True:
publish_dhcp_leases()
publish_system()
time.sleep(POLL_TIME)
Stop a script that is currently running
You can stop a script that is currently running by using the
command.
Command line
1. Log into the IX20 command line as a user with Admin access.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
admin
to access the Admin CLI.
2. Determine the name of scripts that are currently running:
)> system script stop
0
script1
1
script2
>
3. Stop the appropriate script:
)> system script stop script1
>
4. Save the configuration and apply the change: