User Tools

Site Tools


huawei

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
huawei [2025/11/15 03:36] protocolhuawei [2026/02/06 09:35] (current) – [PON name] protocol
Line 1: Line 1:
-mass remove+===== Provision ONU/ONT ===== 
 + 
 +Connect through telnet or ssh: 
 + 
 +Resumed: 
 +<code> 
 +enable 
 +config 
 +interface gpon 0/1 
 +ont add 15 sn-auth PRKS-00C18136 omci ont-lineprofile-id 120 ont-srvprofile-id 120 
 +ont port native-vlan 15 8 eth 1 vlan 120 priority 0 
 +quit 
 +service-port vlan 120 gpon 0/1/15 ont 8 gemport 0 multi-service user-vlan 120 tag-transform 
 +quit 
 +save 
 +</code> 
 + 
 +Detailed: 
 +<code> 
 +MA5800-X2>enable 
 +MA5800-X2#config 
 +MA5800-X2(config)#display ont autofind all  
 +{ <cr>||<K> }:  
 + 
 +  Command: 
 +          display ont autofind all 
 +   ---------------------------------------------------------------------------- 
 +   Number              : 1 
 +   F/S/              : 0/1/15 
 +   Ont SN              : 50524B5300C18136 (PRKS-00C18136) 
 +   Password            : 0x31323334353637380000(12345678) 
 +   Loid                : 123456789 
 +   Checkcode           : 123456 
 +   VendorID            : PRKS 
 +   Ont Version         : V1.0 
 +   Ont SoftwareVersion : SFUV1.1.8 
 +   Ont EquipmentID     : FiberLink101 
 +   Ont Customized Info : - 
 +   Ont MAC             : - 
 +   Ont Equipment SN    : - 
 +   Ont autofind time   : 2026-01-18 11:03:51+08:00 
 +   Multi channel       : - 
 +   ---------------------------------------------------------------------------- 
 + 
 +MA5800-X2(config)#interface gpon 0/1 
 +MA5800-X2(config-if-gpon-0/1)#ont add 15 sn-auth PRKS-00C18136 omci ont-lineprofile-id 120 ont-srvprofile-id 120       
 +{ <cr>|access-scenario<K>|desc<K>|fiber-route<K>|ont-type<K>|tcont-group<K> }:  
 + 
 +  Command: 
 +          ont add 15 sn-auth PRKS-00C18136 omci ont-lineprofile-id 120 ont-srvprofile-id 120 
 +  Number of ONTs that can be added: 1, success: 1 
 +  PortID :15, ONTID :8 
 + 
 +MA5800-X2(config-if-gpon-0/1)#ont port native-vlan 15 8 eth 1 vlan 120 priority 0 
 +{ <cr>|nni-tpid-index<K>|uni-tpid-index<K> }:  
 + 
 +  Command: 
 +          ont port native-vlan 15 8 eth 1 vlan 120 priority 0 
 + 
 + 
 +MA5800-X2(config-if-gpon-0/1)#quit 
 +MA5800-X2(config)#service-port vlan 120 gpon 0/1/15 ont 8 gemport 0 multi-service user-vlan 120 tag-transform translate 
 +MA5800-X2(config)#quit 
 +MA5800-X2#save 
 + 
 + 
 +</code> 
 + 
 +===== Mass remove ===== 
 <code> <code>
  
Line 8: Line 77:
 </code> </code>
  
-mass add from cdata+===== Mass add from cdata =====
 <code> <code>
  
Line 21: Line 90:
 </code> </code>
  
-mass add from chima through SGP+===== Mass add from chima through SGP =====
 <code> <code>
  
Line 29: Line 98:
  
 cut -d "/" -f3- chima5.csv | cut -d "," -f0-2| sed -e 's/,/ /'> chima5 cut -d "/" -f3- chima5.csv | cut -d "," -f0-2| sed -e 's/,/ /'> chima5
 +</code>
 +
 +===== Mass add from Parks =====
 +<code>
 +
 +grep -A1 bridge pon0 | grep alias | cut -d " " -f 3,5
 +while IFS=' ' read -r serial pppoe; do echo -ne "ont add 0 sn-auth \"${serial^^}\" omci ont-lineprofile-id 10 ont-srvprofile-id 10 desc \"$pppoe\" \n\n\n"; done < p0
 +for i in $(seq 0 12); do echo -e "ont port native-vlan 0 $i eth 1 vlan 10 priority 0\n";done
 +for i in $(seq 0 12); do echo -e "service-port vlan 10 gpon 0/1/0 ont $i gemport 0 multi-service user-vlan 10 tag-transform translate\n";done
 +
 +grep -B3 router | grep alias | cut -d " " -f 3,5 > p0r
 +while IFS=' ' read -r serial pppoe; do echo -ne "ont add 0 sn-auth \"${serial^^}\" omci ont-lineprofile-id 120 ont-srvprofile-id 120 desc \"$pppoe\" \n\n\n"; done < p0r
 +for i in $(seq 13 57); do echo -e " service-port vlan 120 gpon 0/1/0 ont $i gemport 0 multi-service user-vlan 120 tag-transform translate\n";done
 +
 +</code>
 +
 +===== PON name =====
 +<code>
 +Comment on PON:
 +config
 + port desc 0/1/0 description "TEST"
 +quit
 +save
 +
 +Show unprovisioned:
 +display ont info summary 0/1/0
 +
 +SNMP:
 +snmp-agent community read cipher
 </code> </code>
huawei.1763188616.txt.gz · Last modified: by protocol