0% found this document useful (0 votes)
116 views

Aix Commands

- The document contains commands for managing logical volumes (LVs), virtual groups (VGs), physical volumes (PVs), filesystems, devices, networking, installation, and more on AIX systems. - Commands include lsvg to display VGs, lslv to display LVs, lspv to display PVs, mkvg to create VGs, mklv to create LVs, lsfs to list filesystems, chfs to change filesystem attributes, entstat to view network interface status, hostname to change the host name, installp to install and maintain software. - Many commands have options to provide more detailed output or change attributes like lsvg -l to list LVs in a V
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views

Aix Commands

- The document contains commands for managing logical volumes (LVs), virtual groups (VGs), physical volumes (PVs), filesystems, devices, networking, installation, and more on AIX systems. - Commands include lsvg to display VGs, lslv to display LVs, lspv to display PVs, mkvg to create VGs, mklv to create LVs, lsfs to list filesystems, chfs to change filesystem attributes, entstat to view network interface status, hostname to change the host name, installp to install and maintain software. - Many commands have options to provide more detailed output or change attributes like lsvg -l to list LVs in a V
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 19

VG Commands

lsvg Display all VGs


lsvg -o Display all active VGs
lsvg rootvg Display info about rootvg
lsvg -l rootvg Display info about all LVs in rootvg
lsvg -o |lsvg -il Display info about all LVs in all VGs
lsvg -p rootvg Display info about all PVs in rootvg
mkvg -s 8 hdisk1 Create VG with name vgxx on hdisk1 with partition sie !"#
mkvg -s 8 -y sivg hdisk1 Create VG with name sivg on hdisk1 with partition sie !"#
mkvg -s 4 -t 2 -y sivg hdisk1 Create sivg on hdisk1 with PP sie $ and no of partions % & 1'1(
chvg -a y newvg )o cuase VG newvg automatically activated at startup
chvg -a n newvg )o deactivate the automatic activation at startup
chvg -t 2 newvg )o change maximum no* of PP to %'+% on vg newvg
chvg -Q n newvg )o disable ,uorum on VG newvg
reorgvg newvg -eorganises PP allocation of VG newvg
extendvg newvg hdisk hdisk4 .dd PV hdisk+ and hdisk$ to VG newvg
exportvg newvg /xports the VG newvg
importvg -V 44 -y newvg hdisk2 0mport the hdisk% with name newvg1 and assign ma2or number $$
redc!cevg newvg hdisk -emove PV hdisk+ from VG newvg
varyo""vg newvg )o deactviate VG newvg
varyonvg newvg )o activate VG newvg
syncvg -v sivg )o sync the mirrored LV in the VG sivg
mirrorvg -# -m sivg hdisk2 )o mirror LVs of sivg with hdisk% 34m for exact mirror1 45
forbackground mirror6
!nmirrorvg sivg hdisk2 )o remove the mirrored PV from the set*
$# Commands
ls"s Lists all filesystems in the 7etc7filesystems entry
ls"s -% List all filesystems with detailed info
ls"s -a )o list all filesystems 3default6
ls"s -l 5pecify the output in list format
ls"s -c 5pecify the output in column format
ls"s -v &"s Lists all 2fs filesystems
ch"s -a si'e(24)*+ ,si Change sie of 85 7si to %$9:( x 91% bytes blocks 31% "#6
ch"s -a si'e(-24)*+ ,si .dd %$9:( x 91% byte blocks to 85 7si
ch"s -m ,si ,.i Change the mount point from 7si to 7bi
ch"s -/ ,si )o auto mount the filesystem si
ch"s -d acco!nt ,si -emove account attribute of 7si* 3 from 7etc7filesystems file6
ch"s -a splitcopy(,.ack!p -a copy(2 ,oracle
)his will mount the %nd copy of mirrored filesystem oracle to 7backup
in read4only mode
cr"s -v &"s -g testvg -a si'e(+44+) -m ,si&!
Creates 85 7si2u of type 2fs in VG testvg of blocksie ($$(9
cr"s -v &"s -d ,dev,lv00 -m ,si&! Create 85 7si2u of type 2fs on device 7dev7lv''
rm"s ,si&! Deletes 85 7si2u and associated LV
rm"s -r ,si&! Deletes 85 7si2u its mount point and associated LV
de"rag"s ,si"s )o defragment the file system 7sifs
de"rag"s -% ,si"s Display the current defrag status of the file system
"sck -y n ,dev,lv00 )o fsck the filesystem associated to 7dev7lv'' assuming response ;yes;
"sck -p ,dev,lv00 )o restore superblock from backup superblock
1V Commands
lspv hdisk0 Display status and characteristics of the PV
lspv -p hdisk0 Display PP usage of hdisk'
lspv -l hdisk0 )o list all logical volumes on PV hdisk'
chpv -v r hdisk1 Close the PV 3<sed while removing PV without varyon6
chpv -v a hdisk1 =pen the PV
chpv -c hdisk0 Clear the master boot record on PV hdisk'
migratepv hdisk1 hdisk2 )o move PPs from PV hdisk1 to hdisk%
migratepv -l silv hdisk1 hdisk2 )o migrate LV silv from PV hdisk1 to hdisk%
2V Commands
lslv -l lv00 Display info about LV by PV
lslv -p hdisk1 Display LV allocation map for hdisk1
chlv -t copy lv00 )o change the lv'' to copy type
chlv 3n silv lv00 )o rename lv'' to silv
chlv -p r lv00 )o change the lv'' to readonly mode
rmlv silv )o remove silv
rmlv -" silv )o remove silv without user intervention
mklv -s n -c silv hdisk1 )o make LV silv with three copies on hdisk1
extendlv silv ) )o extend the LV silv with 9 LPs
mklvcopy -s n lvsi 2 hdisk1 )o mirror LV lvsi on same PV with % copies
mklvcopy lvsi hdisk1 hdisk2 )o mirror LV lvsi on PV hdisk1 and hdisk% with + copies
rmlvcopy lvsi 2 hdisk1 >ill remove one copy of LV lsvi from hdisk1
mklv -t &"slog -y log00 newvg 2 )o create a 2fslog with name log'' on VG newvg with %LPs
log"orm ,dev,log00 )o format 2fslog volume log''
42V Commands
.ootlist -m normal -o )o see the boot se,uence in normal mode
.ootlist -m service -o )o see the boot se,uence in service mode
.ootlist -m normal cd0 hdisk0 )o change boot se,uence to cd'1hdisk' in normal mode
.ootlist -m service cd0 rmt0 hdisk0 )o change boot se,uence to cd'1rmt'1hdisk' in service mode
.os.oot -ad ,dev,hdisk1 )o create boot image on PV hdisk1
mk.oot -cd ,dev,hdisk1 )o clear the boot image
.ootin"o -. 5pecifies the bootable disk
.ootin"o - t 5pecifies the type of boot
.ootin"o -e Check the machine can boot from tape
.ootin"o -5 )o see the machine hardware type
.ootin"o -s hdisk0 )o see the sie of hdisk'
.ootin"o -r )o see the sie of memory
.ootin"o 3k )o see the key position
.ootin"o 3m )o see the machine model code
.ootin"o 3o hdisk0 )o list the location code of hdisk'
.ootin"o 3' )o see the machine is multiprocessor capable
.ootin"o 3p )o see the machine
1aging #pace Commands
lsps -a )o list out all paging spaces
lsps hd+ )o display the details of the paging space hd(
chps -a y paging00 )o turn on the paging space paging''
chps -a n paging00 )o turn off the paging space paging''
chps -s4 paging00 )o increase the sie of the paging space in $ LP blocks
mkps -a -n -s4 sivg )o create a paging space on VG sivg of $ LP sie 34s$6 and activate it
immediately 34n6 and activate it at every restarts
rmps paging00 )o remove the paging space paging''
swapon -a )o invoke all entries in 7etc7swapspaces file
swapon ,dev,paging00 )o make available swap space paging''
#6#578 9:81 Commands
sysd!mpdev -l )o list the current dump destination
sysd!mpdev -2 List the details of the previous dump
sysd!mpstart -p 5tarts dump in the primary dump device
sysd!mpstart -s 5tarts dump in the secondary dump device
sysd!mpdev -p ,dev,lv00 )o make lv'' as primary dump device
sysd!mpdev -1 -p ,dev,lv00 )o make lv'' as primary dump device permanently
sysd!mpdev -s ,dev,rmt0 )o make rmt' as secondary dump device
sysd!mpdev -' )o determine a new system dump occurred
9evice related commands
c"gmgr )o configure devices and installs device software in system
c"gmgr -l vscsi0 )o configure the components connected to the vscsi' interface
lsc"g )o display config1 diagnostics and vital product definition info
lsc"g -l mem0 Display info about device mem'
lsc"g -l ent; Display info about all /thernet cards
lsc"g -v Display vpd
lsc"g -v -l hdisk0 Display vpd of hdisk'
mkdev -l rmt0 )o change device rmt' from defined state to available state
lsdev -1 )o lists all supported devices
lsdev -1 -c disk )o list all supported disks
lsdev -1 -r class )o display supported class
lsdev -1 -r s!.class )o display all sub class
lsdev -C )o lists all configured devices
lsdev -C -l mem0 )o display the properties of mem'
chdev -l sys0 -a maxproc(100 )o change default maxproc value to 1''
chdev -l rmt0 -a .locksi'e()12 )o change the block sie to 91%
chdev -l rmt0 -a ret(no )o avoid tape retension
rmdev -l rmt0 )o remove the device rmt'
rmdev -d -l rmt0 )o remove the device totally from database
rmdev -l rmt0 -# )o change the state of the device stopped
lsparent -C -k rs22 )o display possible parent devices which accept rs%+% devices
lsparent -C -l hdisk0 )o display parent devices which accept child device hdisk'
lsattr -9l rmt0 )o see the default values of the device rmt'
lsattr -7l rmt0 )o see the current values of the device rmt'
lsattr -7l tty0 -a login -< )o see all possible values of the login attribute of tty'
lsconn -p scsi0 )o list all possible connection scsi' can accept
lvlstma&or )o list the available ma2or numbers
mknod ,dev,n!ll c 2 2 Create null device with ma2or 3%6 and minor 3%6 nos* 3c 4 char device6
Console 7m!lation Commands
lscons )o list the current console
lscons -. )o list the console at next boot
chcons ,dev,tty )o change the console to tty+
chcons -a login(ena.le ,dev,tty -edirect console to tty+ and provide login prompt
swcons ,dev,tty )o change system console to tty+ temporarily
alog -2 3t console )o see the current attributes of log type console
alog 3t console 3o )o see the console messages
alog 3t .oot 3o )o see the boot time messages
=nstallation speci"ic commands
lslpp -l )o see the details of installed file sets
lslpp -ha .os>net>; )o list the installation history of all file set in bos*net packages
lslpp -" .os>rte )o list the files in the bos*rte package
lslpp -w ,etc,hosts )o list the file set which contain 7etc7hosts file
lslpp -p .os>net>n"s>server )o list the pre re,uisites for bos*net*nfs*server file set
installp -2 -d ,dev,rmt0>1 )o list the installable products on the device rmt'
installp -a? -d ,dev,rmt0>1 .os>net )o install all filesets within bos*net ? expand file system if re,uired
installp -! .os>net )o remove bos*net
installp -r )o re2ect the applied software
installp -c -" @prod!ctA )o commit the @productA
installp -C )o cleanup an incomplete installation
lppchk -c @prod!ctA )o check the @productA
inst"ix -k =?BBBB -d ,dev,rmt0>1 )o install the file set associated with fix 0BCCCC from rmt'
inst"ix -ik =?BBBB )o verify fix 0BCCCC installed
Cetwork related commands
host 1B>B>200>1 -esolves ip to host name 3from 7etc7hosts file6
host i.m -esolve ibm to ip address 3from 7etc7hosts file6
hostname i.m )o change the host name to ibm
entstat en0 )o the status of ethernet device en'
entstat -d en0 )o list the detailed status of device en'
no -a )o list all net configurable attributes and their values
no -d thewall )o change thewall parameter to its default value
no -o ip"orwarding(1 )o make the machine as router in tcpip networks
tracero!te i.m )o trace the route to ibm
ping i.m )o tcp ping to the machine ibm
i"con"ig -a )o show the status of all network interfaces
i"con"ig en0 )o show the status of en'
i"con"ig en0 !p )urns on network card en'
i"con"ig en0 down )urns off network card en'
i"con"ig en0 detach -emoves en' card from the network interface list
i"con"ig en0 inet 1B4>)>)2>1 netmask 2))>2))>2))>0 !p
Configure en' starts immediately
i"con"ig en0 alias 1B)>+0>+0>1 Create alias ip address for en'
ro!te add 0 1B2>100>1>* )o make 1C%*1''*1+*: as default gateway for entire network
ro!te add 1B2>100>12>0 1B2>100>1>* )o make 1+*: as gateway for 1%*' network
ro!te -" )o clear the gateway table
chdev -l inet0 -a hostname(si )o change the host name to si permanently
netstat -a )o show the state of all sockets
netstat -c )o show the network buffers cache
netstat -9 )o show the net drops of packets
netstat -i )o display interface statistics
netstat -r )o show the routing table
netstat -rn )o show routing table 3ip will be given instead of host names6
netstat -s )o show the statistics of the protocols
netstat -s -p @ tcp,!dp,ipv+A )o show the statistics of respective protocols
#pace !sage commands
d! -k )o list number of bytes in 1k blocks
d! -l )o list number of bytes in 91% bytes blocks
d! -s )o list only the total disk usage in the current directory
d" -i )o display no of free and used inodes
d" -k )o display diskspace in 1'%$ bytes format
4ack!p commands
mksys. -i -? ,dev,rmt0 Creates image*data and system backup 34B expands 7tmp if re,uired6
mksys. -m ,dev,rmt0 Creates image*data file with map file and system backup
mksys. -e ,dev,rmt0 Creates system data but excludes the files listed in 7etc7exclude*rootvg
mks'"ile Creates 7image*data file
mkcd -d ,dev,cd1 Creates system boot backup to the CD4- device 7dev7cd1
mkcd -d ,dev,cd1 -v vg00 Creates backup of vg vg'' to CD4- device 7dev7cd1
mkcd -d ,dev,cd1 -G Creates generic boot backup
savevg -i -" ,dev,rmt0 vg00 Creates vg''*data image file and backup vg vg''
savevg -e" ,dev,rmt0 vg00 Creates vg'' backup but excludes files listed in the
7etc7exclude*vg''
"ind , -print | .ack!p -iv" ,dev,rmt0 #ackup entire system to rmt'
.ack!p -0v" ,dev,rmt0 ,home #ackup 7home directory to rmt' with backup level '
restore -5v" ,dev,rmt0 List the archive in rmt'
restore -xv" ,dev,rmt0 ,home -estore 7home from archive in device rmt'
"ind >,home -print |cpio -ocv!m4 A 7dev7rmt'
.rchives 7home directory
cpio -icvd!m4 @ ,dev,rmt0 -estores cpio archive from rmt'
cpio -ivt @ ,dev,rmt0 List the contents of cpio archive from rmt'
cpio -icvd @ ,dev,rmt0 ,home -estores 7home directory from rmt'
tar -cv" ,dev,rmt0 ,home .rchives 7home to rmt' device
tar -tv" ,dev,rmt0 List the archives in rmt'
tar -xv" ,dev,rmt0 ,home /xtract 7home from rmt'
dd i"(si o"(si1 conv(e.cdic Convert and copy ascii file si to ebcdic si1
dd i"(,dev,rmt0 i.s()12 o.s(1024 o"(,dev,rmt1
)o copy blocks from rmt' with 91% blocks to rmt1 with 1'%$ blocks
tctl -" ,dev,rmt0 rewind )o rewind the tape
tctl -" ,dev,rmt0 o""line )o e2ect the tape
tctl -" ,dev,rmt0 stat!s )o show the status of tape
chdev -l rmt0 -a .lockDsi'e()12 )o change the block sie of the tape to 91%
1rint commands
%chk -% )o display the default ,
%chk -1 lp0 )o display the status of the printer lp'
%chk -E 12 )o display the status of 2ob number 1%+
%chk -/ )o display the status of all ,ueues
%can -x 12 )o cancel the print 2ob 1%+
%can -? -1 lp0 )o cancel all 2obs submitted to lp'
%pri -E)*0 -a 2) )o change the priority of the 2ob to %9
%hld E )+B )o hold the 2ob 9(C
%hld -r -E)+B )o remove holding from 9(C
%mov -m lpa -E11 )o move the 2ob 11 to ,ueue lpa
ena.le ps% )o enable ,ueue ps,
disa.le ps% )o disable ,ueue ps,
cancel -E111 )o cancel 2ob 111
lpstat )o display the status all ,ueues
lpstat -p lp0 )o display the status of print ,ueue lp'
lpstat -! root )o display the 2obs submitted by user root
lp% -1 lp0 )o display the status of ,ueue lp'
last )o list all the records in the 7var7adm7wtmp file
last |grep sh!tdown )o show the shutdown sessions
!ptime Fw -! G )o show how long the system has been up
2icensing commands
oslevel )o list the operating system level
lslicense )o see the number of license
chlicense -!0 )o change the fixed user license to +'
chlicense -" on )o enable floating user license
:ser commands
id )o list all system identifications for current user
id -gn )o list the default group for current user
id -Gn )o list all system groups for current user
ls!ser root )o list the attribute of user root
ls!ser /22 )o list the attributes of all users
ls!ser -a HI87 /22 )o list the home directory of all users
ls!ser -a /22 )o list all usernames
ls!ser -a a!th1 a!th2 /22 )o list the authentication method for all users
ls!ser -a expires /22 )o list expiry date
ls!ser -a acco!ntDlocked /22 )o check account lock status of all users
ch!ser -a login(tr!e san )o enable the user san
ch!ser -a rlogin(tr!e san /nable san to login remotely
mk!ser si Creates user si with default values in 7usr7lib7security7mkuser*defalault
mk!ser s!("alse si Create user si without su facility
rm!ser si )o remove user si
rm!ser -p si )o remove user si and his all attributes
who List users with tty nos and ip numbers
who ,var,adm,wtmp Lists history of login logout system startup and shutdowns
who -r )o list the run level
who am i ,who -m )o list the current user
mkgro!p dcm )o create the group dcm
chgro!p !sers(!1J!2J! dcm )o add users u1 u% and u+ to dcm group
rmgro!p dcm )o delete the group dcm
cha!thent )o change the authentication methods
#!.system Commands
lssrc -a )o list the status of all subsystems
lssrc -h node1 -a )o list the status of all subsystems on foreign host node1
lssrc -s kadmind )o list the status of the subsystem kadmind
lssrc -g tcpip )o get the status of the subsystem group tcpip
mkssys )o add a subsystem
rmssys -s ker.eros )o remove the subsystem kerberos
chssys -s ker. -s kad )o rename the subsystem kerb to kad
startsrc -s kadmin )o start the subsystem kadmin
startsrc -g tcpip )o start the subsystem group tcpip
stopsrc -s kadmin )o stop the subsystem kadmin
stopsrc -g tcpip )o stop the subsystem group tcpip
re"resh -s n"sd )o refresh nfsd subsystem
re"resh -g tcpip )o refresh tcpip subsystem group
#ched!ling commands
cronta. -l )o list the crontab entries
cronta. -e )o edit the crontab entries
cronta. -l A ,si )o copies the entries of crontab to 7si file
cronta. -r )o remove all crontab entries
cronta. -v )o list the submission time
,var,adm,cron,cron>allow 8ile containing users who allowed cron service
,var,adm,cron,cron>deny 8ile containing users denied cron service
at -l )o list the 2obs scheduled via at command
at -r root>d"&dh&dh>21 )o remove the scheduled 2ob root*df2dh2dh*%1
,var,adm,cron,at>allow 8ile containing users who allowed at service
,var,adm,cron,at>deny 8ile containing users denied at service
.atch )o run the command when the system load permits
at% &oe )o list all the 2obs submitted by user 2oe
I98 Commands
odmget smDmen!Dopt )o get the ob2ects from class smDmenuDopt
odmget -% Kid(licensesK smDmen!Dopt
)o list ob2ects that matches ,uery idElicenses from ob2ect smDmenuDopt
odmdelete -o smDmen!Dopt -% Kid(licensesK
)o delete the entries from class smDmenuDopt which agrees the ,uery idElicenses
odmshow smDmen!Dopt )o show the ob2ect class definition
odmdrop -o smDmen!Dopt )o drop smDmenuDopt ob2ect class
odmchange -o smDmen!Dopt -% Kid(licensesK "ile1 )o change the attributes from file1
errpt )o display complete summary of report
errpt -a )o list complete detailed report
errpt -d H )o list all hardware related errors
errpt -d # )o list all software related errors
errpt -a -& 4)+442 )o list detailed error report of error id +$9($$%+
chita. tty002L2LrespawnL,!sr,s.in,getty ,dev,tty
)o enter the entry tty''%F%+FrespawnF7usr7sbin7getty 7dev7tty in inittab
lssrc -g portmap )o start tcpip
9aemons o" C=#
#erver #lave #erver Client
ypserv ypserv yp.ind
yppasswd
yp!pdated
G05 maps created by default 3if file available on master server6
8/1 $=27 C=CM C/87
passwd*byname
passwd*byaddr
7etc7passwd passwd
group*byname 7etc7group Group
group*byaddr
hosts*byname
hosts*byaddr
7etc7hosts Hosts
ethers*byname
ethers*byaddr
7etc7ethers /thers
networks*byname
networks*byaddr
7etc7networks Getworks
rpc*bynumber 7etc7rpc
services*byname 7etc7services
protocols*byname
protocols*bynumber
7etc7protocols protocols
netgroup*byhost
netgroup*byuser
7etc7netgroup
bootparams 7etc7bootparams
mail*aliases
mail*byaddr
7etc7aliases aliases
publickey*byname 7etc7publickey
netid*byname 7etc7passwd
7etc7group
7etc7hosts
7etc7netid
netmasks*byaddr 7etc7netmasks
chypdom 3= mca "odifies nis domain name entry in 7etc7rc*nfs
chypdom 34 mca Changes nis domain and modifies 7etc7rc*nfs file
chypdom 3C mca Changes nis domain name to mca
domainname mca Changes nis domain name to mca until next reboot
mkmaster )o make the machine G05 master
=ptionsF
-I =verwrites existing maps
-o prevents overwriting existing maps
-7 /xit on errors
-e Go exit on errors
-1 5tarts yppasswdd daemon
-p DonIt start yppasswdd daemon
-: 5tarts ypupdated daemon
-! DonIt start ypupdated daemon
-C 5tarts ypbind daemon
-c DonIt start ypbind daemon
-4 /xecutes ypinit command and modifies rc*nfs
mkclient 34 3# mca "akes the machine as a client of mca server and starts ypbind daemon
ypcat passwd )o cat the password map file passwd*byname
ypcat 3x )o display map nickname translation table
ypcat 3d pci passwd )o display the passwd file in the domain pci
yppasswd )o change the password of nis user
lsmaster Display characteristics for the configuration of G05 master
mrgpwd A,var,yp,passwd )o merge 7etc7passwd and 7etc7security7passwd file to 7var7yp7passwd
ypx"r -h mca passwd>.yname )o transfer password map file from host mca
Procedure for G05
8aster #erver
Change the nis domain name in the master server
chypdom 34 mca
or
smit chypdom
Verify tcpip is running by executing lssrc 3s inetd
Verify portmap is running by executing lssrc 3s portmap
38or security reason it is better to locate all nis files to 7var7yp directory and change the D0-E7etc entry
to D0-E7var7yp in the 7var7yp7"ake8ile* 8or merging the existing passwords execute
mrgpwd A ,var,yp,passwd6
/xecute mkmaster 3I 37 31 3: 3C 34
-I =verwrites existing maps for this domain
-7 /xist on errors when creating master server
-1 5tarts yppasswdd daemon
-: 5tarts ypupdated daemon
-C 5tarts ypbind daemon
-4 /xecutes ypinit command1 uncomment entries in rc*nfs and starts daemons
Check the yp daemons with lssrc 3g yp
#lave #erver
Change the nis domain name
chypdom 34 mca
/dit hosts file1 keep entries for loopback1 this machine and of server
/xecute mkslave 3I 34 3C mca
Client machine
Change the nis domain name
chypdom 34 mca
/dit hosts file1 and keep entries for loopback 1 this machine and of server
/xecute mkclient 34 mca
Check for ypbind with lssrc 3s yp.ind
H/C81 Commands
logs
7tmp,hacmp>o!t Detailed event script output logged in : day rolling history
,var,adm,cl!ster>log High level view of cluster events 3Go clean up on this file6
7!sr,s.in,cl!ster,history,cl!ster>mmdd Day by day view of cluster events* 3one file 7 day of month6
7tmp,cm>log Clstrmgr messages
7tmp,cspoc>log =utput from C45P=C commands 3similar to smit*log6
,tmp,em!hacmp>o!t =utput from event emulation
rdist -. -" ,etc,dis"ile1 )o distribute the files in disfile1 to all nodes in disfile1 in binary mode
Sample entry for disfile1
H=5)5 E 3 rootJnode1 rootJnode+ 6
80L/5 E 3 7etc7passwd 7etc7security7passwd6
KL80L/5M 4A KLH=5)5M
clstart -m -s -. -i -l )o start cluster daemons 3m4clstrmgr1 s4clsmuxpd1
b4broadcast message1 4i4clinfo1 4l cllockd6
clstop -" -C )o force shutdown cluster immediately without releasing resources
clstop -g -C )o do graceful shutdown immediately with no takeover
clstop -gr -C )o do graceful shutdown immediately with takeover
cldare -t )o sync the cluster toplogy
cldare -t -" )o do the mock sync of topology
cldare -r )o sync the cluster resources
cldare -r -" )o do the mock sync of resources
clveri"y cluster verification utility
cllsc" )o list clustur topology information
cllsclstr )o list the name and security level of the cluster
cllsnode )o list the info about the cluster nodes
cllsnode -i node1 )o list info about node1
cllsdisk -g shrg )o list the PV0D of the shared hard disk for resource group shrg
cllsnw )o list all cluster networks
cllsnw -n ether1 )o list the details of network ether1
cllsi" )o list the details by network adapter
cllsi" -n node1Dservice )o list the details of network adapter node1Dservice
cllsvg )o list the shared vgs which can be accessed by all nodes
cllsvg -g sh1 )o list the shared vgs in resource group sh1
cllslv )o list the shared lvs
cllslv -g sh1 )o list the shared lvs in the resource group sh1
cllsdisk -g sh1 )o list the PV0D of disks in the resource group sh1
clls"s )o list the shared file systems
clls"s -g sh1 )o list the shared file systems in the resource group sh1
cllsnim 5how info about all network modules
cllsnim -n ether 5how info about ether network module
cllsparam -n node1 )o list the runtime parameters for the node node1
cllsserv )o list all the application servers
claddclstr -i -n dcm )o add a cluster definition with name dcm and id +
claddnode )o add an adapter
claddnim )o add network interface module
claddgrp -g sh1 -r cascading -n n1 n2 )o create resource group sh1 with nodes n11n% in cascade
claddserv -s ser1 -. ,!sr,start -e ,!sr,stop Creates an application server ser1 with startscript as 7usr7start
and stop script as 7usr7stop
clchclstr -i 2 -n dcmds )o change cluster definitions name to dcmds and id to %
clchclstr -s enhanced )o change the clustur security to enhanced
clchnode )o change the adapter parameters
clchgrp )o change the resource group name or node relationship
clchparam )o change the run time parameters 3like verbose logging6
clchserv )o change the name of app* server or change the start7end scripts
clrmclstr )o remove the cluster definition
clrmgrp -g sh1 )o delete the resource group sh1 and related resources
clrmnim ether )o remove the network interface module ether
clrmnode -n node1 )o remove the node node1
clrmnode -a node1Dsvc )o remove the adapter named node1Dsvc
clrmres -g sh1 )o remove all resources from resource group sh1
clrmserv app1 )o remove the application server app1
clrmserv /22 )o remove all applicaion servers
clgetactivenodes -n node1 )o list the nodes with active cluster manager processes from cluster
manager on node node1
clgetaddr node1 returns a pingable address from node node1
clgetgrp -g sh1 )o list the info about resource group sh1
clgetgrp -g sh1 -" nodes )o list the participating nodes in the resource group sh1
clgeti" )o list interface name7interface device name7netmask associated with
a specified ip label 7 ip address of a specific node
clgetip sh1 )o get the ip label associated to the resource group
clgetnet 1B>B>200>2 2))>2))>2))>0 )o list the network for ip 1C+*C*%''*%1 netmask %99*%99*%99*'
clgetvg -l nodelv )o list the VG of LV nodelv
cllistlogs )o list the logs
clnodename -a node) )o add node9 to the cluster
clnodename -o node) -n node )o change the cluster node name node9 to node+
clshowres Lists resources defined for all resource group
cl"indres )o find the resource group within a cluster
xclcon"ig B utility for cluster configuration
xhacmpm B utility for hacmp management
xclstat B utility for cluster status
#1 Commands
Daemons
hats )opology services hatsd 3 7usr7sbin7rsct7bin7hatsctrl script6
hags Group services hagsd 37usr7sbin7rsct7bin7hagsctrl script6
haem /vent management haemd 37usr7sbin7rsct7bin7haemctrl script6
hr Host responds hrd 37usr7sbin7rsct7bin7hrctrl script6
pman Problem management pmandJpmanrmd 37usr7sbin7rsct7bin7pmanctrl script6
faultDserviceD>ormD-)GD5P 3>=-"6 5witch daemon on nodes 37usr7lpp7ssp7rc*switch called by
cssDrestartDnode6
kadmind )he authentication database daemon for password changing and
administration tools* Listens port :91* 0t checks acl files admin*acl*
3get1mod1add6 in 7var7kerberos7database7*k file for master key and
7var7kerberos7databse7pricipal*pag1 pricipal*dir for authentication
database*
ker.eros Daemon that provides authentication services ? ticket granting ticket for clients*
kpropd Daemon to receive update for a secondary database server
hardmon Daemon that monitors and controls the state of 5P hardware
0t checks acl file 7spdata7sys17spmon7hmacls
installDcw )o complete P55P installation on cws
30nstalls P55P programs for 5"0) panels
5tarts and configures 5D-
5ets node number ' for cws in =D"
Creates hmacls file with rood*admin entry in
5tarts and configure P55P daemons
Configures default partition6
set!pDa!thent )o setup workstation as 5P authentication server
3Creates 7etc7krb*conf1 7etc7krb*realms files
Creates authentication database using kdbDedit command
Create master key file 7*k using kstash command
.dds kadmin and kerberos to inittab file and starts them
Define initial auth* admin 3egF4 root*admin6 using kdbDedit command
Creates Nerberos .CL5 3adminDacl*get1mod1add files6
/xecute kinit for root*admin and creates local service principals
3hardmon*cws1 rcmd*cws6
Creates 7*klogin file and add admin principal to it
Creates 7etc7krb4srvtab file using extDsrvtab command6
set!pDserver )o setup C>5 as #05
splstDversions -G -t )o check the P55P versions in all nodes
spmonDctest )o verify system monitor configured properly
spmonDitest )o verify system monitor installed properly ? operational
#6#8/CDtest )o verify the system management component
C##Dtest )o verify communication subsystem
#9<Dtest -l si )o verify 5D- and logs the errors in file si
#9<2istClasses )o list the class name in the 5D-
#9</rchive si )o backup 5D- in the directory 7spdata7sys17sdr7archives with name
backup*@yearA@Oulian dayA*@hourA@minuteA*si
sprestoreDcon"ig .ack!p>@yearA@N!lian dayA>@ho!rA@min!teA>si
)o restore 5D- and partion sensitive subsystems
#9<GetI.&ects #yspar )o get the system partition info
#9<GetI.&ects sysparDmap )o get the system partition map 3with node info6
#9<GetI.&ects /dapter nodeDn!m.er netaddr
)o get the node number and net address in the .dapter class
#9<9eleteI.&ects /dapter netaddr((1B>B>200>22*
)o delete class .dapter with netaddr value 1C+*C*%''*%%:
#9<Change/ttrVal!es Code nodeDn!m.er((B .ootpDresponse((install
)o change the boot response as install on node with node number C
#9<OhoHas2ock @classDnameA-eturns the transaction 0D of a lock on a specified class
#9<Clear2ock @classDnameA )o unlock an 5D- class
sysparDctrl -G -/ )o add and restart all system partition sub systems
sysparDctrl -G -9 )o stop and delete all system partition sub systems
sysparDctrl -< )o restore all system partition sub systems in current partition
sysparDctrl -7 )o list all system partition sub systems
sysparDctrl -s )o start all system partition sub systems in current partition
sysparDctrl -k )o stop all system partition sub systems in current partition
sysparDctrl -r )o refresh all system partition sub systems in current partition
ngcreate -s 1L1 si )o create node group si with 1st node in 1st frame
ngcreate -n 1 2 si )o create node group si with 1st %nd and +rd nodes
ngcreate -C ng1Jng2 si )o create node group si with node groups ng1 and ng%
ngcreate -w n1Jn2 si )o create node group si with host name n1 and n%
ngcreate -ae n1Jn2 si )o create node group si with all nodes in the current partition
excluding hosts n1 and n%
nglist )o list node groups in current partition
nglist -G )o list node groups globally
ng"ind si )o find all node groups which contain node group si
ngnew si1 si2 si )o create + node groups with names si1 si% and si+
ngnew -G si1 si2 si )o create + node groups globally with names si1 si% and si+
ngresolve -G -n si )o resolve the nodes in the node group si as node numbers
with global option
ngresolve -w si )o resolve the nodes in the node group si as fully ,ualified
host name
ngresolve -d si )o resolve the nodes in the node group si as fully ,ualified
ip address
ngdelete si si1 )o remove node groups si and si1
ngdelete -! si )o remove node group si but leave entries in other node groups
which is having the entries in it
ngclean -Ga )o clean up all node groups
ngaddto si 1 2 )o add nodes 1 and % to the existing node group si
ngaddto si 1 2 ng1 )o add nodes 11% and node group ng1 to node group si
ngdel"rom si 1 2 )o remove nodes 1 and % from node group si
ngdel"rom si 1 2 ng1 )o remove nodes 11 % and node group ng1 from node group si
spled -G )o display leds of nodes in a multi partition system
spled or spmon -2 )o display leds of nodes in the current partion
spmon -p o"" "rame2,node )o power off node+ in frame %
spmon -p on "rame2,node )o power on node + in frame %
spmon -G -p on "rame2,node )o power on node+7frame % if it is outside current partition
spmon -k service ,"rame2,node )o change the key settings to service
spmon -p o"" "rame1 )o power off frame1
spmon -M "rame1,node1 )o see the key settings of frame17node1
spmon -reset "rame1,node1 )o reset
spmon -open "rame1,node1 )o open a tty on frame17node1EE3s1term 4w 1 16
spmon -d )o run the diag in the current partition
spmon -G -d )o run the diag globally
hmmon -V 1L1 Displays a descriptive list of symbolic variable names
hmmon -Q -s 1L1 Displays the state of node1 in frame 1 and exists
hmmon -% -s 1L1 Displays and monitors continuously
hmreinit )o stop and restart hardmon
hmcmds -G o"" all )o power off all hardware
hmcmds -G o"" 1L )o power off slot + in frame 1
hmcmds -G on 1L )o power on slot + in frame 1
hmcmds -v -G .ootDs!pervisor 1L1 )o reset the power of nodeDsupervisor card on slot 1 frame 1
3<se full to close the opened ttys on nodes6
hmcmds sec!re l 1-L2 )o change the key in secure mode for slot % in frame 1 % and +
hmcmds -v synchDreset Perform sync reset* )o clear the switch errors
hmcmds -v powerDonDreset Perform sync reset and do self test of switch chips
cstart!p -G all )o startup all nodes globally
cstart!p -C 1 2 4-8 )o startup nodes 11% and $ to !
cstart!p -g si )o startup node group si
cstart!p -GP all )o startup all nodes* >ith P it will restart the nodes which are already
running 3otherwise command will exit6
cstart!p -k all )o verify the startup with se,uence file 35tart5e,6
cstart!p -7 all )o startup all nodes ignoring the se,uence file
csh!tdown -$ node1 )o shutdown node1 immediately
csh!tdown -h node1 )o halt the node node1
csh!tdown -g si )o shutdown the nodes in the node group si
csh!tdown -G -C 1 4-* )o shutdown nodes 1 + and $ to : regardless partition
csh!tdown -? -C 1 2 )o shutdown nodes 1 % and + ignoring se,uence file
hostlist -av )o list sp host name which is active
hostlist -avd )o list the hosts in ipaddress which are active
hostlist -dw node1 -eturns the ip of the node node1
hostlist -C si List the host names in the node group si
hostlist -s 1-4L4 List the hostname of the node in $th slot in frames 14$
nodecond -n 1 1 )o get the ehternet address of the node 1 in frame 1
nodecond 1 1 )o network boot the node 1 in frame 1
splstdata -h )o list the hardware info 3e,uivalent to lscfg 6
splstdata -i )o list the network adapter data 3e,uivalent to netstat 4in6
splstdata -v )o list VG info on nodes
splstdata -t )o list extension node config
splstdata -. )o list boot install info
splstdata -n )o list node information
splstdata -s )o list node switch information
splstdata -d )o list file system info 3e,uivalent to df6
splstdata -p )o list 5P partition info
splstdata -e )o list the sp environment variables like ntpDconfig1 amdDconfig
7"ence )o display all nodes fenced
7"ence 1B>B>1>2 1B>B>1>) )o fence nodes with ips 1C+*C*1*% and +
7"ence node1 node )o fence nodes node1 and node+
7"ence -a!to&oin node1 )o fence out but will unfence it after reboot
7!n"ence 1B>B>1>2 1B>B>1>) )o unfence nodes with ips 1C+*C*1*% and +
7!n"ence node1 node )o unfence nodes node1 and node+
7start )o start sp switch
7start -a!to!n"ence -0 )o start sp switch and turn off autounfence feature
31 for autounfence enabled6
7!npartition )o prepare a system partition for repartitioning
delnimclient -l 1 2 )o delete nim client definition for nodes 1 % and + from G0" master
mknimclient -l 1 2 )o make node 1 % and + as G0" clients
delnimmast -l 1 1* )o unconfigure nodes 1 1: and ++ as G0" masters and remove filesets
mknimmast -l 1 1* )o make nodes 1 1: and ++ as G0" masters
lshacws )o list the status of the C>5
ntpdate B0>1>2>1 5ets date and time by en,uiring ntp server C'*1*%*1
sp.ootlist -l 1 2 )o set the bootlist on nodes 1 and %
nodecond 1 4 )o network boot the node $ in frame 1
nodecond -n 1 4 )o fetch the ethernet address of node $ in frame 1
sphrdwrad 1 2 )o fetch mac address for node + and $ in frame 1
set!pDa!thent )o setup a cws to use kerberos authentication
kd.Ddestroy )o destroy the kerberos database
createDkr.D"iles 5earches for nodes in install7Customise mode and create krb4srvtab file
for those nodes* 3Creates in tftpboot directory of C>5*6
extDsrvta. -n node1 )o extract service key files from the database for instance node1
extDsrvta. -n #1.g/dm )o extract service key files from the database for instance 5Pbg.dm
3Creates in the present directory with name @instanceA4new4srvtab6
spseta!th -d k4 std )o set the authentication methods as k$ and standard
cha!thpar k4 std )o change the authentication methods as k$ and std
kpasswd )o change the kerberos principals password
lsa!thent )o list the authentication table
k4init si&! )o get the kerberos ticket for principal si2u
k4init -v si&! )o get the same as above but give verbose output
k4init -i si&! )o get the same but the machine will ask for the instance
k4init -r si&! )o get the same for a different realm 3< can specify realm6
k4init -l si&! )o get the same for the life time in minutes which u specify
rcmdtgt )o obtain a maximum life time ticket for rcmd services on local node
k4list )o list the ticket cache and principalIs name
k4list -srvta. )o list the contents of the server key file
chkp -l + si&! )o change the life time of the principal si2u to +' minutes 3( x 96
chkp -e 2001-)-2 si&! )o change the expiry date of principal si2u to %''1 may %+
lskp -p )o list the predefined kerberos principals
lskp -s )o list the kerberos service principals
lskp -c )o list the kerberos client principals
lskp si&! a.c )o list the principals of si2u and abc
rmkp si&! )o remove the principal si2u
rmkp -n si&! )o remove the principal si2u without prompting for confirmation
rmkp -v si&! )o remove the principal with verbose output
kd.Dedit )o change the attributes of the kerberos principals
kd.Dedit -n )o avoid asking master key and get it from *k file
kd.D!til d!mp ,si>.ak )o backup the kerberos database to si*bak file
kd.D!til load ,si>.ak )o restore the kerberos database from file si*bak*
kd.D!til newDmasterDkey )o change the master key
kadmin )o add1delete1see1change password1change admin passwd of kerberose
kadmin ank )o add a new kerberos principal
kadmin cpw )o change the password of a principal
kadmin cap )o change admin password
kadmin get )o get the details of a principal
kadmin dest )o destroy admin ticket
kstash )o save the master key in the *k file
kd.Dinit )o initialie the kerberos system
ksrv!til list )o list the principals and version number in the server key file
ksrv!til -" ,etc,srvta.>.ak list )o list the principals in the file 7etc7srvtab*bak
ksrv!til change )o change the key version in the default srvtab file
ksrv!til delete )o delete the keys in the 7etc7krb4srvtab file
ksrv!til -" ,etc,srvta.>.ak delete )o delete the keys in the 7etc7srvtab*bak file
spacsDcntrl .lock !ser1 )o block user1 on the node
spacsDcntrl !n.lock !ser1 )o unblock user1
spacsDcntrl deny !ser1 )o deny user1
spacsDcntrl allow !ser1 )o allow user1
spacsDcntrl -" ,tmp,si deny )o deny the list of the users in the file 7tmp7si
cwDallowed List of users to be allowed to login to C>5
cwDrestrictDlogin 5cript which will deny user to login to cws and allow them to change
the passwd 3files are 7usr7lpp7ssp7config7admin directory and entry for
second file will be in 7etc7profile file6
spmk!ser id(124 pgrp(system gro!ps(systemJ.in home(node1L,home,si&! si&!
)o create 5P user si2u with id 1%+$1 primary groups system1 secondary
groups system1bin and home directory home7si2u of node1
sprm!ser -ipr si&! )o remove the 5P user si2u 30 for interactive1 p for removing info from
passwd file and r for removing the home directory6
spls!ser -c si&! )o list the attributes of sp user si2u in column format
spls!ser -" si&! )o list the attributes of sp user si2u in stana format
spch!ser gro!ps(devJsystem sh(,.in,ksh si&!
)o change the shell to ksh and secondary groups to dev1
system of 5P user si2u
s!pper -v )o go to the supper prompt in verbose mode
s!pper !pdate )o update all file collections
s!pper stat!s )o see the status of the file collections
s!pper when )o list when last updation occured
s!pper where )o show current servers for updation
s!pper log )o show summary of last or current updation
s!pper rlog )o show the details of last of current updation
s!pper "ile !ser>admin )o list the files in the file collection user*admin
s!pper install si&! )o install the file collection si2u
s!pper remove si&! )o remove file collection si2u
s!pper !pdate !ser>admin )o update file collection user*admin
s!pper diskin"o )o show the diskspace and current VG
1roced!re to 4!ild a "ile collection with name si&! "or "iles in ,home,si&!
16 go to 7var7sysman7sup
%6 create dir si2u
+6 change ownership and group of si2u to bin
$6 copy contents of 7var7sysman7sup7user*admin to si2u
96 edit list file for including and omitting files in 7home7si2u directory
0t should contains entry like the following
symlinkall
upgrade *7home7si2u
omit *7home7si2u7abc
omitany *7home7si2u7s&
(6 .dd a symbolic link to si2u file in lists directory to list in si2u directory
ie ln -s ,var,sysman,s!p,si&!,list ,var,sysman,s!p,lists,si&!
:6 <pdate 7var7sysman7file*collections file with following entry
primary si&! - , - , 79I power no
!6 <pdate sup*admin file collection to reflect the changes made to file*collections
dsh -av s!pper !pdate s!p>admin
C6 0nstall file collection si2u in the nodes
dsh -av s!pper install si&!
sysctld 5ysctl server daemon
,etc,sysctl>con" 5ysctl configuration file
seta!th -cmd svcconnect CIC7 )o allow non kerberos users to execute sysctl commands
3/ntry in sysctl*conf file6
seta!th -cmd pd" Q/C2 ,etc,si>aclR )o change the acl file for pdf command to 7etc7si*acl
3/ntry in sysctl*conf file6
7etc,sysctl>acl Default acl file for sysctl
sysctl -h node1 =pens a sysctl command interface for node node1
sysctl -h node1 aclcheck si&! )o check entry for si2u in the default acl file 3sysctl*acl6
sysctl -h node1 -" ,etc,si>acl si&! )o check entry for si2u in the acl file 7etc7si*acl
sysctl -h node1 in"o commands )o list the authoried commands for the current principal
sysctl -h node1 acladd -p si&! )o add the principal si2u to the default .CL file
sysctl -h node1 -" ,etc,si>acl acladd -p si&!
)o add the principal si2u to 7etc7si*acl .CL file
sysctl -h node1 acldelete -p si&! )o delete the principal si2u to the default .CL file
sysctl -h node1 -" ,etc,si>acl acldelete -p si&!
)o delete the principal si2u to 7etc7si*acl .CL file
sysctl -h node1 acllist )o list the entries in the default acl file
sysctl -h node1 -" ,etc,si>acl acllist )o list the entries in 7etc7si*acl file
sysctl -h node1 aclcreate -p root>admin -p si&! -" ,etc,si>acl
)o create acl file 7etc7si*acl with the entries root*admin and si2u
sysctl -h node1 checka!th -cmd pd"
)o check authoriation for command pdf for the current user
sysctl -h node1 con"add incl!de ,etc,si>acl
)o include the acl file si*acl in the sysctl*conf file
sysctl -h node1 con"delete incl!de ,etc,si>acl
)o remove the acl file si*acl from sysctl*conf file
sysctl -h node1 svcrestart )o restart the sysctld daemon on node node1
#teps to create a #yctl application
)ask F4 <ser si2u 3kerberos principal si2u*adm6 should get the permission to start a subsystem by executing
the command substart* Permission should not be given to other users*
16 Create the client application s!.start in 7usr7bin directory of cws with following contents
i" S TE -gt 2 U
then echo K/rg!ments exceed the limitK
exit 1
"i
,!sr,lpp,ssp,.in,hostlist -n T1 | ,!sr,.in,sysctl -c - s!.startDproc T2
0n the above script if condition will check for the number of arguments and execute procedure on
corresponding host
%6 Change the mode to executable
chmod *)) ,!sr,.in,s!.start
+6 Create server application substart*tcl with a procedure substartDproc with following contents
create proc s!.startDproc Q#!.#ystemR /:5H Q
glo.al #C:#7<
i" S aclcheck -" ,etc,s!.start>acl T#C:#7< U Q
exec ,etc,s!.start>srv T#!.#ystem
ret!rn
R
R
if condition in the above example checks for kerberos user in the acl file 7etc7substart*acl
0f the condition is true it execute the command 7etc7substart*srv with arguments passed by
substart command
$6 Create the script substart*srv with following contents
startsrc -s T2
)his script execute the command startsrc with the argument passed by the substart command*
96 Change the mode to executable
chmod *)) ,etc,s!.start>srv
(6 Create acl file substart*acl with the entry for user si2u
EaclE
D1<=CC=1/2 si&!>admVCO#
:6 .dd the application to the sysctl by adding following line to sysctl*conf file
incl!de ,etc,s!.start>tcl
!6 Distribute the files to all nodes
pcp -av ,!sr,.in,s!.start
pcp -av ,etc,s!.start>tcl
pcp -av ,etc,s!.start>srv
pcp -av ,etc,s!.start>acl
pcp -av ,etc,sysctl>con"
C6 -estart the sysctld daemon to get the new information on cws and on all nodes
1'6 Get the kerberos ticket for user si2u and execute following command
s!.start lpd
)his should start the lpd daemon on node +
116 )ry the above command with any other kerberos ticket* -esult should be negative
C=8 Commands
nimcon"ig -a pi"Dname(en0 -a netname(net1 )o initialise the G0" master with network name net1
nimcon"ig -r )o rebuild 7etc7niminfo file which contains the variables for G0"
nim -o de"ine -t lppDso!rce -a so!rce(,dev,cd0 -a server(master 3a location(
,export,lppDso!rce1 lppDso!rce1
)o define lppDsource1 image in 7export7lppDsource7lppDsource
directory from source cd'
nim -o de"ine -t mksys. -a server(master -a location(,reso!rces,mksys.>image mksys.1
)o define mksysb resource mksysb11 from source 7resources7mksysb*image on master
nim -o remove instDreso!rce )o remove the resource instDresource
nim -o check lppDso!rce1 )o check the status of lppDsource lppDsource1
nim -o allocate -a spot(spot1 -a lppDso!rce(lppDso!rce1 node1
)o allocate the resources spot1 and lppDsource1 to the the client node1
nim -o .osDinst node1 )o initialise G0" for the #=5 installation on node1 with the
allocated resources
nim -o dklsDinit dcmds )o initialie the machine dcmds as diskless operation
nim -o dtlsDinit dcmds )o initialie the machine dcmds for dataless operation
nim -o c!st dcmds )o initialie the machine dcmds for customie operation
nim -o diag dcmds )o initialie the machine dcmds for diag operation
nim -o maint dcmds )o initialie the machine dcmds for maintenance operation
nim -o de"ine -t standalone -a plat"orm(rspc -a i"1(Knet1 dcmds xxxxxK -a ca.leDtype1(.nc dcmds
)o define the machine dcmds as standalone with platform as rspc and network as net1 with cable
type bnc and mac address xxxxx
nim -o !ncon"ig master )o unconfigure nim master master
nim -o allocate -a spot(spot1 dcmds )o allocate the resource spot1 from machine dcmds
nim -o deallocate -a spot(spot1 dcmds )o de allocate the resource spot1 from machine dcmds
nim -o remove dcmds )o remove machine dcmds after removing all resources
associated to it*
nim -o re.oot dcmds )o reboot ther client dcmds
nim -o de"ine -t lppDso!rce -a location(,so"tware,lpp1 -a server(master -a so!rce(,dev,cd0 lpp1
)o define lppsource lpp1 on master at 7software7lpp1 directory from source device 7dev7cd'
lsnim )o list the nim resources
lsnim -l dcmds )o list the detailed info about the ob2ect dcmds
lsnim -I dcmds )o list the operation dcmds ob2ect can support
lsnim -c reso!rces dcmds )o list the resources allocated to the machine dcmds
nimclient )he client version of nim command 3<ser can obtain same results of nim in server 6

You might also like