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