Using the cli to implement configuration changes – IronPort Systems 4108GL User Manual
Page 86
5-4
Switch Memory and Configuration
Using the CLI To Implement Configuration Changes
S
w
it
ch
Me
m
o
ry
an
d
Co
nf
igur
at
io
n
"permanent". When you are satisfied that the change is satisfactory, you can
make it permanent by executing the
write memory
command. For example,
suppose you use the following command to disable port 5:
HP4108(config)# interface ethernet 5 disable
The above command disables port 5 in the running-config file, but not in the
startup-config file. Port 5 remains disabled only until the switch reboots. If
you want port 5 to remain disabled through the next reboot, use
write memory
to save the current running-config file to the startup-config file in flash
memory.
HP4108(config)# write memory
Storing and Retrieving Configuration Files.
You can store or retrieve a
backup copy of the startup-config file on another device. For more informa-
tion, see appendix A, "Transferring an Operating System or Startup-Config
File"
Using the CLI To Implement
Configuration Changes
The CLI offers these capabilities:
■
Access to the full set of switch configuration features
■
The option of testing configuration changes before making them perma-
nent
How To Use the CLI To View the Current Configuration Files.
Use
show
commands to view the configuration for individual features, such as port
status or Spanning Tree Protocol. However, to view either the entire startup-
config file or the entire running-config file, use the following commands:
■
show startup-config
: Displays the current startup-config file.
■
write terminal
: Displays the current running-config file.
N o t e
The
show startup-config
and
write terminal
commands display the configuration
settings that differ from the switch’s factory-default configuration.