网线直连控制板的当前激活版的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
用户名和密码 ,默认是root/admin123linux
nc 10.11.1.98 23
进入配置模式ubuntu
enable config
能够使用命令修改用户密码,按照提示便可修改root默认密码:vim
terminal user password
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 : https://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
note from : https://ispforum.cz/viewtopic...
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.