nexues 7000基本操作

一、基本查看状态命令

show version     获取软/硬件信息
show module     验证模块状态
reload module 1重启或关闭模块
show module uptime 确定每个模块已运行时间
show module fabric    确定每个功能模块状态
show hardware fabric-utilization 查看当前模块使用情况
show environment fan 查看机箱风扇和电源风扇的状态
show environment power 查看功率的预算及使用
show environment temperature    查看每个模块温度值(若minor==major数值相同,snmp将会发送报警信息)
show system redundancy status    查看active/standby和HA的管理状态
system switchover    强制standby转换为active状态
show interface brief
show interface switchport
show interface trunk
show running-config
show startup-config
copy running-config  startup-config  保存当前运行配置
write erase    删除启动配置(清除配置)
attach module 1    登陆到一个模块(exit或$登出模块)

二、许可证安装及功能管理

show license host-id  显示host-id 用于在cisco.com创建许可文件
install license bootflash:license_file.lic  安装许可证
license grace-period  启用宽限期许可证,延期高达120天
show license usage     验证安装的许可证
show license usage LAN_ENTERPRISE_SERVICES_PKG
show license file mds20080623110250757.lic    显示一个许可证文件(如果已安装)
feature bgp/...     启用或禁用功能
show feature     查看功能状态

三、软件升级两种

1.ISSU 不中断升级

  拷贝NX-OS系统镜像到FLASH,并用一条命令升级
    install all kickstart bootflash:n7000-s1-kickstart.4.0.3.bin system bootflash:n7000-s1-dk9.4.0.3.bin
    ISSU服务中软件升级服务,可在没有任何停机或数据包丢失的情况下完成升级和修复问题
2.冷启动
    dir    查看flash中文件
    show boot    查看引导参数
    boot kickstart bootflash:n7000-s1-kickstart.4.0.1.bin sup1 sup2
    reload 手动重启
    sup1/sup2(Supervisor):引擎是一块板卡,和接口板差不多,引擎上面一般也有接口,比较少,还有console口,模块化的交换机如果没有接口板可以工作,但没有引擎是不能工作的。

查看BIOS和EPLD版本
    show version module 1    模块BIOS版本
    show version module 1 epld    模块EPLD版本
    show version fan 1 epld    风扇EPLD版本
    show version xbar 1 epld    交换矩阵EPLD版本
    EPLD: ( Erasable Programmable Logic Device) 可擦除可编辑逻辑器件 是一种集成电路,包括一系列的编程逻辑器件,其无需进行再次连接。

四、恢复密码

1.如果存在2个管理引擎,那么断电或拆除其中一个。
2.用console线连接活跃状态的管理引擎,然后重启整个设备。
3.当系统重新启动过程中,看到如下提示时“Loading system software”同时按下“CRTL+]”键组合。
4.应该出现“switch(boot)#” kickstart image 提示。
5.使用“config t” 和“admin-password xxxxxxx”命令配置管理密码并exit推出配置模式。
6.加载NX-OS 使用“load bootflash:NX-OS” 命令。
7.登陆NX-OS 使用新的“admin”密码。
8.再次更改“admin” 密码以便同步 SNMPv3。
9.保存running-configuration到startup-configuration
10.安装之前断电或拆除的引擎。

五、常用配置

1.清空配置重启
    write erase
    reload

2.配置Banner
    banner motd^xxxxxxxxxxxxxxxxxxxx^

3.保存配置
    copu running-config startup-config
    不支持wr保存

4.查看文件系统
    dir                查看本地flash
    dir log:            查看log存储(注意加冒号)
    dir logflash:    查看外部log存储

5.配置电源冗余
    power redundancy-mode combined              无冗余
 

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值