Home/Support/Support Forum/How to reboot Digi WR44 from Python
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to reboot Digi WR44 from Python

0 votes
I am trying to reboot the Digi Transport WR44 which is based on the DigiSaros operating system.

I am using the sarcli module to get access to the device command interpreter and I have been able to use this interface to issue simple commands such as ping a remote device.

When I try to send a reboot command, it appears to be ignored. In simple terms the program looks like :

import sarcli

cli = sarcli.open()
cmd = "reboot"
cli.write(cmd)
response = cli.read()
cli.close()

I get the response "OK" suggesting the command has been accepted.

While looking around I did find a "basic" script which seemed to be using the command "boot a=r" but this might not have been a SarOS based router.

Does anyone know why this does not seem to work ?
asked Mar 16, 2016 in 3rd Party Python and API development in other Languages by brownlieig New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Hi

I have just tried that code on a wr44 and the device rebooted.

are you waiting long enough for it as this does a clean up before rebooting. depending on what else the router is doing can take a little while

regards
answered Mar 17, 2016 by James.Wilson Veteran of the Digi Community (1,225 points)
...