华为交换机操作命令
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
1) display access-user 查看在线用户信息
<nanfang_sizhong>display access-user
------------------------------------------------------------------------------
UserID Username IP address MAC
------------------------------------------------------------------------------
16007 admin 10.228.8.226 -
------------------------------------------------------------------------------
Total 1,1 printed
2)display local-user 查看本地用户信息
[nanfang_sizhong]display local-user
----------------------------------------------------------------------------
User-name State AuthMask AdminLevel
----------------------------------------------------------------------------
admin A T 15
admin123 A T 15
----------------------------------------------------------------------------
Total 2 user(s)
3) 创建用户名密码
[nanfang_sizhong]user-interface vty 0 14
[nanfang_sizhong-ui-vty0-14]authentication-mode password
4)display user-interface maximum-vty 查看telnet用户的最大数目
[nanfang_sizhong]display user-interface maximum-vty
Maximum of VTY user:15 最大用户数是15个
5)创建管理帐户
[nanfang_sizhong]aaa
[nanfang_sizhong-aaa]local-user yiyucheng password cipher yiyucheng 创建用户yiyucheng,密码yiyucheng
[nanfang_sizhong-aaa]local-user yiyucheng service-type telnet 用户yiyucheng登陆方式为Telnet
[nanfang_sizhong-aaa]local-user yiyucheng privilege level 15 用户yiyucheng权限级别为15级 (取值越大,级别越高)。不同级别的用户登录后,只能使用等于或低于自己级别的命令。
6)display history-command all-users 查询所有操作记录
7)display diagnostic-information stat 东西显示的很全,需要自行翻页查找(包含光模块发光功率和接收功率,有些光模块不支持查询光功率)
XGigabitEthernet2/0/4 transceiver information:
-------------------------------------------------------------
Common information:
Transceiver Type :10GBBASE_LRM_SFP
Connector Type :LC
Wavelength(nm) :1270
Transfer Distance(m) :40000(9um)
Digital Diagnostic Monitoring :YES
Vendor Name :OEM
Vendor Part Number :OPSPB231X3CDL40
Ordering Name :
-------------------------------------------------------------
Manufacture information:
Manu. Serial Number :A23451110001
Manufacturing Date :2015-11-02
Vendor Name :OEM
-------------------------------------------------------------
Alarm information:
-------------------------------------------------------------
D
iagnostic info
rmation:
Temperature(°C) :47
Voltage(V) :3.23
Bias Current(mA) :37.45
Bias High Threshold(mA) :110.00
Bias Low Threshold(mA) :1.00
Current Rx Power(dBM) :-9.80
Default Rx Power High Threshold(dBM) :3.00
Default Rx Power Low Threshold(dBM) :-20.00
Current Tx Power(dBM) :2.31
Default Tx Power High Threshold(dBM) :8.00
Default Tx Power Low Threshold(dBM) :-2.00
User Set Rx Power High Threshold(dBM) :3.00
User Set Rx Power Low Threshold(dBM) :-20.00
User Set Tx Power High Threshold(dBM) :8.00
User Set Tx Power Low Threshold(dBM) :-2.00