{"id":520,"date":"2009-02-17T12:12:52","date_gmt":"2009-02-17T17:12:52","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=520"},"modified":"2009-04-22T08:48:54","modified_gmt":"2009-04-22T13:48:54","slug":"solaris-startup-shutdown","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=520","title":{"rendered":"Solaris Startup &#038; Shutdown"},"content":{"rendered":"<span id=\"Startup_038_Shutdown\"><h3>Startup &#038; Shutdown<\/h3><\/span>\n<pre>reboot<\/pre>\n<p>* Same as reboot but better<\/p>\n<pre>shutdown -i 6<\/pre>\n<p>* Fasthalt, for shutdown system with only a local users<\/p>\n<pre>shutdown -i 0<\/pre>\n<span id=\"Run_states\"><h3>Run states<\/h3><\/span>\n<p>0    ready for power down<br \/>\n1    single-user<br \/>\n2    multiuser w\/o netwking<br \/>\n3    multiuser w netwking<br \/>\n4    unused<br \/>\n5    interactive reboot<br \/>\n6    reboot<br \/>\nS    singls-user startup<\/p>\n<span id=\"rc_scripts\"><h3>rc scripts<\/h3><\/span>\n<p>rc0    shuts down &#038; start up so it&#8217;s safe to power off. Also shuts down services &#038; daemons, killing running processes, &#038; umount fs<br \/>\nrc1    bring system into single usr mode.Also shuts down services &#038; daemons, killing running processes, &#038; umount fs<br \/>\nrc2    starts multiusr op w\/ netwking    &#038; nfs support. It also cleanup \/tmp &#038; \/var\/tmp, loads netwk interface, starts cron, lp &#038; sendmail<br \/>\nrc3    starts multiusr mode. Executes tasks in run state 2 &#038; starts NFS daemons<br \/>\nrc4    unused<br \/>\nrc5    starts interactive sw reboot. It prompts for an alternate boot dev<br \/>\nrc6    reboot system<br \/>\nrcS    starts single usr state w\/ rcs)    some fs mounted<\/p>\n<p>\u2022ok prompt<br \/>\nbanner, printenv, .speed, .version<br \/>\nset-defaults,test-all<br \/>\nprobe-scsi<br \/>\nboot -r<br \/>\nboot -s \/\/boot single user mode<br \/>\npower-off<\/p>\n<p>Run OBDiag:<br \/>\nok setenv diag-switch? true<br \/>\nok setenv auto-boot? false<br \/>\nok reset-all<\/p>\n<p>Run POST<br \/>\nok setenv diag-switch? true<br \/>\nok setenv diag-level max<br \/>\nok setenv diag-device disk<br \/>\nok setenv auto-boot? false<br \/>\nok reset-all<br \/>\npower cycle the system<br \/>\nuse show-post-results to view results<\/p>\n<p>ok devalias<\/p>\n<p>Network setup:<br \/>\nsys-unconfig<\/p>\n<p>\/usr\/sbin\/ifconfig -a<br \/>\nypwhich<br \/>\nypcat hosts<\/p>\n<p>ping->netstat -rn<\/p>\n<p>\u2022Print default routing table<br \/>\nnetstat -rn<\/p>\n<p>\u2022Add default router<br \/>\nroute add defauct 192.168.0.1 1<\/p>\n<p>\u2022Cron job<br \/>\n-Create\/edit crontab file<br \/>\ncrontab -e<br \/>\n-List crontab file<br \/>\ncrontab -l<br \/>\n-Remove crontab file<br \/>\ncrontab -r<\/p>\n<p>min(0-59)<br \/>\nhr(0-23)<br \/>\nday of month(1-31)<br \/>\nmonth of yr(1-12)<br \/>\nday of wk(0-6 with 0=Sunday)<br \/>\n* = all possible values<\/p>\n<p>fsck -y \/dev\/rdsk\/c0t0d0s3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Startup &#038; Shutdown reboot * Same as reboot but better shutdown -i 6 * Fasthalt, for shutdown system with only a local users shutdown -i 0 Run states 0 ready for power down 1 single-user 2 multiuser w\/o netwking 3 &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=520\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[45],"tags":[],"class_list":["post-520","post","type-post","status-publish","format-standard","hentry","category-solaris"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-8o","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=520"}],"version-history":[{"count":4,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/520\/revisions"}],"predecessor-version":[{"id":807,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/520\/revisions\/807"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}