Commit 56f776e7 by irul

Update server_info.sh

1 parent c1a82092
...@@ -27,6 +27,7 @@ echo "" ...@@ -27,6 +27,7 @@ echo ""
echo -e "Default Gateway: "`ip route show | sed 's/\(\S\+\s\+\)\?default via \(\S\+\).*/\2/p; d'` echo -e "Default Gateway: "`ip route show | sed 's/\(\S\+\s\+\)\?default via \(\S\+\).*/\2/p; d'`
# echo -e "Server IP: "`hostname -I` # echo -e "Server IP: "`hostname -I`
echo -e "Server IP: "`/sbin/ip -4 a | grep "inet " | tail -n +2 | awk '{print "["NR"] "$7 "=" $2}'` echo -e "Server IP: "`/sbin/ip -4 a | grep "inet " | tail -n +2 | awk '{print "["NR"] "$7 "=" $2}'`
echo -e "WAN/Public IP: "`dig +short myip.opendns.com @resolver1.opendns.com`
echo "" echo ""
echo -e "HDD: "`lsblk -dio SIZE,MODEL,KNAME,TYPE | grep disk|rev|cut -d" " -f2-|rev|awk {'print "["NR"] "$0'}` echo -e "HDD: "`lsblk -dio SIZE,MODEL,KNAME,TYPE | grep disk|rev|cut -d" " -f2-|rev|awk {'print "["NR"] "$0'}`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!