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