Vous êtes sur la page 1sur 21


The default setup of HP-UX often "messes up" ^C and '@' symbol. Default HP-UX /etc/p of!le map !nte upt to "D"#" and $!ll to @. Th!s cause lot of confus!on. %o& ' ecommend that you update you $eyboa d mapp!n( once you (et to a shell p ompt) stty !nt stty $!ll stty -a * chec$ you sett!n(s.

sam Te+t Use 'nte face ,TU'- fo sys conf!( ,.U' /e s!on a/a!l !f D'%P#01 set to 2o $!n( X se /e -. !n /us /sb!n %03 !s you f !end. 't should be the f! st place to t y !f you a e adm!n f om anothe 4% )5ot as (ood as a!+ sm!tty& but bette than sola !s that ha/e noth!n(6 Use T07 $ey to mo/e a ound& space $ey fo select. 0 o2 $ey 2o $s. --8-some of the ma9o f!les locat!on) /etc/hosts /etc/nss2!tch.conf /etc/fstab /etc/l/mconf//(55 ,b!na y f!les& but see all /olume ( p he e/sb!n/ c.conf!(.d/ /sb!n/ c.d/

System Setup
::::: 'n!t!al system !nstall chec$l!st) :::::

"nsu e that / and /us a e fa! ly b!(& as these a e not not e+pandable unless !n s!n(le use mode ,o maybe onl!ne;<%-. 3ost othe /olumes st!ll need to be unmounted befo e fs can ( o2& so est!mat!n( co ect s!=e !s p etty !mpo tant. 4nl!ne;<% should allo2 fs e+pans!on 2/o unmount l!$e 0'X& but mo e money.

.et latest of all > of 7U5D#"??!& H@"nable??!& .old0pp and .old7ase and !nstall them. <acto y 4% !nstall !ncluded the latest elease of all the abo/e > patch bundles. 0fte bundles& 9a/a patches may st!ll be needed. %ee) http)//222.hp.com/p oducts?/un!+/9a/a/patches/!nde+.html Up( ad!n( 4%. Default CD med!a allo2 fo both !n!t!al setup and up( ade. Up( ade has spec!al p ocedu e to !nstall lot of depot f! st 2hen system st!ll unn!n(. !pt!de 2as up( aded f om ??.88 to ??.??& seems to un f!ne. -------------Update HP-UX f om ?8+ and ??.8 to ??!) !nstall update-u+ soft2a e f om CD& then un /us /sb!n/update-u+ -s /cd om HPUX??!-4". Aefe to 'nstall and update (u!de !n "'nstant Documentat!on" CD.

-HP-UX /e s!ons P0-A'%C) ?8.B8 ,"4#-& ??.88 ,??-& ??.?? ,??!-& ??.BC ,ca B88D/8D'tan!um) ??.B8& ??.BB& ??.BC

Boot Time Troubleshooting

Aeco/e y of unbootable system. Default setup CD has opt!on to do th!s. 't may help 2hen E+<% has c ashed some c !t!cal 4% pa t!t!ons. boot!n( HP-UX mach!ne !nto s!n(le use mode.

http)//222.un!+hub.com/docs/hpu+/hpu+Fboot.html ,Connect dumb te m!nal to se !al consoleP ess and hold "%C at the be(!nn!n( of the boot p ocess ,!t should p ompt& but !f not& 9ust h!t "%C l!$e c a=y-. 'n the PDC ,f! m2a e p ocesso dependent code-& ente 74 to boot. ,o 74 P8 !sl-& 2he e P8 !s the boot de/!ce to use& 2hoh2n by %"0 ch.

@hen !t as$ 2hethe to use !nte act!/e '%# ,!n!t!al system load-& say yes. a the '%# p ompt& ente ) hpu+ -!s G th e !s a 'hpu+ -lm' fo ma!ntenance mode also !t p obably doesn't mount the / fs us!n( no mal method and thus E+<% stuff 2!ll not 2o $ -lm H l/m ma!nt mode& somet!me -!s 2on't 2o $ 2hen l/m !s co upted. -lI H l/m& !(no e fa!led m! o d !/e allo2 boot!n( of mach!ne 2hen one of the m! o ed d !/e ha/e fa!led. ll H l!st content of /stand& thus see f!lename of alte nate $e nel usable /!a e( -lm /stand//mun!+.alte nate J 0fte th!s& should see these messa(es and the lo(!n p ompt)

7oot ) d!s$,scs!.KL8-/stand//mun!+ MKKK?KNCMOC?BN>8MKPP sta t 8+KcD8 Qe nel %ta tup 3essa(es 4m!tted '5'T) 4/e !d!n( default le/el 2!th le/el 's'

'5'T) %'5.#" U%"A 34D" @0A5'5.) 14U 0A" %UP"AU%"A66 * 54T") The E.0 mon!to N pc $eyboa d may sho2 some opt!nos. H!t <> to to((le emote mana(ement on ,2!th : on !t-. Th!s ma$es se !al console usable. @hen booted !n s!n(le use mode 2!th co upted fs& /(chan(e can be used to tell Ee !tas Eol 3( t 2h!ch de/!ce to use. Th!s !s somet!me needed e/en !n non-m! o ed d!s$. /(chan(e -a y /de///(88 l/lnboot -/ /de///(88 fsc$ -< /+fs -o full&nolo( /de///(88/ /olP * fsc$ fo d !/es that ha/e lot of e o s& th!s method * may (!/e mo e !nst uct!ons to cmd of ho2 to do the clean!n(. * by spec!fy!n( -< /+fs& allo2 use of !ntent lo( ,9ou nal!n(* featu e of ;<% and thus completes much Iu!c$e .

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: clea out attent!on l!(ht !n f ont panel

th u se !al console sess!on) ^7 & ente B+ (et !nto (sp mode ,.ua d!an %e /!ce P ocesso cl!(!/e access to b!os le/el cont ol of the mach!ne& /!e2 /fp ,/! tual f ont panel-& clea h2 e lo(& etc. sl e n I * * * * sys lo( e o s no f!lte Iu!t

co * e+!t bac$ to console ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

---------- PDC commands ---------PDC - P ocesso Dependent Code 0ccessed at boot up t!me by the ha d2a e to boost ap the system. %tep ? of boot!n(. 4nly access!ble du !n( boot t!me. 5eed to h!t any $ey 2hen p ompted !n a ?8 seconds 2!ndo2s du !n( boot p ocess to ente the PDC !nte act!on sess!on. The 2!ndo2 !s afte all ha d2a e has been chec$ed and befo e 4% bootst ab p ocess be(!ns. %"0 %ea ch and d!splay bootable de/!ce. 7oot!n( f om CDA43 may need to use th!s to f!nd de/!ce path to use fo boot!n(. boot& use default de/ boot& us!n( p !ma y ,default- de/ boot& us!n( seconda y d!s$. %!mple to do dual boot. boot /!a spec!f!c path& see %"0.

74 74 PA' 74 %"C 74 8/8/B/?.?D '5 0##

ente !nfo menu d!splay all !nfo& the e 2!ll be mach!ne model st !n(s to dete m!n 2hat class of mach!ne !t !s. e( M888/P88/0D88-DX %ystem 5ame) !pt!de !s 0-class. some soft2a e l!$e comp!le bound to the P88 des!(nat!on. Class !nfo usually not sho2n !n ta(/model !nfo !n f ont os system ), 3" memo y !nfo& tell 2h!ch ban$ has 2hat $!nd of D'33& /acancy.

---------- ISL commands ---------'%# - 'n!t!al %ystem #oade 'n/o$ed by PDC so that !t can load the $e nel off /stand

f om the ha d d !/e. 'nte act!ons !n he e allo2 boot !nto s!n(le use %ee H4@T4 sect!on and hpu+ command !s !n '%#. hpu+ hpu+ hpu+ hpu+ -!s -lm -lm /stand//mun!+.p e/ ll * * * * mode& etc. eI66

s!n(le use mode. 5o pass2o d #E3 ma!ntenance boot mode. boot /!a spec!f!c $e nel l!st $e nels a/a! !n /stand

-8'%#R S H"#P #% 0UT4744T 0UT4%"0ACH PA'3P0TH 0#TP0TH C45%P0TH D'%P#01 #%0UT4<# <0%T%'T" P88%UPP4AT O88%UPP4AT A"0D5E3 A"0D%% #%70TCH 70TCH #%"%T "%T "nte Help <ac!l!ty #!st '%# ut!l!t!es %et o clea autoboot fla( !n stable sto a(e %et o clea autosea ch fla( !n stable sto a(e 3od!fy p !ma y boot path !n stable sto a(e 3od!fy alte nate boot path !n stable sto a(e 3od!fy system console path !n stable sto a(e D!splay boot and console paths !n stable sto a(e #!st contents of autoboot f!le %ets o d!splays <0%T%'T" 7oots the sP88 %uppo t Qe nel f om the boot de/!ce 7oot the sO88 %uppo t Qe nel f om the boot de/!ce D!splays contents of one 2o d of 5E3 D!splays contents of one 2o d of stable sto a(e #!st contents of batch f!le "+ecute commands !n batch f!le #!st contents of "%T ,"+tended %elf Test- f!le "+ecute commands !n "%T ,"+tended %elf Test- f!le

'#%' to see a l!st of the '%# ut!l!t!es.

---------- GSP commands ---------.%P - .ua d!an %e /!ce P ocesso . 7'4% le/el command& access!ble e/en 2hen mach!ne !s !n Po2e 4ff state. Use se !al console o #05 console& h!t ^7 default !s unsecu ed so 9ust p ess ente fo use name and pass2o d to (a!n .%PR p ompt access. 0ccess!ble all the t!me& !t 2!ll not cause any !nte upt!on of unn!n( system. 'f mach!ne (ets !nto boot p ocess& use sess!on to .%P 2!ll end. H" H help& #' !n the e l!st commands) HHHH .%P Help HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH,0dm!n!st ato -HHH 0C ) 0le t d!splay Conf!(u at!on PC ) Aemote Po2e Cont ol 0A ) 0utomat!c %ystem Aesta t conf!(. P. ) Pa.!n( pa amete setup

C0 ) Conf!(u e asynch/se !al po ts %tatus C# ) Console #o(- /!e2 console h!sto y s!(nal C4 ) C4nsole- etu n to console mode te+tC%P ) Connect to emote %e /!ce P oc. system DC ) Default Conf!(u at!on buffe D' ) D'sconnect emote o #05 console cont ol "# ) "nable/d!sable #05 access modules "A ) "nable/d!sable Aemote/modem Cont ol H" ) D!splay H"lp fo menu o command othe use s 'T ) 'nact!/!ty T!meout sett!n(s d!splay #C ) #05 conf!(u at!on use s #% ) #05 %tatus of .%P 3A ) 3odem Aeset 3% ) 3odem %tatus -8C4

P% A%

) Po2e

mana(ement module

) Aeset %ystem th ou(h A%T

%D3 ) %et D!splay 3ode ,he+ o %" %# %4 %% TC T" ) %"ss!on- lo( !nto the ) %ho2 #o(s ,chass!s code ) %ecu !ty opt!ons U access ) %ystem %tatus of p oc. ) Aeset /!a T ansfe of

) T"ll- send a ms(. to

E<P ) E! tual < ont Panel @H4 ) D!splay connected .%P XD XU ) D!a(nost!cs and/o Aeset

) Up( ade the .%P <! m2a e

etu n to console mode& e+!t .%P. cont ast to e+!t& 2h!ch 2!ll lo(off a telnet to the #05 console sess!on. #%& #C %ho2 and conf!(u e #05 console sett!n(s ,'P& hostname& etc-& e+t emely useful& ma$e su e to conf!(u e !t6 TC %end s!(nal to 4%& fo ce !t to do a co e dump and eboot. P obably s!m!la to %un 47P sync cmd. A% Ha shes esta t of system& no 4% !nte act!on& no co e. %U5 473 eset. PC allo2 tu n!n( mach!ne on/off. Can pe fo m po2e cycle. .%P and #05 console 2!ll ema!n usable afte po2e off. Cont ast to %U5 #43 and 0'X se !al access& 9ust need to ha/e po2e fed !nto mach!ne. P% 3on!to status of po2e supply& fan& etc. %# C# %ho2 lo(& .%P le/el lo((!n(& 2!th t!mestamp !n UTC/.3T. Use th!s command to clea attent!on l!(ht. %ho2 te+t messa(e that has been d!splayed to the console. o of the #"D !n f ont of

E<P d!splay a /! tual f ont panel& a m! mach!ne.

Random Dai y Tas!s

chan(!n( hostname of a mach!ne /etc/ c.conf!(.d/netconf /etc/hosts //a /adm/!netd.sec * top& see H4%T503"H"name" * may not be needed. eboot-

hostname 5"@503" ,use th!s !nstead of don't use setFpa m sam o$ay& but chec$ f!les abo/e.

mo/e mach!ne to ne2 subnet& maybe use sam !nstead of conf!( f!le chan(es fo 'P/5'C sett!n(s o else need to ed!t mult!ple places.

c eat!n( /de//=e o cd /de/ m$nod =e o c C 8+88888> cho2n b!n)sys =e o chmod KKK =e o Chan(e system default t!me=one) ed!t /etc/T'3"T45" to be) TTHP%TPPDT e+po t TT

%ett!n( up 5'% 2!th p edef!n!ed l!st of se /e s. /etc/ c.conf!(.d/namese /e )) 5'%FD430'5-"t!tan!umle(.com" ,/e !fy 2!th doma!nname& !mmed!ate act!/at!on /!a doma!nname t!tan!umle(.com//a /yp/secu ese /e s )) ?8.B?D.?8.BDD ?8.B?D.?8.?O ?8.B?D.B8.BDD ?8.B?D.B8.B? ?8.B?D.C8.BDD ?8.B?D.C8.K ?8.B?D.>8.BDD ?8.B?D.>8.?MM /us /l!b/nets/c/yp/ypb!nd 5ote that yp!n!t can only be used to setup maste not to !n!t cl!ent conf!(. o sla/e se /e

s2ap/pa(!n( s2ap!nfo s2apon /de///(8?/l/olB /etc/fstab ent y) /de///(8?/l/olB / s2ap * act!/ate s2ap pa t!t!on defaults 8 8 * s2ap de/!ce

/us /sb!n/sam (oto Pe fo mance 3on!to s -R %ystem P ope t!es the e a e tabs fo cpu and memo y !nfo

$o ume %ana#ement
c"eatin# "oot and s&ap 'o umes (usin# L$%)
[Adapted from Unix Sys Admin Handbook (USAH) p146.]
!oscan -fnC d!s$ * scan fo d!s$ de/ path p/c eate -7 /de// ds$/cCt?Dd8 * ma $ d!s$ fo use as PE !n #E3 dd !fH/de//=e o ofH/de// ds$/cCt?Dd8 bsHK>$ countH?8 * 2!pe out obsolete #E3 ma $!n( on d!s$ so that * p/c eate 2!ll not compla!n& e un p/c eate cmd m$d! /de///(8? m$nod /de///(8?/( oup c K> 8+558888 he+& t y 8?& 8B& ... /de///(:/( oup /(c eate -sP /de///(8? /de//ds$/cCt?Dd8 Phy "+tend H P mb m$boot /de// ds$/cCt?Dd8 l/c eate -C y s!=e ?8B> 37 n -# ?8B> /de///(8? * c eate a ne2 /ol ( p. 2/ * c K> !s d!s$ ma9o numbe * 8+558888 !s un!I m!no numbe * e(& ch$ a(a!nst ls -l

* ma$e !t bootable d!s$ * c eate cont!(uous de/ l/ol?

l/c eate -C y automat!cally

n -# ?8B> /de///(8?

* d!tto& 2!ll be named l/olB * ma$e l/ol? a boot pa t!t!on * ma$e l/olB a s2ap de/ * c eate the fs as /e !tas fs * act!/ate s2ap

l/lnboot - /de///(8?/l/ol? l/lnboot -s /de///(8?/l/olB ne2fs -< /+fs /de///(8?/ l/ol? s2apon /de///(8?/l/olB /! /etc/fstab...

* s2ap add!t!on l!$e th!s eI d!s$ to ha/e a boot pa t!t!on& e/en on Bnd d!s$. * sam may p o/!de eas!e alte nat!/e. * also& may need to set $e nel pa am ma+s2apchun$ 2h!ch l!m!t ma+ s2ap s!=e !n byte * calc as s2chun$ : D"EF7%'T"& 2hose def a e B8>P and ?8B>& esp.

non "system" /olumes can be c eated as& e( /us /local) l/c eate /de///(88 l/e+tend -# B888 /de///(88/l/ol?? * allocate B .7 fo the #o( Eol. ne2fs -< /+fs /de///(88/ l/ol?? * l/ol?? ass!(ned dyn f om abo/e Clean up p ocedu e& e/e se of c eate... l/ mboot - /de///(8? * emo/e oot /ol * undo l/lnboot l/ emo/e /de///(8?/l/olB * emo/e the lo(!c /(8? l/ emo/e /de///(8?/l/ol? /( emo/e /( * emo/e the 2hole bdf eI fo the #E. and -s /ol l/olB f om /ol ( p

* df& be $eley /e s!on

( o2f!n( the fs) l/d!splay /de///(88/l/olX * f!nd out #" /alue umount /fsmount l/e+tend -l leFnumbe /de///(88/l/olX * * e+tendfs /de///(88/l/olX * ;<% fsadm -< /+fs s!=e /fsmount * mount /fsmount

2he e leFnumbe !s ne2 #" /alue o -# s!=e'n37 ,f!nal s!=e2!ll f!ll up all allocated #"& !nc ease fs fo onl!ne;<%. need

unless ha/e onl!ne;<%& need unmount befo e e+tend. //a & /us boot !nto s!n(le use mode ,'%# hpu+ -!s& -lm ma!n mode 2on't 2o $6l/e+tend& e+tendfs& then eboot to !nc ease such fs. 5ot su e ho2 to do / 66

NOTE /, /stand and s ap re!"ire spe#ia$ po$i#y of %#onti&"o"s%, and t'"s #annot be extended( ()'ey "s"a$$y #orrespond to $*o$1 to $*o$+). ,i-ar #an do it by mi&ratin& to anot'er disk and if on$ine./S is "sed.

Setup *oot dis! mi""o"in#

0oot disk mirrorin&. Adapted from H12U3 11i system administration 'andbook and too$kit, 4nd 5d, by 1oniato ski. p146 Here is t'e pro#ed"re to mirror root disk, 'i#' "ses H1U3 nati*e 789, and not t'e 8eritas 8o$"me 9ana&er t'at t'e :S a$so s'ips it'. Wa"nin# ,'i$e t'is mirrorin& soft are is nati*e to t'e H12U3 :S, it is an option t'at re!"ires more money. $*extend -m is t'e mirrorin& option t'at need $i#ense to be a#ti*ated.
*** *** NN T4D4) f!nd out ho2 to dete m!ne !f mach!ne has l!cense fo m! o !n(. *** * e(& e+!st!n( /(88 !s !n /de//ds$/c?tBd8 ,8/8/?/?.B.8* ne2 d !/e fo m! o !s /de//ds$/cBtBd8 ,8/8/B/8.B.8-

)'e /et#/fstab before mirrorin& is;

/de///(88/l/olC / /de///(88/l/ol? /stand /de///(88/l/ol> /tmp /de///(88/l/olD /lhome /de///(88/l/olK /opt /de///(88/l/olO /us /de///(88/l/olP //a !oscan -funC d!s$ p/d!splay /de//ds$/c?tBd8 p/d!splay /de//ds$/cBtBd8 d!s$.

/+fs hfs /+fs /+fs /+fs /+fs /+fs

delaylo( defaults delaylo( delaylo( delaylo( delaylo( delaylo(

8 8 8 8 8 8 8

? ? B B B B B

* (et l/m !nfo of e+!st!n( d!s$. * (et e & no l/m def on !t& a2 * add phys!cal d!s$ to be used by * !nco po ate ne2 d!s$ to

p/c eate -7 /de// ds$/cBtBd8 #E3 /(e+tend /de///(88 /de//ds$/cBtBd8 e+!st!n( /(88 * do some chec$!n( st !n(s /etc/l/mtab l!fls /de// ds$/c?tBd8 l!fls /de// ds$/cBtBd8

* see ne2 d!s$ used by l/m * see lot of boot ut!l * no boot ut!l& add ne+t...

m$boot /de// ds$/cBtBd8 * m$boot -a "hpu+ -lI" /de// ds$/cBtBd8 * %"C45D0A1 d!s$& add 0UT4& lo2 Iuo um

m$boot -a "hpu+ -lI" /de// ds$/c?tBd8 * PA'30A1 d!s$& lo2 Iuo um ,SSl!fls /de// ds$/cBtBd8 e+tens!/e * see boot ut!l& but not as * as p !ma y d!s$. 't !s o$.

*** *** The ne+t steps 2!ll actually pe fo m the m! o & *** and !t 2!ll fa!l !f -m m! o !n( opt!on !s not act!/ated 2!th /al!d l!cense *** l/e+tend -m ? /de///(88/l/ol? l/ol?H/stand l/e+tend -m ? /de///(88/l/olB , ootl/e+tend -m ? /de///(88/l/olC l/olCH,s2ap* Aepeat fo all l/olX... l/e+tend -m ? /de///(88/l/olP l/olPH,//a l/e+tend -m ? /de///(88/l/olO l/olOH,/us l/e+tend -m ? /de///(88/l/olK l/olKH,/optl/e+tend -m ? /de///(88/l/olD l/olDH,/lhomel/e+tend -m ? /de///(88/l/ol> l/ol>H,/tmpsetboot setboot -a 8/8/B/8.B.8 *** *** To undo the m! *** o !n( p ep 2o $) /de//ds$/cBtBd8 * add m! /de//ds$/cBtBd8 * add m! /de//ds$/cBtBd8 * add m! /de//ds$/cBtBd8 /de//ds$/cBtBd8 /de//ds$/cBtBd8 /de//ds$/cBtBd8 /de//ds$/cBtBd8 o o o fo fo fo o o o o o fo fo fo fo fo l/olBH/

* add m! * add m! * add m! * add m! * add m!

* chec$ cu ent PDC bootpath * set PDCR 74 %"C ,!f needed-

/( educe /de///(88 /de//ds$/cBtBd8 p/ emo/e /de// ds$/cBtBd8 *** *** *** Aeplac!n( a m! o d!s$ ?>M * /ol ( p conf * chan(e /ol * esync

/(cf( esto e -n /de///(XX /de// ds$/c... esto e /(chan(e -a y /de///(XX ( p to a/a! lable ,-a y/(sync /de///(XX lo(!cal /ol !n /ol ( p. *** *** Aeplace m! o ed d!s$ boot d!s$ *** 'n add!t!on to no mal m! o d!s$ *** add)

eplacements steps abo/e&

*** m$boot /de// ds$/c.t... m$boot -a "hpu+ lI" /de// ds$/c... eboot * /(cf(bac$up !s un automat!cally on eboot

Ot+e" $o ume %ana#ement Commands

H12U3 <= 11 defa"$t boot disk is "nder #ontro$ of 789 2 7o&i#a$ 8o$"me 9ana&er. Note H12U3 s'ip s it' TWO 789. An nati*e *ersion for #ore :S partitions, and 8eritas 8o$"me 9ana&er for "se it' data partitions. /i$esystem #reated by 789 #an be 'fs (/stand, boot st"ff) and *xfs (root, /*ar, /"sr, et#). /"rt'er note t'at in addition to *xfs, H1 ta$ks abo"t ./S and on$ine./S, see fs#k. )o some extend, t'is is akin to So$aris, 'ereby some admin "se t'e S"n 8o$"me 9ana&er (>isk S"ite) for :S disks, and 8eritas for data disks. H12U3 ?"st 'appen to s'ip bot' pre2insta$$ed.
#E3 de/!ces a e /de///(88/l/ol5 E+Em de/!ces a e /de///+/ds$/ ootd(//ol55 #E3 cmds a e l/... p/... /(... E+Em cmds a e /+... --#E H lo(!cal /olume& s!m!la !oscan -fnC d!s$ d!s$!nfo p/c eate -7 /de// ds$/cCt?Dd8 * !n!t a a2 d!s$ de/ as de/ fo #E3 -!e ma$e a PE. p/ emo/e /de// ds$/cXtXd8 * e/e se/undo of p/c eate p/d!splay /de//ds$/c?t?Dd8 * d!splay phys!cal /ol !nfo ,d!s$ to /ol ( p !nfo* de/ path f om !oscan output /(d!splay -/ /(88 * d!splay ,/e bose- /ol ( p !nfo * /(88 H oot /ol ( p ,system f!les* /etc/l/mconf l!st all /ol ( p !n system * sho2 lo(!cal to phy e+tents map fo o !n( sect!on. to pa t!t!on/sl!de of sola !s. * scan fo all ha d d !/es ,N cd/d/d-.

l/d!splay -/ /de///(88/l/olP lo(!cal /ol

* a fe2 mo e commands. some sample e( !n #E3 m! /(e+tend /( educe /( emo/e be (one-

* /ol ( p& add d!s$ to * /ol ( p& emo/e d!s$ f om * /ol ( p& emo/e !t completely ,all lo( /ol !n !t 2!ll

l/c eate l/e+tend conf!( l/ educe l/chan(e l/ emo/e l/lnboot

* lo(! /ol& c eate ,!n!t!al setup* lo(! /ol& add space ,phys!cal e+tents- o * * * * lo(! lo(! lo(! ma$e


/ol& educe space o emo/e m! o /ol& chan(e allocat!on pol!cy ,con(t!(uous& etc/ol& emo/e !t completely ,fs 2!ll be (onel/ bootable.

ne2fs& e+tendfs etc a e appl!ed to #E to ma$e usable f!lesystem.

,i esystem
mount!n( cd om) mount -o o -< cdfs /de//ds$/cBt?d8 /mnt/cd om

alte nate app oach ,d!ff fo matS !ona cd-) pfsFmountd U pfsd U pfsFmount /de// ds$/cBt?d8 /mnt/cd om pfsFumount /mnt/cd om

Connecti'ity (-et&o"!)
automount typ!cal auto sta tup ,f om ps-) /us /l!b/nets/c/fs/automount/automount -f /etc/autoFmaste 0ACHH%CFHPUX * old automount /us /l!b/nets/c/fs/autofs/automountd -D 0ACHH%CFHPUX * ne2e autofs& /net may need some 4% path !n P0A'%C -D

/etc/ c.conf!(.d/nfsconf * set both to be su e6 0UT4F4PT'45%H"-f V0UT4F30%T"A -D 0ACHH%CFHPUX" *olde automount 0UT434U5TDF4PT'45%H"-D 0ACHH%CFHPUX" *ne2e autofs see sambple conf!( !n hpu+/nfsconf /sb!n/!n!t.d/nfs.cl!ent sta t ead the std out f om th!s sc !pt sta tup f!le !s !n /sb!n/!n!t.d/nfs.cl!ent 5ote that !f 5'% map auto.maste use undesco e l!$e autoFhome& * automount/autofs& can

hpu+ 2on't be able to t anslate that to auto.home 0s such& a sle2 of f!les need to be added !n /etc/autoFhome 2!th conent of Nauto.home /etc/auto.p oducts /etc/auto.automnt )) )) Nauto.p oducts Nauto.automnt

Con/e t!n( 5'% se /e to ha/e map 2!th '.' should 2o $. 7ut af a!d b ea$ othe 4% platfo m& not 2ell tested yet. 7ut 4h!o 5'% use that and !t 2o $s f!ne6 0ss hole befo e c eated the %50<U fo me. <o compat!b!l!ty !ssues& !t !s p obably best to a/o!d both . and F !n the f!lename The e should not be eason 2hy one can't use autoFmaste to ha/e ent !es l!$e) /p oducts autop oducts * !e& no . o F 5ot su e of the effect on autoFhome and autoFd! ect 5<% /etc/fstab /de///(88/l/olP netapp)//ol//ol?/use s/sa /etc/e+po ts /opt //a - o - o /us /+fs /mnt/sa nfs delaylo( 2&!nt &ha d 8 B 8 8

e+po tfs -a

lanscan -/ !fconf!( lan8 lanadm!n -+ 8 lanadm!n -X ?88<D 8 !oscan -fnC lan lsde/ -C lan * * * * l!st all 5'C& !fconf!( -a doesn't 2o $. /e bose& sho2 n!c and d !/e & etc almost all 5'C a e lanX tell 2hat !s cu ent 5'C conf!(& e( duple+ * 8 !s 53'D f om lanscan. * fo ce sett!n(s& fo th!s sess!on only. * !d ca d type and d !/e . * l!st all de/!ces of Class lan * a-class bu!ld-!n 5'C * some old bo+ add on n!c

/etc/ c.conf!(.d/hp:conf e( hpbtlanconf H btlan hp(sc?88conf H btlan> hsc 9CD?Da hpbasetconf H btlan?

hpbase?88conf H btlanC 'nte nal ,co e- #05 ca d hppc!?88conf H btlanD "e+te nal" pc! ca d 0DBC80 hpsppc!?88conf H btlanK E-class pc! lan ca d * Update th!s f!le to * ha d coded 5'C sett!n(s ,speed and duple+& e( ?88 <D* emembe to add the ca d !nte face e( lan8 !n the name * sect!on& o !t 2!ll ha/e no effect6 * can also chan(e sett!n(s /!a lanadm!n -X ?88fd * but !t 2!ll not l!/e th u eboot. Dete m!n!n( / sett!n( n!c duple+ and speed http)//fo ums?.!t c.hp.com/se /!ce/fo ums/Iuest!onans2e .doS th ead'dHKP>K?> net2o $ d !/e patch fo some old ,a-classS- mach!ne btlan PH5"FBBOBO patch fo btlan fo hpu+ ??.??& olde & stable& safe patch PH5"FBC>KD latest btlan patch& ha/e some 2a n!n(s. !f 2o $& autone( 2!ll 2o $ bette .

-et&o"! Con.i#

chan(e D5% se /e s /etc/ esol/.conf * same as sola !s/a!+. sam& net2o $!n( and commun!cat!ons& D5% ,7'5D-& D5% Aesol/e use 3enu& 0ct!ons& %et Default Doma!n... to add "sea ch" fo doma!ns. conf!( f!le ed!t !s eas!e & only ? f!le.



chan(e !p/netmas$) sam& net2o $!n( and commun!cat!ons& net2o $ !nte face ca ds * th!s e/en allo2 fo speed duple+ sett!n(s66 0d/ance has mac add ess and mtu. /etc/ c.conf!(.d/netconf * 'PF0DDA"%%G8JH"?8.?8.?8.?BC" %U75"TF30%QG8J * 7A40DC0%TF0DDA"%%G8JH"" ,blan$ seems to 2o $& auto calcS/etc/hosts * ente ne2 'P of mach!ne. chan(e out!n() sam& net2o $!n( and commun!cat!ons& outes /etc/ c.conf!(.d/netconf * A4UT"FD"%T'50T'45G8JH"default" * A4UT"F30%QG8JH"" * A4UT"F.0T"@01G8JH"?8.?8.?8.?" * A4UT"FC4U5TG8JH"?" ,a!+ cons!de !t as 80dd!n( default oute !n command l!ne) oute add default netmas$ BDD.BDD.BDD.8 ?OB.BO.?PP.? ?

Se"ia /conso e po"t P"intin#

To add a net2o $ p !nte & use sam& p !nte s and plotte s& #P %poole & P !nte s and Plotte s& (o to 0ct!ons menu& 0dd Aemote P !nte 5ame of Wueue to add 2!ndo2s Hostname of emote se /e 5ame of Iueue on emote se /e Type of p !nt spoole on emote se /e chec$ emote !s 7%D--R Use p !nte name mach!n(

--R 2!ndo2s p !nt se /e name --R @!ndo2s p !nte name. --R %ystem E ,!e& don't

Sys Con.i#
Pac!a#e/So.t&a"e mana#ement
s2l!st -l p oduct l!st all p oduct/patches !n system s2l!st X ( ep -e WPQ -e .4#D dete m!ne !f any Wual!ty Pac$ o .old 7ase patch has been !nstalled ,se /!ce pac$ eIu!/-. 0ppe ently& all > of 7U5D#"??!& H@"nable??!& .old0pp and .old7ase should be !nstalled on the system. <acto y 4% !nstall !ncluded the latest elease of all the abo/e > patch bundles. s2l!st -l p oduct X ( ep PH loo$ fo !nstalled patches. -l p oduct seems to be needed fo ??! s2!nstall -f mysoft -s /mnt/cd supposed to !nstall soft2a e l!sted !n f!le mysoft f om cd om s2!nstall -s /home/sa/sha e/soft2a e-!n-cd/hpu+FaCNN/aCN NComp!le .P88.depot


needed to fully spec!fy the depot f!le befo e the damn th!n( eco(n!=e the f!le. 't !s eally 9ust a ta f!le.

s2!nstall -s /e+po t/tmp/bash.depot Y: !nstall e/e yth!n( !n the depot ,!n th!s case& su e the e !s bash only-. see ema!l about 2he e (nu tools a e do2nloaded Ghttp)//hpu+.cs.utah.edu& depot fo mat& some !ns to /us /local/b!n& othe to /opt& !nto p oduct spec!f!c subd! s6J

patch !nstall e() ,patch !s obta!ned !n a "depot" f!le fo mat& 2h!ch !s eally a ta . 'nst uct!on p esented !n he e !s also !n a te+t f!le !ns!de the ta .http)//222B.!t c.hp.com/se /!ce/patch/patchDeta!l.doS patch!dHPH%%FB88DDUconte+tHhpu+)P88)??)88 ?. 7ac$ up you B. #o(!n as system befo e !nstall!n( a patch.


C. Copy the patch to the /tmp d! ecto y. >. 3o/e to the /tmp d! ecto y and unsha cd /tmp sh PH%%FB88DD D. Aun s2!nstall to !nstall the patch) G to chec$ that depot has been do2nloaded co ectly) s2l!st -d @ /full/absolute/path/PH%%FB88DD.depot J s2!nstall -+ auto ebootHt ue -+ patchFmatchFta (etHt ue Y -s /tmp/PH%%FB88DD.depot 7y default s2!nstall 2!ll a ch!/e the o !(!nal soft2a e !n //a /adm/s2/sa/e/PH%%FB88DD. 'f you do not 2!sh to eta!n a copy of the o !(!nal soft2a e& use the patchFsa/eFf!les opt!on) s2!nstall -+ auto ebootHt ue -+ patchFmatchFta (etHt ue Y -+ patchFsa/eFf!lesHfalse -s /tmp/PH%%FB88DD.depot @0A5'5.) 'f patchFsa/eFf!les !s false 2hen a patch !s !nstalled& the patch)

the patch cannot be de!nstalled. 2hen us!n( th!s featu e. <o !s futu e

Please be ca eful

efe ence& the contents of the PH%%FB88DD.te+t f!le eadme) eadme -d @ /tmp/PH%%FB88DD.depot

a/a!lable !n the p oduct

s2l!st -l p oduct -a

To put th!s patch on a ma(net!c tape and !nstall f om the tape d !/e& use the command) dd !fH/tmp/PH%%FB88DD.depot ofH/de// mt/8m bsHB$

Ke"ne /System Tunin#

sysdef $mtune -l ,!n /us /sb!nul!m!t -a * sho2 many ,but not all- $e nel pa amete s * l!st all $e nel pa amete s& -l fo lon( l!st * d!splay all l!m!ts& belo2 a e p obably defaults. B8MO?D? ?8>PDOK unl!m!ted unl!m!ted B8>P ?K P?MB unl!m!ted OK unl!m!ted

co e f!le s!=e ,bloc$s& -cdata se( s!=e ,$bytes& -df!le s!=e ,bloc$s& -fma+ memo y s!=e ,$bytes& -mopen f!les ,-np!pe s!=e ,D?B bytes& -pstac$ s!=e ,$bytes& -scpu t!me ,seconds& -tma+ use p ocesses ,-u/! tual memo y ,$bytes& -/-

ul!m!t -s * def!ne stac$ s!=e. (o/e ned by $e nel stat!c pa ams and def /als ma+s!= PCPPK8P ,P$ma+s!=FK>b!t PCPPK8P su((ested /al fo small se /e >8?K8>K8P ,ma+ allo2ed& CPCQul!m!t -n * def!ne ma+ open f!les& def $e nel /alues) ma+f!les B8>P stat!c >8MK * soft ma+f!lesFl!m B8>P dynam!c P?MB * ha d

ma+use s npty nst pty

* num of use s& base pa am as mult!pl!e * does not actually (o/e n lo(!ns. * pty fo use lo(!n sess!ons. * can set them to ?888

by othe

pa ams

nst tel np oc * ma+ p ocesses that can e+!st on system& ??! H stat!c * def B8 N P : 30XU%"A% ,DMPPS-

use sam to def!ne ne2 pa ams and bu!ld ne2 $e nel. esta t !s needed.

@erne$ parameters in defa"$t os is not *ery &ood for $ar&e ser*er, /or $ar&e ?a*a app ser*ers, &et H1 too$ .a*a4 :"t2of2box and it i$$ p$"& in a$$ desireb$e parameters. 1robab$y &ood for a$$ ser*er. 'ttp;// .'p.#om/prod"#ts1/"nix/?a*a/?a*a4/o"tofbox/
do2nload .depot& s2!nstal -s /full/path/to/9oobFB8CF??88.depot -+ auto ebootHt ue Y: AeI eboot. /us /sb!n/$mtune 2!ll d!splay the $e nel pa ams. 't should mod!fy) ma+use s D?B np oc B8>P ma+Fth eadFp oc C888 n$th ead K888 nf!le C888 ma+f!les B8>P ma+f!lesFl!m B8>P ncallout K888 ma+ds!= B8KCPCD?CK tcpFconnF eIuestFma+ B8>P

0ddin# Inte"nationa Lan#ua#e/Loca e suppo"t

7y default& all the bas!c suppo t fo !nstalled. Chec$ 2!th "locale -a". !nte nat!onal lan(ua(e a e

The CD" lan(ua(e may need to be !nstalled manually) 'nse t CDB of HP-UX ??! <oundat!on 4pe at!n( "n/! onment& then un %03 %oft2a e 'nstall and add the CD" bundle of the des! ed lan(ua(e.

Ha"d&a"e commands
mode$ 2 &i*e ma#'ine mode$ info

Dia#nostic too s
d!a(nost!cs tools) netfmt -,lot of opt!ons- //a /adm/nettl.#4.nnn R /tmp/nettl.t+t con/e t the net2o $ p oblem lo( f om b!na y to te+t opt!ons may ha/e been -l -5 -n -f stm& cstm +stm ha d2a e d!a(nost!c p o( am.

te+t menu& cl! and X based.

p obably not 2ell $no2n& suppo t people use onlyS tus$ some so t of net2o $ t oubleshoot!n( ut!l.

Random Stu..
/or t'ose from So$aris ba#k&ro"nd;
"n/ /a !ables) %H#'7FP0TH !s used !nstead of %ola !s #DF#'7A0A1FP0TH #DF#'7A0A1FP0TH fo K> b!t /e s!on l!bs. %ola !s #DF#'7A0A1FP0THK> #'7 The e maybe someth!n( about the en/ /a also. dosBun!+ Couldn't f!nd such command tool& only found cha con/. cha con/ con/e t !nput f!le to des! ed output fo mat -u H un!+ #< -d H dos CA#< -m H mac CA -! !nputf!le& default !s std !n -o outputf!le& default to std out --help mo e con/e s!on !nfo& !nclud!n( "7CD'C e() cat doste+t.t+t X cha con/ -u R un!+output.t+t Comp!le ) The bundled cc comp!le !n /us /ccs/b!n/ccFbundled only ta$es QUA funct!on p ototype synta+& not 0ns! C. 3oney2a e aCC !s 0ns! C compl!ant and !nstalls to /opt/aCC.

5ot su e.

HP-UX ,"ee&a"e
'nfo about !nstall!n( hpu+ (nu f ee2a e f om hpu+.cs.utah.edu. !nto 5<% se /e cent al locat!on. 5o eal need to use %03 to !nstall the pac$a(e and +fe to 5<% se /e . Can 9ust do ta t !c$& see note belo2. @a n!n() %ome adm!n may see th!s as $lud(e as !t bypass the soft2a e mana(ement tool. 1ou cho!ce )/!mpo t/hpu+??88/us /localV cat d! .!nfo Th!s d! !s automounted as /!mpo t/hpu+??88/us /local Ea !ous l!n$ 2ould e+!st po!nt!n( to the pa ent d! of /!mpo t/hpu+??88& such as /t!tan!umle(!t. 't could also be a syml!n$ f om sl!(htly d!ff /e s!on of HP-UX ??.+

These f!les a e (nu f ee2a e depot f!les fo hpu+.cs.utah.edu

HP-UX ??.88 f om

The sou ce !s netapp)//ol//ol?/depot/hpu+??88/us /local The sou ce depot f!les a e hac$ed /!a unta put them !nto the des! ed us /local/b!n etc t ee st uctu e) (un=!p :.ta m$d! unta ed cd unta ed fo !tem !n Zls ../:.depotZL do ta +f V!tem done m$d! -p cleaned/us cp -pA :/:/us /: cleaned/us and f!nally the clean ed/us /local d! --the opt d! !s e+t acted !n s!m!la manne ) !s mo/ed he e. and set of cp commands to

m$d! -p cleaned/opt cp -pA :/:/opt/:/: cleaned/opt/ ---