2018年2月2日

Cisco NX-OS CLI - Part1

Cisco IOS CLICisco NX-OS CLI
Default User Prompt
c6500>n7000#
Entering Configuration Mode
c6500# configure terminaln7000# configure terminal
Saving the Running Config to the Startup Config (nvram)
c6500# write memory
or
c6500# copy running-config startup-config
n7000# copy running-config startup-config
Erasing the startup config (nvram)
c6500# write erasen7000# write erase
Installing a License
Cisco IOS Software does not require a license file installation.n7000# install license bootflash:license_file.lic
Interface Naming Convention
interface Ethernet 1/1
interface FastEthernet 1/1
interface GigabitEthernet 1/1
interface TenGigabitEthernet 1/1
interface Ethernet 1/1
Default VRF Configuration (management)
Cisco IOS Software doesn’t enable VRFs by default.vrf context management
Configuring the Software Image Boot Variables
boot system flash sup-bootdisk:s72033-ipservicesk9_wan-mz.122-33.SXH1.binboot kickstart bootflash:/n7000-s1-kickstart.4.0.4.bin sup-1
boot system bootflash:/n7000-s1-dk9.4.0.4.bin sup-1
boot kickstart bootflash:/n7000-s1-kickstart.4.0.4.bin sup-2
boot system bootflash:/n7000-s1-dk9.4.0.4.bin sup-2
Enabling Features
Cisco IOS Software does not have the functionality to enable or disable features.feature ospf
Enabling TELNET (SSHv2 is recommended)
Cisco IOS Software enables TELNET by default.feature telnet
Configuring the Console Timeout
line console 0
exec-timeout 15 0
login
line console
exec-timeout 15
Configuring the VTY Timeout and Session Limit
line vty 0 9
session-limit 10
exec-timeout 15 0
login
line vty
session-limit 10
exec-timeout 15

Verification Command Comparison
The following table compares some useful show commands for verifying the initial system startup and running configuration.

Cisco NX-OSCisco IOS SoftwareCommand Description
show running-configshow running-configDisplays the running configuration
show startup-configshow startup-configDisplays the startup configuration
---
show interfaceshow interfaceDisplays the status for all of the interfaces
show interface ethernet show interface <int type>Displays the status for a specific interface
show interface mgmt 0-Displays the status for the mgmt interface
---
show bootshow bootDisplays the current boot variables
---
show clockshow clockDisplays the system clock and time zone configuration
show clock detailshow clock detailDisplays the summer-time configuration
---
show environmentshow environmentDisplays all environment parameters
show environment clockshow environment status clockDisplays clock status for A/B and active clock
show environment fanshow environment cooling fan-trayDisplays fan status
show environment powershow powerDisplays power budget
show environment temperatureshow environment temperatureDisplays environment data
---
show feature-Displays the features and routing processes enabled
---
show log logfileshow logDisplays the local log
show log nvram-Displays persistent log messages (severity 0-2) stored in NVRAM
show moduleshow moduleDisplays installed modules and their status
show module uptime-Displays how long each module has be powered up
show module fabric-Displays fabric modules and their current status
show platform fabric-utilizationshow fabric utilizationDisplays the % of fabric utilized per module
show process cpushow process cpuDisplays the processes running on the CPU
show process cpu historyshow process cpu historyDisplays the process history of the CPU in chart form
show process cpu sortedshow process cpu sortedDisplays sorted processes running on the CPU
---
show system cores-Displays the core dump files if present
show system exception-infoshow exceptionDisplays last exception log
show system redundancy statusshow redundancyDisplays the supervisors High Availability status
show system resourcesshow process cpuDisplays CPU and memory usage data
show system uptime-Displays system and kernel start time (Displays active supervisor uptime)
---
show tech-supportshow tech-supportDisplays system technical information for Cisco TAC
show tech-support show tech-support Displays feature specific technical information for Cisco TAC
---
show versionshow versionDisplays running software version, basic hardware, CMP status and system uptime
---
show lineshow lineDisplays console and auxiliary port information
show line com1-Displays auxiliary port information
show line consoleshow line console 0Displays console port information
show line console connected-States if the console port is physically connected
show terminalshow terminalDisplays terminal settings
show usersshow usersDisplays current virtual terminal settings
---
show vrfshow ip vrfDisplays a list of all configured VRFs
show vrf show ip vrf Displays an specified VRF
show vrf  detailshow vrf detail Displays details for a specified
show vrf  interface-Displays interface assignment for a specified VRF
show vrf default-Displays a summary of the default VRF
show vrf detailshow vrf detailDisplays details for all VRF's
show vrf interfaceshow ip vrf interfaceDisplays VRF interface assignment
show vrf management-Displays a summary of the management VRF
---
show license-Displays all license file information
show license brief-Displays the license file names installed
show license file -Displays license contents based on a specified name
show license host-id-Displays the chassis Host-ID used for creating a license
show license usage-Displays all licenses used by the system
show license usage -Displays all licenses used by the system per type
show license usage vdc-all-Displays all licenses used by the system for all VDCs
---
show vdc-Displays a list of the configured VDC's
show vdc -Displays a summary of the individual VDC
show vdc  detail-Displays configuration details for a specific VDC
show vdc  membership-Displays interface membership for a specific VDC
show vdc  resource-Displays resource allocation for a specific VDC
show vdc current-vdc-Displays the VDC that the user is currently in
show vdc detail-Displays details information for all VDCs
show vdc membership-Displays interface membership for all VDCs
show vdc resources-Displays resource allocation for all VDCs

0 回應:

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.