Commit 7e1bed90 by irul

Update server_info.sh

1 parent d470f52a
...@@ -25,8 +25,8 @@ echo -e "Uptime: "`uptime | awk '{print $3,$4}' | sed 's/,//'` ...@@ -25,8 +25,8 @@ echo -e "Uptime: "`uptime | awk '{print $3,$4}' | sed 's/,//'`
echo "" echo ""
# 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 "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: "`/sbin/ip -4 a | grep "inet " | tail -n +2 | awk '{print "["NR"] "$7 "=" $2}'`
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!