{"id":549,"date":"2011-12-01T17:23:43","date_gmt":"2011-12-01T21:23:43","guid":{"rendered":"http:\/\/theblane.com\/blog\/?p=549"},"modified":"2011-12-01T17:23:43","modified_gmt":"2011-12-01T21:23:43","slug":"solaris-useful-commands","status":"publish","type":"post","link":"http:\/\/www.theblane.com\/blog\/archives\/549","title":{"rendered":"Solaris &#8211; useful commands."},"content":{"rendered":"<p>##<br \/>\n\/usr\/platform\/`uname -i`\/sbin\/scadm help (can reset console)<br \/>\nprtdiag<br \/>\nprtconf<br \/>\n##<br \/>\n<strong>to find cdrom on solaris:<\/strong><\/p>\n<p>ls -al \/dev\/sr* |awk &#8216;{print &#8220;\/&#8221; $11}&#8217;<br \/>\n##&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n##<br \/>\n## FIND commands<br \/>\n## To find a specific file:<br \/>\nfind \/ -name <name of program> -type f<br \/>\n## To find files of a certain size and list them, with sizes:<br \/>\nfind `directory&#8217; -size +1024k -exec du -h {} \\;<br \/>\n##<br \/>\n##<br \/>\n##<br \/>\n<strong>If a disk is failed in veritas:<\/strong><\/p>\n<p>\/usr\/lib\/vxvm\/bin\/vxreattach (failed drive)  c1t3d0<br \/>\nvxvol -fg appdg start (failed filesystem) admin1<br \/>\nfsck -o full \/admin1<br \/>\n#<br \/>\n##then mount the drives<br \/>\n##<br \/>\n##<br \/>\n<strong>to route something through a specific nic (legato in this case)<\/strong><\/p>\n<p>route -p add 10.55.170.0\/24 10.250.251.1 -ifp e1000g2<br \/>\n##<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## \/usr\/platform\/`uname -i`\/sbin\/scadm help (can reset console) prtdiag prtconf ## to find cdrom on solaris: ls -al \/dev\/sr* |awk &#8216;{print&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-549","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":2,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":551,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions\/551"}],"wp:attachment":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}