Configuration Management via SSH/SCP
Options
Is there a way to copy files via SSH/SCP. We have a large amount of Zyxel USG's and want a Configuration Management, but so far only FTP works for me to transfer the Config. Are there other recommended ways to save the config of many Zyxel Firewalls? I tried via SCP but it seemed not be working. Thanks.
0
All Replies
-
How about using python script to get configuration backup. just one click to download from device.It might reduce your maintenance effort.~~~~~~~~~~~~~~~~~~~~cfg_download.py~~~~~~~~~~~~~~~~~
from ftplib import FTP
#Device info
USG_IP = "192.168.2.1"
ID = "admin"
Password = "12345"
Filename = 'startup-config.conf'
#Log in to USG
ftp = FTP(USG_IP)
ftp.login(user=ID, passwd=Password)
#Change folder and list
ftp.cwd('/conf/')
localfile = open(Filename, 'wb')
ftp.retrbinary('RETR ' + Filename, localfile.write, 1024)
#Connection close
ftp.quit()
localfile.close()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0
Categories
- All Categories
- 384 Beta Program
- 2.1K Nebula
- 117 Nebula Ideas
- 80 Nebula Status and Incidents
- 5.1K Security
- 79 USG FLEX H Series
- 247 Security Ideas
- 1.3K Switch
- 69 Switch Ideas
- 909 WirelessLAN
- 34 WLAN Ideas
- 5.9K Consumer Product
- 209 Service & License
- 335 News and Release
- 71 Security Advisories
- 21 Education Center
- 5 [Campaign] Zyxel Network Detective
- 1.9K FAQ
- 898 Nebula FAQ
- 415 Security FAQ
- 234 Switch FAQ
- 205 WirelessLAN FAQ
- 46 Consumer Product FAQ
- 137 Service & License FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 73 About Community
- 62 Security Highlight