mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 02:27:52 +00:00 
			
		
		
		
	Adding systeminfo
This commit is contained in:
		| @@ -389,6 +389,13 @@ validateconfig() { | ||||
|     jq < ${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} | ||||
| } | ||||
|  | ||||
| shopt -s nocasematch | ||||
| case "$1" in | ||||
|     "login") login; help  ; logout ;; | ||||
| @@ -423,6 +430,7 @@ case "$1" in | ||||
|     "addconfigmetrics") login; addconfigmetrics "$2" ; logout;; | ||||
|     "addconfigfile") login; addconfigfile "$2" ; logout;; | ||||
|     "validateconfig") login; validateconfig "$2"; logout;; | ||||
|     "systeminfo") login; systeminfo ; logout;; | ||||
|     *) help ;; | ||||
| esac | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959