Quantcast
Channel: VOIP-info.org Page Changes
Viewing all articles
Browse latest Browse all 2667

Bash script to remote reboot some Grandstream phones

$
0
0
Diff from version 1 to 3 (current)

@@ -1 +1,18 @@

+~pp~
+Works with GXP1160 / GXP1165 / GXP2120
+Might work with other Grandstream phones....
 
+Usage:
+#gsreboot {admin_password} {phone_IP}
+
+#cat /usr/local/bin/gsreboot
+
+#!/bin/bash
+sid=$(curl -s -c /tmp/cookies.txt -d"password=${1}" http://${2}/cgi-bin/dologin | sed -r 's|.*"sid" : "([0-9a-z]+)".*|\1|' )
+curl -b /tmp/cookies.txt -d"request=REBOOT&sid=${sid}" http://${2}/cgi-bin/api-sys_operation
+
+~/pp~
+
+!!!!See also
+*((Grandstream Configuration Tool))
+*((Grandstream provisioning in asterisk))
UserCommentTimeVersion
admin2014-03-28 17:303
admin2014-03-28 17:302
laigor2014-03-28 13:161

Viewing all articles
Browse latest Browse all 2667

Trending Articles