Skip to content

Commit 28b2124

Browse files
authored
Update serverinformation.sh
1 parent 73dfba0 commit 28b2124

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

serverinformation.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,12 @@ echo " " >> $LOG
101101
echo "## Docker Containers" >> $LOG
102102
sudo docker ps -a >> $LOG
103103
104+
echo " " >> $LOG
105+
echo "## DNS Server Details" >> $LOG
106+
cat /etc/resolv.conf >> $LOG
107+
108+
echo "" >> $LOG
109+
echo "## Server Uptime" >> $LOG
110+
uptime >> $LOG
111+
104112
sudo cp /tmp/asset/`hostname`.txt /Inventory/`hostname`-`date "+%Y-%m-%d"`.txt

0 commit comments

Comments
 (0)