mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
32 lines
1.1 KiB
Bash
Executable file
32 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
BBF_SCRIPTS="/usr/share/bbfdm"
|
|
. /usr/share/libubox/jshn.sh
|
|
|
|
case "$1" in
|
|
list)
|
|
echo '{ "ipping" : { "host": "str", "iface": "str", "ip_proto": "str", "nbr_of_rep": "str", "timeout": "str", "data_size": "str", "dscp": "str", "proto": "str" },
|
|
"nslookup" : { "host": "str", "dns_serevr": "str", "iface": "str", "nbr_of_rep": "str", "timeout": "str", "proto": "str" },
|
|
"udpecho" : { "host": "str", "port":"str", "iface": "str", "ip_proto": "str", "nbr_of_rep": "str", "timeout": "str", "data_size": "str", "dscp": "str", "inter_trans_time":"str", "proto": "str" },
|
|
"serverselection" : { "hostlist": "str", "port":"str", "iface": "str", "ip_proto": "str", "nbr_of_rep": "str", "timeout": "str", "protocol_used": "str", "proto": "str" },
|
|
}'
|
|
;;
|
|
call)
|
|
# read the arguments
|
|
read -r input
|
|
case "$2" in
|
|
ipping)
|
|
sh ${BBF_SCRIPTS}/ipping "${input}"
|
|
;;
|
|
nslookup)
|
|
sh ${BBF_SCRIPTS}/nslookup "${input}"
|
|
;;
|
|
udpecho)
|
|
sh ${BBF_SCRIPTS}/udpecho "${input}"
|
|
;;
|
|
serverselection)
|
|
sh ${BBF_SCRIPTS}/serverselection "${input}"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|