cisco mds 9124 cli学习【1】

来源:互联网 发布:淘宝115会员暗号 编辑:程序博客网 时间:2024/05/16 10:45

1.show version

2.show running-config

3.show interface

4.show running-config diff

这个比较有用,可以看到running比startup多了哪些配置。

比如我的就多了:

sw1# show running-config diff 
*** Startup-config
--- Running-config
***************
*** 72,81 ****
--- 72,82 ----
  interface fc1/20
  interface fc1/21
  interface fc1/22
  interface fc1/23
  interface fc1/24
+ zone default-zone permit vsan 1
  !Full Zone Database Section for vsan 1
  zone name zone-1 vsan 1
      member interface fc1/1 swwn 20:00:00:05:9b:7d:a9:80
      member interface fc1/3 swwn 20:00:00:05:9b:7d:a9:80
      member interface fc1/5 swwn 20:00:00:05:9b:7d:a9:80

5.show running vsan 1

6.保存配置

copy running startup

7.清理配置:

使用write erase命令清理startup-configuration,一旦此命令执行,startup-configuration将恢复出厂设置。running-configuration将不受影响。

The  write erase  command erases the entire startup configuration with the exception of any configuration that affects the loader functionality.意即这个命令不影响装载器功能。

使用write erase boot仅仅清除影响装载器功能的配置,这些配置包括启动变量和管理口IP信息。


8.show users

9.发送消息给用户:

send shutting down the system in 2 minites,please log off.send之后的信息都是消息内容。

10.ping 10.162.2.2  同时也可以ping IPV6。ping命令的选项较多,不再赘述。

11.tracetoute。基本用法同ping。

12.