33
CONTENTS VG COMMANDS............................................... 1 FS COMMANDS............................................... 2 PV COMMANDS............................................... 3 LV COMMANDS............................................... 3 BLV COMMANDS.............................................. 4 PAGE SPACE COMMANDS.......................................4 SYSTEM DUMP COMMANDS......................................5 Device related commands...................................5 Console emulation commands................................6 Installation specific commands............................6 Network related commands..................................7 Space usage commands......................................8 Backup commands...........................................8 Print commands............................................9 Licensing commands........................................9 User commands............................................10 Subsystem Commands.......................................10 Scheduling commands......................................11 SSA Commands............................................. 11 ODM Commands............................................. 12 Error Report Command.....................................12 HACMP Commands...........................................12 SP Commands.............................................. 15

All AIX Commands

Embed Size (px)

DESCRIPTION

AIX admin commands

Citation preview

Page 1: All AIX Commands

CONTENTS

VG COMMANDS..............................................................................................................1FS COMMANDS...............................................................................................................2PV COMMANDS...............................................................................................................3LV COMMANDS..............................................................................................................3BLV COMMANDS............................................................................................................4PAGE SPACE COMMANDS...........................................................................................4SYSTEM DUMP COMMANDS......................................................................................5Device related commands..................................................................................................5Console emulation commands..........................................................................................6Installation specific commands.........................................................................................6Network related commands..............................................................................................7Space usage commands.....................................................................................................8Backup commands.............................................................................................................8Print commands.................................................................................................................9Licensing commands.........................................................................................................9User commands................................................................................................................10Subsystem Commands.....................................................................................................10Scheduling commands.....................................................................................................11SSA Commands...............................................................................................................11ODM Commands.............................................................................................................12Error Report Command.................................................................................................12HACMP Commands........................................................................................................12SP Commands..................................................................................................................15

Page 2: All AIX Commands

VG COMMANDS

lsvg Display all VGslsvg -o Display all active VGslsvg rootvg Display info about rootvglsvg -l rootvg Display info about all LVs in rootvglsvg -o |lsvg -il Display info about all LVs in allVGslsvg -p rootvg Display info about all PVs in rootvgmkvg -s 8 hdisk1 Create VG with name vgxx on hdisk1with partition size 8MBmkvg -s 8 -y sivg hdisk1 Create VG with name sivg on hdisk1with partition size 8MBmkvg -s 4 -t 2 -y sivg hdisk1 Create sivg on hdisk1 with PP size 4 and noof partions 2 * 1016chvg -a y newvg To cause VG newvg automatically activated atstartupchvg -a n newvg To deactivate the automatic activation atstartupchvg -t 2 newvg To change maximum no. of PP to 2032 on vgnewvgchvg -Q n newvg To disable quorum on VG newvgreorgvg newvg Reorganises PP allocation of VG newvgextendvg newvg hdisk3 hdisk4 Add PV hdisk3 and hdisk4 to VG newvgexportvg newvg Exports the VG newvgimportvg -V 44 -y newvg hdisk2 Import the hdisk2 with name newvg, andassign major number 44redcucevg newvg hdisk3 Remove PV hdisk3 from VG newvg

varyoffvg newvg To deactviate VG newvgvaryonvg newvg To activate VG newvgsyncvg -v sivg To sync the mirrored LV in the VG sivgmirrorvg -S -m sivg hdisk2 To mirror LVs of sivg with hdisk2 (-m forexact mirror, -S forbackground mirror)unmirrorvg sivg hdisk2 To remove the mirrored PV from the set.

FS COMMANDS

lsfs Lists all filesystems in the/etc/filesystems entry

lsfs -q List all filesystems with detailed infolsfs -a To list all filesystems (default)

Page 3: All AIX Commands

lsfs -l Specify the output in list formatlsfs -c Specify the output in column formatlsfs -v jfs Lists all jfs filesystemschfs -a size=24576 /si Change size of FS /si to 24576 x 512 bytesblocks (12 MB)chfs -a size=+24576 /si Add 24576 x 512 byte blocks to FS /sichfs -m /si /bi Change the mount point from /si to /bichfs -A /si To auto mount the filesystem sichfs -d account /si Remove account attribute of /si. ( from/etc/filesystems file)chfs -a splitcopy=/backup -a copy=2 /oracle This will mount the 2nd copy ofmirrored filesystem oracle to /backup in read-only modecrfs -v jfs -g testvg -a size=64465 -m /siju Creates FS /siju of type jfs

in VG testvg of blocksize 64465crfs -v jfs -d /dev/lv00 -m /siju Create FS /siju of type jfs ondevice /dev/lv00rmfs /siju Deletes FS /siju and associated LVrmfs -r /siju Deletes FS /siju its mount point andassociated LVdefragfs /sifs To defragment the file system /sifsdefragfs -q /sifs Display the current defrag status ofthe file systemfsck -y n /dev/lv00 To fsck the filesystem associated to/dev/lv00 assuming response "yes"fsck -p /dev/lv00 To restore superblock from backupsuperblock

PV COMMANDS

lspv hdisk0 Display status and characteristics of the PVlspv -p hdisk0 Display PP usage of hdisk0

lspv -l hdisk0 To list all logical volumes on PV hdisk0chpv -v r hdisk1 Close the PV (Used while removing PVwithout varyon)chpv -v a hdisk1 Open the PVchpv -c hdisk0 Clear the master boot record on PV hdisk0migratepv hdisk1 hdisk2 To move PPs from PV hdisk1 to hdisk2migratepv -l silv hdisk1 hdisk2 To migrate LV silv from PV hdisk1 to hdisk2

Page 4: All AIX Commands

LV COMMANDS

lslv -l lv00 Display info about LV by PVlslv -p hdisk1 Display LV allocation map for hdisk1chlv -t copy lv00 To change the lv00 to copy typechlv -p r lv00 To change the lv00 to readonly modermlv silv To remove silvrmlv -f silv To remove silv without user interventionmklv -s n -c 3 silv hdisk1 To make LV silv with three copieson hdisk1extendlv silv 5 To extend the LV silv with 5 LPsmklvcopy -s n lvsi 2 hdisk1 To mirror LV lvsi on same PV with 2 copiesmklvcopy lvsi 3 hdisk1 hdisk2 To mirror LV lvsi on PV hdisk1 and hdisk2with 3 copiesrmlvcopy lvsi 2 hdisk1 Will remove one copy of LV lsvi from hdisk1

mklv -t jfslog -y log00 newvg 2 To create a jfslog with name log00 on VGnewvg with 2LPs

logform /dev/log00 To format jfslog volume log00

putlvodm [-a IntraPolicy] [-B label] [-c Copies] [-e InterPolicy] [-L LVid] [-l LVname] [-n NewLVName] [-r Relocate] [-s Strict] [-t Type] [-u UpperBound] [-y Copyflag] [-z Size] [-S StripeSize] LVid putlvodm [-o Auto-on] [-k] [-K] [-q VGstate] [-v VGname] [-V] VGid putlvodm [-p VGid] [-P] PVid

BLV COMMANDS

bootlist -m normal -o To see the boot sequence in normal modebootlist -m service -o To see the boot sequence in service modebootlist -m normal cd0 hdisk0 To change boot sequence to cd0,hdisk0 innormal modebootlist -m service cd0 rmt0 hdisk0 To change boot sequence tocd0,rmt0,hdisk0 in service modebosboot -ad /dev/hdisk1 To create boot image on PV hdisk1mkboot -cd /dev/hdisk1 To clear the boot imagebootinfo -b Specifies the bootable diskbootinfo - t Specifies the type of bootbootinfo -e Check the machine can boot from tapebootinfo -T To see the machine typebootinfo -s hdisk0 To see the size of hdisk0bootinfo -r To see the size of memory

Page 5: All AIX Commands

PAGE SPACE COMMANDS

lsps -a To list out all paging spaceslsps hd6 To display the details of the pagingspace hd6chps -a y paging00 To turn on the paging space paging00chps -a n paging00 To turn off the paging space paging00chps -s4 paging00 To increase the size of the paging space in4 LP blocksmkps -a -n -s4 sivg To create a paging space on VG sivg of 4 LP

size (-s4) and activate it immediately (-n) and activate it at every restarts

rmps paging00 To remove the paging space paging00swapon -a To invoke all entries in /etc/swapspacesfileswapon /dev/paging00 To make available swap space paging00

SYSTEM DUMP COMMANDS

sysdumpdev -l List the current dump destinationsysdumpdev -L List the details of the previous dumpsysdumpstart -p Starts dump in the primary dump devicesysdumpstart -s Starts dump in the secondary dump devicesysdumpdev -p /dev/lv00 To make lv00 as primary dump devicesysdumpdev -P -p /dev/lv00 To make lv00 as primary dump devicepermanentlysysdumpdev -s /dev/rmt0 To make rmt0 as secondary dump devicesysdumpdev -z To determine a new system dump occurred

Device related commands

cfgmgr To configure devices and installs devicesoftware in systemcfgmgr -l vscsi0 To configure the componentsconnected to the vscsi0 interfacelscfg To display config, diagnostics and vitalproduct definition infolscfg -l mem0 Display info about device mem0lscfg -l ent* Display info about all Ethernet cardslscfg -v Display vpd

Page 6: All AIX Commands

lscfg -v -l hdisk0 Display vpd of hdisk0mkdev-l rmt0 To change device rmt0 from defined state to

available statelsdev -P To lists all supported deviceslsdev -P -c disk To list all supported diskslsdev -P -r class To display supported classlsdev -P -r subclass To display all sub classlsdev -C To lists all configured deviceslsdev -C -l mem0 To display the properties of mem0chdev -l sys0 -a maxproc=100 To change default maxproc value to 100chdev -l rmt0 -a blocksize=512 To change the block size to 512chdev -l rmt0 -a ret=no To avoid tape retensionrmdev -l rmt0 To remove the device rmt0rmdev -d -l rmt0 To remove the device totally fromdatabasermdev -l rmt0 -S To change the state of the devicestoppedlsparent -C -k rs232 To display possible parent devices whichaccept rs232 deviceslsparent -C -l hdisk0 To display parent devices which accept childdevice hdisk0lsattr -Dl rmt0 To see the default values of the device rmt0lsattr -El rmt0 To see the current values of the device rmt0lsattr -El tty0 -a login -R To see all possible values of thelogin attribute of tty0lsconn -p scsi0 To list all possible connection scsi0 canacceptlvlstmajor To list the available major numbersmknod /dev/null c 2 2 Create null device with major (2) and minor(2) nos. (c - char device)

Console emulation commands

lscons To list the current consolelscons -b To list the console at next bootchcons /dev/tty3 To change the console to tty3chcons -a login=enable /dev/tty3 Redirect console to tty3 and provide

login promptswcons /dev/tty3 To change system console to tty3temporarily

Page 7: All AIX Commands

Installation specific commands

lslpp -l To see the details of installed filesetslslpp -ha bos.net.* To list the installation history of all file

set in bos.net packageslslpp -f bos.rte To list the files in the bos.rte packagelslpp -w /etc/hosts To list the file set which contain

/etc/hosts filelslpp -p bos.net.nfs.server To list the pre requisites for

bos.net.nfs.server file setinstallp -L -d /dev/rmt0.1 To list the installable products on

the device rmt0installp -aX -d /dev/rmt0.1 bos.net To install all filesets within

bos.net and expands file system if it requiresinstallp -u bos.net To remove bos.netinstallp -r To reject the applied softwareinstallp -c -f <product> To commit the <product>installp -C To cleanup an incomplete installationlppchk -c <product> To check the <product>instfix -k IX9999 -d /dev/rmt0.1 To install the file set associatedwith fix IX9999 from rmt0instfix -ik IX9999 To verify fix IX9999 installed

Network related commands

host 193.9.200.1 Resolves ip to host name (from/etc/hosts file)host ibm Resolve ibm to ip address (from

/etc/hosts file)hostname ibm To change the host name to ibmentstat en0 To the status of ethernet device en0entstat -d en0 To list the detailed status of device en0no -a To list all net configurable attributes and

their valuesno -d thewall To change thewall parameter to its defaultvalueno -o ipforwarding=1 To make the machine as router in tcpip

networkstraceroute ibm To trace the route to ibmping ibm To tcp ping to the machine ibmifconfig -a To show the status of all network interfaces

ifconfig en0 To show the status of en0

Page 8: All AIX Commands

ifconfig en0 up Turns on network card en0ifconfig en0 down Turns off network card en0ifconfig en0 detach Removes en0 card from the network interface

list ifconfig en0 inet 194.35.52.1 netmask 255.255.255.0 up

Configure en0 starts immediatelyifconfig en0 alias 195.60.60.1 Create alias ip address for en0 route add 0 192.100.13.7 To make 192.100.13.7 as default

gateway for entire networkroute add 192.100.12.0 192.100.13.7 To make 13.7 as gateway for 12.0networkroute -f To clear the gateway tablechdev -l inet0 -a hostname=si To change the host name to si permanentlynetstat -a To show the state of all socketsnetstat -c To show the network buffers cachenetstat -D To show the net drops of packetsnetstat -i To display interface statisticsnetstat -r To show the routing tablenetstat -rn To show routing table (ip will be giveninstead of host names)netstat -s To show the statistics of the protocolsnetstat -s -p < tcp/udp/ipv6> To show the statistics of respectiveprotocols

Space usage commands

du -k To list number of bytes in 1k blocksdu -l To list number of bytes in 512 bytes blocksdu -s To list only the total disk usage in the

current directorydf -i To display no of free and used inodesdf -k To display diskspace in 1024 bytes format

Backup commands

mksysb -i -X /dev/rmt0 Creates image.data and system backup (-Xexpands /tmp if required)

mksysb -m /dev/rmt0 Creates image.data file with map file andsystem backup

mksysb -e /dev/rmt0 Creates system data but excludes the files

Page 9: All AIX Commands

listed in /etc/exclude.rootvgmkszfile Creates /image.data filemkcd -d /dev/cd1 Creates system boot backup to the

CD-R device /dev/cd1mkcd -d /dev/cd1 -v vg00 Creates backup of vg vg00 to CD-R

device /dev/cd1mkcd -d /dev/cd1 -G Creates generic boot backupsavevg -i -f /dev/rmt0 vg00 Creates vg00.data image file and backup vg

vg00savevg -ef /dev/rmt0 vg00 Creates vg00 backup but excludes

files listed in the /etc/exclude.vg00find / -print | backup -ivf /dev/rmt0 Backup entire system to rmt0backup -0vf /dev/rmt0 /home Backup /home directory to rmt0 with backuplevel 0restore -Tvf /dev/rmt0 List the archive in rmt0restore -xvf /dev/rmt0 /home Restore /home from archive in device rmt0[restbyname -x -d -v -f /dev/rmt0 -b 100 -q ./archive]restore -xdvf /dev/rmt0 ./home/ Restore directory & sub-directory filesfind ./home -print |cpio -ocvumB > /dev/rmt0Archives /home directorycpio -icvdumB < /dev/rmt0 Restores cpio archive from rmt0cpio -ivt < /dev/rmt0 List the contents of cpio archive from rmt0cpio -icvd < /dev/rmt0 /home Restores /home directory from rmt0tar -cvf /dev/rmt0 /home Archives /home to rmt0 devicetar -tvf /dev/rmt0 List the archives in rmt0tar -xvf /dev/rmt0 /home Extract /home from rmt0dd if=si of=si1 conv=ebcdic Convert and copy ascii file si to ebcdic si1dd if=/dev/rmt0 ibs=512 obs=1024 of=/dev/rmt1

To copy blocks from rmt0 with 512 blocks tormt1 with 1024 blockstctl -f /dev/rmt0 rewind To rewind the tapetctl -f /dev/rmt0 offline To eject the tapetctl -f /dev/rmt0 status To show the status of tapechdev -l rmt0 -a block_size=512 To change the block size of the tape to 512

Print commands

qchk -q To display the default qqchk -P lp0 To display the status of the printer lp0qchk -# 123 To display the status of job number 123qchk -A To display the status of all queuesqcan -x 123 To cancel the print job 123

Page 10: All AIX Commands

qcan -X -P lp0 To cancel all jobs submitted to lp0qpri -#570 -a 25 To change the priority of the job to25qhld # 569 To hold the job 569qhld -r -#569 To remove holding from 569qmov -m lpa -#11 To move the job 11 to queue lpaenable psq To enable queue psqdisable psq To disable queue psqcancel -#111 To cancel job 111lpstat To display the status all queueslpstat -p lp0 To display the status of print queue lp0lpstat -u root To display the jobs submitted by user rootlpq -P lp0 To display the status of queue lp0

last To list all the records in the /var/adm/wtmpfilelast |grep shutdown To show the shutdown sessionsuptime (w -u ) To show how long the system has been up

Licensing commands

oslevel To list the operating system levellslicense To see the number of licensechlicense -u30 To change the fixed user license to 30chlicense -f on To enable floating user license

User commands

id To list all system identifications forcurrent userid -gn To list the default group for current userid -Gn To list all system groups for current userlsuser root To list the attribute of user rootlsuser ALL To list the attributes of all userslsuser -a HOME ALL To list the home directory of all userslsuser -a ALL To list all usernameslsuser -a auth1 auth2 ALL To list the authentication methodfor all userslsuser -a expires ALL To list expiry datelsuser -a account_locked ALL To check account lock status of all userschuser -a login=true san To enable the user san

Page 11: All AIX Commands

chuser -a rlogin=true san Enable san to login remotely mkuser si Creates user si with default values in/usr/lib/security/mkuser.defalaultmkuser su=false si Create user si without su facilityrmuser si To remove user sirmuser -p si To remove user si and his all attributeswho List users with tty nos and ip numberswho /var/adm/wtmp Lists history of login logout system startupand shutdownswho -r To list the run level who am i /who -m To list the current usermkgroup dcm To create the group dcmchgroup users=u1,u2,u3 dcm To add users u1 u2 and u3 to dcm grouprmgroup dcm To delete the group dcmchauthent To change the authentication methods

Subsystem Commands

lssrc -a To list the status of all subsystemslssrc -h node1 -a To list the status of all subsystems

on foreign host node1lssrc -s kadmind To list the status of the subsystemkadmindlssrc -g tcpip To get the status of the subsystem group tcpipmkssys To add a subsystemrmssys -s kerberos To remove the subsystem kerberoschssys -s kerb -s kad To rename the subsystem kerb to kadstartsrc -s kadmin To start the subsystem kadminstartsrc -g tcpip To start the subsystem group tcpipstopsrc -s kadmin To stop the subsystem kadminstopsrc -g tcpip To stop the subsystem group tcpiprefresh -s nfsd To refresh nfsd subsystemrefresh -g tcpip To refresh tcpip subsystem group

Scheduling commands

crontab -l To list the crontab entriescrontab -e To edit the crontab entriescrontab -l > /si To copies the entries of crontab to/si filecrontab -r To remove all crontab entriescrontab -v To list the submission time/var/adm/cron/cron.allow File containing users who allowed

Page 12: All AIX Commands

cron service/var/adm/cron/cron.deny File containing users denied cron serviceat -l To list the jobs scheduled via at commandat -r root.dfjdhjdh.21 To remove the scheduled job root.dfjdhjdh.21/var/adm/cron/at.allow File containing users who allowed at service/var/adm/cron/at.deny File containing users denied at servicebatch To run the command when the system loadpermitsatq joe To list all the jobs submitted byuser joe

SSA Commands

Lscfg –vl enclosure0 To get serial number of the enclosure and DISPLAY IDSmit ssad SSA ToolsSsaxlate –l <hdiskX or pdiskX> To convert pdisk to hdisk and vice versaSsaconn –a ssaX [ {–L} {-P}] To display disk attached to specific SSA adapterssa_format -l ssaX -b     ( Resets counter - don't do that unless battery is changed)ssa_fw_status -a ssaX     ( Shows ALL: size, expectancy, powered on and battery state )ssa_fw_status -a ssaX -l  ( Shows battery life expectancy )ssa_fw_status -a ssaX -p  ( Shows how long battery has been powered on )ssa_fw_status -a ssaX -c  ( Shows if cache is active )

ODM Commands

odmget sm_menu_optTo get the objects from class sm_menu_optodmget -q "id=licenses" sm_menu_opt

To list objects that matches query id=licenses from objectsm_menu_optodmdelete -o sm_menu_opt -q "id=licenses"

To delete the entries from class sm_menu_opt which agreesthe query id=licensesodmshow sm_menu_opt

To show the object class definitionodmdrop -o sm_menu_opt

To drop sm_menu_opt object classodmchange -o sm_menu_opt -q "id=licenses" file1

To change the attributes from file1

Page 13: All AIX Commands

Error Report Command

errpt To display complete summary of reporterrpt -a To list complete detailed reporterrpt -d H To list all hardware related errorserrpt -d S To list all software related errorserrpt -a -j 34564423 To list detailed error report of error id34564423chitab tty002:23:respawn:/usr/sbin/getty /dev/tty

To enter the entrytty002:23:respawn:/usr/sbin/getty /dev/tty in inittablssrc -g portmap To start tcpip

HACMP Commands

logs/tmp/hacmp.out Detailed event script output logged in 7 day rollinghistory/var/adm/cluster.log High level view of cluster events (No clean up onthis file)/usr/sbin/cluster/history/cluster.mmdd Day by day view of cluster events.(one file / day of month)/tmp/cm.log Clstrmgr messages/tmp/cspoc.log Output from C-SPOC commands (similar to smit.log)/tmp/emuhacmp.out Output from event emulation

rdist -b -f /etc/disfile1 To distribute the files in disfile1 to allnodes in disfile1 in binary mode

Sample entry for disfile1HOSTS = ( root@node1 root@node3 )FILES = ( /etc/passwd /etc/security/passwd)${FILES} -> ${HOSTS}

clstart -m -s -b -i -l To start cluster daemons (m-clstrmgr,s-clsmuxpd,

b-broadcast message, -i-clinfo, -lcllockd)clstop -f -N To force shutdown cluster immediatelywithout releasing resourcesclstop -g -N To do graceful shutdown immediately with notakeover

Page 14: All AIX Commands

clstop -gr -N To do graceful shutdown immediately withtakeover

cldare -t To sync the cluster toplogycldare -t -f To do the mock sync of topologycldare -r To sync the cluster resourcescldare -r -f To do the mock sync of resources

clverify cluster verification utility

cllscf To list clustur topology informationcllsclstr To list the name and security levelof the clustercllsnode To list the info about the clusternodescllsnode -i node1 To list info about node1cllsdisk -g shrg To list the PVID of the shared harddisk for resource group shrgcllsnw To list all cluster networkscllsnw -n ether1 To list the details of networkether1cllsif To list the details by network adaptercllsif -n node1_service To list the details of network adapternode1_servicecllsvg To list the shared vgs which can be accessedby all nodescllsvg -g sh1 To list the shared vgs in resource group sh1cllslv To list the shared lvs cllslv -g sh1 To list the shared lvs in the resource groupsh1cllsdisk -g sh1 To list the PVID of disks in the resourcegroup sh1cllsfs To list the shared file systems cllsfs -g sh1 To list the shared file systems in theresource group sh1cllsnim Show info about all network modulescllsnim -n ether Show info about ether network modulecllsparam -n node1 To list the runtime parameters for the nodenode1cllsserv To list all the application servers

claddclstr -i 3 -n dcm To add a cluster definition with name dcmand id 3claddnode To add an adapter

Page 15: All AIX Commands

claddnim To add network interface modulecladdgrp -g sh1 -r cascading -n n1 n2 To create resource group sh1 withnodes n1,n2 in cascadecladdserv -s ser1 -b /usr/start -e /usr/stop Creates an applicationserver ser1 with startscript as /usr/start

and stop script as /usr/stop

clchclstr -i 2 -n dcmds To change cluster definitions nameto dcmds and id to 2clchclstr -s enhanced To change the clustur security to enhancedclchnode To change the adapter parametersclchgrp To change the resource group name or noderelationshipclchparam To change the run time parameters (likeverbose logging)clchserv To change the name of app. server orchange the start/end scripts

clrmclstr To remove the cluster definitionclrmgrp -g sh1 To delete the resource group sh1 and relatedresourcesclrmnim ether To remove the network interface module etherclrmnode -n node1 To remove the node node1clrmnode -a node1_svc To remove the adapter named node1_svcclrmres -g sh1 To remove all resources from resource groupsh1clrmserv app1 To remove the application server app1clrmserv ALL To remove all applicaion servers

clgetactivenodes -n node1 To list the nodes with activecluster manager processes from cluster

manager on node node1clgetaddr node1 returns a pingable address from node node1clgetgrp -g sh1 To list the info about resource group sh1clgetgrp -g sh1 -f nodes To list the participating nodes inthe resource group sh1clgetif To list interface name/interface devicename/netmask associated with

a specified ip label / ip address of aspecific nodeclgetip sh1 To get the ip label associated to theresource groupclgetnet 193.9.200.2 255.255.255.0 To list the network for ip193.9.200.2, netmask 255.255.255.0

Page 16: All AIX Commands

clgetvg -l nodelv To list the VG of LV nodelv

cllistlogs To list the logs

clnodename -a node5 To add node5 to the clusterclnodename -o node5 -n node3 To change the cluster node name node5 tonode3

clshowres Lists resources defined for all resourcegroupclfindres To find the resource group within acluster

xclconfig X utility for cluster configurationxhacmpm X utility for hacmp managementxclstat X utility for cluster status

SP Commands

Daemons

hats Topology services hatsd (/usr/sbin/rsct/bin/hatsctrl script)hags Group services hagsd(/usr/sbin/rsct/bin/hagsctrl script)haem Event management haemd(/usr/sbin/rsct/bin/haemctrl script)hr Host responds hrd(/usr/sbin/rsct/bin/hrctrl script)pman Problem management pmand,pmanrmd(/usr/sbin/rsct/bin/pmanctrl script)

kadmind The authentication database daemon for password changing andadministration tools

Listens port 751. It checks acl filesadmin.acl.(get,mod,add) in /var/kerberos/database

/.k file for master key and/var/kerberos/databse/pricipal.pag, pricipal.dir for authentication

database.kerberos Daemon that provides authentication services &

Page 17: All AIX Commands

ticket granting ticket for clients.kpropd Daemon to receive update for a secondary database serverhardmon Daemon that monitors and controls the state of SP hardware

It checks acl file /spdata/sys1/spmon/hmacls

install_cw To complete PSSP installation on cws(Installs PSSP programs for SMIT panelsStarts and configures SDRSets node number 0 for cws in ODMCreates hmacls file with rood.admin entry in

Starts and configure PSSP daemonsConfigures default partition)setup_authent To setup workstation as SP authenticationserver

(Creates /etc/krb.conf, /etc/krb.realmsfiles

Creates authentication database usingkdb_edit command

Create master key file /.k using kstashcommand

Adds kadmin and kerberos to inittab file andstarts them

Define initial auth. admin (eg:- root.admin)using kdb_edit command

Creates Kerberos ACLS (admin_acl.get,mod,addfiles)

Execute kinit for root.admin and createslocal service principals

(hardmon.cws, rcmd.cws)Creates /.klogin file and add admin

principal to itCreates /etc/krb-srvtab file using

ext_srvtab command)

setup_server To setup CWS as BIS

splst_versions -G -t To check the PSSP versions in all nodesspmon_ctest To verify system monitor configured properlyspmon_itest To verify system monitor installed properly& operationalSYSMAN_test To verify the system management componentCSS_test To verify communication subsystem

Page 18: All AIX Commands

SDR_test -l si To verify SDR and logs the errors in file siSDRListClasses To list the class name in the SDRSDRArchive si To backup SDR in the directory/spdata/sys1/sdr/archives with namebackup.<year><Julian day>.<hour><minute>.sisprestore_config backup.<year><Julian day>.<hour><minute>.si

To restore SDR and partion sensitivesubsystemsSDRGetObjects Syspar To get the system partition infoSDRGetObjects syspar_map To get the system partition map (with nodeinfo)SDRGetObjects Adapter node_number netaddr

To get the node number and net address inthe Adapter classSDRDeleteObjects Adapter netaddr==193.9.200.227

To delete class Adapter with netaddr value193.9.200.227SDRChangeAttrValues Node node_number==9 bootp_response==install

To change the boot response as install onnode with node number 9SDRWhoHasLock <class_name> Returns the transaction ID of a lock on aspecified classSDRClearLock <class_name> To unlock an SDR class

syspar_ctrl -G -A To add and restart all systempartition sub systems syspar_ctrl -G -D To stop and delete all systempartition sub systemssyspar_ctrl -R To restore all system partition sub systemsin current partitionsyspar_ctrl -E To list all system partition sub systemssyspar_ctrl -s To start all system partition sub systems incurrent partitionsyspar_ctrl -k To stop all system partition sub systems incurrent partitionsyspar_ctrl -r To refresh all system partition sub systemsin current partition

ngcreate -s 1:1 si To create node groupsi with 1st node in 1st framengcreate -n 1 2 3 si To create node group si with 1st 2nd and 3rdnodesngcreate -N ng1,ng2 si To create node group si with node groups ng1

Page 19: All AIX Commands

and ng2ngcreate -w n1,n2 si To create node group si with host name n1and n2ngcreate -ae n1,n2 si To create node group si with all nodes inthe current partition

excluding hosts n1 and n2

nglist To list node groups in current partitionnglist -G To list node groups globallyngfind si To find all node groups whichcontain node group singnew si1 si2 si3 To create 3 node groups with namessi1 si2 and si3ngnew -G si1 si2 si3 To create 3 node groups globally with namessi1 si2 and si3ngresolve -G -n si To resolve the nodes in the node group si asnode numbers

with global optionngresolve -w si To resolve the nodes in the nodegroup si as fully qualified

host namengresolve -d si To resolve the nodes in the node group si asfully qualified

ip addressngdelete si si1 To remove node groups si and si1ngdelete -u si To remove node group si but leave entries inother node groups

which is having the entries in itngclean -Ga To clean up all node groupsngaddto si 1 2 To add nodes 1 and 2 to the existing nodegroup singaddto si 1 2 ng1 To add nodes 1,2 and node group ng1 to nodegroup singdelfrom si 1 2 To remove nodes 1 and 2 from nodegroup singdelfrom si 1 2 ng1 To remove nodes 1, 2 and node group ng1 fromnode group si

spled -G To display leds of nodes in a multipartition systemspled or spmon -L To display leds of nodes in the currentpartionEx: #spmon -L node38

spmon -p off frame2/node3 To power off node3 in frame 2

Page 20: All AIX Commands

spmon -p on frame2/node3 To power on node 3 in frame 2Ex:#spmon -reset node38

spmon -G -p on frame2/node3 To power on node3/frame 2 if it is outsidecurrent partitionspmon -k service /frame2/node3 To change the key settings to servicespmon -p off frame1 To power off frame1spmon -K frame1/node1 To see the key settings of frame1/node1spmon -reset frame1/node1 To resetspmon -open frame1/node1 To open a tty on frame1/node1==(s1term -w 11)spmon -d To run the diag in the current partition spmon -G -d To run the diag globallyspbootins -r [(disk) (maintenance) (diag) (customize)] -l <node number>Ex: #spbootins -r maintenance -l 38NOTE: After the task is completed run spbootins -r disk -l <node number>

hmmon -V 1:1 Displays a descriptive list of symbolicvariable nameshmmon -Q -s 1:1 Displays the state of node1 in frame 1 andexistshmmon -q -s 1:1 Displays and monitors continuously

hmreinit To stop and restart hardmon

hmcmds -G off all To power off all hardwarehmcmds -G off 1:3 To power off slot 3 in frame 1hmcmds -G on 1:3 To power on slot 3 in frame 1hmcmds -v -G boot_supervisor 1:1 To reset the power ofnode_supervisor card on slot 1 frame 1

(Use full to close the opened ttys on nodes)hmcmds secure l 1-3:2 To change the key in secure mode for slot 2in frame 1 2 and 3hmcmds -v synch_reset Perform sync reset. To clear the switcherrorshmcmds -v power_on_reset Perform sync reset and do self test ofswitch chips

cstartup -G all To startup all nodes globallycstartup -N 1 2 4-8 To startup nodes 1,2 and 4 to 8cstartup -g si To startup node group sicstartup -GZ all To startup all nodes. With Z it willrestart the nodes which are already

running (otherwise command will exit)cstartup -k all To verify the startup with sequence file

Page 21: All AIX Commands

(StartSeq)cstartup -E all To startup all nodes ignoring the sequencefile

cshutdown -F node1 To shutdown node1 immediatelycshutdown -h node1 To halt the node node1cshutdown -g si To shutdown the nodes in the node group sicshutdown -G -N 1 3 4-7 To shutdown nodes 1 3 and 4 to 7 regardlesspartitioncshutdown -X -N 1 2 3 To shutdown nodes 1 2 and 3 ignoringsequence file

hostlist -av To list sp host name which is activehostlist -avd