Abstract
DA50A\DA70A support receiving a reboot command from authorized devices if enabled. This document describes how to send a reboot command from the ST-IPm-8460 to the FlexEdge.
Products
ST-IPm-8460\DA50A\DA70A
Use Case:
When an ST-IPm-8460 is connected to a FlexEdge the ST-IPm-8460 can reboot the FlexEdge if necessary. This document describes ST-IPm-8460 Network 2 port connected to FlexEdge Ethernet 2 port.
- ST-IPm-8460 Network 2 port IP address = 192.168.222.1\24
- FlexEdge Ethernet 2 port IP address = 192.168.222.222\24
Required Software
Sixnet I/O Tool Kit version 5.0.103 or later
Crimson 3.2.0043.0 or later
Red Lion Workbench 1.0.3 or above
Configure Reboot watchdog and configure Firewall in the FlexEdge
- Enable Reboot with port and password. In Crimson 3.2 go to Device Configuration>System Configuration>Services>Watchdog. Enable Remote Reboot. Set the Listen Port to a free port. In this case, the port is set to 777. Set the Password. In this case, the password is set to 444.
- Open Remote Reboot port on the FlexEdge. Go to Device Configuration>System Configuration>Network>Firewall>Untrusted Traffic. In the ‘Custom’ tab add a white list port. Add a label (meaningful name). Set the port to ‘Ethernet 2.’ Set Protocol to ‘TCP.’ Set ‘Start Port‘ and ‘End Port’ to 777 (matches the Remote Reboot Listen port).
Send Reboot command manually from ST-IPm-8460 to the FlexEdge
- Enable User Authentication in the ST-IPm-8460. In the Sixnet I/O Tool Kit go to Configure>Configure Station/Module in the General tab go to Configure Users. Enable user authentication. Set anonymous user to have NO permissions. Click Add User button with all the permissions and set user name and password.
- Enable Telnet and/or SSH in the ST-IPm-8460. In the Sixnet I/O Tool Kit go to Configure>Configure Station/Module in the Advanced tab and in Services enable FTP Telnet and/or SSH. Load the configuration to the ST-IPm-8460.
- Telnet to the ST-IPm-8460. Connect PC to the ST-IPm-8460. Using a terminal program enter ‘Telnet <IP address>’ where ‘<IP address>’ is either Network 1 or Network 2 configured IP address. When the telnet session begins log in using the configured user.
- Type the reboot commands and telnet string. The string is ‘{ sleep 1; echo <Remote Reboot password>; sleep 1; echo REBOOT; } | telnet <IP address> <Remote Reboot Listen Port>’ In this test with the configurations used in this configuration is ‘{ sleep 1; echo 444; sleep 1; echo REBOOT; } | telnet 192.168.222.222 777’
Send Reboot command with Red Lion Workbench with sxlaunch function
Alternatively, the reboot command can be triggered with discrete bit using the sxlaunch function block. The sxlaunch function block can send any linux command. Sending the telnet string above by entering it as a string variable in Red Lion Workbench.
- Trigger telnet string with the sxlaunch function block. Add the sxlaunch function block to the Red Lion Workbench program. The RunControl input is a Boolean input and can be triggered in a variety of ways. In this case “Trigger_Reboot” is a discrete input variable and R_TRIG function block is used to detected the rising edge of “Trigger_Reboot.”
- The “PathOfApplication” input is the telnet string defined above surrounded in single quotes making it a message variable. In this case ‘{ sleep 1; echo 444; sleep 1; echo REBOOT; } | telnet 192.168.222.222 777’ was used. Outputs on the sxlaunch block are optional.
Disclaimer
It is the customer's responsibility to review the advice provided herein and its applicability to the system. Red Lion makes no representation about specific knowledge of the customer's system or the specific performance of the system. Red Lion is not responsible for any damage to equipment or connected systems. The use of this document is at your own risk. Red Lion standard product warranty applies.
Red Lion Technical Support
If you have any questions or trouble contact Red Lion Technical Support by clicking here or calling 1-877-432-9908.
For more information: http://www.redlion.net/support/policies-statements/warranty-statement