# $language = "VBScript" | |
# $interface = "1.0" | |
Sub SendApplicationCommand(shell_command) | |
crt.Screen.Send shell_command & VbCr & VbCr | |
crt.sleep 1000 | |
End Sub | |
Sub main | |
pon_ni = inputbox("PON NI: [0-15]" ) | |
onu = inputbox("ONU ID: [0-127]" ) | |
SendApplicationCommand "/api/oper object=gpon_onu sub=set_onu_state pon_ni=" & pon_ni & " onu_id=" & onu & " onu_state=active" | |
crt.sleep 5 | |
End Sub |