Configuration Management via SSH/SCP
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
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 276 USG FLEX H Series
- 276 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 74 Security Highlight