{"id":534,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-16T21:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/quick-and-dirty-script-to-obtain-info-from-your-server-before-you-reboot\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-16T21:51:50","slug":"quick-and-dirty-script-to-obtain-info-from-your-server-before-you-reboot","status":"publish","type":"post","link":"\/blog\/index.php\/quick-and-dirty-script-to-obtain-info-from-your-server-before-you-reboot\/","title":{"rendered":"quick and dirty script to obtain info from your server before you reboot"},"content":{"rendered":"<p>Use the outputs of this script to compare basic health before and after you reboot, transfer the results to another host<br \/>\njust in case the one you reboot doesn&#8217;t come up \ud83d\ude42<br \/>\nB=`uname -n`<br \/>\nmkdir $B<br \/>\ncd $B<br \/>\ndf -h &gt; df-h.txt<br \/>\nmetastat -p &gt; metastat-p.txt<br \/>\nmetastat -t &gt; metastat-t.txt<br \/>\nnetstat -nrv &gt; netsat-nrv.txt<br \/>\nifconfig -a &gt; ifconfig-a.txt<br \/>\nzpool status -v &gt; zpool-status-v.txt<br \/>\nzfs list &gt; zfs-list.txt<br \/>\nformat &lt; \/dev\/null &gt; format.txt<br \/>\nprtconf -vp | grep -i wwn &gt; wwns.txt<br \/>\nzoneadm list &gt; zoneadm.txt<br \/>\nzoneadm list | while read z;do zonecfg -z $z info&gt; ${z}.txt; done<br \/>\ncd ..<br \/>\nchmod 777 $B<br \/>\ncp -fR $B \/var\/tmp<br \/>\n56\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use the outputs of this script to compare basic health before and after you reboot, transfer the results to another host just in case the one you reboot doesn&#8217;t come up \ud83d\ude42 B=`uname -n` mkdir $B cd $B df -h &gt; df-h.txt metastat -p &gt; metastat-p.txt metastat -t &gt; metastat-t.txt netstat -nrv &gt; netsat-nrv.txt ifconfig [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-534","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=534"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/534\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=534"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}