The Cisco Nexus 1000V provides you with the capability to change the switch name, configure messages of the day, and display, save, and erase configuration files
Changing the Switch Name
Use this procedure to change the switch name or prompt from the default (switch#) to another character string.
If the VSM is connected to the OpenStack controller, then this procedure also changes the Dynamic Vectoring and Streaming
(DVS) engine that the VSM is managing. If you make an error when renaming the DVS, a syslog is generated and the DVS on the OpenStack controller continues to use the old DVS name.
Before You Begin
Before beginning this procedure, you must be logged in to the CLI in configuration mode.
Procedure
Command or Action
Purpose
Step 1
switch(config)#
switchname
Changes the switch prompt.
switch(config)# switchname metro
metro(config)# exit
metro#
Configuring a Message of the Day
Use this procedure to configure a message of the day (MOTD) to display before the login prompt on the terminal when a user logs in.
The banner message can be up to 40 lines with up to 80 characters per line.
Use the following guidelines when choosing your delimiting character:
Do not use the delimiting-character in the message string.
Do not use " and % as delimiters.
The following tokens can be used in the the message of the day:
$(hostname) displays the host name for the switch.
$(line) displays the vty or tty line or name.
Before You Begin
Before beginning this procedure, you must be logged in to the CLI in configuration mode.
Configures a banner message of the day with the following features:
Up to 40 lines
Up to 80 characters per line
Enclosed in delimiting character, such as #
Can span multiple lines
Can use tokens
Step 2
switch(config)# show banner motd
Displays the configured banner message.
switch(config)# banner motd #April 16, 2011 Welcome to the svs#
switch(config)# show banner motd
April 16, 2011 Welcome to the Switch
Saving a Configuration
Use this procedure to save the running configuration to the startup configuration so that your changes are retained in the configuration file the next time you start the system.
Before You Begin
Before beginning this procedure, you must be logged in to the CLI in any command mode.
Procedure
Command or Action
Purpose
Step 1
switch# copy running-config startup-config
(Optional)
Saves the change persistently through reboots and restarts by copying the running configuration to the startup configuration.
switch# copy run start
[########################################] 100%
switch#
Erasing a Configuration
Use this procedure to erase a startup configuration.
Caution
The write erase command erases the entire startup configuration with the exception of loader functions, the license configuration, and the certificate extension configuration
Before You Begin
Before beginning this procedure, you must be logged in to the CLI in any command mode.
Procedure
Command or Action
Purpose
Step 1
switch# write erase [boot | debug]
The existing startup configuration is completely erased and all settings revert to their factory defaults.
The running configuration is not affected.
The following parameters are used with this command:
boot: Erases the boot variables and the mgmt0 IP configuration.
debug: Erases the debug configuration.
switch# write erase debug
Verifying the Configuration
Use the following commands to verify the configuration of interfaces, system settings, and hardware and software versions. For detailed information, including sample output, see the Cisco Nexus 1000V for KVM Command Reference.
Command
Description
show version
Displays the versions of system software and hardware that are currently running on the switch.
show running-config
Displays the versions of system software and hardware that are currently running on the switch.
show running-config diff
Displays the difference between the startup configuration and the running configuration currently on the switch.
show interface {type} {name} brief
Displays a brief version of information about the specified interface configuration.
show interface {type} {name}
Displays details about the specified interface configuration.
show interface brief
Displays a brief version of all interface configurations on your system.
show running-config interface
Displays the running configuration for all interfaces on your system.