linux系统下怎么看光模块温度

linux系统下怎么看光模块温度,第1张

安装psensor进行执行命令,执行后就可监测。
1、在Linux桌面系统中安装psensor。
2、在启动psensor之前,需要先配置lm_sensors和hddtemp。
3、运行以下命令,配置lm_sensors,每一项都选择YES。
4、这个命令将会探查和检测硬件中嵌入的传感器,然后自动决定系统中哪个驱动模块需要载入并监测其温度。

show hw-module subslot 4/0 transceiver 1 idprom
或者
show hw-module subslot 4/0 transceiver 1 idprom detail

华为5700系列交换机为例,查看光模块信息命令如下:
查看指定端口光模块的常规、制造、告警以及诊断信息。
<HUAWEI> display transceiver interface gigabitethernet 0/0/1 verbose
gigabitethernet0/0/1 transceiver information:
-------------------------------------------------------------
Common information:
Transceiver Type :1000_BASE_SX_SFP
Connector Type :LC
Wavelength(nm) :850
Transfer Distance(m) :300(50um),150(625um)
Digital Diagnostic Monitoring :YES
Vendor Name :SumitomoElectric
Vendor Part Number :HFBR-5710L
Ordering Name :
-------------------------------------------------------------
Manufacture information:
Manu Serial Number :88K056C10353
Manufacturing Date :2008-08-08
Vendor Name :SumitomoElectric
-------------------------------------------------------------
Diagnostic information:
Temperature(°C) :2600
Temp High Threshold(°C) :8500
Temp Low Threshold(°C) :-4000
Voltage(V) :329
Volt High Threshold(V) :364
Volt Low Threshold(V) :295
Bias Current(mA) :457
Bias High Threshold(mA) :900
Bias Low Threshold(mA) :200
RX Power(dBM) :-4000
RX Power High Threshold(dBM) :000
RX Power Low Threshold(dBM) :-1699
TX Power(dBM) :-503
TX Power High Threshold(dBM) :-222
TX Power Low Threshold(dBM) :-699
-------------------------------------------------------------
其中:RX Power(dBM)
光模块接收功率。当接收功率为0瓦时,显示为-Inf。
RX Power High Threshold(dBM)
光模块接收功率上限。
RX Power low Threshold(dBM)
光模块接收功率下限。
TX Power(dBM)
光模块发送功率。当发送功率为0瓦时,显示为-Inf。
TX Power High Threshold(dBM)
光模块发送功率上限。
TX Power Low Threshold(dBM)
光模块发送功率下限。

我们可以通过以下步骤来判断光模块是否是华为定制的:
1、华为定制光模块的标签上都有“HUAWEI”字样的标签,无该标签的为非华为定制光模块。
2、使用display transceiver命令查看光模块信息,如果显示厂商Vendor Name不是“HUAWEI”,那么该光模块不是华为定制光模块。
3、查看是否存在非定制光模块告警
用户视图下,执行命令terminal monitor命令开启终端信息显示功能;系统视图下,执行命令undo transceiver phony-alarm-disable打开非定制光模块告警开关。
如果光模块是非定制光模块,则从插入开始,按照阶梯时间发送Trap告警。间隔分别为:10分钟,1个小时,5个小时,最终达到24个小时告警一次。最差的情况,24小时内会告警一次。Trap信息如下(可通过display trapbuffer命令查看):
BASETRAP/1/ENTITYINVALID: OID[ 1361412011525129219 ] Physical entity failed (EntityPhysicalIndex=70107918, BaseTrapSeverity=6, BaseTrapProbableCause=136192, BaseTrapEventType=5, EntPhysicalContainedIn=69992457, EntPhysicalName="GigabitEthernet11/0/12", RelativeResource="", ReasonDescription="It has been observed that a transceiver has been installed that is not certified by Huawei Ethernet Switch Huawei cannot ensure that it is completely adaptive and will not cause any adverse effects If it is continued to be used, Huawei is not obligated to provide support to remedy defects or faults arising out of or resulting from installing and using of the non-certified transceiver“)
或者
ENTITYTRAP/3/OPTICALINVALID:OID [1361412011525219245] Optical Module is invalid(Index=[INTEGER], EntityPhysicalIndex=[INTEGER], PhysicalName=\"[OCTET]\", EntityTrapFaultID=[136192])
4、对于某些造假、仿冒的光模块,它们的信息往往是批量复制的,这些光模块的序列号往往都一样。因此,可以使用display transceiver命令观察批量光模块信息,看它们的序列号(Manu Serial Number)是否一样。如果一样,说明光模块是仿冒的、非华为定制的。

是会有命令的。
交换机的所有的端口都挂接在这条背部总线上,当控制电路收到数据包以后,处理端口会查找内存中的地址对照表以确定目的MAC(网卡的硬件地址)的NIC(网卡)挂接在哪个端口上,通过内部交换矩阵迅速将数据包传送到目的端口。目的MAC若不存在,交换机才广播到所有的端口,接收端口回应后交换机会“学习”新的地址,并把它添加入内部地址表中。
可见,交换机在收到某个网卡发过来的“信件”时,会根据上面的地址信息,以及自己掌握的“常住居民户口簿”快速将信件送到收信人的手中。万一收信人的地址不在“户口簿”上,交换机才会像集线器一样将信分发给所有的人,然后从中找到收信人。而找到收信人之后,交换机会立刻将这个人的信息登记到“户口簿”上,这样以后再为该客户服务时,就可以迅速将信件送达了。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/13273867.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-07-05
下一篇 2023-07-05

发表评论

登录后才能评论

评论列表(0条)

保存