From 28b212487a471fa7801969c469c17619aacaf996 Mon Sep 17 00:00:00 2001 From: Ankam Ravi Kumar <14858025+techarkit@users.noreply.github.com> Date: Thu, 13 Jul 2023 16:20:27 +0530 Subject: [PATCH] Update serverinformation.sh --- serverinformation.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/serverinformation.sh b/serverinformation.sh index ed269c8..221e037 100644 --- a/serverinformation.sh +++ b/serverinformation.sh @@ -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