MT5680T SNMP配置起步

須要工具

  • telnet | nc
  • snmpwalk for linux 或者
  • iReasoning MIB Brower
  • Huawei OLT MT5680T
  • 一根網線,用來鏈接Linux 到

鏈接方式

網線直連控制板的當前激活版的eth網口 本機地址配置和OLT的地址在同一個網段,好比ifconfig eth0 10.11.1.99 netmask 255.255.255.0 使用telnet 訪問,好比telnet 10.11.1.98 或者使用nc替代telnet,由於前者的命令輸入錯能夠經過backspace刪除,而telnet是沒有辦法的。太不方便。nc 10.11.1.98 23 使用nc須要本身指定端口,這裏的telnet端口爲23。php

當前版本ubuntu的eth0,都改成了這樣的名字,ens6s0。請留意,使用ifconfig先查詢eth0的名字。html

遠程登陸到OLT

用戶名和密碼 ,默認是root/admin123linux

nc 10.11.1.98 23
複製代碼

進入配置模式ubuntu

enable
config
複製代碼

能夠使用命令修改用戶密碼,按照提示便可修改root默認密碼:vim

terminal user password 
複製代碼

配置snmp

snmp命令爲snmp-agent,須要設置snmp版本安全

snmp-agent sys-info version 1
複製代碼

和可讀團體名,版本和團體名稱必須在snmp-client提供,而且必須和snmp-agent內設置的一致。工具

snmp-agent community read public
複製代碼

此處會報一個錯誤:spa

"Failure: The user password must be equal to or more than 8 characters"
複製代碼

須要執行命令,撤銷當前的安全級別:pwa

undo system snmp-user password security
複製代碼

退出。開始客戶端驗證code

客戶端

snmpwalk -v1 -c public 10.11.1.98 .1
複製代碼

你會看到一堆輸出。那就對了。否則就是no response。我遇到的問題就是public團體沒有設置成功緻使的。

連通後能夠作的

換不一樣的參數,看輸出結果。

note from : ixnfo.com/en/oid-and-…

snmpwalk -v 2c -c public 192.168.1.10 .1
複製代碼

The following is a list of OIDs and a brief description of them.

ONT Description:

.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.9
Name lineprofile:

.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.7
Name ont-srvprofile:


.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.8
Optical power ONU:

ONT RX Power:


.3.6.1.4.1.2011.6.128.1.1.2.51.1.4
OLT RX Power:


.1.3.6.1.4.1.2011.6.128.1.1.2.51.1.6
ONT in byte:


.1.3.6.1.4.1.2011.6.128.1.1.4.23.1.4
ONT out byte:


.1.3.6.1.4.1.2011.6.128.1.1.4.23.1.3
ONT Mac/Serial:


.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3
Board temperature:


.3.6.1.4.1.2011.2.6.7.1.1.2.1.10 (hwMusaBoardTemperature)
Slot temperature:


.3.6.1.4.1.2011.6.3.3.2.1.13 (hwSlotTemprature)
Loading of processors of boards:


.3.6.1.4.1.2011.2.6.7.1.1.2.1.5 (hwMusaBoardCpuRate)
Frame power:


.3.6.1.4.1.2011.2.6.7.1.1.1.1.11 (hwMusaFramePower)
Slot table:


.3.6.1.4.1.2011.6.3.3.2 (hwSlotTable)
The status of the link of the GPON ports (Online – 1, Offline – 2):


.3.6.1.4.1.2011.6.128.1.1.2.21.1.10 (hwGponDeviceOltControlStatus)
Vlan status (up/down):


.3.6.1.4.1.2011.5.6.1.2.1.5 (hwVlanInterfaceAdminStatus)
ONT Status (Online – 1, Offline – 2):

.1.3.6.1.4.1.2011.6.128.1.1.2.46.1.15
.1.3.6.1.4.1.2011.6.128.1.1.2.62.1.22 (hwGponDeviceOntEthernetOnlineState)
Optical temperature ONT:


.3.6.1.4.1.2011.6.128.1.1.2.51.1.1 (hwGponOntOpticalDdmTemperature)
The number of mac addresses connected to ONT:


.3.6.1.4.1.2011.6.128.1.1.2.46.1.21 (hwGponDeviceOntControlMacCount)
Distance to ONT:


.3.6.1.4.1.2011.6.128.1.1.2.46.1.20 (hwGponDeviceOntControlRanging)
Uptime OLT:


.3.6.1.2.1.1.3 (sysUpTime)
Total number of SNMP packets to OLT:

.3.6.1.2.1.11.1 (snmpInPkts)
.3.6.1.2.1.11.2 (snmpOutPkts)
A few more OIDs:


hwMaxMacLearn 1.3.6.1.4.1.2011.5.14.1.4.1.6
hwMacExpire 1.3.6.1.4.1.2011.5.14.1.3
hwOpticsMDWaveLength 1.3.6.1.4.1.2011.5.14.6.1.1.15
hwOpticsMDVendorName 1.3.6.1.4.1.2011.5.14.6.1.1.11
hwRingCheckAdminStatus 1.3.6.1.4.1.2011.5.21.1.7
hwVlanInterfaceID 1.3.6.1.4.1.2011.5.6.1.2.1.1
hwVlanInterfaceTable 1.3.6.1.4.1.2011.5.6.1.2
hwVlanName 1.3.6.1.4.1.2011.5.6.1.1.1.2
icmpInEchos 1.3.6.1.2.1.5.8
ipAddrEntry 1.3.6.1.2.1.4.20.1
複製代碼

一個德國的ISP用戶給出的方案

note from : ispforum.cz/viewtopic.p…

"Failure: The user password must be equal to or more than 8 characters"

snazim se nastavim snmp communitu v SmartAX MA5608T (verze: MA5600V800R017C10) a nechce me to pustit pres hlasku pri prikazu: MA5608T(config)#snmp-agent community read public "Failure: The user password must be equal to or more than 8 characters"

projel jsem dokumentaci a nikde nic. Nastavil jsem tedy pro vsechny loginy komplexni heslo o vetsi delce nez 8 znaku. Tovarni nastaveni, nastaveni hesel ale bez zmeny vysledku. Omezeni verze snmp na v1 stale stejna hlaska. Nikde jsem o tom nenasel zadne info. Nejake zkusenosti ci navrhy co vyzkouset?

resi to prikaz:

undo system snmp-user password security
複製代碼

nebot huawei v defaultu vyzaduje komplexnejsi nazvy komunit.

相關文章
相關標籤/搜索