===== Provision ONU/ONT ===== Connect through telnet or ssh: Resumed: 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 Detailed: MA5800-X2>enable MA5800-X2#config MA5800-X2(config)#display ont autofind all { || }: Command: display ont autofind all ---------------------------------------------------------------------------- Number : 1 F/S/P : 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 { |access-scenario|desc|fiber-route|ont-type|tcont-group }: 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 { |nni-tpid-index|uni-tpid-index }: 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 ===== Mass remove ===== for i in $(seq 459 510); do echo -e "undo service-port $i\n"; done ont delete 6 all ===== Mass add from cdata ===== cut -d "," pon7.csv -f1,3 | sed -e "s/,/ /" >> p7 while IFS=' ' read -r id serial; do echo -ne 'ont add 6 '$id' sn-auth "'$serial'" omci ont-lineprofile-id 301 ont-srvprofile-id 301\n\n'; done < p7 while IFS=' ' read -r id serial; do echo -ne "ont port native-vlan 6 $id eth 1 vlan 301 priority 0\n\n"; done < p7 while IFS=' ' read -r id serial; do echo -ne "service-port vlan 301 gpon 0/1/6 ont $id gemport 0 multi-service user-vlan 301 tag-transform translate\n\n"; done < p7 ===== Mass add from chima through SGP ===== sed -e 's/0\/2/0\/1/' huawei.txt | sed -e 's/sleep=8/\n/' | sed -e 's/quit/\nquit\n/' | sed -e 's/None//' or cut -d "/" -f3- chima5.csv | cut -d "," -f0-2| sed -e 's/,/ /'> chima5 ===== Mass add from Parks ===== 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 ===== PON name ===== 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