Sie sind auf Seite 1von 18

Sys Admin Pocket Survival Guide - HP-UX

HP-UX 101
The default setup of HP-UX often "messes up" ^C and '@' symbol.
Default HP-UX /etc/pof!le map !nteupt to "D"#" and $!ll to @.
Th!s cause lot of confus!on. %o& ' ecommend that you update you $eyboad
mapp!n( once you (et to a shell pompt)
stty !nt
stty $!ll
stty -a * chec$ you sett!n(s.
SAM
Te+t Use 'nteface ,TU'- fo sys conf!( ,.U' /es!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 ty !f you ae adm!n
fom 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 aound& space $ey fo select. 0o2 $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!nay f!les& but see all /olume (p hee-
/sb!n/c.conf!(.d/
/sb!n/c.d/
SYSTEM SETUP
::::: 'n!t!al system !nstall chec$l!st) :::::
"nsue that / and /us ae fa!ly b!(& as these ae not not e+pandable
unless !n s!n(le use mode ,o maybe onl!ne;<%-.
3ost othe /olumes st!ll need to be unmounted befoe fs can (o2&
so est!mat!n( coect s!=e !s petty !mpotant.
4nl!ne;<% should allo2 fs e+pans!on 2/o unmount l!$e 0'X& but moe money.
.et latest of all > of 7U5D#"??!& H@"nable??!& .old0pp and .old7ase and
!nstall them.
<actoy 4% !nstall !ncluded the latest elease of all the abo/e > patch
bundles.
Up(ad!n( 4%.
Default CD med!a allo2 fo both !n!t!al setup and up(ade.
Up(ade has spec!al pocedue to !nstall lot of depot f!st 2hen system
st!ll unn!n(. !pt!de 2as up(aded fom ??.88 to ??.??& seems to un
f!ne.
--------------
Update HP-UX fom ?8+ and ??.8 to ??!)
!nstall update-u+ soft2ae fom CD& then un /us/sb!n/update-u+ -s /cdom
HPUX??!-4".
--
HP-UX /es!ons
P0-A'%C) ?8.B8 ,"4#-& ??.88 ,??-& ??.?? ,??!-& ??.BC ,ca B88D/8D-
'tan!um) ??.B8& ??.BB& ??.BC
BOOT TIME TROUBLESHOOTING
Aeco/ey of unbootable system.
Default setup CD has opt!on to do th!s. 't may help 2hen E+<% has cashed
some c!t!cal 4% pat!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 tem!nal to se!al console-
Pess and hold "%C at the be(!nn!n( of the boot pocess ,!t should pompt&
but !f not& 9ust h!t "%C l!$e ca=y-.
'n the PDC ,f!m2ae pocesso dependent code-& ente 74 to boot. ,o 74
P8 !sl-& 2hee P8 !s the boot de/!ce to use& 2hoh2n by %"0ch.
@hen !t as$ 2hethe to use !nteact!/e '%# ,!n!t!al system load-& say yes.
a the '%# pompt& ente )
hpu+ -!s
G the !s a 'hpu+ -lm' fo ma!ntenance mode also !t pobably
doesn't mount the / fs us!n( nomal 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 coupted.
-lI H l/m& !(noe fa!led m!o d!/e allo2 boot!n( of mach!ne
2hen one of the m!oed d!/e ha/e fa!led.
ll H l!st content of /stand& thus see f!lename of altenate
$enel usable /!a e( -lm /stand//mun!+.altenate
J
0fte th!s& should see these messa(es and the lo(!n pompt)
7oot
) d!s$,scs!.KL8-/stand//mun!+
MKKK?KNCMOC?BN>8MKPP stat 8+KcD8
Qenel %tatup 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 $eyboad 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 coupted 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!oed 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 eos& th!s method
* may (!/e moe !nstuct!ons to cmd of ho2 to do the clean!n(.
* by spec!fy!n( -< /+fs& allo2 use of !ntent lo( ,9ounal!n(-
* featue of ;<% and thus completes much Iu!c$e.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
clea out attent!on l!(ht !n font panel thu se!al console sess!on)
^7 & ente B+
(et !nto (sp mode ,.uad!an %e/!ce Pocesso cl!-
(!/e access to b!os le/el contol of the mach!ne&
/!e2 /fp ,/!tual font panel-& clea h2 e lo(& etc.
sl * sys lo(
e * eos
n * no f!lte
I * Iu!t
co * e+!t bac$ to console
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
---------- PDC commands ----------
PDC - Pocesso Dependent Code
0ccessed at boot up t!me by the had2ae to boostap the system. %tep ? of
boot!n(.4nly access!ble du!n( boot t!me.
5eed to h!t any $ey 2hen pompted !n a ?8 seconds 2!ndo2s du!n( boot
pocess to ente the PDC !nteact!on sess!on. The 2!ndo2 !s afte all
had2ae has been chec$ed and befoe 4% bootstab pocess be(!ns.
%"0 %each and d!splay bootable de/!ce.
7oot!n( fom CDA43 may need to use th!s to f!nd de/!ce path to use
fo boot!n(.
74 boot& use default de/
74 PA' boot& us!n( p!may ,default- de/
74 %"C boot& us!n( seconday d!s$. %!mple to do dual boot.
74 8/8/B/?.?D boot /!a spec!f!c path& see %"0.
'5 ente !nfo menu
0## d!splay all !nfo& thee 2!ll be mach!ne model st!n(s to detem!n
2hat class of mach!ne !t !s. e( M888/P88/0D88-DX %ystem 5ame)
!pt!de !s 0-class. some soft2ae l!$e comp!le bound to the P88
des!(nat!on. Class !nfo usually not sho2n !n ta(/model !nfo !n
font os system ),
3" memoy !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 $enel
off /stand fom the had d!/e.
'nteact!ons !n hee allo2 boot !nto s!n(le use mode& etc.
%ee H4@T4 sect!on and hpu+ command !s !n '%#.
hpu+ -!s * s!n(le use mode. 5o pass2od eI66
hpu+ -lm * #E3 ma!ntenance boot mode.
hpu+ -lm /stand//mun!+.pe/ * boot /!a spec!f!c $enel
hpu+ ll * l!st $enels a/a! !n /stand
-8-
'%#R S
H"#P Help <ac!l!ty
#% #!st '%# ut!l!t!es
0UT4744T %et o clea autoboot fla( !n stable stoa(e
0UT4%"0ACH %et o clea autoseach fla( !n stable stoa(e
PA'3P0TH 3od!fy p!may boot path !n stable stoa(e
0#TP0TH 3od!fy altenate boot path !n stable stoa(e
C45%P0TH 3od!fy system console path !n stable stoa(e
D'%P#01 D!splay boot and console paths !n stable stoa(e
#%0UT4<# #!st contents of autoboot f!le
<0%T%'T" %ets o d!splays <0%T%'T"
P88%UPP4AT 7oots the sP88 %uppot Qenel fom the boot de/!ce
O88%UPP4AT 7oot the sO88 %uppot Qenel fom the boot de/!ce
A"0D5E3 D!splays contents of one 2od of 5E3
A"0D%% D!splays contents of one 2od of stable stoa(e
#%70TCH #!st contents of batch f!le
70TCH "+ecute commands !n batch f!le
#%"%T #!st contents of "%T ,"+tended %elf Test- f!le
"%T "+ecute commands !n "%T ,"+tended %elf Test- f!le
"nte '#%' to see a l!st of the '%# ut!l!t!es.
---------- GSP commands ----------
.%P - .uad!an %e/!ce Pocesso.
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 unsecued so 9ust pess ente fo usename and
pass2od to (a!n .%PR pompt access.
0ccess!ble all the t!me& !t 2!ll not cause any !nteupt!on of unn!n(
system.
'f mach!ne (ets !nto boot pocess& use sess!on to .%P 2!ll end.
H" H help& #' !n thee l!st commands)
HHHH .%P Help
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH,0dm!n!stato-HHH
0C ) 0let d!splay Conf!(uat!on PC ) Aemote Po2e Contol
0A ) 0utomat!c %ystem Aestat conf!(. P. ) Pa.!n( paamete setup
C0 ) Conf!(ue asynch/se!al pots P% ) Po2e mana(ement module
%tatus
C# ) Console #o(- /!e2 console h!stoy A% ) Aeset %ystem thou(h A%T
s!(nal
C4 ) C4nsole- etun to console mode %D3 ) %et D!splay 3ode ,he+ o
te+t-
C%P ) Connect to emote %e/!ce Poc. %" ) %"ss!on- lo( !nto the system
DC ) Default Conf!(uat!on %# ) %ho2 #o(s ,chass!s code
buffe-
D' ) D'sconnect emote o #05 console %4 ) %ecu!ty opt!ons U access
contol
"# ) "nable/d!sable #05 access %% ) %ystem %tatus of poc.
modules
"A ) "nable/d!sable Aemote/modem TC ) Aeset /!a Tansfe of Contol
H" ) D!splay H"lp fo menu o command T" ) T"ll- send a ms(. to othe
uses
'T ) 'nact!/!ty T!meout sett!n(s E<P ) E!tual <ont Panel d!splay
#C ) #05 conf!(uat!on @H4 ) D!splay connected .%P uses
#% ) #05 %tatus XD ) D!a(nost!cs and/o Aeset of
.%P
3A ) 3odem Aeset XU ) Up(ade the .%P <!m2ae
3% ) 3odem %tatus
-8-
C4 etun to console mode& e+!t .%P. contast to e+!t& 2h!ch 2!ll
lo(off a telnet to the #05 console sess!on.
#%& #C %ho2 and conf!(ue #05 console sett!n(s ,'P& hostname& etc-&
e+temely useful& ma$e sue to conf!(ue !t6
TC %end s!(nal to 4%& foce !t to do a coe dump and eboot.
Pobably s!m!la to %un 47P sync cmd.
A% Hashes estat of system& no 4% !nteact!on& no coe.
%U5 473 eset.
PC allo2 tun!n( mach!ne on/off. Can pefom po2e cycle.
.%P and #05 console 2!ll ema!n usable afte po2e off.
Contast 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.
%# %ho2 lo(& .%P le/el lo((!n(& 2!th t!mestamp !n UTC/.3T.
Use th!s command to clea attent!on l!(ht.
C# %ho2 te+t messa(e that has been d!splayed to the console.
E<P d!splay a /!tual font panel& a m!o of the #"D !n font of
mach!ne.
RANDOM DAILY TASKS
chan(!n( hostname of a mach!ne
/etc/c.conf!(.d/netconf * top& see H4%T503"H"name"
/etc/hosts
//a/adm/!netd.sec * may not be needed.
hostname 5"@503" ,use th!s !nstead of eboot-
don't use setFpam 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.
ceat!n( /de//=eo
cd /de/
m$nod =eo c C 8+88888>
cho2n b!n)sys =eo
chmod KKK =eo
Chan(e system default t!me=one)
ed!t /etc/T'3"T45" to be)
TTHP%TPPDT
e+pot TT
%ett!n( up 5'% 2!th pedef!n!ed l!st of se/es.
/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/secuese/es ))
?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 o sla/e se/e
not to !n!t cl!ent conf!(.
STORAGE
DISK
s2ap/pa(!n(
s2ap!nfo
s2apon /de///(8?/l/olB * act!/ate s2ap pat!t!on
/etc/fstab enty)
/de///(8?/l/olB/ s2ap defaults 8 8 * s2ap de/!ce
/us/sb!n/sam (oto
Pefomance 3on!tos -R %ystem Popet!es
thee ae tabs fo cpu and memoy !nfo
VOLUME MANAGEMENT
creating root and swap volumes (using LVM)
[Adapted from Unix Sys Admin Handbook (USAH) p146.]
!oscan -fnC d!s$ * scan fo d!s$ de/ path
p/ceate -7 /de//ds$/cCt?Dd8 * ma$ d!s$ fo use as PE !n #E3
dd !fH/de//=eo ofH/de//ds$/cCt?Dd8 bsHK>$ countH?8
* 2!pe out obsolete #E3 ma$!n( on d!s$ so
that
* p/ceate 2!ll not compla!n& e un p/ceate cmd
m$d! /de///(8?
m$nod /de///(8?/(oup c K> 8+558888 * c K> !s d!s$ ma9o numbe
* 8+558888 !s un!I m!no numbe he+&
ty 8?& 8B& ...
* e(& ch$ a(a!nst ls -l
/de///(:/(oup
/(ceate -sP /de///(8? /de//ds$/cCt?Dd8 * ceate a ne2 /ol (p. 2/
Phy "+tend H P mb
m$boot /de//ds$/cCt?Dd8 * ma$e !t bootable d!s$
l/ceate -C y - n -# ?8B> /de///(8? * ceate cont!(uous de/ l/ol? s!=e
?8B> 37
l/ceate -C y - n -# ?8B> /de///(8? * d!tto& 2!ll be named l/olB
automat!cally
l/lnboot - /de///(8?/l/ol? * ma$e l/ol? a boot pat!t!on
l/lnboot -s /de///(8?/l/olB * ma$e l/olB a s2ap de/
ne2fs -< /+fs /de///(8?/l/ol? * ceate the fs as /e!tas fs
s2apon /de///(8?/l/olB * act!/ate s2ap
/! /etc/fstab...
* s2ap add!t!on l!$e th!s eI d!s$ to ha/e a boot pat!t!on& e/en on Bnd
d!s$.
* sam may po/!de eas!e altenat!/e.
* also& may need to set $enel paam ma+s2apchun$ 2h!ch l!m!t ma+ s2ap s!=e
!n byte
* calc as s2chun$ : D"EF7%'T"& 2hose def ae B8>P and ?8B>& esp.
non "system" /olumes can be ceated as& e( /us/local)
l/ceate /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 fom
abo/e
Clean up pocedue& e/ese of ceate...
l/mboot - /de///(8? * emo/e oot /ol eI fo the #E.
* undo l/lnboot - and -s
l/emo/e /de///(8?/l/olB * emo/e the lo(!c /ol l/olB fom
/(8?
l/emo/e /de///(8?/l/ol?
/(emo/e /( * emo/e the 2hole /ol (p
bdf * df& be$eley /es!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 * 2hee leFnumbe !s ne2 #" /alue
* o -# s!=e'n37 ,f!nal s!=e-
e+tendfs /de///(88/l/olX * 2!ll f!ll up all allocated #"& ;<%
fsadm -< /+fs s!=e /fsmount * !ncease fs fo onl!ne;<%.
mount /fsmount
unless ha/e onl!ne;<%& need unmount befoe e+tend. //a& /us need boot
!nto
s!n(le use mode ,'%# hpu+ -!s& -lm ma!n mode 2on't 2o$6-
l/e+tend& e+tendfs& then eboot to !ncease such fs.
5ot sue ho2 to do / 66
NOTE
/, /stand and sap 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 boot disk mirroring
0oot disk mirrorin&.
Adapted from H12U3 11i system administration 'andbook and too$kit, 4nd 5d, by
1oniatoski. 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'.
WARNING
,'i$e t'is mirrorin& softare 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 detem!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 / /+fs delaylo( 8 ?
/de///(88/l/ol? /stand hfs defaults 8 ?
/de///(88/l/ol> /tmp /+fs delaylo( 8 B
/de///(88/l/olD /lhome /+fs delaylo( 8 B
/de///(88/l/olK /opt /+fs delaylo( 8 B
/de///(88/l/olO /us /+fs delaylo( 8 B
/de///(88/l/olP //a /+fs delaylo( 8 B
!oscan -funC d!s$
p/d!splay /de//ds$/c?tBd8 * (et l/m !nfo of e+!st!n( d!s$.
p/d!splay /de//ds$/cBtBd8 * (et e& no l/m def on !t& a2
d!s$.
p/ceate -7 /de//ds$/cBtBd8 * add phys!cal d!s$ to be used by #E3
/(e+tend /de///(88 /de//ds$/cBtBd8 * !ncopoate ne2 d!s$ to e+!st!n(
/(88
* do some chec$!n(
st!n(s /etc/l/mtab * see ne2 d!s$ used by l/m
l!fls /de//ds$/c?tBd8 * see lot of boot ut!l
l!fls /de//ds$/cBtBd8 * 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
Iuoum
m$boot -a "hpu+ -lI" /de//ds$/c?tBd8 * PA'30A1 d!s$& lo2 Iuoum ,SS-
l!fls /de//ds$/cBtBd8 * see boot ut!l& but not as e+tens!/e
* as p!may d!s$. 't !s o$.
***
*** The ne+t steps 2!ll actually pefom 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? /de//ds$/cBtBd8 * add m!o fo l/ol?H/stand
l/e+tend -m ? /de///(88/l/olB /de//ds$/cBtBd8 * add m!o fo l/olBH/
,oot-
l/e+tend -m ? /de///(88/l/olC /de//ds$/cBtBd8 * add m!o fo l/olCH,s2ap-
* Aepeat fo all l/olX...
l/e+tend -m ? /de///(88/l/olP /de//ds$/cBtBd8 * add m!o fo
l/olPH,//a-
l/e+tend -m ? /de///(88/l/olO /de//ds$/cBtBd8 * add m!o fo
l/olOH,/us-
l/e+tend -m ? /de///(88/l/olK /de//ds$/cBtBd8 * add m!o fo
l/olKH,/opt-
l/e+tend -m ? /de///(88/l/olD /de//ds$/cBtBd8 * add m!o fo
l/olDH,/lhome-
l/e+tend -m ? /de///(88/l/ol> /de//ds$/cBtBd8 * add m!o fo
l/ol>H,/tmp-
setboot * chec$ cuent PDC bootpath
setboot -a 8/8/B/8.B.8 * set PDCR 74 %"C ,!f needed-
***
*** To undo the m!o!n( pep 2o$)
***
/(educe /de///(88 /de//ds$/cBtBd8
p/emo/e /de//ds$/cBtBd8
***
*** Aeplac!n( a m!o d!s$ ?>M
***
/(cf(estoe -n /de///(XX /de//ds$/c... * /ol (p conf
estoe
/(chan(e -a y /de///(XX * chan(e /ol (p to
a/a!
lable ,-a y-
/(sync /de///(XX * esync lo(!cal
/ol !n
/ol (p.
***
*** Aeplace m!oed d!s$ boot d!s$
*** 'n add!t!on to nomal m!o d!s$ eplacements steps abo/e&
*** add)
***
m$boot /de//ds$/c.t...
m$boot -a "hpu+ lI" /de//ds$/c...
eboot * /(cf(bac$up !s un automat!cally on eboot
Other Volume Management Commands
H12U3 <= 11 defa"$t boot disk is "nder #ontro$ of 789 2 7o&i#a$ 8o$"me 9ana&er.
Note
H12U3 s'ips 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' pre2
insta$$ed.
#E3 de/!ces ae /de///(88/l/ol5
E+Em de/!ces ae /de///+/ds$/ootd(//ol55
#E3 cmds ae l/... p/... /(...
E+Em cmds ae /+...
---
#E H lo(!cal /olume& s!m!la to pat!t!on/sl!de of sola!s.
!oscan -fnC d!s$ * scan fo all had d!/es ,N cd/d/d-.
d!s$!nfo
p/ceate -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/ese/undo of p/ceate
p/d!splay /de//ds$/c?t?Dd8 * d!splay phys!cal /ol !nfo ,d!s$ to /ol (p
!nfo-
* de/ path fom !oscan output
/(d!splay -/ /(88 * d!splay ,/ebose- /ol (p !nfo
* /(88 H oot /ol (p ,system f!les-
* /etc/l/mconf l!st all /ol (p !n system
l/d!splay -/ /de///(88/l/olP * sho2 lo(!cal to phy e+tents map fo lo(!cal
/ol
* a fe2 moe commands. some sample e( !n #E3 m!o!n( sect!on.
/(e+tend * /ol (p& add d!s$ to
/(educe * /ol (p& emo/e d!s$ fom
/(emo/e * /ol (p& emo/e !t completely ,all lo( /ol !n !t 2!ll be
(one-
l/ceate * lo(! /ol& ceate ,!n!t!al setup-
l/e+tend * lo(! /ol& add space ,phys!cal e+tents- o m!o conf!(
l/educe * lo(! /ol& educe space o emo/e m!o
l/chan(e * lo(! /ol& chan(e allocat!on pol!cy ,con(t!(uous& etc-
l/emo/e * lo(! /ol& emo/e !t completely ,fs 2!ll be (one-
l/lnboot * ma$e l/ bootable.
ne2fs& e+tendfs etc ae appl!ed to #E to ma$e usable f!lesystem.
FILESYSTEM
mount!n( cdom)
mount -o o -< cdfs /de//ds$/cBt?d8 /mnt/cdom
altenate appoach ,d!ff fomatS !ona cd-)
pfsFmountd U
pfsd U
pfsFmount /de//ds$/cBt?d8 /mnt/cdom
pfsFumount /mnt/cdom
CONNECTIVITY (NETWORK)
NFS
automount typ!cal auto statup ,fom ps-)
/us/l!b/nets/c/fs/automount/automount -f /etc/autoFmaste -D 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
/etc/c.conf!(.d/nfsconf * set both to be sue6
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 stat * automount/autofs& can ead
the std out fom th!s sc!pt
statup f!le !s !n /sb!n/!n!t.d/nfs.cl!ent
5ote that !f 5'% map auto.maste use undescoe l!$e autoFhome&
hpu+ 2on't be able to tanslate 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.poducts )) Nauto.poducts
/etc/auto.automnt )) Nauto.automnt
Con/et!n( 5'% se/e to ha/e map 2!th '.' should 2o$.
7ut afa!d bea$ othe 4% platfom& not 2ell tested yet.
7ut 4h!o 5'% use that and !t 2o$s f!ne6
0ss hole befoe ceated the %50<U fo me.
<o compat!b!l!ty !ssues& !t !s pobably best to a/o!d both . and F !n the
f!lename
Thee should not be eason 2hy one can't use autoFmaste to ha/e ent!es
l!$e)
/poducts autopoducts * !e& no . o F
5ot sue of the effect on autoFhome and autoFd!ect
5<%
/etc/fstab
/de///(88/l/olP /us /+fs delaylo( 8 B
netapp)//ol//ol?/uses/sa /mnt/sa nfs 2&!nt&had 8 8
/etc/e+pots
/opt -o
//a -o
e+potfs -a
NIC
lanscan * l!st all 5'C& !fconf!( -a doesn't 2o$.
-/ * /ebose& sho2 n!c and d!/e& etc
!fconf!( lan8 * almost all 5'C ae lanX
lanadm!n -+ 8 * tell 2hat !s cuent 5'C conf!(& e( duple+
* 8 !s 53'D fom lanscan.
lanadm!n -X ?88<D 8 * foce sett!n(s& fo th!s sess!on only.
!oscan -fnC lan * !d cad type and d!/e.
lsde/ -C lan * l!st all de/!ces of Class lan
/etc/c.conf!(.d/hp:conf
e( hpbtlanconf H btlan * a-class bu!ld-!n 5'C
hp(sc?88conf H btlan> hsc 9CD?Da * some old bo+ add on n!c
hpbasetconf H btlan?
hpbase?88conf H btlanC 'ntenal ,coe- #05 cad
hppc!?88conf H btlanD "e+tenal" pc! cad 0DBC80
hpsppc!?88conf H btlanK E-class pc! lan cad
* Update th!s f!le to
* had coded 5'C sett!n(s ,speed and duple+& e( ?88 <D-
* emembe to add the cad !nteface 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 thu eboot.
Detem!n!n( / sett!n( n!c duple+ and speed
http)//foums?.!tc.hp.com/se/!ce/foums/Iuest!onans2e.doSthead'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 2an!n(s. !f 2o$& autone(
2!ll 2o$ bette.
NETWORK CONFIG
chan(e D5% se/es
/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 "seach" fo othe dns
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$ !nteface cads
* th!s e/en allo2 fo speed duple+ sett!n(s66 0d/ance has mac addess 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 8-
0dd!n( default oute !n command l!ne)
oute add default netmas$ BDD.BDD.BDD.8 ?OB.BO.?PP.? ?

SERIAL/CONSOLE PORT
PRINTING
To add a net2o$ p!nte& use sam&
p!ntes and plottes&
#P %poole&
P!ntes and Plottes&
(o to 0ct!ons menu& 0dd Aemote P!nte
5ame of Wueue to add --R Use p!nte name mach!n(
2!ndo2s
Hostname of emote se/e --R 2!ndo2s p!nt se/e name
5ame of Iueue on emote se/e --R @!ndo2s p!nte name.
Type of p!nt spoole on emote se/e --R %ystem E ,!e& don't chec$
emote !s 7%D-
SYS CONFIG
PACKAGE/SOFTWARE MANAGEMENT
s2l!st -l poduct
l!st all poduct/patches !n system
s2l!st X (ep -e WPQ -e .4#D
detem!ne !f any Wual!ty Pac$ o .old 7ase patch has been !nstalled
,se/!ce pac$ eIu!/-.
0ppeently& all > of 7U5D#"??!& H@"nable??!& .old0pp and .old7ase
should be !nstalled on the system.
<actoy 4% !nstall !ncluded the latest elease of all the abo/e >
patch bundles.
s2l!st -l poduct X (ep PH
loo$ fo !nstalled patches. -l poduct seems to be needed fo ??!
s2!nstall -f mysoft -s /mnt/cd
supposed to !nstall soft2ae l!sted !n f!le mysoft fom cdom
s2!nstall -s /home/sa/shae/soft2ae-!n-cd/hpu+FaCNN/aCNNComp!le.P88.depot
needed to fully spec!fy the depot f!le befoe the damn th!n( 2!ll
eco(n!=e the f!le. 't !s eally 9ust a ta f!le.
s2!nstall -s /e+pot/tmp/bash.depot Y:
!nstall e/eyth!n( !n the depot ,!n th!s case& sue thee !s bash
only-.
see ema!l about 2hee (nu tools ae do2nloaded
Ghttp)//hpu+.cs.utah.edu& depot fomat& some !ns to /us/local/b!n&
othe to /opt& !nto poduct spec!f!c subd!s6J
PATCH
patch !nstall e()
,patch !s obta!ned !n a "depot" f!le fomat& 2h!ch !s eally a ta.
'nstuct!on pesented !n hee !s also !n a te+t f!le !ns!de the ta.-
http)//222B.!tc.hp.com/se/!ce/patch/patchDeta!l.doS
patch!dHPH%%FB88DDUconte+tHhpu+)P88)??)88
?. 7ac$ up you system befoe !nstall!n( a patch.
B. #o(!n as oot.
C. Copy the patch to the /tmp d!ectoy.
>. 3o/e to the /tmp d!ectoy and unsha the patch)
cd /tmp
sh PH%%FB88DD
D. Aun s2!nstall to !nstall the patch)
G to chec$ that depot has been do2nloaded coectly)
s2l!st -d @ /full/absolute/path/PH%%FB88DD.depot
J
s2!nstall -+ autoebootHtue -+ patchFmatchFta(etHtue Y
-s /tmp/PH%%FB88DD.depot
7y default s2!nstall 2!ll ach!/e the o!(!nal soft2ae !n
//a/adm/s2/sa/e/PH%%FB88DD. 'f you do not 2!sh to eta!n a
copy of the o!(!nal soft2ae& use the patchFsa/eFf!les opt!on)
s2!nstall -+ autoebootHtue -+ patchFmatchFta(etHtue Y
-+ patchFsa/eFf!lesHfalse -s /tmp/PH%%FB88DD.depot
@0A5'5.) 'f patchFsa/eFf!les !s false 2hen a patch !s !nstalled&
the patch cannot be de!nstalled. Please be caeful
2hen us!n( th!s featue.
<o futue efeence& the contents of the PH%%FB88DD.te+t f!le !s
a/a!lable !n the poduct eadme)
s2l!st -l poduct -a eadme -d @ /tmp/PH%%FB88DD.depot
To put th!s patch on a ma(net!c tape and !nstall fom the
tape d!/e& use the command)
dd !fH/tmp/PH%%FB88DD.depot ofH/de//mt/8m bsHB$
KERNEL/SYSTEM TUNING
sysdef * sho2 many ,but not all- $enel paametes
$mtune -l * l!st all $enel paametes& -l fo lon( l!st
,!n /us/sb!n-
ul!m!t -a * d!splay all l!m!ts& belo2 ae pobably defaults.
coe f!le s!=e ,bloc$s& -c- B8MO?D?
data se( s!=e ,$bytes& -d- ?8>PDOK
f!le s!=e ,bloc$s& -f- unl!m!ted
ma+ memoy s!=e ,$bytes& -m- unl!m!ted
open f!les ,-n- B8>P
p!pe s!=e ,D?B bytes& -p- ?K
stac$ s!=e ,$bytes& -s- P?MB
cpu t!me ,seconds& -t- unl!m!ted
ma+ use pocesses ,-u- OK
/!tual memoy ,$bytes& -/- unl!m!ted
ul!m!t -s * def!ne stac$ s!=e.
(o/ened by $enel stat!c paams 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& CPCQ-
ul!m!t -n * def!ne ma+ open f!les& def $enel /alues)
ma+f!les B8>P stat!c >8MK * soft
ma+f!lesFl!m B8>P dynam!c P?MB * had
ma+uses * num of uses& base paam as mult!pl!e by othe paams
* does not actually (o/en lo(!ns.
npty * pty fo use lo(!n sess!ons.
nstpty * can set them to ?888
nsttel
npoc * ma+ pocesses that can e+!st on system& ??! H stat!c
* def B8 N P : 30XU%"A% ,DMPPS-
use sam to def!ne ne2 paams and bu!ld ne2 $enel.
estat !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 -+
autoebootHtue Y:
AeI eboot.
/us/sb!n/$mtune 2!ll d!splay the $enel paams. 't should mod!fy)
ma+uses D?B
npoc B8>P
ma+FtheadFpoc C888
n$thead K888
nf!le C888
ma+f!les B8>P
ma+f!lesFl!m B8>P
ncallout K888
ma+ds!= B8KCPCD?CK
tcpFconnFeIuestFma+ B8>P
ADDING INTERNATIONAL LANGUAGE/LOCALE SUPPORT
7y default& all the bas!c suppot fo !ntenat!onal lan(ua(e ae
!nstalled. Chec$ 2!th "locale -a".
The CD" lan(ua(e may need to be !nstalled manually)
'nset CDB of HP-UX ??! <oundat!on 4peat!n( "n/!onment& then
un %03 %oft2ae 'nstall and add the CD" bundle of the des!ed lan(ua(e.
HARDWARE COMMANDS
mode$ 2 &i*e ma#'ine mode$ info
DIAGNOSTIC TOOLS
d!a(nost!cs tools)
netfmt -,lot of opt!ons- //a/adm/nettl.#4.nnn R /tmp/nettl.t+t
con/et the net2o$ poblem lo( fom b!nay to te+t
opt!ons may ha/e been -l -5 -n -f
stm& cstm +stm
had2ae d!a(nost!c po(am. te+t menu& cl! and X based.
pobably not 2ell $no2n& suppot people use onlyS
tus$
some sot of net2o$ toubleshoot!n( ut!l.
RANDOM STUFF
/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 /es!on l!bs. %ola!s #DF#'7A0A1FP0THK>
#'7 Thee maybe someth!n( about the en/ /a also. 5ot sue.
dosBun!+
Couldn't f!nd such command tool& only found chacon/.
chacon/
con/et !nput f!le to des!ed output fomat
-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 moe con/es!on !nfo& !nclud!n( "7CD'C
e() cat doste+t.t+t X chacon/ -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 pototype synta+& not 0ns! C.
3oney2ae aCC !s 0ns! C compl!ant and !nstalls to /opt/aCC.
HP-UX Freeware
'nfo about !nstall!n( hpu+ (nu fee2ae fom hpu+.cs.utah.edu. !nto 5<%
se/e cental 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. @an!n() %ome adm!n may see th!s as
$lud(e as
!t bypass the soft2ae mana(ement tool. 1ou cho!ce )-
/!mpot/hpu+??88/us/localV cat d!.!nfo
Th!s d! !s automounted as /!mpot/hpu+??88/us/local
Ea!ous l!n$ 2ould e+!st po!nt!n( to the paent d! of /!mpot/hpu+??88&
such as /t!tan!umle(!t.
't could also be a syml!n$ fom sl!(htly d!ff /es!on of HP-UX ??.+
These f!les ae (nu fee2ae depot f!les fo HP-UX ??.88 fom
hpu+.cs.utah.edu
The souce !s netapp)//ol//ol?/depot/hpu+??88/us/local
The souce depot f!les ae hac$ed /!a unta and set of cp commands to put
them !nto the des!ed
us/local/b!n etc tee stuctue)
(un=!p :.ta
m$d! untaed
cd untaed
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 cleaned/us/local d! !s mo/ed hee.
---
the opt d! !s e+tacted !n s!m!la manne)
m$d! -p cleaned/opt
cp -pA :/:/opt/:/: cleaned/opt/
---
http)//hpu+.cs.utah.edu/
%oft2ae Pot!n( and 0ch!/e Cente fo HP-UX
<ee2ae fo HP-UX
[>o# UA7; 'ttp;//.#s.fi".ed"/Bt'o61/ps&/'p"x.'tm$]
(##) )in Ho. See main pa&e for #opyri&'t info.
C7DS on t'e o"tside, 7@S on t'e insideC
CAUHAUH on t'e o"tside, 7A117A11 on t'e insideC

Das könnte Ihnen auch gefallen