mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2026-01-27 10:23:12 +00:00
Finishing FMS dash board
This commit is contained in:
@@ -179,6 +179,20 @@ devicereport() {
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
fmsversion() {
|
||||
curl ${FLAGS} -X GET "https://${UCENTRALFMS}/api/v1/system?command=version" \
|
||||
-H "accept: application/json" \
|
||||
-H "Authorization: Bearer ${token}" > ${result_file}
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
fmstimes() {
|
||||
curl ${FLAGS} -X GET "https://${UCENTRALFMS}/api/v1/system?command=times" \
|
||||
-H "accept: application/json" \
|
||||
-H "Authorization: Bearer ${token}" > ${result_file}
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
|
||||
help() {
|
||||
echo
|
||||
@@ -197,6 +211,8 @@ case "$1" in
|
||||
"connecteddevices") login; connecteddevices ; logout ;;
|
||||
"connecteddevice") login; connecteddevice "$2" ; logout ;;
|
||||
"devicereport") login; devicereport; logout ;;
|
||||
"fmsversion") login; fmsversion; logout ;;
|
||||
"fmstimes") login; fmstimes; logout ;;
|
||||
*) help ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user