Вы находитесь на странице: 1из 23

Systemverwaltung 2009 AIX / SMIT

Copyright IBM Corporation 2007 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.

4.0.

Logical partition virtualization

Copyright IBM Corporation 2007

Role o t!e system a"ministrator


! "re#installation planning of$
% % % % % &ser accounts'groups (torage allocation'paging space (ubsystem )printing* networ+s* and so forth, (tandard naming con-entions .etermine system policies

! Install and configure hardware ! Configure the software ! Configure the networ+ ! (ystem bac+up ! Create'manage user accounts ! .efine and manage subsystems ! Manage system resources )for e/ample* dis+ space, ! "erformance monitoring ! Capacity planning ! Managing licenses for products ! .ocument system configuration and +eep it current
Copyright IBM Corporation 2007

#!o can per orm a"ministration tas$s%


! &sually e/clusi-e to the root user
% Bypasses any file permissions % 0ery dangerous to login as root % 1eep the root password secure

! (ome tas+s can be performed by other users in special groups such as system* security* print&* and lp ! 2he su command allows you to obtain root3s permissions or permissions of any user whose password you +now

$ $

su root or su root
Copyright IBM Corporation 2007

4elcome to$

Systemverwaltung 2009 AIX System Management Inter ace Tool 'SMIT(

Copyright IBM Corporation 2007 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.

3.3.

smit comman" options


! 5eneral synta/$ smit [-options] [ FastPath ] ! In-o+e 6(CII -ersion$
# smitty or # smit C

! 7og )but do not actually run, commands$


# smit -x

! 8edirect the log file and script file$


# smit -s /u/team1/smit.script l /u/team1/smit.log # smit -s /dev/pts/1 -l /dev/pts/2
Copyright IBM Corporation 2007

SMIT log an" script iles


smit-log
Au"it log entries

SMIT

smit-script
List o comman"s

! )*+M,/smit-log
1eeps a log of all menu and dialog screens -isited* all commands e/ecuted and their output. 6lso records any errors during the (MI2 session.

! )*+M,/smit-script
(hell script containing all 6I9 commands e/ecuted by (MI2.

Copyright IBM Corporation 2007

.!ec$point
. (pecify the (MI2 function +eys that can be used for the following$ a, 7ist the command that will be run$ :::: b, 7ist the screen name which can be used for the fastpath$ :::: c, 2a+e a screen image$ ::: d, Brea+ out into a shell$ ::: e, 8eturn to the pre-ious menu$ ::: 2. (pecify two ways you can re;uest the 6(CII character -ersion of (MI2 from an 9#windows en-ironment command prompt$ % //////////////// % ////////////////
Copyright IBM Corporation 2007

.!ec$point solutions
. (pecify the (MI2 function +eys that can be used for the following$ % 7ist the command that will be run$ <= % 7ist the screen name which can be used for the fastpath$ <> % 2a+e a screen image$ <> % Brea+ out into a shell$ <? % 8eturn to the pre-ious menu$ <@ 2. (pecify two ways you can re;uest the 6(CII character -ersion of (MI2 from an 9#windows en-ironment command prompt$ % smitty % smit -C
Copyright IBM Corporation 2007

,0ercise 21 2sing SMIT

! &sing (MI2 with the 6(CII interface ! &sing (MI2 with the Motif interface )optional,

Copyright IBM Corporation 2007

AIX System startup an" s!ut"own

Copyright IBM Corporation 2007 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.

4.0.

Startup mo"es
3ormal mo"e 7ogin prompt 6ll processes running Multi#user mode System Management Services Aot 6I9 8uns from <I8M468B (ets boot list Maintenance mo"e Maintenance menu 8eco-er root password <i/ machine that won3t boot 4iagnostics 6I9 diagnostics 6I9 .iagnostics
Copyright IBM Corporation 2007

System p server start up process overview


"ower on "C(2 7ocate C( bootstrap image <ind 6I9 boot image 7oad 6I9 boot image 86M.I(1 created Configuration Manager "hase IAI2
3ormal I5L
Copyright IBM Corporation 2007

T!e bootinfo comman"


! 2o -iew the architecture type$ bootinfo -p rs=+ rspc chrp MC6 model "CI model )"C4B8 8eference "latform, "CI model )Common Dardware 8eference,

! 2o -iew the bit addressing$ bootinfo -y @2 =4 @2#bit =4#bit


Copyright IBM Corporation 2007

T!e alog comman"


&ser 6pplications Boot "rocess AIM Install "rocess

alog program

2o -iew the boot log$


# alog -o -t boot

&se the alog command to -iew logs

'-ar'adm'ras'bootlog '-ar'adm'ras'BosMenus.log '-ar'adm'ras'bosinst.log '-ar'adm'ras'nimlog '-ar'adm'ras'conslog '-ar'adm'ras'errlog

Copyright IBM Corporation 2007

/etc/initta6
<ormat of the line$ id!runlevel!action!command
init:2:initdefault: brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot powerfail::powerfail:/etc/rc.powerfail 2>&1 alo! "tboot > /dev/console ... m#atmpvc:2:once:/usr/sbin/m#atmpvc >/dev/console 2>&1 atmsvcd:2:once:/usr/sbin/atmsvcd >/dev/console 2>&1 load$%bit:2:wait:/etc/methods/cf!$% >/dev/console 2>&1 # &nable $%"bit e'ecs tunables:23%($)*+:wait:/usr/sbin/tunrestore ", > /dev/console 2>&1 ... rc:23%($)*+:wait:/etc/rc 2>&1 alo! "tboot > /dev/console # -ulti".ser chec#s fbchec#:23%($)*+:wait:/usr/sbin/fbchec# 2>&1 alo! "tboot > /dev/console ... srcmstr:23%($)*+:respawn:/usr/sbin/srcmstr # /ystem ,esource 0ontroller rctcpip:23%($)*+:wait:/etc/rc.tcpip > /dev/console 2>&1 # /tart 10P/2P daemons rcnfs:23%($)*+:wait:/etc/rc.nfs > /dev/console 2>&1 # /tart 34/ 5aemons cron:23%($)*+:respawn:/usr/sbin/cron piobe:2:wait:/usr/lib/lpd/pio/etc/pioinit >/dev/null 2>&1 # pb cleanup 6daemon:23%($)*+:wait:/usr/bin/startsrc "s6daemon writesrv:23%($)*+:wait:/usr/bin/startsrc "swritesrv uprintfd:23%($)*+:respawn:/usr/sbin/uprintfd shdaemon:2:off:/usr/sbin/shdaemon >/dev/console 2>&1 # 7i!h availability daemon l2:2:wait:/etc/rc.d/rc 2 l3:3:wait:/etc/rc.d/rc 3 l%:%:wait:/etc/rc.d/rc % . . .

Copyright IBM Corporation 2007

System resource controller


! "ro-ides a single interface to control subsystems ! Controls indi-idual subsystems or groups of subsystems
(ubsystem group (ubsystem (ubser-er spooler ;daemon ;daemon writesrwritesrlpd lpd

Copyright IBM Corporation 2007

System resource controller synta0


! 7ist (8C status$
lssrc -g spooler subsystem "roup 'daemon spooler *ritesrv spooler lpd spooler #$% ()22 +,,( &tatus active active inoperative

! (tart a subsystem$
startsrc -s lpd ),1--),+ ./e lpd &ubsystem /as been started. &ubsystem #$% is 12012.

! 8efresh a subsystem$
refres/ -s lpd ),1--)+, ./e re'uest for subsystem refres/ *as completed successfully.

! (top a subsystem$
stopsrc -s lpd ),1--)00 ./e lpd &ubsystem *as re'uested to stop.

Copyright IBM Corporation 2007

Stopping processes
8
ps -ef
2$% root root root root root root root root #$% 1 2626 01-6 0+60 61-0 ()22 +)-6 +-0, ##$% ) 1 1 01-6 1 01-6 1 1 C ) ) ) ) ) ) ) ) &.$34 3ay )0 3ay )0 3ay )0 3ay )0 3ay )0 3ay )0 3ay )0 3ay )0 ..5 .$34 )!11 1!11 )!)) )!)) )!)2 )!)) )!)) )!)2 C3% /etc/init /usr/sbin/syncd 6) /usr/sbin/srcmstr /usr/sbin/inetd /usr/sbin/cron /usr/sbin/'daemon /usr/sbin/uprintfd /usr/bin/program

! <or process not started by srcmstr1


7ill +-0,

! <or processes started by (8C$


stopsrc -s 'daemon

Copyright IBM Corporation 2007

System s!ut"own
! 2he s/utdo*n command$
% 5racefully stops all acti-ity on the system and ad-ises all logged on users % 4arns users of an impending shutdown

# s/utdo*n 82 ./e system *ill be do*n until -93 :roadcast message from root;local/ost <tty= at 1!-)!2)... ./e system *ill be do*n until -93 s/utdo*n! #>49&4 >?" ?@@ A?BCCC 9ll processes *ill be 7illed in 2 minutes

Copyright IBM Corporation 2007

Manage t!e system environment


# smit system
&ystem 4nvironments 3ove cursor to desired item and press 4nter. &top t/e &ystem 9$D &ecurity 4xpert 9ssign t/e Console C/ange / &/o* %ateE .imeE and .ime Fone 3anage >anguage 4nvironment C/ange / &/o* C/aracteristics of ?perating &ystem C/ange / &/o* Aumber of >icensed 2sers :roadcast 3essage to all 2sers 3anage &ystem >ogs C/ange / &/o* C/aracteristics of &ystem %ump C/ange/&/o* %ocumentation &ervices C/ange &ystem 2ser $nterface C/ange/&/o* %efault :ro*ser C/ange/&/o* %ocumentation &ervices Beb-based &ystem 3anager 4nable 60-bit 9pplication 4nvironment 3anage Gemote Geboot @acility 3anage &ystem Hang %etection

@1IHelp @+I&/ell

@2IGefres/ @1)I4xit

@-ICancel 4nterI%o

@(I$mage

Copyright IBM Corporation 2007

.!ec$point
. 4hat is the first process that is created on the system
and which file does it reference to initiate all the other processes that ha-e to be startedE :::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::: of daemons or programsE :::::::::::::::::::::::::::::::::::::::::::: command from the console.

2. 4hich 6I9 feature can be used to stop and start groups

@. 2rue or <alseE Fou can only e/ecute the shutdown

Copyright IBM Corporation 2007

,0ercise 71 System startup an" s!ut"own


G Multi#user mode G Boot using (ystem Management (er-ices G (ystem 8esource Controller )(8C, G 8esetting the run le-el )IAI2,

Copyright IBM Corporation 2007

Вам также может понравиться