mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2026-01-14 03:01:42 +00:00
Update serverinformation.sh
This commit is contained in:
@ -101,4 +101,12 @@ echo " " >> $LOG
|
||||
echo "## Docker Containers" >> $LOG
|
||||
sudo docker ps -a >> $LOG
|
||||
|
||||
echo " " >> $LOG
|
||||
echo "## DNS Server Details" >> $LOG
|
||||
cat /etc/resolv.conf >> $LOG
|
||||
|
||||
echo "" >> $LOG
|
||||
echo "## Server Uptime" >> $LOG
|
||||
uptime >> $LOG
|
||||
|
||||
sudo cp /tmp/asset/`hostname`.txt /Inventory/`hostname`-`date "+%Y-%m-%d"`.txt
|
||||
|
||||
Reference in New Issue
Block a user