Information About Configuration Management
The Cisco Nexus 1000V enables you to change the switch name, configure messages of the day, and display, save, and erase configuration files.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
The Cisco Nexus 1000V enables you to change the switch name, configure messages of the day, and display, save, and erase configuration files.
Use this procedure to change the switch name or prompt from the default (switch#) to another character string.
Log in to the CLI in configuration mode.
Command or Action | Purpose |
---|---|
switch(config)# switchname |
Changes the switch prompt. |
switch(config)# switchname metro
metro(config)# exit
metro#
Refreshing the switch extension manager in the SCVMM updates the newly configured switchname.
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.
Log in to the CLI in configuration mode.
Command or Action | Purpose | |
---|---|---|
Step 1 |
switch(config)# banner motd [delimiting-character message delimiting-character] |
Configures a banner message of the day with the following features:
|
Step 2 |
switch(config)# show banner motd |
Displays the configured banner message. |
switch(config)# banner motd #WELCOME TO NEXUS 1K SWITCH#
switch(config)# show banner motd
April 16, 2011 WELCOME TO NEXUS 1K SWITCH
Verifying the Configuration
Use this command to view the versions of software and hardware on your system, for example, to verify the version before and after an upgrade.
Log in to the CLI EXEC mode.
Command or Action | Purpose |
---|---|
switch# show version |
Displays the versions of system software and hardware that are currently running on the switch, |
switch# show version
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
http://www.gnu.org/licenses/gpl.html.
Software
loader: version unavailable [last: loader version not available] kickstart: version 5.2(1)SM1(5.1)
system: version 5.2(1)SM1(5.1)
kickstart image file is: bootflash:///ks.bin
kickstart compile time: 2/21/2013 2:00:00 [02/21/2013 14:26:28] system image file is: bootflash:///isan.bin
system compile time: 2/21/2013 2:00:00 [02/28/2013 23:43:11]
Hardware
cisco Nexus 1000V Chassis ("Virtual Supervisor Module") Intel(R) Xeon(R) CPU with 2064844 kB of memory. Processor Board ID T155DE9D105
Device name: n1000v
bootflash: 3122988 kB
Kernel uptime is 0 day(s), 2 hour(s), 11 minute(s), 48 second(s)
plugin
Core Plugin, Ethernet Plugin, Virtualization Plugin
Log in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
switch# show running-config |
Displays the versions of system software and hardware that are currently running on the switch. |
switch# show running-config
!Command: show running-config !Time: Wed Feb 27 04:20:09 2013
version 5.2(1)SM1(5.1) switchname switch
Subject: Highlight
Date: 2/27/2013 3:19:38 AM
feature telnet
feature private-vlan
feature lacp
feature network-segmentation-manager
Subject: Sticky Note
Date: 2/27/2013 4:45:03 AM
username admin password 5 $1$L75HP9p7$RvRF16RbWWVYUHIxYmOxn/
role network-admin banner motd #WELCOME TO NEXUS 1K SWITCH#
ip domain-lookup
ip host switch 10.105.225.235
errdisable recovery cause failed-port-state vem 3
host hypervisor id 34261424-B7B4-E011-BD1D-30E4DBC2B7F0
snmp-server user admin network-admin auth md5
0x6ab9b965d7f25e0fe23baa92b6ad2725 priv 0x6ab9b965d7f25e0fe23baa92b6ad2725
localizedkey rmon event 1 log trap public description FATAL(1) owner PMON@FATAL
rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL
rmon event 3 log trap public description ERROR(3) owner PMON@ERROR
rmon event 4 log trap public description WARNING(4) owner PMON@WARNING
rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO
vrf context management
ip route 0.0.0.0/0 10.105.225.225
vlan 1,320,322
lacp offload
port-channel load-balance ethernet source-mac
port-profile default max-ports 32
port-profile type vethernet NSM_template_vlan
no shutdown
guid a6959973-0491-4a96-bf66-e5480d815967
description NSM default port-profile for VLAN networks.
Do not delete. state enabled
port-profile type vethernet NSM_template_segmentation
no shutdown
guid 382ffa93-adcd-49ff-9c6a-929b8ca59dfb
description NSM default port-profile for VXLAN networks.
Do not delete. state enabled
port-profile type ethernet LACP-Policy channel-group auto mode active
no shutdown
guid 581ff47c-e255-44a7-bc35-824f51536c1a max-ports 512
state enabled
port-profile type ethernet uplink_network_default_policy
no shutdown
guid 30dcb6a8-88b1-4dad-98bf-eaab570d0d51 max-ports 512
description NSM created profile. Do not delete. state enabled
port-profile type vethernet vm_eth1
no shutdown
guid d50369db-2fed-405d-ad84-a6bf89718d2c publish port-profile
state enabled
port-profile type ethernet LACP-Uplink inherit port-profile LACP-Policy
switchport mode trunk
switchport trunk allowed vlan 320,322 no shutdown
guid dd2f105c-c1ea-4cfe-a203-612dcbc77ef9 max-ports 512
description NSM created profile. Do not delete.
state enabled
port-profile type vethernet
dynpp_d50369db-2fed-405d-ad84-a6bf89718d2c_f006e797-da04-4f29-9a0f-901294bc8b8f
Verifying the Interface Configuration
Before beginning this procedure, you must be logged in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
switch# show interface {type} {name} brief |
Displays a brief version of information about the specified interface configuration. |
switch# show interface mgmt 0 brief
--------------------------------------------------------------------------------
Port VRF Status IP Address Speed MTU
--------------------------------------------------------------------------------
mgmt0 -- up 10.105.225.235 -- 1500
switch#
Log in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
switch# show interface {type} {name} |
Displays details about the specified interface configuration. |
switch# show interface mgmt 0
mgmt0 is up
Hardware: Ethernet, address: 0015.5de1.ed17 (bia 0015.5de1.ed17)
Internet Address is 10.105.225.235/27
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA
auto-duplex, auto-speed
Auto-Negotiation is turned on
1 minute input rate 3680 bits/sec,
2 packets/sec 1 minute output rate 256 bits/sec,
0 packets/sec Rx
7405 input packets 1633 unicast packets 409 multicast packets
5363 broadcast packets 1423662 bytes Tx
1196 output packets 1088 unicast packets
54 multicast packets
54 broadcast packets 145425 bytes
switch#
Log in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
switch# show interface brief |
Displays a brief version of all interface configurations on your system. |
switch# show interface brief
--------------------------------------------------------------------------------
Port VRF Status IP Address Speed MTU
--------------------------------------------------------------------------------
mgmt0 -- up 10.105.225.235 -- 1500
--------------------------------------------------------------------------------
Ethernet VLAN Type Mode Status Reason Speed Port
Interface Ch #
--------------------------------------------------------------------------------
Eth3/1 1 eth trunk up none 1000 1
Eth3/2 1 eth trunk up none 1000 1
Eth3/3 1 eth trunk up none 1000 1
Eth3/4 1 eth trunk up none 1000 1
--------------------------------------------------------------------------------
Port-channel VLAN Type Mode Status Reason Speed Protocol
Interface
--------------------------------------------------------------------------------
Po1 1 eth trunk up none a-1000(D) lacp
--------------------------------------------------------------------------------
Vethernet VLAN Type Mode Status Reason Speed
--------------------------------------------------------------------------------
Veth1 322 virt access up none auto
Veth2 322 virt access up none auto
--------------------------------------------------------------------------------
Port VRF Status IP Address Speed MTU
--------------------------------------------------------------------------------
control0 -- up -- -- 1500
switch#
The output for the command, show running-config interface displays the running configuration for all interfaces on your system. This command differs from the output of the show interface command, which displays a brief version of information about the specified interface configuration.
Log in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
switch# show running-config interface |
Displays the running configuration for all interfaces on your system. |
switch# show running-config interface
!Command: show running-config interface !Time: Wed Feb 27 04:24:15 2013
version 5.2(1)SM1(5.1)
interface port-channel1
inherit port-profile LACP-Uplink vem 3
interface mgmt0
ip address 10.105.225.235/27
interface Vethernet1
inherit port-profile dynpp_d50369db-2fed-405d-ad84-a6bf89718d2c_3cc3a7e3
-eafb-4802-b401-ba71088954ef description TEST1-01, Network Adapter
dvport uuid "100ebf18-7d60-4c31-b1fd-fdeb021a8d11--a2e00c38-b97f-4f61-ae09
-f15d2fa60082"
interface Vethernet2
inherit port-profile dynpp_d50369db-2fed-405d-ad84-a6bf89718d2c_3cc3a7e3
-eafb-4802-b401-ba71088954ef description TEST1-01, Network Adapter
dvport uuid "100ebf18-7d60-4c31-b1fd-fdeb021a8d11--e7d82b14-8ca5-489e
-8a26-8f2b59b31ead"
interface Ethernet3/1
inherit port-profile LACP-Uplink
interface Ethernet3/2
inherit port-profile LACP-Uplink
interface Ethernet3/3
inherit port-profile LACP-Uplink
interface Ethernet3/4
inherit port-profile LACP-Uplink
interface control0
no snmp trap link-status
switch#
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.
Log in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
switch(config)# copy running-config startup-config |
Saves the change persistently through reboots and restarts by copying the running configuration to the startup configuration. |
switch# copy run start
[########################################] 100%
switch#
Caution |
The write erase command erases the entire startup configuration with the exception of loader functions, the license configuration, and the certificate extension configuration |
Log in to the CLI in any command mode.
Command or Action | Purpose |
---|---|
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:
|
switch# write erase debug
Feature Name |
Releases |
Feature Information |
---|---|---|
Configuration Management |
5.2(1)SM1(5.1) |
This feature was introduced. |