User manual

8: Command Line Interface
_______________________________________________________________________________________________________
8.5.1 Export an entire configuration
root@VA_router:~# uci export httpd
package 'httpd'
config 'httpd'
option 'port' '80'
option 'home' '/www'
root@VA_router:~#
To show the configuration ‘tree’ for a given config, enter:
root@VA_router:~# uci show httpd
httpd.@httpd[0]=httpd
httpd.@httpd[0].port=80
httpd.@httpd[0].home=/www
root@VA_router:~#
8.5.2 Display just the value of an option
root@VA_router:~# uci get httpd.@httpd[0].port
80
root@VA_router:~#
High level image commands
The image running at present can be shown using the command:
root@VA_router:~# vacmd show current image
The image to run on next reboot can be set using the command:
root@VA_router:~# vacmd set next image [image1|image2|altimage]
root@VA_router:~# reboot
To retrieve new firmware from Activator, enter:
root@VA_router:~# vacmd hdl $$.img altimage
root@VA_router:~# vacmd set next image altimage
root@VA_router:~# reboot
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 39 of 255