Você está na página 1de 23

2/8/2014

Useful AIX commands

Note: This web page was automatically created from a PalmOS "pedit32" memo.

Useful AIX commands


s v m o n s v m o nP< p i d > F u r t h e r : u s ec a nu s e rs v m o nc o m m a n dt om o n i t o rm e m o r yu s a g ea sf o l l o w s ; ( A )# s v m o nPvt1 0|m o r e ( B )# s v m o nUvt1 0|m o r e ( w i l lg i v et o pt e np r o c e s s e s ) (w i l lg i v et o pt e nu s e r )

s m i ti n s t a l lr e q u i r e s" i n u t o c. "f i r s t . I t ' l la u t o g e n e r a t ea. t o cf o ry o u Ib e l i e v e ,b u ti fy o ul a t e ra d dm o r e. b f f ' st ot h es a m ed i r e c t o r y ,t h e n t h ei n u t o c.b e c o m e si m p o r t a n t . I ti so fc o u r s e ,at a b l eo fc o n t e n t s . d u m po v/ d i r / x c o f f f i l e t o p a s ,Pi su s e f u l#s i m i l a rt ot o p W h e nc r e a t i n gr e a l l yb i gf i l e s y s t e m s ,t h i si sv e r yh e l p f u l : c h l vx6 5 5 2l v 0 8 W o r do nt h en e ti st h a tt h i si sr e q u i r e df o rf i l e s y s t e m so v e r5 1 2 M . e s m f 0 4 m r o o t >c r f svj f sg ' p t m p v g 'as i z e = ' 8 8 4 9 9 8 1 4 4 'm ' / p t m p 2 ' A ' ' ` l o c a l ey e s s t r|a w kF :' { p r i n t$ 1 } ' ` ' 'p ' r w 't ' ' ` l o c a l ey e s s t r| a w kF :' { p r i n t$ 1 } ' ` ' 'af r a g = ' 4 0 9 6 'an b p i = ' 1 3 1 0 7 2 'aa g = ' 6 4 ' B a s e do nt h ep a r a m e t e r sc h o s e n ,t h en e w/ p t m p 2J F Sf i l es y s t e m i sl i m i t e dt oam a x i m u ms i z eo f2 1 4 7 4 8 3 6 4 8( 5 1 2b y t eb l o c k s ) N e wF i l eS y s t e ms i z ei s8 8 4 9 9 8 1 4 4 e s m f 0 4 m r o o t > I fy o ug i v eab a dc o m b i n a t i o no fp a r a m e t e r s ,t h ec o m m a n dw i l ll i s t p o s s i b i l i t i e s . Ig o ts o m e t h i n gl i k et h i sf r o ms m i t ,t h e ns e a s o n e d t ot a s t e . I fy o un e e df i l e sl a r g e rt h a n2g i g a b y t e si ns i z e ,t h i si sb e t t e r . I ts h o u l da l l o wf i l e su pt o6 4g i g a b y t e s : c r f svj f sab f = t r u eg ' p t m p v g 'as i z e = ' 8 8 4 9 9 8 1 4 4 'm ' / p t m p 2 'A ' ' `| | l o c a l ey e s s t r|a w kF :' { p r i n t$ 1 } ' ` ' 'p ' r w 't ' ' ` l o c a l ey e s s t r|a w| | kF :' { p r i n t$ 1 } ' ` ' 'an b p i = ' 1 3 1 0 7 2 'aa g = ' 6 4 ' S h o wv e r s i o no fS S P( I B MS Ps w i t c h )s o f t w a r e : l s l p pa ls s p . b a s i c l l c t lgr e c o n f i g-m a k el o a d l e v e l e rr e r e a di t sc o n f i gf i l e s o s l e v e l( s o m e t i m e sl i e s ) o s l e v e lr( s e e m st od ob e t t e r ) l s d e vC ca d a p t e r p s t a tal o o k su s e f u l v m oi sf o rV Mt u n i n g O n1 0 0 0 B a s e T ,y o ur e a l l yw a n tt h i s : c h d e vPle n t 2am e d i a _ s p e e d = A u t o _ N e g o t i a t i o n S e t t i n gj u m b of r a m e so ne n 2l o o k sl i k e : i f c o n f i ge n 2d o w nd e t a c h c h d e vle n t 2aj u m b o _ f r a m e s = y e s c h d e vle n 2am t u = 9 0 0 0 c h d e vle n 2as t a t e = u p

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

1/23

2/8/2014

Useful AIX commands

S e a r c hf o rt h em e a n i n go fA I Xe r r o r s : h t t p : / / p u b l i b 1 6 . b o u l d e r . i b m . c o m / p s e r i e s / e n _ U S / i n f o c e n t e r / b a s e / e i s e a r c h . h t m N F St u n i n go nA I X ,c o u r t e s yo fR o s sA i k e n : h t t p : / / p u b l i b 1 6 . b o u l d e r . i b m . c o m / d o c _ l i n k / e n _ U S / a _ d o c _ l i b / a i x b m a n / p r f t u n g d / n f s p e r f m o n t u n . h t m n f s oas h o w sA I XN F St u n i n gp a r a m e t e r s ;g o o dt oc h e c ko ni fy o u ' r e g e t t i n gb a d c a l l si nn f s s t a t . M o s tp e o p l ed o n ' tb o t h e rt ot w e a k st h e s e t h o u g h . n f s s t a tms h o w sg r e a ti n f oa b o u tf u l ls e to fN F Sm o u n to p t i o n s T u r no np a t hm t ud i s c o v e r y n oot c p _ p m t u _ d i s c o v e r = 1 n oou d p _ p m t u _ d i s c o v e r = 1 T C Ps u p p o r ti sh a n d l e db yt h eO S . U D Ps u p p o r tr e q u i r e sc o o p e r a t i o n b e t w e e nO Sa n da p p l i c a t i o n . n f s s t a tcs h o w sr p cs t a t s T oc h e c kf o rs o f t w a r ep r o b l e m s : l p p c h kv l p p c h kc l p p c h kl L i s ts u b s y s t e m( m yw o r d )s t a t u s : l s s r ca m k s s y s r m s s y s c h s s y s a u d i t p r r e f r e s h s t a r t s r c s t o p s r c t r a c e s o n t r a c e s o f f T h i ss t a r t ss e n d m a i l : s t a r t s r css e n d m a i la" b dq 3 0 m " T h i sm a k e si n e t dr e r e a di t sc o n f i gf i l e . N o ts u r ei fi tk i l l sa n d r e s t a r t so rj u s tH U P ' so rw h a t : r e f r e s hsi n e t d l s p si su s e dt ol i s tt h ec h a r a c t e r i s t i c so fp a g i n gs p a c e . T u r n i n go f fi pf o r w a r d i n g : / u s r / s b i n / n ooi p f o r w a r d i n g = 0 D e t a i l e di n f oa b o u tas p e c i f i ce r r o r : e r r p taj E 8 5 C 5 C 4 C B T W ,R a j i vB e n d a l et e l l sm et h a te r r o r sa r es t o r e di nN V R A Mo nA I X , s oy o ud o n ' th a v et op u tt i m ei n t or e p l i c a t i n ga ne r r o ra so f t e n . S o m eo ra l lo ft h e s ew i l ll i s tm o r et h a no n en u m b e r . T r u s tt h ef i r s t , n o tt h es e c o n d . l s l p plp p e . p o e . . . s h o u l dl i s tt h ev e r s i o no fp o ei n s t a l l e do nt h es y s t e m C h e c ko nc o m p i l e rv e r s i o n s : l s l p plv a c . C l s l p plv a c p p . c m p . c o r e C h e c ko nl o a d l e v e l e rv e r s i o n : l s l p plL o a d L . f u l l I fy o uw a n tt oc h e c kt h eb o o t l i s td ob o o t l i s tomn o r m a li fy o uw a n tt o u p d a t eb o o t l i s td ob o o t l i s tmn o r m a lh d i s k *h d i s k *c d *r m t *

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

2/23

2/8/2014
p r t c o n f

Useful AIX commands

R u nt h es s a d i a ga g a i n s tt h ed r i v ea n dt h ea d a p t e ra n di tw i l lt e l ly o ui fi t f a i l so rn o t .T h e ni fi t sah o tp l u g a b l ei tc a nb er e p l a c e do n l i n e . Y o uc a ng e tp a t c h e sf r o m : h t t p : / / w w w 9 1 2 . i b m . c o m / e s e r v e r / s u p p o r t / f i x e s Y o u ' l ln e e dt oc l i c kt h r o u g hab i to fr e dt a p eb e f o r eg e t t i n gt ow h e r e y o ua c t u a l l yc a nl i s tc o r e q u i s i t e sa n ds t a r tad o w n l o a d . B T W ," A d dt om yd o w n l o a dl i s t "d o e sn o tw o r ki nk o n q u e r o r ,b u ti td o e s w o r ki nm o z i l l a . B a c k u pt ot a p e : e n v-/ u s r / b i n / m k s y s b ' m ' ' i '' X '/ d e v / r m t 0 T h e" e n v"i sb e c a u s es o m es o r to fe n v i r o n m e n tv a r i a b l ec a nc o n f u s e m k s y s b ,m a k i n gi te r r o ro u ti n s t e a do fd o i n gy o u rb a c k u p T h e r e ' sa l s o" s m i t t ym k s y s b " Y o uc a nc r e a t ea ni m a g eu s i n gt h es a v e v gc o m m a n di . e . s a v e v gvn9/_ r o o t v g . i m gr o o t v g T h i sc a nb eu s e dt ob u i l daN I Mi n s t a l l a b l ei m a g et or e c o v e ry o u rs y s t e m s a l t e r n a t i v e l y ,t h ec o m m a n dl i n ec a l lf o ram k s y s bt ot a p e( t oi n c l u d em a p a n de x c l u d ef i l e s )i s/ u s r / b i n / m k s y s b ' m '' e ' ' i ' / d e v / r m t 0 F i n d i n gw h i c hl p pc o n t a i n saf i l e : l s l p pw/ u s r / s b i n / u m o u n t T h e r ee x i s t sa" d i a gC D "f o rA I X . / u s r / s a m p l e s / k e r n e l / v m t u n e l s a t t rE ls y s 0|g r e pr e a l m e m l s a t t rE lm e m 0 S e ei fy o uA I Xs y s t e m ' sh a r d w a r ei sC H R P( s o m es o r to fP o w e r P Cr e f e r e n c e p l a t f o r ms p e c ,Ib e l i e v e ): b o o t i n f op c h r p S o m er e a l l yf u n k yh a r d w a r e l o o k i n gp r o b l e m sc a nb ef i x e db yd r a i n i n g t h eN V R A Mb a t t e r yf o r5m i n u t e s ,a n dt h e nr e i n s t a l l i n gt h em i c r o c o d e . W eu s e dt od ot h i so ns o m eI B MR T ' si nC i n c i n n a t i ,a n dar e c e n tp o s t e r t oA I X Li n d i c a t e st h a ti t ' ss t i l lu s e f u li ns o m es i t u a t i o n s . F r o mA I X L : A I X4 . 3 . 2>A I X4 . 3 . 3i st h em o s te a s i e s tU p g r a d eo fA L L .P l a c et h e A I X4 . 3 . 3V o l1o fC Do nt h eC D R O Md r i v ea n dr u ns m i t t yu p d a t e _ a l l, t h i sw i l lu p g r a d et h eO S O nt h es u b j e c to fr u n n i n go u to fp a g i n gs p a c e ,f r o mA I X L : L o o ki n t on p s w a r n ,n p s k i l ls t u f fi nP e r f o r m a n c eM a n a g e m e n tG u i d e C h a n g i n gt h eb o o td e v i c eo r d e r : B o o tt h es e r v e r ,a n dh i t1o rF 1( d e p e n d i n gi fy o uh a v ea na s c i ic o n s o l e o rag r a p h i c sc o n s o l e )w h e nt h el o g o sc o m eu pt og e tt os m sm o d e .I n t h em e n u ss e l e c tm u l t i b o o t ,s e l e c tb o o td e v i c e s ,s e l e c tb o o to r d e r . Y o us h o u l ds t a r tt r a c i n gf o ri n e t ds u b s y s t e mw i t h t r a c e s o nsi n e t d a n dt h e ni s s u e : t r p tj

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

3/23

2/8/2014

Useful AIX commands

y o uw i l ls e et h ep r o t o c o l sc o n t r o lb l o c k s( P I D )y o u ' r et r a c i n g ,a n dt h e nw i t h : t r p tp< P I D > y o us h o u l ds e eo u t p u tf o rt e l n e tc o m m u n i c a t i o n s .B u tt h i si sn o tw o r k i n g . W h yd o n ' ty o ut r yu s i n gi p t r a c ea n di p r e p o r tt os e et h eb e h a v i o ro fy o u r t e l n e ts e s s i o n s? ? P u r p o r t e d l yo r k sw i t hJ F S1a n d2 : T os p l i to f fam i r r o r e dc o p yo ft h e/ h o m e / x y zf i l es y s t e mt oan e wm o u n t p o i n tn a m e d/ j f s s t a t i c c o p y ,t y p et h ef o l l o w i n g : c h f sas p l i t c o p y = / j f s s t a t i c c o p y/ h o m e / x y z Y o uc a nc o n t r o lw h i c hm i r r o r e dc o p yi su s e da st h eb a c k u pb yu s i n gt h e c o p ya t t r i b u t e .T h es e c o n dm i r r o r e dc o p yi st h ed e f a u l ti fac o p yi s n o ts p e c i f i e db yt h eu s e r .F o re x a m p l e : c h f sas p l i t c o p y = / j f s s t a t i c c o p yac o p y = 1/ h o m e / x y z A tt h i sp o i n t ,ar e a d o n l yc o p yo ft h ef i l es y s t e mi sa v a i l a b l ei n / j f s s t a t i c c o p y .A n yc h a n g e sm a d et ot h eo r i g i n a lf i l es y s t e ma f t e rt h e c o p yi ss p l i to f fa r en o tr e f l e c t e di nt h eb a c k u pc o p y . T or e i n t e g r a t et h eJ F Ss p l i ti m a g ea sam i r r o r e dc o p ya tt h e/ t e s t c o p y m o u n tp o i n t ,u s et h ef o l l o w i n gc o m m a n d : r m f s/ t e s t c o p y T h er m f sc o m m a n dr e m o v e st h ef i l es y s t e mc o p yf r o mi t ss p l i t o f fs t a t e a n da l l o w si tt ob er e i n t e g r a t e da sam i r r o r e dc o p y . W o r k i n ga r o u n dal o a d e rd o m a i np r o b l e m : e s m f 0 4 m s t r o m b r g >/ u s r / l o c a l / b i n / g r i b m a p e x e c ( ) :0 5 0 9 0 3 6C a n n o tl o a dp r o g r a m/ u s r / l o c a l / b i n / g r i b m a pb e c a u s eo f t h ef o l l o w i n ge r r o r s : 0 5 0 9 0 3 0I n s u f f i c i e n tp e r m i s s i o nt oc r e a t el o a d e rd o m a i n / u s r / l i b / l i b i c o n v . a 0 5 0 9 0 2 6S y s t e me r r o r :T h ef i l ea c c e s sp e r m i s s i o n sd on o ta l l o w t h es p e c i f i e da c t i o n . e s m f 0 4 m s t r o m b r g >L I B P A T H = $ T M P D I R / g r i b m a p l d/ u s r / l o c a l / b i n / g r i b m a p g r i b m a pv 1 . 4f o rG r A D SV e r s i o n1 . 8 S L 1 1 A p p a r e n t l yy o uc a na l s ol i n ky o u ra p p l i c a t i o nw i t hL $ T M P D I R / l o a d e r d o m a i n o rs o ,b u ty o u ' dn e e dau n i q u eo n ef o re a c hs e to fs h a r e dl i b r a r i e s . T h i so n ea p p a r e n t l ym u s tb et h ef i r s tLi nt h el i n kl i n e . P l e a s es e ea l s o : h t t p : / / s t r o m b e r g . d n s a l i a s . o r g / ~ d s t r o m b e r g / A I X s h a r e d l i b s . h t m l / u s r / b i n / u n a m eM G e t st h em a c h i n et y p e ? A n y w a y ,s e tt h et i m e z o n ev a r i a b l eT Zi n/ e t c / e n v i r o n m e n tl i k et h i s : T Z = M S T 7 . . . t a k e se f f e c ta f t e re v e r y o n el o g so u ta n db a c ki n . T h i si sj u s ta n e x a m p l e ,n o ts o m e t h i n gf o rC a l i f o r n i a . " s v m o n "w i l lg i v eut h i so u t p u tw h i c hg i v eut h ei n f o r m a t i o nr e g a r d i n g u rm e m o r y . s i z e 1 3 1 0 7 1 1 2 0 9 7 1 5 2 w o r k 1 0 3 7 8 2 4 3 8 5 7 0 i n u s e 1 2 9 8 2 3 5 5 8 5 2 1 9 p e r s 0 1 0 1 3 0 f r e e 1 2 4 7 6 c l n t 0 8 4 9 5 3 5 p i n 1 0 3 7 8 2 l p a g e 0 0 v i r t u a l 7 1 1 4 6 6

m e m o r y p gs p a c e p i n i nu s e a c l e d i t

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

4/23

2/8/2014
S c o t t( o fI B M ,o n s i t eh a r d w a r et e c h )s t u f f :

Useful AIX commands

l s d e vC ca d a p t e r " d e f i n e d "m e a n sa to n et i m et h ep i e c eo fh a r d w a r ew a so ns y s t e m-a s o p p o s e dt o" a v a i l a b l e " . Ac a r dw h i c hi sb e i n gn e w l ya d d e ds h o u l dn o t t e m p o r a r i l yp a s st h r o u g h" d e f i n e d "s t a t e . H a r d w a r es h o u l db ei nt h e " a v a i l a b l e "s t a t e . / / / / / l s s l o tcp c i p 1 i 1i st h ef i r s ts l o to nt h eb a c kl e f t / / / / / d i a g d i a d i a g n o s t i cr o u t i n e s p r o b l e md e t e r m i n a t i o n s f p :p h o n e sh o m e( t oI B M )o v e rm o d e m p r e v i o u s l yr e p o r t e dp r o b l e m / / / / / t a s ks e l e c t i o n h o tp l u gt a s k p c io rs c s i i d e n t i f yf u n c t i o nw i l lb l i n kl i g h t ,s oy o uc a nm a k es u r et h eh a r d w a r e a n ds o f t w a r ea r eo nt h es a m ep a g e . u 1 . 1d r a w e ra d d r e s s ,b o t t o ml e f t / / / / / E I An u m b e r so nr i g h ta n dl e f to fr a c k ,g o e st ol o w e s to ft h en u m b e r s a d j a c e n tt ot h ee q u i p m e n ti nq u e s t i o n . E G ,s o m e t h i n gi nt h er a c km i g h t b e3E I An u m b e r sh i g h-t h es o f t w a r es h o u l di d e n t i f yt h eh a r d w a r eb y t h el o w e s tn u m b e ro ft h e3 . / / / / / h o t p l u gi no sr e m o v e sv o l t a g ef r o ms l o t ,s l o tl i g h ts h o u l db l i n ky e l l o w , s a m ea sf o ri d e n t i f y . / / / / / w eh a v eo l d e r" h o t s w a pc a s s e t t e s "-w h i c hm e a n sl o t so fs c r e w s . N e w e ro n e ss n a pt o g e t h e r . I ta l s oc a nt a k eab i to fw r e s t l i n gt og e t t h ec a r di na n do u to ft h eo l dc a s s e t t e s( s h a d e so fS u n ' sI P X ' s: ) / / / / / y e l l o wl l i g h tc o n t i n u e sb l i n k i n ga f t e rc a r di n s e r t e d ,u n t i ls o f t w a r ei s t o l dt ol e tt h es l o th a v ev o l t a g ea g a i n . / / / / / a d v a n c e dd i a g n o s t i c s ,s e a r c hf o rt h i n gt ot e s tv i s u a l l y / / / / / c f g m g r t a k e sa w h i l et or u n ,c h e c k sa l ld e v i c e so nm a c h i n e n oo u t p u t ,b u tt h e nl s d e vC ca d a p t e ra g a i ns h o u l dc h a n g ea f t e r w a r d / / / / / p se f|g r e pW o r m s p l s t d a t aa s h o u l dn o ts a yn o t _ c o n f i g u r e d u s er c . s w i t c ht om a k ei tc o n f i g u r e d p se fp i p e|W o r ma g a i n ,s h o u l ds h o wu pn o w E u n f e n c e4 9-4 9 i s0 4 m / / / / / s p m o nd " d "f o rd i a g n o s t i c l i k ef r o n tp a n e ll e d s " h o s tr e s p o n d s "a n d" s w i t c hr e s p o n d s "s h o u l ds a yy e sf o ra l lc s sa d a p t e r s / / / / / e r r p t( n oa r g s ) / / / / / S c o t ts a y st h a ts o m e t i m e sa nS P 2s y s t e mw i l lr e f u s et oa c k n o w l e d g et h e n e wa d a p t e r ,i nw h i c hc a s ey o uh a v et ol i et ot h eO D Mt om a k et h es y s t e m s e et h ec a r d . H es u g g e s t e dt h a tm a y b ew ed i dn o tn e e dt od ot h a tt h i s t i m e ,b e c a u s ew eh a v et h el a t e s tp s s p( s s p . * )s o f t w a r eo nt h es y s t e m . / / / / / W ea l s oh a dt oE u n f e n c et h en o d ew h o s ec a r dw a sr e p l a c e d . R a j i vt e l l sm et h a ti td o e sn o tm a t t e rw h i c hh o s ti sE p r i m a r y ,a sl o n ga s o n eo ft h en o d e si s ,a n dt h e r ea r e n ' tt h i n g sf e n c e do f ft h a ts h o u l d n ' tb e . m o u n tvc d r f sor o/ d e v / c d 0/ m n t M o u n ti s o 9 6 6 0f i l e s y s t e m M o r eo nc f g m g r ,f r o ma i x l : y o uc a ne x e c u t ec f g m g ro nl i n ew i t h o u tt r o u b l e n o r m a l l yc f g m g rh a v e3s t e p sn a m e dp h a s e s: p h a s e1d u r i n gb o o t p h a s e2d u r i n gn o r m a lb o o t( a f t e rp h a s e 1 )

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

5/23

2/8/2014
p h a s e3d u r i n fs e r v i c eb o o t( a f t e rp h a s e 1 )

Useful AIX commands

i fy o ur u nc f g m g rw i t h o u tf l a g s( po rf )c f g m g re x e c u t e sp h a s e2o n l yb y d e f a u l t i nf a c tc f g m g ra n dc f g m g rp 2a r et h es a m e sc o m m a n d s f l a gvf o rv e r b o s e A I X5 . 2h a sb u i l t i nC I F Sc l i e n t ? m o u n tvc i f snw i n s e r v e r / m y u s e r / m y p a s s w o r d/ h o m e/ m n t C a na l s o" s m i t t yc i f s _ f s " T h i si ss u p p o s e dt ob ei n c l u d e di nl p pb o s . c i f s _ f s A p p a r e n t l yt h i sw a sa d d e di nA I X5 . 2 p l e a s ec h e c ki fy o u rc dd e v i c ei sb e i n gu s e db ys o m ep r o c e s sb yr u n n i n g : f u s e rc/ d e v / c d 0 y o uc a na l s oc h a c ki fc d r o m di su pa n dr u n n i n gb y : l s s r ca|g r e pc d i fc d r o m di sr u n n i n g ,t h e nt r yw i t ht h ef o l l o w i n gc o m m a n d s : c d u m o u n t c d e j e c t h e r ei ss o m ec o m m a n d st om a n i p u l a t et h eO D Md i r e c t l y( Id o n ' ts u g g e s ty o u d os o ,a tl e a s ty o uk n o we x a c t l yw h a ty o ua r ed o i n g ) . o d m g e t ,o d m s h o w ,o d m c h a n g e ,o d m a d d ,o d m d e l e t e ,o d m d r o p l s p sa n m o n-f r e e ,u n s u p p o r t e dd o w n l o a df r o mI B M W h a t ' st h i sa b o u tc h m o d ' i n gk m e mt ob ew o r l dr e a d a b l et h o u g h ? ! e s m f 0 4 m d c s e w >i n s t f i xi|g r e pM L A l lf i l e s e t sf o r5 . 1 . 0 . 0 _ A I X _ M Lw e r ef o u n d . A l lf i l e s e t sf o r5 1 0 0 0 1 _ A I X _ M Lw e r ef o u n d . A l lf i l e s e t sf o r5 1 0 0 0 2 _ A I X _ M Lw e r ef o u n d . A l lf i l e s e t sf o r5 1 0 0 0 3 _ A I X _ M Lw e r ef o u n d . A l lf i l e s e t sf o r5 1 0 0 0 4 _ A I X _ M Lw e r ef o u n d . e s m f 0 4 m d c s e w > T h es p e c i f i xf i x e sc a nb ec h e c k e du s i n gi n s t f i xc o m m a n d : # i n s t f i xi v k< A P A Rn o . > e . g# i n s t f i xi v kI Y 5 6 0 7 6 i n s t f i xc i q k4 3 3 0 0 8 _ A I X _ M L|g r e p" : : " L i s t sw h a tf i l e s e t sn e e dt ob ei n s t a l l e df o ri n s t f i xt os h o w" A l lf i l e s e t s f o r4 3 3 0 0 8w e r ef o u n d " . i n s t f i xk" I X # # # # # "d/ d e v / r m t 0 . 1 I n s t a l l st h eA P A Ra n di t sp r e r e q u i s i t e so nt h es y s t e m . i n s t a l l pX a g q d/ d e v / r m t 0 . 1X 1 1 . b a s e . r t e I n s t a l l sX w i n d o w so nt h es y s t e m . i n s t a l l pu d e l e t e sa nA I Xl p p C o p i o u sn e t w o r ks t a t i s t i c s : e n t s t a tde n t 0 M a k i n gA I X5 . 1s e eac h a n g et o/ e t c / i n e t d . c o n fa n d / o r/ e t c / s e r v i c e s a n d / o r/ e t c / r p ci sd i f f e r e n tf r o mm o s to t h e rs y s t e m s( o n l yv e r i f i e d u s i n go n er p c / u d ps e r v i c es of a r )

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

6/23

2/8/2014
Y o uc a n ' tj u s tk i l lH U Pi n e t d ' sp i d

Useful AIX commands

W h a ty o uc a nd o ,i s" s m i t t yi n e t d " ,s t o pi n e t d ,s t a r ti n e t d ,a n de x i ts m i t t y . A l t e r n a t i v e l y ,i ts h o u l d -w o r kt o : s t o p s r csi n e t d s t a r t s r csi n e t d O rb e t t e r : E d i t/ e t c / i n e t d . c o n fa n dc o m m e n to u tf t pa n dr e f r e s hi n e t db yi s s u i n g " r e f r e s hsi n e t d " s t a r t s r ctf t p du0 2 2l T ot r u l yc h a n g et h ek e r n e lt o6 4 b i t ,y o un e e dt ob ea tt h e5 . 1o s l e v e l .T h e m e a n st oc h a n g et oa6 4 b i tk e r n e la r e : F r o m3 2 b i tt o6 4 b i t : l ns f/ u s r / l i b / b o o t / u n i x _ 6 4/ u n i x l ns f/ u s r / l i b / b o o t / u n i x _ 6 4/ u s r / l i b / b o o t / u n i x l s l vmh d 5 b o s b o o ta d/ d e v / i p l d e v i c e s h u t d o w nF r b o o t i n f oK( s h o u l dn o wb e6 4 ) T oc h a n g et h ek e r n e lb a c kt o3 2 b i t : F r o m6 4 b i tt o3 2 b i t : l ns f/ u s r / l i b / b o o t / u n i x _ m p/ u n i x l ns f/ u s r / l i b / b o o t / u n i x _ m p/ u s r / l i b / b o o t / u n i x l s l vmh d 5 b o s b o o ta d/ d e v / i p l d e v i c e s h u t d o w nF r b o o t i n f oK( s h o u l dn o wb e3 2 ) I fy o ua r er u n n i n gA I X5 . 1 S w i t c h i n gF r o m3 2t o6 4B i tM o d e T os w i t c hf r o m3 2 b i tm o d et o6 4 b i tm o d er u nt h ef o l l o w i n gc o m m a n d s , i nt h eg i v e no r d e r : 1 . l ns f/ u s r / l i b / b o o t / u n i x _ 6 4/ u n i x 2 . l ns f/ u s r / l i b / b o o t / u n i x _ 6 4/ u s r / l i b / b o o t / u n i x 3 . b o s b o o ta d/ d e v / i p l d e v i c e 4 . s h u t d o w nF r 5 . b o o t i n f oK( s h o u l dn o ws h o w6 4 ) S w i t c h i n gF r o m6 4T o3 2 B i tM o d e T os w i t c hf r o m6 4 b i tm o d et o3 2 b i tm o d er u nt h ef o l l o w i n gc o m m a n d s , i nt h eg i v e no r d e r : 1 . l ns f/ u s r / l i b / b o o t / u n i x _ m p/ u n i x 2 . l ns f/ u s r / l i b / b o o t / u n i x _ m p/ u s r / l i b / b o o t / u n i x 3 . b o s b o o ta d/ d e v / i p l d e v i c e 4 . s h u t d o w nF r 5 . b o o t i n f oK( s h o u l dn o ws h o w3 2 ) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ M o u l a yR a c h i dB O U S S E T A T os e ei fy o u ' r er u n n i n gw i t ha3 2b i to r6 4b i tk e r n e l ,r u n : b o o t i n f oK . . . o r . . . p r t c o n fk E G : e s m f 0 4 m r o o t >P A T H = / u s r / b i n : / u s r / s b i np r t c o n fk K e r n e lT y p e :6 4 b i t e s m f 0 4 m r o o t >b o o t i n f oK 6 4 b o o t i n f osh d i s k x x x l s p vh d i s k X X a sw e l li sd e f i n e do naV o l u m eG r o u p

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

7/23

2/8/2014
l s a t t rE lh d i s k X X l s c f gv plh d i s k X X T h e s es h o u l dg i v ey o ut h er a wd i s kc a p a c i t y

Useful AIX commands

G ot o :h t t p : / / w w w 9 1 2 . i b m . c o m / e s e r v e r / s u p p o r t / f i x e s / f c g u i . j s p C h o o s e :1 ) p S e r i e sf a m i l y 2 ) A I XO S , J a v a ,c o m p i l e r s 3 ) S p e c i f if i x 4 ) Y o u rO S P r e s sc o n t i n u e . . . . t y p ei ny o u rr e q u i s i t e si nt h et e x tb o x .t h a t si t ! L P Ph i s t o r y : l s l p ph s a r11 0 b o o t i n f ob b o o t i n f ok r e p o r t sl a s td e v i c et h es y s t e mb o o t e df r o m r e p o r t sk e y s w i t c hp o s i t i o n 1 = s e c u r e ,2 = s e r v i c e ,3 = n o r m a l r e p o r t sa m o u n to fm e m o r y( /b y1 0 2 4 ) r e p o r t ss i z eo fd i s kd r i v e r e p o r t st y p eo fm a c h i n e i er s p c , r s 6 k s m p , r s p co rc h r p r e p o r t sy o u rh a r d w a r ea r q u i t e c t u r e( 3 2

b o o t i n f or b o o t i n f os( d i s kd e v i c e ) b o o t i n f oT b o o t i n f oy b i t so r6 4b i t s ) b o o t i n f oK b i t so r6 4b i t s

r e p o r t si ft h ek e r n e li nm e m o r yi s3 2

Y o uc a ns u b m i t / c h e c kap S e r i e sP M Rv i at h ew e ba t : h t t p s : / / t e c h s u p p o r t . s e r v i c e s . i b m . c o m / s s r / s s r . s l p r o b

F o r c eau s e rt oc h a n g et h e i rp a s s w o r do nt h e i rn e x tl o g i n : p w d a d mfA D M C H Gu s e r n a m e N o t et h a tt h i sw o r k sw i t hs o m es s h d ' sa n dn o to t h e r s I d e n t i f y i n gh a r dd i s ki s s u e s : s v m o nG v m s t a t12 0 i o s t a tdh d i s k 012 0 p sa v g|s o r t+ 3 rn|h e a d2 5 M a x i m u mn u m b e ro fp r o c e s s e sau s e rc a nh a v e : l s a t t rEls y s 0am a x u p r o c s m i t t yc h g s y s A l s oa l l o w so n et oc h a n g et h em a xn u m b e ro fp r o c e s s e sp e ru s e r ,a m o n g o t h e rt h i n g s A I Xa n dS N M P : b yH o s tR e s o u r c ey o um e a nt h eA I XS N M Pc o m p o n e n tt h a tm o n i t o r ss y s t e m r e s o u r c e s? ? i fs o ,t h e nt h e r e ' sac o n ff i l ef o rt h ed a e m o na i x m i b dn a m e d / e t c / a i x m i b d . c o n fw h e r ey o uc a nc o n f i g u r et h et h r e s h o l d sf o rm a n y m o n i t o r s .O n c ey o uh a v ec o n f i g u r et h i st h e ny o us h o u l da c t i v a t et h ed a e m o n b yi s s u i n g : s t a r t s r csa i x m i b d P l e a s er e m e m b e rt ou n c o m m e n tt h el i n et h a ts t a r t sa i x m i b di n/ e t c / r c . t c p i p f i l e .

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

8/23

2/8/2014
O nA I Xp a t c h e s :

Useful AIX commands

1 )A nA P A R( A u t h o r i z e dP r o g r a mA n a l y s i sR e p o r t )i sab u n c ho fs o f t w a r e p a t c h e st h a ts o l v e sm a n yp r o b l e m sw h i l eaP T F( i st h es a m ea sF i xa n d m e a n sP r o g r a mT e m p o r a r yF i x )i sap a t c ht h a ts o l v e so n es p e c i f i cp r o b l e m . Y o uw i l ld o w n l o a dM a i n t e n a n c eL e v e l s( M L )a sA P A R sf r o mI B MS o f t w a r eW e b S i t e . 2 )Y o us h o u l di n s t a l lt h el a t e s tM a i n t e n a n c eL e v e lf o rt h eA I Xv e r s i o ny o u h a v ei n s t a l l e d( u s u a l l yab i gb u n c ho fs o f t w a r eu pt o6 5 0M Bt h a tn e e d s a l m o s t1 G Bs p a c et ob ed e c o m p r e s s e da n di n s t a l l e d ) .A sA I X5 Li sn e w t e c h n o l o g yf r o mI B Mt h e y ' r ep a t c h i n gm a n yp r o b l e m sa n dg e n e r a t i n gM Lv e r y o f t e n .Y o uc a nd o w n l o a df r o m h t t p : / / w w w 1 . i b m . c o m / s e r v e r s / e s e r v e r / s u p p o r t / p s e r i e s / a i x f i x e s . h t m l 3 )F i r s t ,y o uh a v et ok n o ww h i c hF i xo rP T Ft oi n s t a l l ,t h e nd o w n l o a di t f r o mt h ea b o v ew e bl i n k ,t h e nc o p yt oal o c a t i o ni nt h es e r v e r( u s u a l l y P T F ' sa r ec o p i e dt o/ u s r / s y s / i n s t . i m a g e sd i r e c t o r ya sw e l la st h e r e ' s e n o u g hs p a c e( w h a tid oi st oc r e a t ean e wF So fs o m e2G Bd i z ea n dm o u n t i to v e r/ u s r / s y s / i n s t . i m a g e s ,a f t e ri n s t a l l i n gt h eA P A Ro rP T Fij u s t d e l e t et h eF Sw i t h o u td e l e t i n gt h em o u n tp o i n t ) .T h e nu n c o m p r e s so ru n z i p , u n t a r ,w h a t e v e r ,a n du s i n gt h ef a s t p a t h s m i t t yu p d a t e _ a l li nA I Xy o u c a ni n s t a l lo rp r e v i e wt h ei n s t a l l a t i o no fa n yp a t c h e s .Ir e c o m m e n du s i n g p r e v i e wo p t i o nb e f o r er e a li n s t a l l a t i o na n da l s or e c o m m e n di n s t a l l i n g p a t c h e si nA P P L I E Ds t a t u s ,t h a ti s ,b o t he i t h e ro r i g i n a lo ro l dv e r s i o n a n dn e w e s tv e r s i o no ft h es o f t w a r ea r ei n s t a l l e d ,s oy o uc a nR E J E C Tt h e i n s t a l l a t i o no fa n yp a t c h . 4 )Y o uc a nr e m o v ea n ys i n g l ef i l e s e tw i t ht h ef a s t p a t h s m i t t yr e m o v e

5 )AC O M M I T e ds o f t w a r ei si n s t a l l e da n dt h eo n l yw a yt or e j e c ti ti sb y u n i n s t a l l i n gt h es o f t w a r ef i l e s e tw h i l eaA P P L I E Ds o f t w a r ei si n s t a l l e d a n dt h ep r e v i e wv e r s i o n so ff i l e s e t sa r ei n s t a l l e dt o os oi fy o uR E J E C T t h eA P P L I E Ds o f t w a r et h e nt h o s eo l d e rv e r s i o n sw i l lb ea c t i v ea g a i n . C h e c k i n go nk n o w nm a i n t e n a n c el e v e l s : e s m f 0 4 m s t r o m b r g >o s l e v e lq r K n o w nR e c o m m e n d e dM a i n t e n a n c eL e v e l s 5 1 0 0 0 4 5 1 0 0 0 3 5 1 0 0 0 2 5 1 0 0 0 1 e s m f 0 4 m s t r o m b r g >l p p c h kv D u a lb o o t i n gA I X : > O k a yy o ui n s t a l lA I X5 . 1o nh d i s k 0a se x a m p l ea n db o o ty o u rm a s c h i n e . t h = > a n > y o uc l o n ey o u rr o o t v gt oh d i s k 1: > a l t _ d i s k _ i n s t a l lC h d i s k 1 > s oy o uh a v eh d i s k 0w i t ho l d _ r o o t v g > a n dh d i s k 1w i t ha l t _ * r o o t v g > > b o o t l i s tmh d i s k 0h d i s k 1( m e a n sy o ub o o tf r o mh d i s k 0f i r s ta n dh d i s k 1 > s e c o n d ) > > b o o tw i t hA I X 5 . 2C Da n di n s t a l lw i t hM i g a r t i o nO p t i o nf r o mp r o m p to n > h d i s k 0 . > > n o wy o uh a v eA i x 5 . 2o nh d i s k 0a n da i x 5 . 1o nh d i s k 1 > > i fy o uw a n tt or e m o v et h ea l t e r n a t ed i s ki n s t a l l : > a l t _ d i s k _ i n s t a l lX I n s t a l l i n ga nI B Mm a i n t e n a n c er e l e a s eu p g r a d e : G ot ot h eI B MS u p p o r tF i xC e n t r a ls i t e : h t t p : / / w w w 9 1 2 . i b m . c o m / e s e r v e r / s u p p o r t / f i x e s / f c g u i . j s p *S e r v e r S e l e c t" P s e r i e sf a m i l y "o rt h es e r i e st h a ty o u rs e r v e ri s . *P r o d u c to rf i xt y p e S e l e c t" A I XO S ,j a v a ,c o m p i l e r s " *O r d e r i n go p t i o n S e l e c t" M a i n t e n e a n c ep a c k a g e s "

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

9/23

2/8/2014
*O Sl e v e l S e l e c t" A I X5 . 1 " S e l e c t" c o n t i n u e "f o rn e x ts c r e e n C u r r e n tl e v e l S e l e c t" 5 1 0 0 0 4 " D e s i r e dL e v e l S e l e c t" 5 1 0 0 0 5 " S e l e c t" g o " D o w n l o a d" 5 1 0 4 0 5 . t a r . g z"a tt h eb o t t o mo ft h ep a g e F o l l o wt h ei n s t r u c t i o n s L o c k i n ga na c c o u n t :

Useful AIX commands

T h ef o l l o w i n gp r o c e d u r ec a nb eu s e dt ol o c kau s e r ' sa c c o u n t ; ( 1 )s m i t t yu s e r ( 2 )s e l e c t ,c h a n g et h ec h a r a c t e r i s t i c so fau s e r ( 3 )E x p i r a t i o nD a t e :i n p u tt h ee f f e c t i v ed a t e ,w h e nt h i sa c c o u n tw i l lb e e x p i r i n g/c l o s i n g ( 4 )I st h i su s e ra c c o u n tl o c k e d :f a l s e ,u s et a bk e yt oc h o o s et r u e ( 5 )U s e rc a nl o g i n : t r u e ,u s et a bk e yt oc h a n g et r u et of a l s e ( 6 )u s e rc a nl o g i nr e m o t e l y : t r u e ,u s et a bk e yt oc h a n g et r u et of a l s e ( 7 )P r e s se n t e rk e ya n da c c o u n tw i l lb el o c k e d ( 8 )f o rf u r t h e rs e c u r i t ya l s oc h a n g et h ep a s s w o r d t op e r m i tt h eu s e rt ol o g i na f t e r3 0d a y s/s p e c f i e dt i m er e v e r tt h ea b o v e f i e l d st oo r i g i n a lv a l u e s . I fa nE S M Fn o d em o s t l yf a l l so f ft h en e t( s t r o b es h o w so n l ya b o u t5 p o r t so p e n ) ,t h e n : 1 )G od o w nt ot h eE S M FH M C 2 )L o gi n 3 )L o c a t et h er i g h tw i n d o wt ou s e 4 )L o gi nt ot h et r o u b l em a c h i n e 5 )k i l la n dr e s t a r ts r c m s t r 6 )s t a r t s r csi n e t d 7 )s t a r t s r css s h d 8 )s t a r t s r csa u t o m o u n t d 9 )/ e t c / n f s . c l e a n 1 0 )/ e t c / r c . n f s T h e r em a yb eo t h e rt h i n g st h a tn e e dt ob es t a r t e du pa sw e l l ,b u tt h i s h a sb e e ns u f f i c i e n ts of a r . F o l l o w i n gt h ed o c u m e n t a t i o ni fy o ui s s u et h ef o l l o w i n gc o m m a n dy o uw i l l a c t i v a t eH M To rH a r d w a r eM u l t i T h r e a d i n g #b o s d e b u gHo n M e m o r yd e b u g g e r M e m o r ys i z e s N e t w o r km e m o r ys i z e s K e r n e ld e b u g g e r R e a lT i m eK e r n e l H M T

o f f 0 0 o f f o f f o n

. . . b u to n l yi fy o u rh a r d w a r es u p p o r t s -H M T ! D e f i n i i n gav i r t u a ln e t w o r ki n t e r f a c e : i f c o n f i ge n #a l i a sx x x . x x x . x x x . x x x C h e c k i n gi fN F Si sa c t i v e : l s s r ca|e g r e pn f s b i o d n f s n f s d n f s r p c . m o u n t d n f s r p c . s t a t d n f s r p c . l o c k d n f s n f s oon f s _ u s e _ r e s e r v e d _ p o r t s = 1

2 0 7 5 2 2 1 4 2 6 2 7 8 8 8 2 2 7 3 0 2 4 2 8 0

a c t i v e a c t i v e a c t i v e a c t i v e a c t i v e

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

10/23

2/8/2014
F i n dw h e r eg z i pl i v e s ,p a c k a g e w i s e : w h i c h _ f i l e s e tg z i p G e tt h em a c h i n em o d e l : e s m f 0 4 m s t r o m b r g >/ u s r / b i n / u n a m eM I B M , 7 0 3 9 6 5 1 e s m f 0 4 m s t r o m b r g > l s c o n f L o o k sal o tl i k ep r t c o n f ?

Useful AIX commands

Y o uc a nc h e c km i c r o c o d ev e r s i o nb yi s s u i n gt h ef o l l o w i n gc o m m a n d l s m c o d e

i ft h i sd o e sn o tw o r k ,t h e n l s c f gv p|g r e pia l t e r a b l e Y o uc a nd o w n l o a dF i x e sa n dm i c r o c o d e sn o to n l yf o ry o u rS e r v e rn u tf o ra n y p e r i p h e r a ld e v i c e sf r o m t e c h s u p p o r t . s e r v i c e s . i b m . c o m 1 .T y p en o o t c p _ k e e p i n i t = 3 7 5 0 T h ei n i t i a lt i m e o u tf o rT C P / I Pw i l lc h a n g e f r o m7 5s e c o n d st o3 1 . 2 5m i n u t e s .T h et i m e( 3 7 5 0 )i si n1 / 2s e c o n d s . 2 . T y p en o o t c p _ k e e p i d l e = 8 6 4 0 0 T h ec o n n e c t i o nw i l lb ek e p ta l i v e f o r1 2h o u r s . T h ea b o v et w oi t e m sw i l ln o tb ea c t i v eo n c ear e b o o ti sd o n e .I ft h i s s o l v e sy o u rp r o b l e my o uc a na d dt h es t a t e m e n t st oy o u r/ e t c / r c . t c p i pf i l e . f i l e m o nC o m m a n d M o n i t o r st h ep e r f o r m a n c eo ft h ef i l es y s t e m ,a n dr e p o r t st h eI / Oa c t i v i t yo n b e h a l fo fl o g i c a lf i l e s ,v i r t u a lm e m o r ys e g m e n t s ,l o g i c a lv o l u m e s ,a n dp h y s i c a l v o l u m e s . l s f s . . . c a nb eu s e dt oc h e c kw h a tk i n do ff i l e s y s t e maf i l e s y s t e mi s p o r t m i r A p p a r e n t l yc a nb eu s e dt os n o o po nat t y / p t yo nA I X ? Ab i tl i k es c r e e n o rV N C ,b u tw i t h o u tt h ef o r e t h o u g h tr e q u i r e m e n t . R e s t o r i n gf r o mam k s y s bt a p e : Y o uc a ne i t h e rb o o tf r o my o u rm k s y s bM e d i u m( b a n dS t r e a m e ro rc d r o m )a n d r e s t o r e . c h a n g ey o u rb o o t l i s t : i fy o uh a v eaB a n dS t r e a m e r ,s oy o uc a nb o o tf r o mA I XI n s t a l l a t i o nM e d i u m a n dc h o o s ep o i n t3( M a i n t e n a n c em o d e )a n dr e s t o r ef r o mm e d i a . D e t e r m i n gw h a tn e e d st ob eu p g r a d e dt oa d v a n c et oah i g h e ro sl e v e l : y o uc a nd oa n" i n s t f i xi|g r e pM L "t ol i s tw h i c hm a i n t e n a n c el e v e li s i n c o m p l e t ea n dt h e ns h o ww h a tf i l e s e t sa r er e q u i r e di . e .i fA I X5 . 2M L 0 2i s i n c o m p l e t ed o " i n s t f i xi v k5 2 0 0 0 1 _ A I X _ M L|g r e p" : "|g r e pn o t " N i c ep a g ew i t hA I XO p e n S S Hb f f ' s ,as c r i p tf o rc r e a t i n gb f f ' s ,as c r i p t f o rs e t t i n gu pL B Xf o ru s ew i t hs s h ,a n dm o r e . h t t p : / / w w w . z i p . c o m . a u / ~ d t u c k e r / o p e n s s h / A ne x a m p l em k s y s bb a c k u p : #m k s y s b/ d e v / r m t 0

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

11/23

2/8/2014
C r e a t i n gt a p eb o o ti m a g e. . .

Useful AIX commands

C r e a t i n gl i s to ff i l e st ob a c ku p. B a c k i n gu p6 8 6 1 4f i l e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 3 7 9o f6 8 6 1 4f i l e sb a c k e du p( 2 5 % ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 3 3 1o f6 8 6 1 4f i l e sb a c k e du p( 3 6 % ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 3 4 1o f6 8 6 1 4f i l e sb a c k e du p( 3 6 % ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 3 5 9o f6 8 6 1 4f i l e sb a c k e du p( 8 0 % ) . . . . . . . . . . . . . . . . . 6 8 6 1 4o f6 8 6 1 4f i l e sb a c k e du p( 1 0 0 % ) 0 5 1 2 0 3 8m k s y s b :B a c k u pC o m p l e t e dS u c c e s s f u l l y . #e c h o$ P A T H / u s r / u c b : / b i n : / u s r / b i n : / e t c : / u s r / l p p / s s p / b i n : / u s r / l i b / i n s t l : / u s r / s b i n : / u s r / l o c a l / b i n # N o t et h eP A T H ! T h eb a c k u pf a i l e dw h e nIh a dal a r g e rP A T H . I B M ' sd o c u m e n td e s c r i b i n gA I Xt oS o l a r i sa d m i n s : h t t p : / / w w w . r e d b o o k s . i b m . c o m / a b s t r a c t s / s g 2 4 6 5 8 4 . h t m l ? O p e n C h a n g i n gt h eb o o td e v i c e : B o o tf r o ma i xc d ' si n t om a i n ts h e l la n dr u nt h eb o s b o o ta d/ d e v / h d i s k 0 c o m m a n d . O ri ft h eh d 5b o o td e v i c ei sm i r r o r e do nh d i s k 0a n dh d i s k 1a l ly o un e e d t od oi sb o o ti n t os m sm e n ua n de n s u r eb o t hd i s k sa r es e l e c t e di nt h e b o o to r d e r . T oa c c e s ss m sh i t1b e f o r ei td o e sas p e a k e rt e s t . / / / / / Y o uc a nb o o ti tu pi n t ow h a tu s e dt ob ec a l l e dS M Sm o d e. .i . e .h i tF 1a t t h e' k e y b o a r d 'p r o m p t. . .Y o uc a nc h a n g et h eb o o td e v i c ef r o mt h e r ea n d t h e nm a k es u r et h a ty o ur e r u ny o u rb o s b o o to n c ey o uh a v eb o o t e du p . C o u l d n ' tb es i m p l e r m a n c t s r /> l s v gr o o t v gp r o o t v g : P V = 5 F N A M E P VS T A T E T O T A LP P s F R E EP P s F R E ED I S T R I B U T I O N h d i s k 0 a c t i v e 5 4 2 2 4 5 2 8 . . 0 0 . . 0 0 . . 1 0 8 . . 1 0 9 h d i s k 1 a c t i v e 5 4 2 2 4 5 2 8 . . 0 0 . . 0 0 . . 1 0 8 . . 1 0 9 m a n c t s r /> l s v gr o o t v gl r o o t v g : L VN A M E T Y P E L P s P P s P V s L VS T A T E M O U N TP O I N T h d 5 b o o t 1 2 2 c l o s e d / s y n c d N / A h d 6 p a g i n g 6 4 1 2 8 2 o p e n / s y n c d N / A h d 8 j f s l o g 1 2 2 o p e n / s y n c d N / A h d 4 j f s 1 2 2 o p e n / s y n c d / h d 2 j f s 2 7 5 4 2 o p e n / s y n c d / u s r h d 9 v a r j f s 3 6 2 o p e n / s y n c d / v a r h d 3 j f s 5 1 0 2 o p e n / s y n c d / t m p h d 1 j f s 1 2 2 o p e n / s y n c d / h o m e a p a c h e l v j f s 5 1 0 2 o p e n / s y n c d / a p a c h e c v 4 = 5 F h o m e j f s 1 7 2 3 4 4 2 o p e n / s y n c d / e x p o r t / c v 4 = 5 F h o m e c v 4 = 5 F d e c j f s 1 5 3 0 2 o p e n / s y n c d/ e x p o r t / c v 4 = 5 F d = e c l v 0 0 j f s 2 4 2 o p e n / s y n c d / m n / s c r i p t #l s v gr o o t v gl r o o t v g : L VN A M E h d 5 h d 6 h d 8 h d 4 h d 2 h d 9 v a r h d 3 h d 1 h d 1 0 o p t l o g 1 p a g i n g 0 1 h d 1 4

T Y P E b o o t p a g i n g j f s l o g j f s j f s j f s j f s j f s j f s j f s l o g p a g i n g j f s

L P s 1 4 0 1 1 7 1 1 2 4 2 1 9 4

P P s 2 8 0 2 2 1 4 2 2 4 8 4 2 1 8 8

P V s 2 2 2 2 2 2 2 2 2 2 2 2

L VS T A T E c l o s e d / s y n c d o p e n / s y n c d o p e n / s y n c d o p e n / s y n c d o p e n / s y n c d o p e n / s y n c d o p e n / s y n c d o p e n / s y n c d o p e n / s y n c d c l o s e d / s y n c d o p e n / s y n c d c l o s e d / s y n c d

M O U N TP O I N T N / A N / A N / A / / u s r / v a r / t m p / h o m e / o p t N / A N / A N / A

P S S Ph a si t ' so w n5C Ds e t( P S S P 3 . 5 )a n dh a st ob eo r d e r e d . T h a n k s D o n ' tp a n i c ! D I S K _ E R R 4( i ne r r p t )i sj u s tab a db l o c kr e l o c a t i o na n d

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

12/23

2/8/2014

Useful AIX commands

i sas o m e w h a t " n o r m a l "o c c u r r e n c e . Y o uo n l yn e e dt ob ec o n c e r n e da b o u tt h e s ee r r o r s i fy o un o t i c et h e mi n c r e a s i n gi nn u m b e ro nt h es a m ed i s k . S o-y o un e e d t ot r a c ki tb u tn o tn e c e s s a r i l yr e p l a c ei t . W h a tk e r n e ll e v e l( l s l p pl' b o s . [ u m ] p * ' ) T h eh a r d w a r em u s tb eC H R P( C o m m o nH a r d w a r eR e f e r e n c eP l a t f o r m )i no r d e rf o r 5 . 2o rg r e a t e rt ob es u p p o r t e d . Y o uc a nd e t e r m i n et h a tb yi s s u i n g" b o o t i n f op " . N i c ea r t i c l eo nA I Xb a c k u p s : h t t p : / / w w w . a h i n c . c o m / a i x / b a c k u p . h t m Af i xf o rs o m ek i n d so ft a p eb a c k u pp r o b l e m s : p l e a s ep o s tt h eo u t p u to ft h ef o l l o w i n gc o m m a n d l s a t t rE lr m t 0 w ea r el o o k i n gf o rt h ev a l u e" r e te r r o r " ,i ft h i si ss e tt ot r u et h e ni ' d r e c o m m e n dc h a n g i n gi tt of a l s eb yi s s u i n gas m i t t yd e v i c e s > T a p e d e v i c e s > C h a n g eT a p eD e v i c e s H o wt oc r e a t em k s y s bt oar e m o t et a p ed r i v e . . * * * *N o t em k s y s bw i l ln o tb eb o o t a b l e* * * . L e t ss a yt a p ed r i v ei so ns y s t e m Aa n dy o un e e dt oc r e a t e m k s y s bo fs y s t e m Y o us h o u l db ea b l et od or s hf r o ms y s t e m Bt os y s t e m A C r e a t et h es c r i p tr e m o t e _ m k s y s bo ns y s t e m Bw i t hf o l l o w i n gl i n e s . . # ! / u s r / b i n / k s h r mf/ t m p / p i p e m k n o d/ t m p / p i p ep m k s y s b/ t m p / p i p e& d di f = / t m p / p i p e|r s hs y s t e m A" d do f = / d e v / r m t 0b s = 1 0 2 4c o n v = s y n c " r m/ t m p / p i p e G e n e r a t i n gal i s to fs y s t e mc a l l sk n o w nt ot h ek e r n e l : d di f = / p r o c / $ $ / s y s e n to f = / t m p / o u t ( c h e c kt h ee n d ) R e a d i n gat a p e m k s y s b t c t lr e w i n d t c t lf s f3 r e s t o r eT q v f/ d e v / r m t 0 . 1 | p g S a v e v g t c t lr e w i n d t c t lf s f5 r e s t o r eT q v f/ d e v / r m t 0 . 1 | p g It h i n kt h a ta l lt h e s ef o l l o w i n gc o m m a n d sm e a nt h es a m et h i n g: #b o o t i n f oy 3 2 #p r t c o n fc C P UT y p e :3 2 b i t #b o o t i n f oK 3 2

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

13/23

2/8/2014
O na l t _ d i s k _ i n s t a l l :

Useful AIX commands

W eu s ei tm a i n l yt or e d u c ed o w n t i m ew h i l eu p g r a d i n gt h es y s t e m sa n da l s o t oh a v eaq u i c kb a c ko u tp a t h .Y o uc a nh a v et h en e wb u i l ti m a g ei n s t a l l o nt h ea l td i s k s .S w i t c hb o o td e v i c et ot h en e wp a r t i t i o na n dy o u rn e w l y u p g r a d e ds y s t e mu pa n dr u n n i n g . I fy o u rs y s t e mh a sa n yp r o b l e m sy o u c a n n o tf i xw i t ha d j u s t m e n t s ,y o uc a ns w i t c hb a c kt ot h eo l dp a r t i t i o n a n db r i n go u tt h eo l ds o f t w a r e . O u t a g et i m ei sl i t t l eo v e rar e b o o tw o r t ho ft i m e . F i r s t ,t r yt os t a r tt h es w i t c ha d a p t e rd a e m o n( w o r m )w i t h r c . s w i t c h . N o wr e f e rt ot h ed o c sa t : h t t p : / / a i x d o c . u r z . u n i h e i d e l b e r g . d e / d o c _ l i n k / e n _ U S / l o c a l / P S S P . 3 . 1 . 1 / h t m l / d i a g / s p d 2 m s t 2 1 . h t m l G o o dl u c k-t h e s eS Ps w i t c hp r o b l e m sa r en o t o r i o u s l yh a r dt of i x . E n a b l i n gq u o t a so naJ F Sf i l e s y s t e m( a n dp e r h a p so t h e r s ): E d i t/ e t c / f i l e s y s t e m sa n de d i ti nq u o t a = u s e r q u o t ao nt h er e l e v a n tf i l e s y s t e m . e s m f 0 4 m r o o t >c h f sa" q u o t a=u s e r q u o t a "/ h o m e e s m f 0 4 m r o o t >q u o t a o n/ h o m e e s m f 0 4 m r o o t >q u o t a c h e c k/ h o m e I fap r o g r a mp r o v e st o ol a r g et oc o m p i l ew i t ht h ed e f a u l to p t i o n sd u e t oat o co v e r f l o w ,p l e a s et r ya d d i n g : W l , bW l , b i g t o c . . . t oy o u r$ C Co r$ L D F L A G S b a s h 2 . 0 5 b $l s a t t rE le n t 0 a l t _ a d d r 0 x 0 0 0 0 0 0 0 0 0 0 0 0 A l t e r n a t ee t h e r n e ta d d r e s s T r u e b u s i n t r 5 5 3 B u si n t e r r u p tl e v e l F a l s e b u s m e m 0 x f 8 0 8 0 0 0 0 B u sm e m o r ya d d r e s s F a l s e c h k s u m _ o f f l o a dy e s E n a b l eh a r d w a r et r a n s m i ta n d r e c e i v ec h e c k s u mT r u e c o m p a t _ m o d e n o G i g a b i tB a c k w a r dc o m p a t a b i l i t y T r u e c o p y _ b y t e s 2 0 4 8 C o p yp a c k e ti ft h i sm a n yo rl e s s b y t e s T r u e f l o w _ c t r l y e s E n a b l eT r a n s m i ta n dR e c e i v e F l o wC o n t r o l T r u e i n t r _ p r i o r i t y 3 I n t e r r u p tp r i o r i t y F a l s e i n t r _ r a t e 1 0 0 0 0 I n t e r r u p te v e n t sp r o c e s s e dp e r i n t e r r u p t T r u e j u m b o _ f r a m e s n o T r a n s m i tj u m b of r a m e s T r u e l a r g e _ s e n d y e s E n a b l eh a r d w a r eT XT C P r e s e g m e n t a t i o n T r u e m e d i a _ s p e e d A u t o _ N e g o t i a t i o nM e d i as p e e d T r u e r o m _ m e m 0 x f 8 0 4 0 0 0 0 R O Mm e m o r ya d d r e s s F a l s e r x _ h o g 1 0 0 0 R Xb u f f e r sp r o c e s s e dp e rR X i n t e r r u p t T r u e r x b u f _ p o o l _ s z 2 0 4 8 R c vb u f f e rp o o l ,m a k e2 Xr x d e s c _ q u e _ s z T r u e r x d e s c _ q u e _ s z 1 0 2 4 R Xd e s c r i p t o rq u e u es i z e T r u e s l i h _ h o g 1 0 M a xI n t e r r u p te v e n t sp r o c e s s e d p e ri n t e r r u p t T r u e t x _ q u e _ s z 8 1 9 2 S o f t w a r et r a n s m i tq u e u es i z e T r u e t x d e s c _ q u e _ s z 1 0 2 4 T Xd e s c r i p t o rq u e u es i z e T r u e u s e _ a l t _ a d d r n o E n a b l ea l t e r n a t ee t h e r n e ta d d r e s s T r u e #l s s l o tcp c i #S l o t D e s c r i p t i o n

D e v i c e ( s )

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

14/23

2/8/2014
U 0 . 1 P 1 I 1 U 0 . 1 P 1 I 2 U 0 . 1 P 1 I 3 U 0 . 1 P 1 I 4 U 0 . 1 P 1 I 5 U 0 . 1 P 1 I 6 P C I Xc a p a b l e ,6 4b i t ,1 3 3 M H zs l o t P C I Xc a p a b l e ,3 2b i t ,6 6 M H zs l o t P C I Xc a p a b l e ,3 2b i t ,6 6 M H zs l o t P C I Xc a p a b l e ,6 4b i t ,1 3 3 M H zs l o t P C I Xc a p a b l e ,6 4b i t ,1 3 3 M H zs l o t P C I Xc a p a b l e ,6 4b i t ,1 3 3 M H zs l o t

Useful AIX commands


E m p t y E m p t y p c i 9l a i 0 E m p t y E m p t y E m p t y

O p e r a t i n gS y s t e ma n dD e v i c e s S p l i taM i r r o r e dD i s kf r o maV o l u m eG r o u p B e g i n n i n gw i t hA I X5 . 2 ,s n a p s h o ts u p p o r th e l p sy o up r o t e c tt h e c o n s i s t e n c yo fy o u rm i r r o r e dv o l u m eg r o u p sf r o mp o t e n t i a ld i s kf a i l u r e . U s i n gt h es n a p s h o tf e a t u r e ,y o uc a ns p l i to f fam i r r o r e dd i s ko rd i s k s t ou s ea sar e l i a b l e( f r o mt h es t a n d p o i n to ft h eL V Mm e t a d a t a ) p o i n t i n t i m eb a c k u po fav o l u m eg r o u p ,a n d ,w h e nn e e d e d ,r e l i a b l y r e i n t e g r a t et h es p l i td i s k si n t ot h ev o l u m eg r o u p .I nt h ef o l l o w i n g p r o c e d u r e ,y o uf i r s ts p l i to f fam i r r o r e dd i s kf r o mav o l u m eg r o u pa n d t h e ny o um e r g et h es p l i t o f fd i s ki n t ot h eo r i g i n a lv o l u m eg r o u p .T o f u r t h e re n s u r et h er e l i a b i l i t yo fy o u rs n a p s h o t ,f i l es y s t e m sm u s tb e u n m o u n t e da n da p p l i c a t i o n st h a tu s er a wl o g i c a lv o l u m e sm u s tb ei na k n o w ns t a t e( as t a t ef r o mw h i c ht h ea p p l i c a t i o nc a nr e c o v e ri fy o un e e d t ou s et h eb a c k u p ) . Av o l u m eg r o u pc a n n o tb es p l i ti fa n yo n eo ft h ef o l l o w i n gi st r u e : Ad i s ki sa l r e a d ym i s s i n g . T h el a s tn o n s t a l ep a r t i t i o nw o u l db eo nt h es p l i t o f fv o l u m eg r o u p . A n ys t a l ep a r t i t i o n se x i s ti nt h ev o l u m eg r o u p ,u n l e s sy o uu s et h ef o r c e f l a g( f )w i t ht h es p l i t v gc o m m a n d . F u r t h e r m o r e ,t h es n a p s h o tf e a t u r e( s p e c i f i c a l l y ,t h es p l i t v gc o m m a n d ) c a n n o tb eu s e di ne n h a n c e do rc l a s s i cc o n c u r r e n tm o d e .T h es p l i t o f f v o l u m eg r o u pc a n n o tb em a d ec o n c u r r e n to re n h a n c e dc o n c u r r e n ta n dt h e r e a r el i m i t a t i o n st ot h ec h a n g e sa l l o w e df o rb o t ht h es p l i t o f fa n dt h e o r i g i n a lv o l u m eg r o u p .F o rd e t a i l s ,r e a dt h ec h v gc o m m a n dd e s c r i p t i o ni n A I X5 LV e r s i o n5 . 2C o m m a n d sR e f e r e n c e . E n s u r et h a tt h ev o l u m eg r o u pi sf u l l ym i r r o r e da n dt h a tt h em i r r o r e x i s t so nad i s ko rs e to fd i s k st h a tc o n t a i n so n l yt h i ss e to fm i r r o r s . T oe n a b l es n a p s h o ts u p p o r t ,s p l i to f ft h eo r i g i n a lv o l u m eg r o u p( o r i g V G ) t oa n o t h e rd i s ko rs e to fd i s k s ,u s i n gt h ef o l l o w i n gc o m m a n d : s p l i t v go r i g V G A tt h i sp o i n t ,y o un o wh a v ear e l i a b l ep o i n t i n t i m eb a c k u po ft h e o r i g i n a lv o l u m eg r o u p .B ea w a r e ,h o w e v e r ,t h a ty o uc a n n o tc h a n g et h e a l l o c a t i o no nt h es p l i t o f fv o l u m eg r o u p . R e a c t i v a t et h es p l i t o f fd i s ka n dm e r g ei ti n t ot h eo r i g i n a lv o l u m e g r o u pu s i n gt h ef o l l o w i n gc o m m a n d : j o i n v go r i g V G A tt h i sp o i n t ,t h es p l i t o f fv o l u m eg r o u pi sn o wr e i n t e g r a t e dw i t ht h e o r i g i n a lv o l u m eg r o u p . C o n f i g u r i n gn t p 1 )S t o pt h ex n t p dd a e m o n T h ex n t p dd a e m o ni sm a n a g e db yt h eS y s t e mR e s o u r c eC o n t r o l l e r( S R C ) . T ov e r i f yt h a tt h ex n t p dd a e m o ni sa c t i v e:l s s r csx n t p d:s t a t u s s h o u l db e" a c t i v e " T os t o pt h ex n t p ds u b s y s t e m:s t o p s r csx n t p d N o t e:x n t p di sa u t o m a t i c a l l ys t a r t e di n/ e t c / r c . t c p i p .T ov e r i f yt h i s: c a t/ e t c / r c . t c p i p|g r e px n t p d . 2 )M o d i f yt h e/ e t c / n t p . c o n ff i l e P u tt h ef o l l o w i n gl i n e si nt h e/ e t c / n t p . c o n ff i l e: s e r v e r< I Pa d d r e s so rF Q D No ft i m e s e r v e r >p r e f e r d r i f t f i l e/ e t c / n t p . d r i f t t r a c e f i l e/ e t c / n t p . t r a c e 3 )R e s t a r tt h ex n t pd a e m o n T or e s t a r tt h ex n t p dd a e m o n: s t a r t s r csx n t p d 4 )C h e c ks t a t u so ft i m es y n c h r o n i z a t i o n T oc h e c kt h es t a t u so ft h et i m es y n c h r o n i s a t i o n ,u s et h en t p qu t i l i t y . n t p qi:s t a r tn t p qi n t e r a c t i v e l y n t p q >p e e r

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

15/23

2/8/2014

Useful AIX commands

r e m o t e r e f i d s ttw h e np o l lr e a c h d e l a y o f f s e t d i s p = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = *. P P S . 1u 8 6 31 0 2 4 3 7 7 0 . 9 2 0 . 1 6 0 0 . 4 7 T h e" o f f s e t "f i e l dd i s p l a y st h ed i f f e r e n c e( i nm i l l i s e c o n d s )b e t w e e nt h e s y s t e mt i m ea n dt h er e f e r e n c et i m e . T y p e" q u i t "t oe x i tt h en t p qu t i l i t y . K i n do fl i k el d d : d u m pX 3 2T v/ b i n / l s G e t t i n gs e c u r i t yn o t i c e sf r o mI B M : h t t p s : / / t e c h s u p p o r t . s e r v i c e s . i b m . c o m / s e r v e r / p s e r i e s . s u b s c r i p t i o n S v c s ? m o d e = 2 C h a n g i n gp r n g dt ol i s t e no nas o c k e t ,u s i n gc h s y s : e s m f c w s r o o t >c h s s y ssp r n g da' f/ d e v / e g d p o o lm6 6 6t c p / l o c a l h o s t : 7 0 8 ' 0 5 1 3 0 7 7S u b s y s t e mh a sb e e nc h a n g e d . e s m f c w s r o o t >p se f|g r e pp r n g r o o t 3 0 3 1 8 61 0 1 5 8 7 8 01 9 : 1 9 : 4 3 p t s / 2 0 : 0 0g r e pp r n g r o o t1 0 0 7 8 3 6 2 6 2 2 1 2 01 9 : 0 4 : 4 2 - 0 : 0 1 / o p t / f r e e w a r e / s b i n / p r n g df/ d e v / e g d p o o lm6 6 6 e s m f c w s r o o t >s t o p s r csp r n g d 0 5 1 3 0 4 4T h ep r n g dS u b s y s t e mw a sr e q u e s t e dt os t o p . e s m f c w s r o o t >s t a r t s r csp r n g d 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s8 5 2 0 6 2 . e s m f c w s r o o t >p se f|g r e pp r n g r o o t 8 5 2 0 6 2 2 6 2 2 1 2 01 9 : 2 0 : 4 2 - 0 : 0 1 / o p t / f r e e w a r e / s b i n / p r n g df/ d e v / e g d p o o lm6 6 6t c p / l o c a l h o s t : 7 0 8 r o o t1 0 0 7 8 4 61 0 1 5 8 7 8 01 9 : 2 0 : 5 4 p t s / 2 0 : 0 0g r e pp r n g e s m f c w s r o o t >/ u s r / l o l o c a l l o s t + f o u n d e s m f c w s r o o t >/ u s r / l o c a l / s b i n / g e n p a s N o tb a d ,u s i n gp r n g df o re n t r o p y c f 4 b 0 1 1 4 2 c 3 3 d 9 b d 0 6 f 1 e 5 0 d 6 9 6 8 f 4 d a e s m f c w s r o o t > O ri fp r n g di s n ' ta l r e a d yp a r t i a l l ys e tu p : e s m f 0 4 m r o o t >m k s s y ssp r n g dp/ o p t / f r e e w a r e / s b i n / p r n g dur o o ta ' f/ d e v / e g d p o o lm6 6 6t c p / l o c a l h o s t : 7 0 8 ' 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . e s m f 0 4 m r o o t >l s s r csp r n g d S u b s y s t e m G r o u p P I D S t a t u s p r n g d i n o p e r a t i v e e s m f 0 4 m r o o t > e s m f 0 4 m r o o t >f o rii n12345678 ;d os s he s m f 0 $ { i } m" m k s s y ss p r n g dp/ o p t / f r e e w a r e / s b i n / p r n g dur o o ta' f/ d e v / e g d p o o lm6 6 6 t c p / l o c a l h o s t : 7 0 8 ' " ;d o n e 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . 0 5 1 3 0 7 5T h en e ws u b s y s t e mn a m ei sa l r e a d yo nf i l e . 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . 0 5 1 3 0 7 1T h ep r n g dS u b s y s t e mh a sb e e na d d e d . e s m f 0 4 m r o o t >f o rii n12345678 ; d os s he s m f 0 $ { i } m" s t o p s r csp r n g d " ;d o n e 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . 0 5 1 3 0 4 4T h ep r n g dS u b s y s t e mw a sr e q u e s t e dt os t o p . 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . 0 5 1 3 0 0 4T h eS u b s y s t e mo rG r o u p ,p r n g d ,i sc u r r e n t l yi n o p e r a t i v e . e s m f 0 4 m r o o t >f o rii n12345678 ;d os s he s m f 0 $ { i } m" s t a r t s r c sp r n g d " ;d o n e 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s2 5 8 8 0 . 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s3 4 5 0 8 . 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s3 0 6 7 0 . 0 5 1 3 0 2 9T h ep r n g dS u b s y s t e mi sa l r e a d ya c t i v e . M u l t i p l ei n s t a n c e sa r en o ts u p p o r t e d . 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s3 7 4 5 0 .

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

16/23

2/8/2014

Useful AIX commands

0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s2 1 2 6 6 . 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s2 7 6 6 2 . 0 5 1 3 0 5 9T h ep r n g dS u b s y s t e mh a sb e e ns t a r t e d .S u b s y s t e mP I Di s4 2 6 6 6 . e s m f 0 4 m r o o t > D o n ' tf o r g e t/ e t c / p r n g d . c o n f O n l yJ F Sf i l es y s t e m sc a nb el a r g e f i l e e n a b l e d . I fy o uu s eJ F S 2 ,t h e y h a n d l ef i l e sg r e a t e rt h a n2 G Bo u to ft h eb o x . M i k eB a d a r C h e c k i n go nw h e t h e rt h e" T r u s t e dC o m p u t i n gB a s e "i sc o n f i g u r e d : t c b c k p l e a s ei s s u et h ef o l l o w i n gc o m m a n d s : f u s e rc/ m n t a n dc h e c kf o ra n yP I Dt h a tm a y b el o c k i n gy o u rC Dd e v i c e .I fy o uh a v ea n y , y o uc a nk i l lt h e ma l lb y ei s s u i n g f u s e rc k/ m n t a n dt r yt oe j e c tt h eC D R O M .I ft h i sd o e s n ' tw o r ka ta l l ,t h e nc h e c kf o r t h ec d r o m dd a e m o n( n e wf e a t u r ep o r t e df o rS o l a r i si n t oA I X )w i t ht h e f o l l o w i n gc o m m a n d : l s s r ca|g r e pc d r o m i fc d r o m di sr u n n i n g ,t h e ny o us h o u l du m o u n tt h ec d r o md e v i c e : c d m o u n t c d u m o u n t/ c d r o m / c d X X c d e j e c t L i n u x ,b yd e f a u l t ,r e q u i r e sa n yN F Sm o u n tt ou s ear e s e r v e dp o r tb e l o w1 0 2 4 . A I X ,b yd e f a u l t ,u s e sp o r t sa b o v e1 0 2 4 .U s et h ef o l l o w i n gc o m m a n dt o r e s t r i c tA I Xt ot h er e s e r v e dp o r tr a n g e : #/ u s r / s b i n / n f s oon f s _ u s e _ r e s e r v e d _ p o r t s = 1 C r e a t i n gas u b s y s t e m : m k s s y sss m b dp/ o p t / f r e e w a r e / s b i n / s m b du0 a" D "dqSn1 5 f9Gt c p i p B u ti t ' su s e l e s ss i n c es m b dm a k ef o r k . S i n c e r e l y , L e v A I Xs y s t e mf i r m w a r eu p g r a d e( p S e r i e s ? ): S y s p l a n a ri ss o m e t h i n gl i k em o t h e r b o a r di nI n t e ld o m a i n ,i . e .i ti sh a r d w a r e . I ti sp o s s i b l et ou p g r a d ef i r m w a r ew h e ni nm a i n t e n a n c em o d e-w h e nt h e r e i sE 1 F 1o nt h eL C Dd i s p l a yr i g h to nt h em a c h i n ep r e s sk e y1( n o to nt h e n u m e r i ck e y b o a r d )i fy o uh a v eA S C I It e r m i n a l . I fy o uh a v eg r a p h i c a lc o n s o l ep r e s sf u n c t i o n a lk e y' F 1 ' y o uw i l lb ed i r e c t e dt os t a n d a l o n ed i a g n o s t i c sm e n u t h ef i r m w a r ey o uc a nf i n dh e r et o g e t h e rw i t hd e s c r i p t i o n :h t t p : / / t e c h s u p p o r t . s e r v i c e s . i b m . c o m / s e r v e r / m d o w n l o a d 2 / d o w n l o a d . h t m l i fy o uc a n n o tb o o ta n dh a v et h es h e l lp r o m p ty o uc a nd oi ta c c o r d i n g t h ep a r a g r a p h' U p d a t i n gw i t ht h eD i a g n o s t i cS e r v i c eA i dM e t h o d '-s e e t h ed e s c r i p t i o nf r o mt h el i n km e n t i o n e da b o v e . i nt h ed i a g n o s t i c sm e n uy o uc a nf i n d' c u r r e n tf i r m w a r ea sw e l l( t h e r e i ss o m e t h i n gl i k e' D i s p l a yc o n f i g 't h e r e ' ) D i a g n o s t i c sc a nb er a na g a i n s tas i n g l ed e v i c ew h i l eo n l i n e u s et h e d i a gdd e v i c e n a m e b i n d p r o c e s s o rq(w i l lg i v ey o ut h en u m b e ro fp r o c .) l s c f g v(w i l lg i v ey o u rs y s t e mi n f o .) l s m c o d eA (w i l lg i v ey o ut h ep r o c .f i r m w a r e+o t h e r s)

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

17/23

2/8/2014
c h u s e rm a x a g e = 0u s e r n a m e S o m eg o o ds t u f fo nO p e n M Pa n dA I X( a m o n go t h e rt h i n g s ) : h t t p : / / w w w . r z . r w t h a a c h e n . d e / e w o m p 0 3 / O M P t o o l s . h t m l

Useful AIX commands

S o m e o n eo nA I X Li n d i c a t e dt h a tt h i sw a sag o o dv m t u n ef o rad a t a b a s es y s t e m : / u s r / s a m p l e s / k e r n e l / v m t u n ep5 P2 0 (t os e tt h em a xp e r ma n dm i n p e r mv a l u e s ) G e t t i n ga nA I Xm a c h i n e ' ss e r i a ln u m b e r : e s m f 0 4 m r o o t >u n a m em 0 0 2 0 D 3 F A 4 C 0 0 L o a d L e v e l e ru p g r a d eP M R #7 0 3 7 4 2 2 7-w e b s i t eo n l ys h o w i n gl i n u xd o w n l o a d s o fl o a d l e v e l e r ,n oA I Xd o w n l o a d s F r o map o s to nA I X L : I B Mr e c o m m e n d st h ef o l l o w i n gf o r m u l at oc a l c u l a t et h ea m o u n to fp a g i n g s p a c ey o un e e d . . . F o rm e m o r i e sl a r g e rt h a n2 5 6M B ,t h ef o l l o w i n gi sr e c o m m e n d e d : t o t a lp a g i n gs p a c e=5 1 2M B+( m e m o r ys i z e-2 5 6M B )*1 . 2 5 F o r1 0 2 4 M BR A M=1 6 0 0 M BP a g i n gS p a c e 1L P=6 4M B=a d d1 7L P ' st o=1 6 0 0 M B T h i si sw h a tw eu s ew h i l er u n n i n gA I X5 L . C h a n g i n gaf o r g o t t e nr o o tp a s s w o r do nA I X : 1 . I n s e r tt h ep r o d u c tm e d i af o rt h es a m ev e r s i o na n dl e v e la st h e c u r r e n ti n s t a l l a t i o ni n t ot h ea p p r o p r i a t ed r i v e . 2 . P o w e ro nt h em a c h i n e . 3 . W h e nt h es c r e e no fi c o n sa p p e a r s ,o rw h e ny o uh e a rad o u b l e b e e p ,p r e s st h eF 1k e yr e p e a t e d l yu n t i lt h eS y s t e mM a n a g e m e n tS e r v i c e s m e n ua p p e a r s . 4 . S e l e c tM u l t i b o o t . 5 . S e l e c tI n s t a l lF r o m . 6 . S e l e c tt h ed e v i c et h a th o l d st h ep r o d u c tm e d i aa n dt h e ns e l e c t I n s t a l l . 7 . S e l e c tt h eA I Xv e r s i o ni c o n . 8 . D e f i n ey o u rc u r r e n ts y s t e ma st h es y s t e mc o n s o l eb yp r e s s i n gt h e F 1k e ya n dt h e np r e s sE n t e r . 9 . S e l e c tt h en u m b e ro fy o u rp r e f e r r e dl a n g u a g ea n dp r e s sE n t e r . 1 0 . C h o o s eS t a r tM a i n t e n a n c eM o d ef o rS y s t e mR e c o v e r yb yt y p i n g3 a n dp r e s sE n t e r . 1 1 . S e l e c tA c c e s saR o o tV o l u m eG r o u p .Am e s s a g ed i s p l a y se x p l a i n i n g t h a ty o uw i l ln o tb ea b l et or e t u r nt ot h eI n s t a l l a t i o nm e n u sw i t h o u t r e b o o t i n gi fy o uc h a n g et h er o o tv o l u m eg r o u pa tt h i sp o i n t . 1 2 . T y p e0a n dp r e s sE n t e r . 1 3 . T y p et h en u m b e ro ft h ea p p r o p r i a t ev o l u m eg r o u pf r o mt h el i s t a n dp r e s sE n t e r . 1 4 . S e l e c tA c c e s st h i sV o l u m eG r o u pa n ds t a r tas h e l lb yt y p i n g1 a n dp r e s sE n t e r . 1 5 . A tt h e#( n u m b e rs i g n )p r o m p t ,t y p et h ep a s s w dc o m m a n da tt h e c o m m a n dl i n ep r o m p tt or e s e tt h er o o tp a s s w o r d .F o re x a m p l e : 1 6 . #p a s s w d 1 7 . C h a n g i n gp a s s w o r df o r" r o o t " 1 8 . r o o t ' sN e wp a s s w o r d : E n t e rt h en e wp a s s w o r da g a i n : 1 9 . T ow r i t ee v e r y t h i n gf r o mt h eb u f f e rt ot h eh a r dd i s ka n dr e b o o t t h es y s t e m ,t y p et h ef o l l o w i n g : s y n c ; s y n c ; s y n c ; r e b o o t t u r n i n go f fd i a g n o s t i cl i g h t s : / u s r / l p p / d i a g n o s t i c s / b i n / u s y s f a u l tsn o r m a l

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

18/23

2/8/2014
A I Xf i l e s y s t e m sa n dq u o t a s :

Useful AIX commands

h t t p : / / u n i x . d e r k e i l e r . c o m / N e w s g r o u p s / c o m p . u n i x . a i x / 2 0 0 3 1 1 / 0 7 4 4 . h t m l / \ / \ / \ / \ / \ b l u e s k y ' s/ h o m ei sJ F S ,n o tJ F S 2 ,a c c o r d i n gt ot h em o u n tc o m m a n do n / h o m e ' sN F Ss e r v e r . Ia l s oc a l l e dI B Ms u p p o r tt ov e r i f yw h a tw e ' v eb e e ns e e i n go nt h ew e b . T h et e c hIr e a c h e di n d i c a t e dt h a t : 1 )J F S 2d o e sn o ts u p p o r tq u o t a si nA I X5 . 1o rA I X5 . 2 2 )M a n yc u s t o m e r sh a v eb e e nr e q u e s t i n gq u o t a sf o rJ F S 2 3 )H eh a sn o th e a r do fa n yp l a n st oa d dq u o t as u p p o r tt oJ F S 2f o rA I X5 . 3 4 )H ew o u l dn o tb es u r p r i s e di fq u o t a sf o rJ F S 2a r ea d d e dt ot h eI B MA I X r o a d m a ps o m e t i m es o o n ,g i v e nt h eh i g hd e m a n d / \ / \ / \ / \ / \ W en o wh a v er e a s o nt ow a n tt om o v ef r o m5 . 1t o5 . 3( w ew a n tq u o t a so n / p t m p ,a n dw ew a n t/ p t m pt ob eab i tu n d e r2t e r r a b y t e s ;J F Si nA I X5 . 1 d o e sq u o t a s ,b u tn o t1 T +f i l e s y s t e m s ,a n dJ F S2o nA I X5 . 1d o e s1 T + f i l e s y s t e m s ,b u tn o tq u o t a s ;Iu n d e r s t a n dt h a t5 . 3 ' sJ F S 2d o e sl a r g e f i l e s y s t e m sa sw e l la sq u o t a s ) . / \ / \ / \ / \ / \ T h en e wp i e c eo fn e w si s ,t h a ti fw ew e r et og a t e w a yl u s t r et oA I Xo v e r S M B / C I F S ,w ew o u l d n ' t -h a v et or e s o r tt o" s h a r i t y " ,w h i c hw a sap r o d u c t t h a tI B Mw a su n l i k e l yt ob ea b l et os u p p o r t . I tt u r n so u tt h a tA I X5 . 2 a n du p ,i n c l u d ea nS M B / C I F Sc l i e n t . S ow ec o u l du p g r a d et oA I X5 . 3( a n d w ew a n tt oa n y w a y ,t og e tq u o t a si nJ F S 2 ) ,a n du s eI B M ' si m p l e m e n t a t i o n o fa nS M B / C I F Sc l i e n t ,w i t hs a m b ao ne s m f t 2 . / \ / \ / \ / \ / \ I ' ms h yt oe v e nt r yI B M ' sJ F S ,b e c a u s ei tc o m e sf r o mO S / 2a n dn o tA I X . J F Sr e a l l yl a c k e da_ l o t _o ft r a d i t i o n a lU N I Xc a p a b i l i t i e si ni t sf i r s t r e l e a s e so nL i n u x ,u n l i k eX F S . / \ / \ / \ / \ / \ T h ec o n s e n s u so nc o m p . u n i x . a i xa p p e a r st ob et h a tJ F S( 1 )w i l ln o ta l l o w o n e l a r g e/ p t m pl i k eC h a r l i ew a n t s . R e c a l lt h a tw er e c e n t l ym o v e d/ p t m pf r o mJ F S 2t oJ F St og e tq u o t a s . I tt u r n so u tt h a ti nA I X5 . 3 ,J F S 2c a nd oq u o t a s . 2 0 0 5 0 6 2 3 I B Mi n f o r m sm et h a tP S S Pi sn e v e rg o i n gt ob ep o r t e dt oA I X5 . 3 . T h e r ei s af o l l o w o np r o d u c tl i k eP S S Pc a l l e d" C S M " ,a n di tr u n so nr e c e n tA I Xa n d L i n u x ,b u ti ti sn o tg o i n gt os u p p o r ta nS P 2s w i t c h ,l i k et h eE S M Fh a s . R e d i r e c tc o n s o l em e s s a g e st oas p e c i f i cf i l eo fy o u rc h o o s i n g : s w c o n s/ t m p / c o n s o l e . m e s s a g e s C h e c k i n gi fa nA I Xm a c h i n ei ss t i l lm a r k e t e da n d / o rs u p p o r t e db yI B M : h t t p : / / w w w 3 0 6 . i b m . c o m / c o m m o n / s s i / O I X . w s s L i k et c p d u m p / e t h e r e a l ? i p t r a c eeil o 0/ t m p / i p t r a c e . o u t ,(l e ti tr u nf o r5m i n u t e s ,k i l li t ) i p r e p o r t/ t m p / i p t r a c e . o u t #l s c f gv p|g r e pe" M e m o r yD I M M "e" S i z e " M e m o r yD I M M : S i z e . . . . . . . . . . . . . . . . . . . . . . . . 2 5 6 M e m o r yD I M M : S i z e . . . . . . . . . . . . . . . . . . . . . . . . 2 5 6 M e m o r yD I M M : S i z e . . . . . . . . . . . . . . . . . . . . . . . . 2 5 6 M e m o r yD I M M : S i z e . . . . . . . . . . . . . . . . . . . . . . . . 2 5 6 C l i p p e df r o mam e s s a g eo nA I X L-o u t l i n e st h ep r o c e d u r ef o rr e p l a c i n g ab a dd i s ki nal o g i c a lv o l u m e : um u s tp r o c e ei nt y h o so r d e r : 1 -u n m i r r o rt h er o o t v g( u n m i r r o rr o o t v gh d i s k 1 ) 2 -e x t r c a th d i s k 1f r o mr o o t v g( r e d u c e v gr o o t v gh d i s k 1 )h i d s k 1s h o u l dn o t h a v ea n yo t h e rd a t a ,i fy e s ,m o v et h e mf i r s t 3 -r m d e vd lh d i s k 1 4 -p u tt h en e wp v

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

19/23

2/8/2014
5 -c v r m g r l 6 -e x t e n d v gr o o t v g" t h en e wp v " 7 m i r r o r v gr o o t v gh d s i k x x x / \ / \ / \ / \ / \ A n da n o t h e r : U s et h i sr e d b o o k ,p a g e1 8 2 ,s e c t i o n6 . 5 . 1 . h t t p : / / w w w . r e d b o o k s . i b m . c o m / a b s t r a c t s / S G 2 4 5 4 9 6 . h t m l ? O p e n

Useful AIX commands

O ns o m e -I B M( P o w e r P C )m a c h i n e s ,y o ub o o tt os i n g l e u s e rb yh i t t i n gF 5 d u r i n gt h eb o o t W h e r et og e tf i r m w a r ef o rp S e r i e sm a c h i n e s : h t t p : / / t e c h s u p p o r t . s e r v i c e s . i b m . c o m / s e r v e r / m d o w n l o a d " Ib e l i e v et h epi np S e r i e ss t a n d sf o rP e r f o r m a n c e . W h i l et h eii ni S e r i e ss t a n d sf o rI n t e g r a t e d . " " Ib e l i e v et h epi np S e r i e ss t a n d sf o rP o w e ra si nt h ep o w e r5c h i p a r c h i t e c t u r et h eh a r d w a r eu s e s . " O K ,f r o mt h e( 0 ) >p r o m p te n t e re i t h e r?o rh-t h e s es u b c o m m a n d sl i s t a l lt h ea v a i l a b l es u b c o m m a n d sy o uc a nk e yi n t ot h ek d ba tt h e( 0 ) > p r o m p t .U n f o r t u n a t e l y ,u n l e s sy o uk n o ww h a ty o ua r el o o k i n gf o ri t s h a r dt ou n d e r s t a n dt h eo u t p u t . T h ec o m m o nc o m m a n d st ou s ea r es t a ta n ds t a u s-w h i c hw i l ls h o wt h e s t a t u so ft h es y s t e ma n dd u m p ,v m l o ga n dv m s t a tw i l ls h o wa n ym e m o r y e r r o r st h a tm a yh a v ec a u s e dt h ed u m p . Y o ur e a l l yn e e da ni n d e p t hk n o w l e d g eo fh o wt h es y s t e mw o r k st o d e c i p h e rm o s to ft h eo u t p u ta n dI ma f r a i dt h e r e sn oe a s yw a yt od oi t . T h i sl i n kh a sal i s to fa l lt h ek d bs u b c o m m a n d s h t t p : / / w w w 1 6 . b o u l d e r . i b m . c o m / p s e r i e s / e n _ U S / a i x p r g g d / k d b / k d b _ c m d . h t m # k d b _ c m d R e g a r d s , P a u l( o nA I X L ) b i n d p r o c e s s o ri sf o rb i n d i n gap r o c e s st oas p e c i f i cC P U e s m f 0 4 m r o o t >s y s d u m p d e vl p r i m a r y / d e v / l v 0 0 s e c o n d a r y / d e v / s y s d u m p n u l l c o p yd i r e c t o r y / v a r / a d m / r a s f o r c e dc o p yf l a g T R U E a l w a y sa l l o wd u m p T R U E d u m pc o m p r e s s i o n O F F W e dO c t2 61 3 : 4 3 : 3 1 F r o maI B MA I Xp a r t n e r : G I Li sak e r n e lp r o c e s s ,w h i c hd o e sT C P / I Pt i m i n g .I th a n d l e s t r a n s m i s s i o ne r r o r s ,A C K s ,e t c .N o r m a l l yi ts h o u l d n ' tc o n s u m et o om u c h C P U ,b u ti tc a nt a k eq u i t eal o to fC P Uw h e nt h es y s t e mi su s i n gt h e n e t w o r kal o t( l i k ew i t hN F Sf i l e s y s t e m sw h i c ha r eh e a v i l yu s e d ) . . T h ek p r o cg i lr u n st h eT C P / I Pt i m e rd r i v e no p e r a t i o n s .E v e r y2 0 0 m s ,a n d e v e r y5 0 0 m st h eG I Lt h r e a di sk i c k e dt og or u np r o t o c o lt i m e r s .W i t hT C P u p( w h i c hi sA L W A Y St h ec a s e ) ,T C Pt i m e r sa r ec a l l e dw h i c he n du p l o o k i n ga te v e r yc o n n e c t i o no nt h es y s t e m( t od or e t r a n s m i s s i o n ,d e l a y e d a c k s , e t c ) .I nv e r s i o n4t h i sw o r ki sa l ld o n eo nam u l t i t h r e a d e dk p r o c t op r o m o t ec o n c u r r e n c ya n dS M Ps c a l a b i l i t y . g i l . G I Li so n eo ft h ek p r o c s( k e r n e lp r o c e s s e s )i nA I X4 . 3 . 3 ,5 . 1a n d5 . 2 . S i n c et h ea d v e n to ft o p a si nA I X4 . 3 . 3a n dc h a n g e sm a d et ot h ep s c o m m a n di nA I X5 . 1 ,s y s t e ma d m i n i s t r a t o r sh a v eb e c o m ea w a r eo ft h i s c l a s so fp r o c e s s e s ,w h i c ha r en o tn e wt oA I X .T h e s ek p r o c sh a v en o u s e ri n t e r f a c e sa n dh a v eb e e nl a r g e l yu n d o c u m e n t e di nb a s e d o c u m e n t a t i o n .O n c eak p r o ci ss t a r t e d ,t y p i c a l l yi ts t a y si nt h e p r o c e s st a b l eu n t i lt h en e x tr e b o o t .T h es y s t e mr e s o u r c e su s e db ya n y o n ek p r o ca r ea c c o u n t e da sk e r n e lr e s o u r c e s ,s on os e p a r a t ea c c o u n ti s

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

20/23

2/8/2014

Useful AIX commands

k e p to fr e s o u r c e su s e db ya ni n d i v i d u a lk p r o c . . M o s to ft h e s ek p r o c sa r eN O Td e s c r i b e di nb a s eA I Xd o c u m e n t a t i o na n d t h ed e s c r i p t i o n sb e l o wm a yb et h em o s tc o m p l e t et h a tc a nb ef o u n d . . G I Lt e r mi sa na c r o n y mf o r" G e n e r a l i z e dI n t e r r u p tL e v e l "a n dw a s c r e a t e db yt h eO p e nS o f t w a r eF o u n d a t i o n( O S F ) ,T h i si st h en e t w o r k i n g d a e m o nr e s p o n s i b l ef o rp r o c e s s i n ga l lt h en e t w o r ki n t e r r u p t s ,i n c l u d i n g i n c o m i n gp a c k e t s ,t c pt i m e r s ,e t c . . E x a c t l yh o wt h e s ek p r o c sf u n c t i o na n dm u c ho ft h e i re x p e c t e db e h a v i o r i sc o n s i d e r e dI B Mp r o p r i e t a r yi n f o r m a t i o n . I nt h ee v e n to fap o w e rf a i l u r e ,f r o m" j e s s i e "o nt h eA I X Lm a i l i n gl i s t : c h e c ky o ue r r o rr e p o r tf o ra ne n t r yt h a ts t a t e s E P O W _ S U S _ C H R P i ft h e r ei sa ne n t r yp o s ti ti nd e t a i lt oh a v eal o o ka tt h eP o w e rs t a t u s r e g i s t e r s ,a n dt h es e n s ed a t a . I fi ti sn o tat r u ef a i l u r es u c ha saf a n ,o rp o w e rs u p p l yt h e ny o uw o u l d n o t i c ei nt h el o g st h a tt h ep r o b l e ms t a r t e da f t e ras h u t d o w n ,o rp o w e r f a i l u r e . . . " p s t a tSw i l la s s o c i a t ep r o c e s s o rt op r o c e s sb u tn o t p r o c e s st op r o c e s s o r .I ti sam a t t e ro fo p i n i o ni f t h i si sw h a ty o uw a n t ." S u p e r bp a g eo nA I X : h t t p : / / w w w . d o u z h e . c o m / d o c s / j h / 9 / 9 7 7 5 7 . h t m l . . . b u tIt h i n kt h e r em a yb eab i to fam i s t a k eo nh o wt od ob a c k u p st o ar e m o t et a p ed r i v e . . . d ds h o u l d -w o r kf o rt h a t ,b u tI M E ,i td o e s n ' t . A I Xs u p p o r t sl a r g ep a g e sw i t h3 2 b i ta n d6 4 b i tk e r n e l s .A p p l i c a t i o n s , e i t h e r3 2 b i to r6 4 b i t , c a nt a k ea d v a n t a g eo fl a r g ep a g e s .T h ee x t e n d e dc o m m o no b j e c tf i l ef o r m a t ( X C O F Fo r X C O F F 6 4 ) ,t h eo b j e c tf i l ef o r m a tf o rA I X ,p r o v i d e saf l a gt oi d e n t i f y b i n a r i e si ft h e ya r es e t( o r c l e a r e d )t ou s el a r g ep a g e s( o rt u r nt h el a r g ep a g e sf l a g )t h r o u g hl d e d i t 1 0 . T h ef l a gc a na l s o b et u r n e do na tl o a dt i m e( l d ) 1 0w i t ht h ef o l l o w i n gc o m m a n d s : l dc o m m a n d :l db l p d a t aoa . o u t l d e d i tc o m m a n d :l d e d i tb l p d a t aa . o u t( o rb n o l p d a t aa . o u t ) A nA I Xu p g r a d ep r o c e d u r e : Ij u s tw e n tt h r o u g ht h i sw i t hm yc o m p a n y ,a n dw r o t es o m ed i r e c t i o n sa s t ow h a tw es h o u l dd o ;Iw i l ls h a r et h i sd o c u m e n tw i t hy o u . * * * * * * N O T E * * * * * * S o m eo ft h i si ss p e c i f i ct om yc o m p a n y ,b u ty o um a yf i n di tu s e f u l a n y h o w * * * * * * * * * * * * * * * * Y o us h o u l dd oac o m p l e t ec o n f i g u r a t i o nm a n a g e m e n ts c h e m e / s n a p s h o to f y o u rs y s t e m : 1 )e x e c u t ed fI k 2 )e x e c u t el s v g ,l s v gpf o re a c hv g ,a n dl s v glf o re a c hv g 3 )e x e c u t el s p v 4 )e x e c u t eb o o t l i s tmn o r m a loa n db o o t l i s tms e r v i c eo 5 )e x e c u t eb o o t i n f oya n db o o t i n f ok 6 )e x e c u t el s p va 7 )e x e c u t el s v gMr o o t v g 8 )e x e c u t el s c o n f Y o uw a n tt od o c u m e n te v e r y t h i n gf r o ma b o v es ot h a ty o uc a nh a v et h i st o r e c r e a t ey o u rs y s t e ms h o u l dt h e r eb ea n ym i s t a k e so ru n f o r t u n a t e e v e n t s . T h i sj u s th e l p sy o ut ok n o we x a c t l yw h a ty o u rs y s t e ml o o k sl i k e ,b e f o r e y o um a k ea n yc h a n g e s . G ot ot h i ss i t ea n dy o uw i l lg e te x a c t l yw h a ty o un e e d : h t t p : / / w w w 0 3 . i b m . c o m / s e r v e r s / e s e r v e r / s u p p o r t / u n i x s e r v e r s / a i x f i x e s . h t m l C h o o s et h e>A I X5 . 3l i n ka n dc h o o s ef o l l o wt h ep r o m p t st og e ty o ut h e

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

21/23

2/8/2014
c o r r e c tm a i n t e n a n c el e v e l ( s ) . P l e a s el e tm ek n o wi ft h i si so fa n yh e l p . T h a n k s . L e R o yS .P h i l l i p s' P h i l ' U N I XS y s t e mA d m i n i s t r a t o r( A I X / S A P ) F r o mam e s s a g eo nI B M A I X L :

Useful AIX commands

Ig e tt h e s es t u p i dm e s s a g e sa l lt h et i m ea n dIj u s tf i l t e rt h e ma n ds e n d t h e mt oj u n k . I ' v et r i e dm a k i n gt h es y s d u m p d e vb i g g e r ,b u ti tc o m e sb a c ka n dw a n t si t t ob ej u s tal i t t l eb i g g e rt h a nIm a d ei t . I B Md o e sr e c o m m e n dt h a ty o uu s eas e c o n ds y s d u m p d e v . / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ S Y S T E MD U M P / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ I B Mr e c o m m e n d s : D o n ' tm i r r o rt h es y s t e md u m pd e v i c e D o n ' tu s ec o m p r e s s i o no nt h ed u m pd e v i c e D o n ' tu s eas e c o n d a r yd u m pd e v i c eu n l e s si ti so nas e p a r a t ed e v i c e , s e p a r a t ec a b l ea n ds e p a r a t ei / oc a r d .

s y s d u m p d e vl L i s t sc u r r e n td u m pd e s t i n a t i o n . s y s d u m p d e ve E s t i m a t e sd u m p s i z eo ft h ec u r r e n ts y s t e mi nb y t e s . s y s d u m p d e vL D i s p l a y si n f o r m a t i o na b o u tt h ep r e v i o u sd u m p . s y s d u m p d e vc < -t h es y s t e md u m pd e v i c ew i l ln o tb ec o m p r e s s e d w h e nt h en e x td u m pi st a k e n s y s d u m p d e vp( d u m pd e v i c e )P S e t st h ed e f a u l td u m pd e v i c e ,p e r m a n e n t l y s y s d u m p d e vPs/ d e v / s y s d u m p n u l l < m a k e st h es e c o n d a r y d u m pd e v i c eab i tb u c k e t( r e c o m m e n d e d ) s y s d u m p s t a r tp s y s d u m p s t a r ts S t a r t sad u m pa n dw r i t e st ot h ep r i m a r yd u m pd e v i c e . S t a r t sad u m pa n dw r i t e st ot h es e c o n d a r yd u m pd e v i c e .

( M C Am a c h i n ec a na l s od u m pi fk e yi si ns e r v i c ep o s i t i o na n dt h er e s e t b u t t o ni sp r e s s e d ) A n a l y z ed u m pf i l e: e c h o" s t a t \ ns t a t u s \ ntm "|c r a s h/ v a r / a d m / r a s / v m c o r e . 0 $e r r p t I D E N T I F I E RT I M E S T A M P TCR E S O U R C E _ N A M E D E S C R I P T I O N F 8 9 F B 8 9 9 0 8 2 2 1 5 0 0 0 5POd u m p c h e c k T h ec o p yd i r e c t o r yi st o os m a l l T h i sm e s s a g ei st h er e s u l to fad u m pd e v i c ec h e c k .Y o uc a nf i xt h i sb y i n c r e a s i n gt h es i z eo fy o u rd u m pd e v i c e .I fy o ua r eu s i n gt h ed e f a u l t d u m pd e v i c e( / d e v / h d 6 )t h e ni n c r e a s ey o u rp a g i n gs i z eo rg ot os m i td u m p a n d" s e l e c tS y s t e mD u m pC o m p r e s s i o n " .M y s e l f ,Id o n ' tl i k et ou s et h e d e f a u l td u m pd e v i c es oIc r e a t eas y s d u m p l va n dm a k es u r eIh a v ee n o u g h s p a c e .T oc h e c ks p a c en e e d e dg ot os m i td u m pa n ds e l e c t" S h o wE s t i m a t e d D u m pS i z e "t h i sw i l lg i v ey o ua ni d e aa b o u tt h es i z en e e d e d . T h ec o p yd i r e c t o r yi sw h a t e v e rs y s d u m p d e vs a y si ti s . R u ns y s d u m p d e va n dy o uw i l lg e ts o m e t h i n gl i k e # s y s d u m p d e v p r i m a r y / d e v / h d 6 s e c o n d a r y / d e v / s y s d u m p n u l l c o p yd i r e c t o r y / v a r / a d m / r a s f o r c e dc o p yf l a g T R U E a l w a y sa l l o wd u m p F A L S E d u m pc o m p r e s s i o n O N #s y s d u m p d e ve 0 4 5 3 0 4 1E s t i m a t e dd u m ps i z ei nb y t e s :5 7 8 8 1 3 9 5 D i v i d et h i sn u m b e rb y1 0 2 4 . T h i si st h ef r e es p a c et h a ti sn e e d e di n y o u rc o p yd i r e c t o r y . C o m p a r ei tt oad fko rd i v i d et h i sn u m b e rb y 5 1 2 . T h i si st h ef r e es p a c et h a ti sn e e d e di ny o u rc o p yd i r e c t o r y . C o m p a r ei tt oad f G e t t i n gp a t c h e s-e v e nf o rE O L ' dr e l e a s e s ? h t t p : / / w w w 9 1 2 . i b m . c o m / e s e r v e r / s u p p o r t / f i x e s / f i x c e n t r a l

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

22/23

2/8/2014

Useful AIX commands

Back to Dan's palm memos

http://stromberg.dnsalias.org/~dstromberg/Useful-AIX-commands.html

23/23

Você também pode gostar