CLI to backup D-Link switch configuration by tftp
### activate tftp service on RHEL6
[root@XXX ~]$ vim /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
[root@XXX ~]$ service xinetd restart
### backup D-Link switch configuration by tftp
DES-3552:admin# upload cfg_toTFTP 10.1.1.3 dest_file LS2277.cfg
Command: upload cfg_toTFTP 10.1.1.3 dest_file LS2277.cfg
Connecting to server................... Done.
Upload configuration................... Done.