+ All Categories
Home > Documents > Yogind's Solaris Quick Reference

Yogind's Solaris Quick Reference

Date post: 07-Jul-2018
Category:
Upload: imranpathan22
View: 226 times
Download: 1 times
Share this document with a friend

of 29

Transcript
  • 8/19/2019 Yogind's Solaris Quick Reference

    1/29

    Yogind's CreationsThis page has been specially put up for the begineers of Solaris this contains all the important

    commands used in Solaris

    M o n d a y , N o v e m b e r 9 , 2 0 0 9

    SOLARIS QUICK REFERENCE

    SOLARIS SOLUTION GUIDE

    BOOT BLOCK RECOVERY

    insta!!"oot #$sr#%!at&or#'$nae ('#!i"#&s#$&s# "oot"!)

    #de*#rds)#+,t,d,s, 

    &dis) (" #$sr#!i"#&s#$&s#"oot #de*#rds)#+,t,d,s, 

    TER-INAL .ROBLE-

    TER-/Vt011

    E2%ort/TER- 

    TA.E DRIVE

    , t (& #de*#rt#1 stat

      ,tar (+*& #de*#rt#13+o%45

      ,tar (2*& #de#*r#13restore5

      ,t (& #de*#rt#1 re6o&&! 3&or e7e+t58DD SI9E -IS-ATC8

    ,&orat

      ,se!e+t dis)

      ,se!e+ts :t4%e:

      ,se!e+t 1 3AUTO CONFIGURE5

    http://yogind.blogspot.com/?m=1http://yogind.blogspot.com/2009/11/solaris-quick-reference.html?m=1http://yogind.blogspot.com/2009/11/solaris-quick-reference.html?m=1http://yogind.blogspot.com/?m=1

  • 8/19/2019 Yogind's Solaris Quick Reference

    2/29

      ,o)

    ALO- CONFIGURATION

    s+; sets+ i&is +oand ena"!es t>e %ort  s+; sets+ nets++% &a!se = t>is +oand s>o$!d "e set to &a!se

      s+; sets+ nets+e :s>o6net6or): +oand

    Note = T>ere is a!so an intera+ti*e +on&ig$ration %ro+ess %ossi"!et>ro$g> t>e $se o& t>e :set$%s+: +oand,

    Resetting the ALOM Password

    To o*erride t>e ALO- %ass6ord on t>e s4ste 4o$ 6i!! need to

    0 Atta+> +onso!e to Seria! -anageent .ort

    ?5 .o6er on t>e ser*er *ia t>e &ront %o6er "$tton On+e .OST >as+o%!eted4o$ 6i!! need to 6ait 0 to ? in$tes &or a tieo$t to o++$rand t>e s4ste to dro% to t>e :o);: %ro%t

    I& 4o$ do not get t>e :.!ease !ogin: %ro%t 34o$ 6i!! !i)e!4 see t>e SC%ro%t5 t>en 4o$ $st %o6er t>e s4ste o&&

    Reo*e t>e "atter4 &ro t>e LO- "oard 6ait a in$te and re=insta!!e*er4t>ing5

    Be!o6 is an e2a%!e o& 6>at 4o$ ig>t see on t>e +onso!e

    .!ease !ogin

    SC A!ert 8ost S4ste >as reset

    Hait one t6o in$tesJ

  • 8/19/2019 Yogind's Solaris Quick Reference

    3/29

    Seria! !ine !ogin tieo$t ret$rns to +onso!e strea

    o);

    5 Boot t>e s4ste to t>e OS !e*e! I& So!aris is not +$rrent!4 insta!!edon t>e ser*er 4o$ 6i!! need to insta!! it at t>is

    %oint

    5 Use t>e s+ad +oand to reset t>e adin %ass6ord

    ser*er, +d #$sr#%!at&or#$nae =i#s"in

    ser*er, #s+ad $ser%ass6ord adin

    5 Use t>e es+a%e se$en+e :,: to get s4ste "a+) to t>e ALO- !ogin%ro%t

    M5 Yo$ +an no6 !og into t>e adin a++o$nt $sing t>e %ass6ord :adin:t>at4o$ 7$st set

     

    Working with NVRAM:

    a$to="oot i& tr$e "oot a$toati+a!!4 a&ter .OST 3tr$e5

    "oot=+oand +oand to e2e+$te i& a$to="oot is tr$e 3"oot5

    "oot=de*i+e de*i+e to $se &or "ooting 3dis) net5

    "oot=&i!e &i!e to "oot 3e%t4 string5

    diag=de*i+e diagnosti+ "oot so$r+e 3net5

    diag=&i!e &i!e &ro 6>i+> to "oot in diagnosti+ ore 3e%t4 string5

    dia!=!e*e! Le*e! o& diagnosti+s to r$n 3in or a25

    diag=s6it+> I& tr$e r$n in diagnosti+ ode

    in%$t=de*i+e in%$t de*i+e to $se 3)e4"oard5

  • 8/19/2019 Yogind's Solaris Quick Reference

    4/29

    )e4a% )e4"oad a% &or +$sto )e4"oard 3no de&a$!t5

    n*rar+ NVRA- start$% s+ri%t 3e%t4 string5

    oe="anner C$sto OE- "anner 3e%t4 string5oe="anner I& tr$e $se +$sto OE- "anner 3&a!se5

    o$t%$t=de*i+e O$t%$t de*i+e to $se 3s+reen5

    s"$s=%ro"e=!ist Identi&ies 6>i+> s"$s s!ots are %ro"ed in 6>at order3105

    s+si=initiator=id SCSI "$s address o& >ost ada%ter 35

    se+$rit4=ode Fir6are se+$rit4 !e*e! 3none P +oand P &$!!5

    se+$rit4=%ass6ord Fir6are se+$rit4 %ass6ord 3none5

    $se=n*rar+ I& tr$e e2e+$te +oands in NVRA-RC d$ring start$%se$en+e 3&a!se5

    6at+>dog=re"oot I& tr$e re"oot a&ter 6at+>dog reset 3&a!se5

     

    NVRA- CO--ANDS

    n*a!ias a!ias de*i+e=%at>; = Store t>e +oand :de*a!ias a!ias de*i+e=%at>: in NVRA-RC T>e a!ias %ersists $nti! t>e n*$na!ias or set=de&a$!ts+oands are e2e+$ted

    n*edit = Enter t>e NVRA-RC editor I& data reains in t>e te%orar4"$&&er &ro a %re*io$s n*edit session res$e editing t>ose %re*io$s+ontents I& not read t>e +ontents o& NVRA-RC into t>e te%orar4"$&&er and "egin editing t>e

    n*$it =Dis+ard t>e +ontents o& t>e te%orar4 "$&&er 6it>o$t 6riting itto NVRA-RC %ro%t &or +on&iration

    n*re+o*er = Re+o*er t>e +ontents o& NVRA-RC i& t>e4 >a*e "een !ost as

    a res$!t o& t>e e2e+$tion o& setde&a$!ts

  • 8/19/2019 Yogind's Solaris Quick Reference

    5/29

    t>en enter t>e editor as 6it> n*edit

    n*re+o*er &ai!s i& n*edit is e2e+$ted "et6een t>e tie t>at t>e

    NVRA-RC +ontents 6ere !ost and t>e tie t>at n*re+o*er is e2e+$tedn*r$n = E2e+$te t>e +ontents o& t>e te%orar4 "$&&er

    n*store = Co%4 t>e +ontents o& t>e te%orar4 "$&&er to NVRA-RCdis+ard t>e +ontents o& t>e te%orar4

    "$&&er

    n*$na!ias a!ias = De!ete t>e +orres%onding a!ias &ro NVRA-RC -$st

    reset s4ste

     

    A+ti*ating n*ra

    o); n*edit

    enter +oands;

    T4%e Contro!=C to get o$t o& t>e editor and "a+) to t>e o) %ro%t

    o); n*store

    o); seten* $se=n*rar+ tr$e

    o); reset

     

    BOOT O.TIONS

    -a As) t>e $ser &or +on&ig$ration in&oration s$+> as 6>ere to &ind t>es4ste &i!e 6>ere to o$nt root and e*en o*erride t>e nae o& t>e)erne! itse!& De&a$!t res%onses 6i!! "e +ontained in s$are "ra+)etsand t>e $ser a4 si%!4 enter RETURN; to $se t>e de&a$!t res%onseTo >e!% re%air a daaged #et+#s4ste &i!e enter #de*#n$!! at t>e%ro%t t>at as)s &or t>e %at>nae o& t>e s4ste +on&ig$ration &i!e

    =* Boot 6it> *er"ose essages ena"!ed

  • 8/19/2019 Yogind's Solaris Quick Reference

    6/29

    =s Boot on!4 to init !e*e! 's' Sing!e User -ode A!! !o+a! &i!e s4stes areo$nted On!4 a sa!! set o& essentia! )erne! %ro+esses are !e&tr$nning T>is ode is &or adinistrati*e tas)s s$+> as insta!!ingo%tiona! $ti!it4 %a+)ages A!! &i!es are a++essi"!e and no $sers are

    !ogged in on t>e s4ste

    =2 Do not "oot in +!$stered ode T>is o%tion on!4 >as an e&&e+t 6>ena *ersion o& S$n C!$ster so&t6are t>at s$%%orts t>is o%tion >as "eeninsta!!ed

    =r Re+on&ig$ration "oot T>e s4ste 6i!! %ro"e a!! atta+>ed >ard6arede*i+es and assign nodes in t>e &i!e s4ste to re%resent on!4 t>osede*i+es a+t$a!!4 &o$nd

     

    S%ar+ $%start insta!! $sing So!aris 01

    T>is is notes and %ro+ed$re I $sed to do a So!aris 01 s%ar+ 7$%startinsta!!

    INTRODUCTION

    .ART I CO.Y CDS TO 8ARD DRIVE

    .ART II U-.START CONFIG

    .ART III CLIENT SETU. NFS

    .ART IV CLIENT BOOT

    .ART V .ROBLE-S I RAN IN TO

    ====================================================================================

    INTRODUCTION

    T>is is t>e e2a+t %ro+ess I $sed to set$% a So!aris 01 s%ar+ 7$%startinsta!!

    S%ar+ 7$%start is a "reee +o%ared to 2M T>is rea!!4 on!4 too) ea"o$t 1

    in$tes to set$% T>e >ard6are set$% I $sed 6as

  • 8/19/2019 Yogind's Solaris Quick Reference

    7/29

    SERVER

    S$n V?01

    I. 0?1??001CLIENT

    T0111

    I. 0?1??0M0M

    ====================================================================================

    .ART I CO.Y CDS TO 8ARD DRIVE

    On t>e ser*er 4o$ are a)ing t>e insta!! ser*er a)e a dire+tor4 tostore t>e CD

    +ontents

    , )dir #e2%ort#>oe#e2%ort#insta!!

    .$t in t>e So!aris 01 s%ar+ DVD and goto t>e Too!s &o!der

    3#+dro#+dro1#s?#So!arisa*e eno$g> s%a+e t>ere and i& so +o%4 t>e DVDiage to t>e dis) It 6i!! ta)e a 6>i!e E7e+t t>e DVD 6>en it's done

    , e7e+t

    ================================================================================

    .ART II U-.START CONFIG

    e no6 need to set$% t>e 7$%start dire+tor4 and %$t t>e ne+essar4&i!es in it to %er&or a +$sto 7$%start insta!!

    , )dir #e2%ort#>oe#e2%ort#+on&ig

  • 8/19/2019 Yogind's Solaris Quick Reference

    8/29

    No6 6e need to +reate a %ro&i!e &or t>e s4ste t>is is $sed to+on&ig$re t>e dis) set$% and %a+)ages &or t>e +!ient It is one o& t>e&i!es 6e 7$st +o%ied o*er

    , +at #e2%ort#>oe#e2%ort#+on&ig#an4ine

    insta!!eso&t6are sie

      T>e sie o& s6a% is set to 0? -"4tes and is insta!!ed on

      an4 dis)

    +!$ster SUNC2a!! = T>is te!!s 6>at +!$ster o& %a+)ages to insta!!

      SUNC2a!! is Entire So!aris So&t6are Gro$% .!$s OE- S$%%ort

      SUNCa!! is Entire So!aris So&t6are Gro$%

      SUNC%rog is De*e!o%er So!aris So&t6are Gro$%

      SUNC$ser is End User So!aris So&t6are Gro$%

      SUNCre is Core S4ste S$%%ort So&t6are Gro$%

      SUNCrnet is Red$+ed Net6or) S$%%ort So&t6are Gro$%

  • 8/19/2019 Yogind's Solaris Quick Reference

    9/29

    +!$ster SUN+2g! de!ete = T>is te!!s it to not insta!! %a+)ageSUN+2g!

    &i!es4s an4 11 s6a% = T>is te!!s it to %!a+e t>e s6a% s!i+e on an4

    s!i+e

      6it> sie 11-B

     

    T>is is >o6 ine !oo)s "$t 4o$ +an odi&4 t>e settings to s%e+i&4 4o$rneeds +>e+)

    >tt%##do+ss$n+o#a%%#do+s#do+#0=1M#M)*M)i@sa/*ie6,%re%are+$sto=@

    &or a good e2%!anation o& e*er4 o%tion 4o$ +an e*en set$% RAID+on&ig$ration d$ring

    insta!!

    No6 t>at t>e %ro&i!e is done 6e need to +reate t>e s4sid+&g &i!e T>is&i!e ans6ers a!! o& t>e net6or) tieone nae ser*i+e $estions It

    6on't "e in t>e 7$%start dire+tor4 so 6e >a*e to +reate it

    , *i #e2%ort#>oe#e2%ort#+on&ig#s4sid+&g

    s4ste

    tieone/US#Centra!

    tieser*er/0@?0M0?10

    net6or)tt%##do+ss$n+o#a%%#do+s#do+#0=1#M)*n>?1a/*ie6

    &or an e2%!anation o& a!! t>e o%tions

  • 8/19/2019 Yogind's Solaris Quick Reference

    10/29

    No6 6e need to set$% t>e r$!es &i!e T>is is a te2t &i!e $sed to +reatet>e :r$!eso): &i!e T>is is a !oo) $% ta"!e t>at >as r$!es de&ining >o6insta!! +!ients are insta!!ed "ased on t>eir s4ste attri"$tes It isa!read4 in t>e dire+tor4 4o$ need to edit it and a)e s$re it on!4

    +ontains t>e !ine :an4 = = an4ine =: and a!! ot>er !ines are+oented o$t

    A&ter t>at in t>e 7$%start dire+tor4 r$n

    , #+>e+)

    Va!idating r$!es

    Va!idating %ro&i!e an4ine

    T>e +$sto $%Start +on&ig$ration is o)

    No6 on to setting $% t>e +!ient

    ================================================================================

    .ART III CLIENT SETU. NFS

    Add t>e +!ient to t>e >osts &i!e

    , e+>o :0?1??0M0M inns$n01: ;; #et+#>osts

    , +d #e2%ort#>oe#e2%ort#insta!!#So!arise #add

  • 8/19/2019 Yogind's Solaris Quick Reference

    11/29

    , #addoe#e2%ort#+on&ig =%

    0?1??0M01#e2%ort#>oe#e2%ort#+on&ig inns$n01 s$n*

    a)ing #t&t%"oot

    $%dating #et+#"oot%aras

    +o%4ing inet"oot to #t&t%"oot

    To a)e s$re t>e4 are "ot> s>aring

    , d&s>ares

    RESOURCE SERVER ACCESS TRANS.ORT

    inns$n#e2%ort#>oe#e2%ort#insta!! inns$n = =

    inns$n#e2%ort#>oe#e2%ort#+on&ig inns$n = =

    ================================================================================

    .ART IV CLIENT BOOT

    A&ter a!! is set$% +orre+t!4 te!! 4o$r +!ient to "oot o&& t>e net6or) +ardand

    6at+> it go into t>e So!aris insta!! %ro+ess

    , "oot net = insta!!

    ================================================================================

    .ART V .ROBLE-S 6e RAN IN TO

    On 7$%start insta!! it errored 6it>

    +at +annot o%en #+dro#+dto+

    +at +annot o%en #+dro#+dto+

    e2%r s4nta2 error

  • 8/19/2019 Yogind's Solaris Quick Reference

    12/29

    T>is 6as "e+a$se I >ad'#e2%ort#>oe#e2%ort#insta!!#So!arisoe#e2%ort#insta!!'

     

    Patch Management

    Patch add Error Codes (Soaris !"#$ %$ &$'

    1 No error

    0 Usage error

    ? Atte%t to a%%!4 a %at+> t>at's a!read4 "een a%%!ied

    E&&e+ti*e UID is not root

    Atte%t to sa*e origina! &i!es &ai!ed

    %)gadd &ai!ed

    M .at+> is o"so!eted

    In*a!id %a+)age dire+tor4

    Atte%ting to %at+> a %a+)age t>at is not insta!!ed

    @ Cannot a++ess #$sr#s"in#%)gadd 3+!ient %ro"!e5

    01 .a+)age *a!idation errors

    00 Error adding %at+> to root te%!ate

    0? .at+> s+ri%t terinated d$e to signa!

    0 S4"o!i+ !in) in+!$ded in %at+>

    0 NOT USED

    0 T>e %re%at+> s+ri%t >ad a ret$rn +ode ot>er t>an 1

    0M T>e %ost%at+> s+ri%t >ad a ret$rn +ode ot>er t>an 1

  • 8/19/2019 Yogind's Solaris Quick Reference

    13/29

    0 -isat+> o& t>e =d o%tion "et6een a %re*io$s %at+> insta!! and+$rrent one

    0 Not eno$g> s%a+e in t>e &i!e s4stes t>at are targets o& t>e %at+>

    0@ WSOFTINFO#INST 6as re$ired "$t not &o$nd

    ?0 T>e re$ired %at+>es >a*e not "een insta!!ed on t>e anager

    ?? A %rogressi*e instan+e %at+> 6as re$ired "$t not &o$nd

    ? A restri+ted %at+> is a!read4 a%%!ied to t>e %a+)age

    ? An in+o%ati"!e %at+> is a%%!ied

    ? A re$ired %at+> is not a%%!ied

    ?M T>e $ser s%e+i&ied "a+)o$t data +an't "e &o$nd

    ? T>e re!ati*e dire+tor4 s$%%!ied +an't "e &o$nd

    ? A %)gin&o &i!e is +orr$%t or issing

    ?@ Bad %at+> ID &orat

    1 Dr4r$n &ai!$re3s5

    0 .at> gi*en &or =C o%tion is in*a!id

    ? -$st "e r$nning So!aris ?M or greater

    Bad &oratted %at+> &i!e or %at+> &i!e not &o$nd

    T>e a%%ro%riate )erne! 7$"o %at+> needs to "e insta!!ed

    Later re*ision a!read4 insta!!ed

     

    %at+>r Error Codes

    1 No error

  • 8/19/2019 Yogind's Solaris Quick Reference

    14/29

    0 Usage error

    ? Atte%t to "a+)o$t a %at+> t>at >asn't "een a%%!ied

    E&&e+ti*e UID is not root No sa*ed &i!es to restore

    %)gr &ai!ed

    M Atte%t to "a+) o$t an o"so!eted %at+>

    Atte%t to restore C.IO ar+>i*ed &i!es &ai!ed

    In*a!id %at+> id &orat

    @ .re"a+)o$t s+ri%t &ai!ed

    01 .ost"a+)o$t s+ri%t &ai!ed

    00 S$s%ended d$e to adinistrati*e de&a$!ts

    0? Ba+)o$t%at+> +o$!d not !o+ate t>e "a+)o$t data

    0 T>e re!ati*e dire+tor4 s$%%!ied +an't "e &o$nd

    0 Insta!!%at+> >as "een interr$%ted re=in*o)e installpatch

     

    PATCH INSTALLATION

    Get OK %ro%t t>ro$g> Conso!e

    Insta!! t>e OS initia!!4 3So!aris @ *ersion 0?#1?5 on +0t0d1s13I& %re OE isnot %resent5

    Insta!! %at+>es t>ro$g> EIS insta!!ation DVD

    , +d #+dro#+dro1#s$n#insta!!

    , #set$% or , s> set$%

    Se!e+tions &or en$ to "e ade as &o!!o6s

  • 8/19/2019 Yogind's Solaris Quick Reference

    15/29

    se!e+t disa"!e %o6er ( n

    se!e+t SFS %a+)age ( 4

    a!ternate "rea) se$en+e ( ninsta!! ACT ( 4

    se!e+t de&a$!t "ase dire+tor4 ( #o%t

    send eai! %ani+ ( 4

    +reate dire+tor4 ( 4

    +ontin$e insta!!ation ( 4

    se!e+t de&a$!t e2%!orer %at> = #et+#o%t#SUNe2%!o#de&a$!t#e2%!orer

    %ro*ide detai!s o& +onta+t %erson eai! id %>one n$"er et+

    se!e+t A.AC ie 3Asia .a+i&i+5

    se!e+t ? +>ara+ter +o$ntr4 +ode ie IN &or India

    se!e+t a$toati+ sending o& e2%!orer ( no

    !ogo$t and re=!ogin

    , +d #+dro#+dro1#s$n#%at+>#@

    , +at READ-E P !ess

    , d& (> +>e+) and see 6>et>er re$ired s%a+e &or %at+> $n%a+)ing isa*ai!a"!e 3a%%ro2 ?G"5 genera! %ra+ti+e is to $se #*ar#t% !o+ation

    &or $n%a+)ing t>e %at+>es

    , $n%a+)=%at+>es ( #*ar#t%

    , +d #o%t#SUNe2%!o#o$t%$t

    , e2%!orer t>is 6i!! s>o6 t>e +$rrent o$t%$t o& e2%!orer

    , !s (!

    , init M 3re"oot t>e s4ste in sing!e $ser ode &or insta!!ing %at+>es5

  • 8/19/2019 Yogind's Solaris Quick Reference

    16/29

    , +d #*ar#t%#@

    , #insta!!e %at+>es are insta!!ed insta!! e2tra %at+>es &orStorage

    , )dir #*ar#t%#storage%at+>es

    , +d #+dro#+dro1#s$n#%at+>#SAN#@

    , $n%a+)=%at+>es ( #*ar#t%#storage%at+>es

    , +d #*ar#t%#storage%at+>es

    , #insta!!e +oand as gi*en "e!o6 do not tr4 to add t>e %a+)age

    indi*id$a!!4 as it %ro*ides error

    , %)gadd (d

    Note = on %ro*iding t>e %)gadd +oand 6e get a en$ 6>ere 6eneed to s%e+i&4 t>e %a+)age n$"er to "e added

    , init 1 re"oot t>e s4ste to OK %ro%t

    8ere t>e %at+>es and re$ired %rogras are insta!!ed

  • 8/19/2019 Yogind's Solaris Quick Reference

    17/29

    CD BURNING 3RITING5

    Cdr6 S4nta2

    +dr6 =i H=*SCOJ H=d de*i+eJ H=% s%eedJ Hiage=&i!eJ

    Listing +d de*i+es

    , +dr6 =!*

    Loo)ing &or CD de*i+es

    Node Conne+ted De*i+e De*i+e t4%e

    ======================================================================

    #de*#rds)#+td1s? P YA-A8A CR?S 011 P CD Reader#riter

    Co%4ing &ro +d to +d

    , +dr6 =+ =d target=dri*e; =s so$r+e=dri*e; =*

    , +dr6 =+ =d #de*#rds)#+0td1s? =s +dro1 =*

    Co%4ing &ro a dire+tor4 to a +d

    , )iso&s =r dir=nae; ?;#de*#n$!! P +dr6 =i =%

    , )iso&s =r #>oe#r&o2#t% ?;#de*#n$!! P +dr6 =i =%

    Co%4ing an iso iage to a +d

    , +dr6 =i =C =% iso=iage=&i!e=nae;

    Co%4ing a +o%ressed iso iage to a +d

    , gi% =d+ a+ro"atisog P +dr6 =i =C =%

    Creating an iso iage

    , )iso&s =r =o iso=iage=&i!e=nae; %at>=to=&i!es;

    Soe +oon )iso&s o%tions

  • 8/19/2019 Yogind's Solaris Quick Reference

    18/29

    =V *o!id 3naes t>e +d5

    =re!a2ed=&i!enaes 3a!!o6s !ong &i!e naes5

    =iso=!e*e! 3re!a2es restri+tions on &i!e naes5Create an a$dio CD &ro 6a* &i!es

    Z +dr6 =a song06a* song?6a* song6a* song6a*

    FIND RE.LACE

    Find

    Find $&s &i!es on!4 no n&s o$nted &s's

    , &ind # =nae &i!es; [ =!o+a! =%r$ne =%rint

    Note Be+a$se t>e de&a$!t #et+#d&s#&st4%es on!4 +ontains :n&s: t>is is&$n+tiona!!4 e$i*i!ant to

    , &ind # =&st4%e n&s =%r$ne =o =%rint

    Find Reo*e &i!es

    , &ind =nae \s& =e2e+ r X

    Re+$rsi*e gre%

    , #$sr#"in#&ind =e2e+ #$sr#"in#gre% .ATTERN #de*#n$!! X

    Ft>ard

    , %rt*to+ => #de*#rds)#+1t1d1s1 ;#t%#*to+

    , &t>ard =s #t%#*to+ #de*#rds)#+0t1d1s1

    FSCK

    S4nta2

    &s+) H=F FST4%eJ H=n P N P 4 P YJ H=VJ H=o FS T4%e=s%e+i&i+=o%tionsJHs%e+ia!J

    Note $no$nt t>e &i!e s4ste "e&ore r$nning &s+)[[[

  • 8/19/2019 Yogind's Solaris Quick Reference

    19/29

    Using an a!ternate s$%er "!o+) 3ass$es s$%er"!o+)/?5

    , &s+) =o "/? #de*#rds)#+1t1d1s

    Note to deterine ot>er s$%er "!o+)s r$n, ne6&s =N* #de*#ds)#+1t1d1s

    C>e+)ing i& &s is o)a4 to o$nt

    , &s+) = #de*#rds)#+1t1d1s

    $&s &s+) sanit4 +>e+) #de*#rds)#+1t1d1s o)a4

    )NS*ALL +OO*

    Insta!!s t>e "oot "!o+) onto a dis) to a)e it "oota"!e

    , insta!!"oot #$sr#%!at&or#$nae =i#!i"#&s#$&s#"oot"!)#de*#rds)#+1t1d1s1

    MO,N*

    Reo$nting a Read=on!4 Fi!e S4ste

    , o$nt =o reo$ntr6 #de*#ds)#+1t1d1s1

    8o6 to o$nt an ISO iage

    , !o&iad =a #%at>=to=iso=&i!e=iage;

    Note !o&iad 6i!! ret$rn t>e de*i+e nae

    #de*#!o&i#0

    -o$nt t>e iso iage#de*i+e nae 7$st ret$rned to 4o$r &a*orite o$nt%oint

    , o$nt =F >s&s =o ro #de*#!o&i#0 #nt

    A&ter6ard $no$nt t>e de*i+e and de!ete t>e iso de*i+e

    , $o$nt #nt

    , !o&iad =d #de*#!o&i

  • 8/19/2019 Yogind's Solaris Quick Reference

    20/29

    -o$nt a .C Fi!e S4ste

    , o$nt =& %+&s #de*#ds)#+1d1%0 #e2%ort#dos

    -o$nt a G!o"a! Fi!e S4ste 3S$nC!$ster5, o$nt =g #de*#*2#ds)#n&sdg#n&s0 #g!o"a!#n&s

    P COMMAN.S - PROCESS

    .)i!!

    T>is +oand )i!! a %ro+ess For e2a%!e %)i!! nets+a%e )i!!s t>e%ro+ess naed nets+a%e

    %!iit

    T>is +oand dis%!a4s and sets t>e %er=%ro+ess !iits on a r$nning%ro+ess T>is is >and4 i& a !ong=r$nning %ro+ess is r$nning $% against a!iit 3&or e2a%!e n$"er o& o%en &i!es5 Rat>er t>an $sing !iit andrestarting t>e +oand %!iit +an odi&4 t>e r$nning %ro+ess

    %gre%

    Sear+>es t>ro$g> #%ro+ &or %ro+esses at+>ing t>e gi*en +riteria andret$rns t>eir %ro+ess=ids

    A great o%tion is :=n: 6>i+> ret$rns t>e ne6est %ro+ess t>at at+>es

    %rea% 3So!aris ;/ @5 Rea%s o"ie %ro+esses An4 %ro+esses st$+) int>e :: state 3as s>o6n "4 %s5 +an "e reo*ed &ro t>e s4ste 6it>t>is +oand

    %args

    3So!aris ;/ @5 S>o6s t>e arg$ents and en*ironent *aria"!es o& a%ro+ess

    %rstat

    %rstat is to% and a !ot ore Bot> +oands %ro*ide a s+reen's6ort> o& %ro+ess and ot>er in&oration and $%date it &re$ent!4&or a ni+e 6indo6 on s4ste %er&oran+e %rstat >as $+>

    "etter a++$ra+4 t>an to% It a!so >as soe ni+e o%tions

  • 8/19/2019 Yogind's Solaris Quick Reference

    21/29

    :=a: s>o6s %ro+ess and $ser in&oration +on+$rrent!4 3sorted "4 C.U>og "4 de&a$!t5

    :=+: +a$ses it to a+t !i)e *stat 3ne6 re%orts %rinted "e!o6 o!d ones5

    :=C: s>o6s %ro+esses in a %ro+essor set :=7: s>o6s %ro+esses in a:%ro7e+t:

    :=L: s>o6s %er=t>read in&oration as 6e!! as %er=%ro+ess

    :=: and :=*: s>o6s %er=%ro+ess %er&oran+e detai! 3in+!$ding %agestra%s !o+) 6ait and C.U 6ait5

    T>e o$t%$ts data +an a!so "e sorted "4 resident=set 3rea! eor45

    sie *irt$a! eor4 sie e2e+$te tie

    SCRI.T 3CA.TURE TE]T5

    Used to re+ord )e4stro)es and o$t%$t to a &i!e

    Start Re+ording

    oo%s#; s+ri%t =a &i!enae;

    Note )e4stro)es and o$t%$t 6i!! "e re+orded to t>e &i!e

    Sto% re+ording

    oo%s#; +t!=d

    Note A&ter %ressing H+t!J=d no ore )e4stro)es or o$t%$t 6i!! "ere+orded

     

    Sto//ing$ starting$ and restarting ser0ices

    Traditiona!!4 ser*i+es >a*e "een started "4 an r+ s+ri%t r$n at "ootr$n 6it> t>e arg$ent start Soe r+ s+ri%ts %ro*ide a sto% o%tion anda &e6 a!so a!!o6 restart In S-F t>ese tas)s are a!! a++o%!is>ed 6it>t>e

    s*+ad30-5 +oand

  • 8/19/2019 Yogind's Solaris Quick Reference

    22/29

    O!d et>od S-F et>od

    #et+#initd#ss>d sto% s*+ad disa"!e =t net6or)#

    ss>de&a$!t#et+#initd#ss>d start s*+ad ena"!e =t net6or)#

    ss>de&a$!t

    #et+#initd#ss>d sto% #et+#initd#ss>d start s*+ad restart net6or)#

    ss>de&a$!t

    )i!! =8U. +at #*ar#r$n#ss>d%id s*+ad re&res> net6or)#

    ss>de&a$!t

    Notes T>e :=t: o%tion to s*+ad ena"!e and s*+ad disa"!e indi+atest>at t>e re$ested a+tion s>o$!d "e te%orar4 == it 6i!! not a&&e+t6>et>er t>e ser*i+e is started t>e ne2t tie t>at t>e s4ste "oots

    NE -ET8OD

    SVCAD- DISABLE (T NETORK

    SVCAD- ENABLE (T NETORK

    SWAP

    Creating Swa/ S/ace:

    a Create t>e s6a% &i!e

    , )&i!e =* 01 #e2%ort#dis)0#4s6a% 3+reate 01" s6a%&i!e5

    or

    , )&i!e =n* 01 3+reates an e%t4 01 -ega"4te s6a%&i!e5

    " Add t>e s6a% s%a+e

    , s6a% =a #e2%ort#dis)0#4s6a%

  • 8/19/2019 Yogind's Solaris Quick Reference

    23/29

    Managing Swa/ S/ace

    , s6a% =s List t>e ao$nt o& s6a% s%a+e a*ai!a"!e

    , s6a% =a #e2%ort#dis)0#s6a%&i!e Add a s6a%&i!e

    , s6a% =d #de*#ds)#+1t1d1s De!etes a s6a% de*i+e

    , s6a% =! List t>e +$rrent s6a% de*i+es

    s6a%&i!e de* s6a%!o "!o+)s &ree

    #de*#ds)#+1t1d1s0 0M@ 0M ?1@01 ?1@01

    .1CP SERVERCon2ig3re the dhc/ ser0er:

    Create t>e d>+% reso$r+e &i!e

    , *i #et+#de&a$!t#d>+%

    RUN+%

    U%date t>e >osts &i!e 6it> d>+% +!ient i% addresses and naes

    , *i #et+#>osts

    0?101 d>+%+!ient=0

    Create t>e s$"net &or t>e +!ients

    , %ntad =C 0?101

    Add +!ients

    , %ntad =A 0?101 0?101

    , %ntad =A 0?100 0?101

    Create t>e r$!es data"ase

  • 8/19/2019 Yogind's Solaris Quick Reference

    24/29

    , d>tad =C

    Create t>e r$!es

    , d>tad =A = r$!e=nae; =d 'ro$ter/ !ett$+e &!$)e 4a)s$"net/???1

    LeaseNeg/0

    DNSdain/+o+astnet

    DNSser*/M11M'

    Note a !ist o& a!! %ossi"!e )e46ords +an "e &o$nd in #et+#d>+%#initta"

    Asso+iate r$!es 6it> d>+% +!ients

    , %ntad = 0?101 = r$!e=nae; 0?101

    , %ntad = 0?100 = r$!e=nae; 0?101

    Start d>+% daeon

    , #et+#initd#d>+% start

    Con&ig$re a d>+% +!ient

    a Edit #et+#>ostnae>e1 and reo*e a!! +ontents

    " Create #et+#d>+%>e1

    , to$+> #et+#d>+%>e1

    + Re"oot

    , init M

    .NS

    Con2ig3ring the Master .NS Ser0er 

    A Edit #et+#naed"oot

    , naed"oot ?#??#?11? r&o2

  • 8/19/2019 Yogind's Solaris Quick Reference

    25/29

    DIRECTORY #*ar#naed , !o+ation o& dns &i!es

    CAC8E +a+>ed" , 6>ere to %ass t>e re$est i& $nreso!*ed

    .RI-ARY *eggieed$ *eggieone , I.=>ost reso!$tion &i!e

    .RI-ARY 010?in=addrar%a *eggierone , >ost=I. reso!$tion &i!e

    .RI-ARY 110?in=addrar%a !oo%"a+) , !o+a!>ost reso!$tion

    B I& So!aris ? or greater r$n t>e +on*ersion $ti!it4 to +reate#et+#naed+on& &i!e

    , #$sr#s"in#naed="oot+on& #et+#naed"oot ; #et+#naed+on&

    C Create t>e dns dire+tor4

    , )dir #*ar#naed

    D Edit t>e +a+>ed" &i!e

    , +a+>ed" ?#??#?11? r&o2

    in ns %ar)sed$ , doain to %ass $nreso!*ed re$est

    %ar)sed$ in a 0?10@@ , i% address o& ser*er

    E Edit t>e I.=>ost reso!$tion &i!e 3*eggieone5

    , *eggieone ?#??#?11? r&o2

    WORIGIN *eggieed$

    *eggieed$ in soa !ett$+e*eggieed$ root!ett$+e*eggieed$ 3 0

    ?11 M11 M111 M11 5

    *eggieed$ in ns !ett$+e

    !ett$+e in a 0?10

    +a""age in a 0?10?

    +orn in a 0?10

  • 8/19/2019 Yogind's Solaris Quick Reference

    26/29

    !o+a!>ost in a 0?110

    F Edit t>e >ost=I. reso$!tion &i!e 3*eggierone5

    , *eggierone ?#??#?11? r&o2WORIGIN 010?in=addrar%a

    010?in=addr=ar%a in soa !ett$+e*eggieed$root!ett$+e*eggieed$

    3 0 ?11 M11 M111 M11 5

    010?in=addrar%a in ns !ett$+e*eggieed$

    0 in %tr +arrot*eggieed$

    ? in %tr +a""age*eggieed$

    in %tr !ett$+e*eggieed$

    in %rt +orn*eggieed$

    G Edit !oo%"a+) &i!e 3!oo%"a+)5

    , !oo%"a+) ?#??#?11? r&o2

    WORIGIN 110?in=addrar%a

    110?in=addr=ar%a in soa !ett$+e*eggieed$root!ett$+e*eggieed$ 3 0

    ?11 M11 M111 M11 5 110?in=addrar%a in ns!ett$+e*eggieed$

    0 in %tr !o+a!>ost*eggieed$

    8 Start t>e daeon

    , #$sr#s"in#innaed

    Con&ig$ring t>e DNS C!ient

    A Create t>e #et+#reso!*+on& &i!e

  • 8/19/2019 Yogind's Solaris Quick Reference

    27/29

    , reso!*e+on& ?#??#?11? r&o2

    sear+> *eggieed$

    naeser*er 0?10naeser*er 0?1?0

    naeser*er 0?1

    B Edit #et+#nss6it+>+on& &i!e's >osts entr4

    , >osts dns &i!es

    N4S

    1ow to N4S share5mo3nt a C.-ROM:

    0 S>are t>e reso$r+e on t>e NFS ser*er 3t>e s4ste 6it> t>e CD=RO- !o+a!!45

     

    , s>are =F n&s =o ro #+dro#+dro1#s1

    Note I& t>is is t>e &irst tie t>at t>e NFS ser*er >as s>ared o$t areso$r+e t>en do t>e &o!!o6ing to start t>e

    n&s ser*er daeons

    , #et+#initd#n&sser*er start

    ?5 No6 o$nt t>e CD=RO- on t>e reote s4ste

    R$n s>o6o$nt to *eri&4 t>at t>e NFS ser*er is s>aring o$t t>e CD=RO-

    , s>o6o$nt =e NFS=ser*er=nae;

    -o$nt t>e CD=RO-

    , o$nt =rF n&s NFS=ser*er=nae;#+dro#+dro1 #+dro

    Network *ro36eshooting

  • 8/19/2019 Yogind's Solaris Quick Reference

    28/29

    *ro36eshooting Command Re2erence

    ar% = address reso!$tion dis%!a4 and +ontro!

    ar% =a dis%!a4 entries in t>e ar% ta"!e

    oo%s#>oe#r&o2;ar% =a

    Net to -edia Ta"!e I.*

    De*i+e I. Address -as) F!ags .>4s Addr

    ====== ==================== =============== ===== ===============

    >e1 6o6 ???? 111?1++d1

    >e1 >ed!e4EastS$nCO- ???? 111?1"??@"

    >e1 "aradd$r ???? 11+1dd11M&M?

    >e1 +assio ???? 11+1dd11@

    >e1 st10r&sra0@ ???? 11111+1a+11

    >e1 +!node1 ???? 111?1ddM+

    >e1 +!node0 ???? 111?1"1"+

    >e1 ar+>i*er ???? 111e@1a+

    >e1 !i&etie ???? 111d"@&M

    >e1 oo%s ???? S. 111?1+@d+@d

    >e1 ??111 ?1111 S- 1011e111111

    ar% =d >ostnae; = reo*e >ost entr4 &ro ar% ta"!e

    desg +>e+) stat$s o& inter&a+e at "oot tie

    i&+on&ig a!!o6s 4o$ to add#odi&4#de!ete inter&a+e %araeters

    )stat =n inter&a+e; )erna! stats &or inter&a+e

  • 8/19/2019 Yogind's Solaris Quick Reference

    29/29

    ndd 3set get5

    , ndd =set #de*#eri instan+e 1 = sets *ie6 to eri1

    , ndd #de*#eri X = s>o6s 6>at eri %araaters are odi&ia"!e

    8o6 to +>e+)ing +$rrent settings

    , ndd #de*#>e !in)e !in)e !in)a!&=d$%!e2 0/&$!!=d$%!e2

    Netstat

    netstat =i gi*es 4o$ inter&a+e detai!s , o& %a+)ets +o!!isions errorse+t

    oo%s#>oe#r&o2;netstat =i

    Nae -t$ Net#Dest Address I%)ts Ierrs O%)ts Oerrs Co!!is Q$e$e

    !o1 ?? !oo%"a+) !o+a!>ost @?@ 1 @?@ 1 1 1

    >e1 011 soerset oo%s ??M? @?1 1 1 1

    netstat =rn* ro$ting in&o no nae reso!$tion !o+a! *ei6

    oo%s#>oe#r&o2;netstat =rn

    Ro$ting Ta"!e I.*

    Destination Gate6a4 F!ags Re& Use Inter&a+e

    ==================== ==================== ===== ===== ====== =========

    0?@01 0?@00 U 0 >e1


Recommended