Netgear XCM8810 Chassis Hardware Installation Guide - Page 1325
configuration, user-written script
View all Netgear XCM8810 Chassis manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 1325 highlights
NETGEAR 8800 Chassis Switch CLI Manual Note: Only the .xsf extension is used. The load script command assumes an .xsf extension and retries opening the file if the file cannot be found with the original specified name or no extension is provided. Example The following command loads the ASCII-formatted configuration named configbackup.xsf: load script configbackup.xsf After issuing this command, the ASCII configuration quickly scrolls across the screen. The following is an example of the type of information displayed when loading the ASCII configuration file: script.meg_upload_config1.xsf.389 # enable snmp access script.meg_upload_config1.xsf.390 # enable snmp traps script.meg_upload_config1.xsf.391 # configure mstp region purple script.meg_upload_config1.xsf.392 # configure mstp revision 3 script.meg_upload_config1.xsf.393 # configure mstp format 0 script.meg_upload_config1.xsf.394 # create stpd s0 The following command loads a user-written script file with the filename "createVlan.xsf" using the two arguments, "red" and "24." The variables are then checked using show var. XCM8810.16 # load script createVlan.xsf red 24 The output resembles the following: Executing EXSH script file: createVlan.xsf ... 1 # set var vlanName $CLI.ARGV1 2 # set var tag $CLI.ARGV2 3 # if ($CLI.ARGC != 0) then 4 # create vlan $vlanName 5 # configure $vlanName tag $tag 6 # else 7 # create log entry "Could not create vlan" 8 # endif * XCM8810.17 # show var Count : 8 variableName variableValue CLI.ARGC 2 CLI.ARGV0 createVlan.xsf CLI.ARGV1 red CLI.ARGV2 24 Appendix A. Configuration and Image Commands | 1325