beautypg.com

Example #5: copy nvram: script, Example #6: script validate running-config.scr – D-Link UNIFIED WIRED & WIRELESS ACCESS SYSTEM DWS-3000 User Manual

Page 153

background image

CLI Examples

153

23 Configuration Scripting

Example #5: copy nvram: script

Use this command to upload a configuration script.

(DWS-3024) #copy nvram: script running-config.scr

tftp://192.168.77.52/running-config.scr

Mode......................... TFTP

Set TFTP Server IP........... 192.168.77.52

TFTP Path.................... ./

TFTP Filename................ running-config.scr

Data Type.................... Config Script

Source Filename.............. running-config.scr

Are you sure you want to start? (y/n) y

File transfer operation completed successfully.

Example #6: script validate running-config.scr

(DWS-3024)#script validate running-config.scr

serviceport protocol none

network protocol dhcp

no network javamode

vlan database

exit

configure

exit

logging buffered

logging host 192.168.77.151

Configuration script ‘running-config.scr’ validated.

(DWS-3024)

#script apply running-config.scr

Are you sure you want to apply the configuration script? (y/n) y
The system has unsaved changes.
Would you like to save them now? (y/n) y
Configuration Saved!