{"id":900,"date":"2013-02-16T02:18:17","date_gmt":"2013-02-16T02:18:17","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=900"},"modified":"2014-05-21T13:40:45","modified_gmt":"2014-05-21T13:40:45","slug":"script-to-label-disks-in-solaris","status":"publish","type":"post","link":"\/blog\/index.php\/script-to-label-disks-in-solaris\/","title":{"rendered":"Script to label disks in solaris"},"content":{"rendered":"<p>WARNING: USE CAREFULLY : WARNING<\/p>\n<p>To label the disks you can use this script, just make sure you feed it the right disks, in this case it&#8217;s all that appear as &#8220;c6t&#8221; in my server<\/p>\n<pre>format &lt; \/dev\/null | grep -i c6t | grep \"&lt;\" | awk '{ print $2 }'| while read d;do printf \"label\\nyes\\nquit\\n\" | format -d $d; done<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WARNING: USE CAREFULLY : WARNING To label the disks you can use this script, just make sure you feed it the right disks, in this case it&#8217;s all that appear as &#8220;c6t&#8221; in my server format &lt; \/dev\/null | grep -i c6t | grep &#8220;&lt;&#8221; | awk &#8216;{ print $2 }&#8217;| while read d;do printf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-900","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/900","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=900"}],"version-history":[{"count":1,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":1048,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/900\/revisions\/1048"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}