pari: trunk r200 - /trunk/gui_configs/gui_sysinfo

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Dec 28 14:25:31 MST 2006


Author: pari
Date: Thu Dec 28 15:25:30 2006
New Revision: 200

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=200
Log:
gui_sysinfo script now writes to a file in the webserver bkps folder instead of writing to a config file, I have the sysinfo.html changes done accordingly .. look for a following post 

Modified:
    trunk/gui_configs/gui_sysinfo

Modified: trunk/gui_configs/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/trunk/gui_configs/gui_sysinfo?view=diff&rev=200&r1=199&r2=200
==============================================================================
--- trunk/gui_configs/gui_sysinfo (original)
+++ trunk/gui_configs/gui_sysinfo Thu Dec 28 15:25:30 2006
@@ -1,39 +1,28 @@
 #!/bin/sh
-/bin/echo "[uname]" > /etc/asterisk/gui_sysinfo.conf
-UNAME="`/bin/uname -srmpio`"
-/bin/echo "output =  $UNAME "  >> /etc/asterisk/gui_sysinfo.conf
+UNAME="`uname -a`"
+/bin/echo "<div id=si_uname>$UNAME</div>" > /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+                
+UPTIME="`uptime`"
+/bin/echo "<div id=si_uptime>$UPTIME</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+                  
+ASTERISK="`/usr/sbin/asterisk -V`"
+/bin/echo "<div id=si_astver>$ASTERISK</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+                
+TODAY="`date`"
+/bin/echo "<div id=si_date>$TODAY</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
 
+HOSTNAME="`hostname -f`"
+/bin/echo "<div id=si_hostname>$HOSTNAME</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+     
+IFCONFIG=`ifconfig`
+/bin/echo "<div id=si_ifconfig>$IFCONFIG</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+                         
+DISKUSAGE=`df -h`
+/bin/echo "<div id=si_du>$DISKUSAGE</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+                        
+MEMORYUSAGE=`free`
+/bin/echo "<div id=si_free>$MEMORYUSAGE</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
 
-/bin/echo "[uptime]" >> /etc/asterisk/gui_sysinfo.conf
-UPTIME="`/usr/bin/uptime`"
-/bin/echo "output = $UPTIME" >> /etc/asterisk/gui_sysinfo.conf
-
-/bin/echo "[asterisk]" >> /etc/asterisk/gui_sysinfo.conf
-ASTERISK="`/usr/sbin/asterisk -V`"
-/bin/echo "output = $ASTERISK" >> /etc/asterisk/gui_sysinfo.conf
-
-
-/bin/echo "[today]" >> /etc/asterisk/gui_sysinfo.conf
-TODAY="`/bin/date`"
-/bin/echo "output = $TODAY" >> /etc/asterisk/gui_sysinfo.conf
-
-
-/bin/echo "[hostname]" >> /etc/asterisk/gui_sysinfo.conf
-HOSTNAME="`/bin/hostname -f`"
-/bin/echo "output = $HOSTNAME" >> /etc/asterisk/gui_sysinfo.conf
-
-/bin/echo "[ifconfig]" >> /etc/asterisk/gui_sysinfo.conf
-IFCONFIG=`/sbin/ifconfig | sed -e "s/^/output = /g"`
-/bin/echo "$IFCONFIG" >> /etc/asterisk/gui_sysinfo.conf 
-
-
-/bin/echo "[du]" >> /etc/asterisk/gui_sysinfo.conf
-DISKUSAGE=`/bin/df -h | sed -e "s/^/output = /g"`
-/bin/echo "$DISKUSAGE" >> /etc/asterisk/gui_sysinfo.conf 
-
-/bin/echo "[free]" >> /etc/asterisk/gui_sysinfo.conf
-MEMORYUSAGE=`/bin/free | sed -e "s/^/output = /g"`
-/bin/echo "$MEMORYUSAGE" >> /etc/asterisk/gui_sysinfo.conf 
 
 THISMONTH=`/bin/date +%b`
 THISDAY=`/bin/date +%d`



More information about the asterisk-gui-commits mailing list