shutdown
Hi,
is there a way to shutting down the USG60 without doing the standard steps via browser (login>maintenance>reboot) ?
In event of electrical supply trouble I'd like to switch off the firewall very quickly to prevent hardware damages (I have already replaced TWO USG 100 for this reason!)
For example, it would be wonderful from my smarthphone have a special link to run directly the shutting down.
Any ideas or suggestion?
Thanks
Best regards
Accepted Solution
-
Hi @Franc,
Yes, it is a right way to switch off the USG by entering the command "shutdown" via SSH.
5
All Replies
-
Thank-you very much @mMontana @lalaland @Zyxel_Emily
Best regards
0 -
Maybe you should look at getting a UPS.
0 -
I have the UPS of course.
But the right question is why these pro devices don’t support an ups link!
I am pretty angry because these firewalls are too delicate, just a few sudden stops to damage them.
0 -
Scripting a terminal emulator? Never tried but could be possible.
0 -
How about using python script to perform this task, and add it to windows scheduler run?
Please don't run this script from wan since it is just simple telnet without encryption.
(Replace them with your device ip, ID, and password.
----------------------------shutdown.py-------------------------------------
import telnetlib
#Log in info
USG_IP = "192.168.2.1"
ID = "admin"
Password = "12345"
tn = telnetlib.Telnet(USG_IP, timeout=1)
#Set debug level if need
#tn.set_debuglevel(2)
#Telnet Log In
tn.read_until("Username:")
tn.write(ID + "\n")
tn.read_until("Password:")
tn.write(Password + "\n")
#Put your command here
tn.write("shutdown\n")
tn.write("exit\n")
#print
print tn.read_all()
--------------------------------------------------------------------------------
1 -
Suggest SSH not Telnet outside LAN1.
0 -
thank-you very much guys I'll try and I let you know
0 -
As you suggested I try with SSH, no third party client needed on MacOS.
I successfully logged in via SSH and I simply wrote "shutdown". The USG immediately has switched off. Very good!!
I wrote:
"ssh username@host"
"password"
"shutdown"
One more thing, is this way a RIGHT way to switch off the USG as the standard way via web interface? Or rather, does the USG switch off correctly without damages?
Thank-you very much!
0
Categories
- All Categories
- 415 Beta Program
- 2.3K Nebula
- 141 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 218 USG FLEX H Series
- 262 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1K Wireless
- 39 Wireless Ideas
- 6.3K Consumer Product
- 245 Service & License
- 382 News and Release
- 81 Security Advisories
- 27 Education Center
- 8 [Campaign] Zyxel Network Detective
- 3.1K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight