Sunteți pe pagina 1din 21

CONTENTS

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

VG COMMANDS
lsvg lsvg -o lsvg rootvg lsvg -l rootvg lsvg -o |lsvg -il VGs lsvg -p rootvg mkvg -s 8 hdisk1 with partition size 8MB mkvg -s 8 -y sivg hdisk1 with partition size 8MB mkvg -s 4 -t 2 -y sivg hdisk1 of partions 2 * 1016 chvg -a y newvg startup chvg -a n newvg startup chvg -t 2 newvg newvg chvg -Q n newvg reorgvg newvg extendvg newvg hdisk3 hdisk4 exportvg newvg importvg -V 44 -y newvg hdisk2 assign major number 44 redcucevg newvg hdisk3 varyoffvg newvg varyonvg newvg syncvg -v sivg mirrorvg -S -m sivg hdisk2 exact mirror, -S forbackground mirror) unmirrorvg sivg hdisk2 Display all VGs Display all active VGs Display info about rootvg Display info about all LVs in rootvg Display info about all LVs in all Display info about all PVs in rootvg Create VG with name vgxx on hdisk1 Create VG with name sivg on hdisk1 Create sivg on hdisk1 with PP size 4 and no To cause VG newvg automatically activated at To deactivate the automatic activation at To change maximum no. of PP to 2032 on vg To disable quorum on VG newvg Reorganises PP allocation of VG newvg Add PV hdisk3 and hdisk4 to VG newvg Exports the VG newvg Import the hdisk2 with name newvg, and Remove PV hdisk3 from VG newvg To deactviate VG newvg To activate VG newvg To sync the mirrored LV in the VG sivg To mirror LVs of sivg with hdisk2 (-m for To remove the mirrored PV from the set.

FS COMMANDS
lsfs lsfs -q lsfs -a Lists all filesystems in the /etc/filesystems entry List all filesystems with detailed info To list all filesystems (default)

lsfs -l Specify the output in list format lsfs -c Specify the output in column format lsfs -v jfs Lists all jfs filesystems chfs -a size=24576 /si Change size of FS /si to 24576 x 512 bytes blocks (12 MB) chfs -a size=+24576 /si Add 24576 x 512 byte blocks to FS /si chfs -m /si /bi Change the mount point from /si to /bi chfs -A /si To auto mount the filesystem si chfs -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 of mirrored filesystem oracle to /backup in read-only mode crfs -v jfs -g testvg -a size=64465 -m /siju Creates FS /siju of type jfs in VG testvg of blocksize 64465 crfs -v jfs -d /dev/lv00 -m /siju Create FS /siju of type jfs on device /dev/lv00 rmfs /siju Deletes FS /siju and associated LV rmfs -r /siju Deletes FS /siju its mount point and associated LV defragfs /sifs To defragment the file system /sifs defragfs -q /sifs Display the current defrag status of the file system fsck -y n /dev/lv00 To fsck the filesystem associated to /dev/lv00 assuming response "yes" fsck -p /dev/lv00 To restore superblock from backup superblock

PV COMMANDS
lspv hdisk0 lspv -p hdisk0 lspv -l hdisk0 chpv -v r hdisk1 without varyon) chpv -v a hdisk1 chpv -c hdisk0 hdisk0 migratepv hdisk1 hdisk2 migratepv -l silv hdisk1 hdisk2 Display status and characteristics of the PV Display PP usage of hdisk0 To list all logical volumes on PV hdisk0 Close the PV (Used while removing PV Open the PV Clear the master boot record on PV To move PPs from PV hdisk1 to hdisk2 To migrate LV silv from PV hdisk1 to hdisk2

LV COMMANDS
lslv -l lv00 lslv -p hdisk1 chlv -t copy lv00 chlv -p r lv00 rmlv silv rmlv -f silv mklv -s n -c 3 silv hdisk1 on hdisk1 extendlv silv 5 mklvcopy -s n lvsi 2 hdisk1 mklvcopy lvsi 3 hdisk1 hdisk2 with 3 copies rmlvcopy lvsi 2 hdisk1 mklv -t jfslog -y log00 newvg 2 logform /dev/log00 Display info about LV by PV Display LV allocation map for hdisk1 To change the lv00 to copy type To change the lv00 to readonly mode To remove silv To remove silv without user intervention To make LV silv with three copies To extend the LV silv with 5 LPs To mirror LV lvsi on same PV with 2 copies To mirror LV lvsi on PV hdisk1 and hdisk2 Will remove one copy of LV lsvi from hdisk1 To create a jfslog with name log00 on VG newvg with 2LPs 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 mode bootlist -m service -o To see the boot sequence in service mode bootlist -m normal cd0 hdisk0 To change boot sequence to cd0,hdisk0 in normal mode bootlist -m service cd0 rmt0 hdisk0 To change boot sequence to cd0,rmt0,hdisk0 in service mode bosboot -ad /dev/hdisk1 To create boot image on PV hdisk1 mkboot -cd /dev/hdisk1 To clear the boot image bootinfo -b Specifies the bootable disk bootinfo - t Specifies the type of boot bootinfo -e Check the machine can boot from tape bootinfo -T To see the machine type bootinfo -s hdisk0 To see the size of hdisk0 bootinfo -r To see the size of memory

PAGE SPACE COMMANDS


lsps -a lsps hd6 space hd6 chps -a y paging00 chps -a n paging00 chps -s4 paging00 4 LP blocks mkps -a -n -s4 sivg rmps paging00 swapon -a file swapon /dev/paging00 To list out all paging spaces To display the details of the paging To turn on the paging space paging00 To turn off the paging space paging00 To increase the size of the paging space in To create a paging space on VG sivg of 4 LP size (-s4) and activate it immediately (-n) and activate it at every restarts To remove the paging space paging00 To invoke all entries in /etc/swapspaces To make available swap space paging00

SYSTEM DUMP COMMANDS


sysdumpdev -l sysdumpdev -L sysdumpstart -p sysdumpstart -s sysdumpdev -p /dev/lv00 sysdumpdev -P -p /dev/lv00 permanently sysdumpdev -s /dev/rmt0 sysdumpdev -z List the current dump destination List the details of the previous dump Starts dump in the primary dump device Starts dump in the secondary dump device To make lv00 as primary dump device To make lv00 as primary dump device To make rmt0 as secondary dump device To determine a new system dump occurred

Device related commands


cfgmgr software in system cfgmgr -l vscsi0 connected to the vscsi0 interface lscfg product definition info lscfg -l mem0 lscfg -l ent* lscfg -v To configure devices and installs device To configure the components To display config, diagnostics and vital Display info about device mem0 Display info about all Ethernet cards Display vpd

lscfg -v -l hdisk0 mkdev -l rmt0 lsdev -P lsdev -P -c disk lsdev -P -r class lsdev -P -r subclass lsdev -C lsdev -C -l mem0 chdev -l sys0 -a maxproc=100 chdev -l rmt0 -a blocksize=512 chdev -l rmt0 -a ret=no rmdev -l rmt0 rmdev -d -l rmt0 database rmdev -l rmt0 -S stopped lsparent -C -k rs232 accept rs232 devices lsparent -C -l hdisk0 device hdisk0 lsattr -Dl rmt0 rmt0 lsattr -El rmt0 rmt0 lsattr -El tty0 -a login -R login attribute of tty0 lsconn -p scsi0 accept lvlstmajor mknod /dev/null c 2 2 minor (2) nos. (c - char device)

Display vpd of hdisk0 To change device rmt0 from defined state to available state To lists all supported devices To list all supported disks To display supported class To display all sub class To lists all configured devices To display the properties of mem0 To change default maxproc value to 100 To change the block size to 512 To avoid tape retension To remove the device rmt0 To remove the device totally from To change the state of the device To display possible parent devices which To display parent devices which accept child To see the default values of the device To see the current values of the device To see all possible values of the To list all possible connection scsi0 can To list the available major numbers Create null device with major (2) and

Console emulation commands


lscons lscons -b chcons /dev/tty3 chcons -a login=enable /dev/tty3 swcons /dev/tty3 temporarily To list the current console To list the console at next boot To change the console to tty3 Redirect console to tty3 and provide login prompt To change system console to tty3

Installation specific commands


lslpp -l lslpp -ha bos.net.* To see the details of installed filesets To list the installation history of all file set in bos.net packages lslpp -f bos.rte To list the files in the bos.rte package lslpp -w /etc/hosts To list the file set which contain /etc/hosts file lslpp -p bos.net.nfs.server To list the pre requisites for bos.net.nfs.server file set installp -L -d /dev/rmt0.1 To list the installable products on the device rmt0 installp -aX -d /dev/rmt0.1 bos.net To install all filesets within bos.net and expands file system if it requires installp -u bos.net To remove bos.net installp -r To reject the applied software installp -c -f <product> To commit the <product> installp -C To cleanup an incomplete installation lppchk -c <product> To check the <product> instfix -k IX9999 -d /dev/rmt0.1 To install the file set associated with fix IX9999 from rmt0 instfix -ik IX9999 To verify fix IX9999 installed

Network related commands


host 193.9.200.1 /etc/hosts file) host ibm hostname ibm entstat en0 entstat -d en0 no -a no -d thewall value no -o ipforwarding=1 traceroute ibm ping ibm ifconfig -a ifconfig en0 Resolves ip to host name (from Resolve ibm to ip address (from /etc/hosts file) To change the host name to ibm To the status of ethernet device en0 To list the detailed status of device en0 To list all net configurable attributes and their values To change thewall parameter to its default To make the machine as router in tcpip networks To trace the route to ibm To tcp ping to the machine ibm To show the status of all network interfaces To show the status of en0

ifconfig en0 up ifconfig en0 down ifconfig en0 detach

Turns on network card en0 Turns off network card en0 Removes en0 card from the network interface list ifconfig en0 inet 194.35.52.1 netmask 255.255.255.0 up Configure en0 starts immediately ifconfig 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 network route add 192.100.12.0 192.100.13.7 To make 13.7 as gateway for 12.0 network route -f To clear the gateway table chdev -l inet0 -a hostname=si To change the host name to si permanently netstat -a To show the state of all sockets netstat -c To show the network buffers cache netstat -D To show the net drops of packets netstat -i To display interface statistics netstat -r To show the routing table netstat -rn To show routing table (ip will be given instead of host names) netstat -s To show the statistics of the protocols netstat -s -p < tcp/udp/ipv6> To show the statistics of respective protocols

Space usage commands


du -k du -l du -s df -i df -k To list number of bytes in 1k blocks To list number of bytes in 512 bytes blocks To list only the total disk usage in the current directory To display no of free and used inodes To display diskspace in 1024 bytes format

Backup commands
mksysb -i -X /dev/rmt0 mksysb -m /dev/rmt0 mksysb -e /dev/rmt0 Creates image.data and system backup (-X expands /tmp if required) Creates image.data file with map file and system backup Creates system data but excludes the files

listed in /etc/exclude.rootvg mkszfile Creates /image.data file mkcd -d /dev/cd1 Creates system boot backup to the CD-R device /dev/cd1 mkcd -d /dev/cd1 -v vg00 Creates backup of vg vg00 to CD-R device /dev/cd1 mkcd -d /dev/cd1 -G Creates generic boot backup savevg -i -f /dev/rmt0 vg00 Creates vg00.data image file and backup vg vg00 savevg -ef /dev/rmt0 vg00 Creates vg00 backup but excludes files listed in the /etc/exclude.vg00 find / -print | backup -ivf /dev/rmt0 Backup entire system to rmt0 backup -0vf /dev/rmt0 /home Backup /home directory to rmt0 with backup level 0 restore -Tvf /dev/rmt0 List the archive in rmt0 restore -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 files find ./home -print |cpio -ocvumB > /dev/rmt0 Archives /home directory cpio -icvdumB < /dev/rmt0 Restores cpio archive from rmt0 cpio -ivt < /dev/rmt0 List the contents of cpio archive from rmt0 cpio -icvd < /dev/rmt0 /home Restores /home directory from rmt0 tar -cvf /dev/rmt0 /home Archives /home to rmt0 device tar -tvf /dev/rmt0 List the archives in rmt0 tar -xvf /dev/rmt0 /home Extract /home from rmt0 dd if=si of=si1 conv=ebcdic Convert and copy ascii file si to ebcdic si1 dd if=/dev/rmt0 ibs=512 obs=1024 of=/dev/rmt1 To copy blocks from rmt0 with 512 blocks to rmt1 with 1024 blocks tctl -f /dev/rmt0 rewind To rewind the tape tctl -f /dev/rmt0 offline To eject the tape tctl -f /dev/rmt0 status To show the status of tape chdev -l rmt0 -a block_size=512 To change the block size of the tape to 512

Print commands
qchk -q qchk -P lp0 qchk -# 123 qchk -A qcan -x 123 To display the default q To display the status of the printer lp0 To display the status of job number 123 To display the status of all queues To cancel the print job 123

qcan -X -P lp0 qpri -#570 -a 25 25 qhld # 569 qhld -r -#569 qmov -m lpa -#11 enable psq disable psq cancel -#111 lpstat lpstat -p lp0 lpstat -u root lpq -P lp0 last file last |grep shutdown uptime (w -u )

To cancel all jobs submitted to lp0 To change the priority of the job to To hold the job 569 To remove holding from 569 To move the job 11 to queue lpa To enable queue psq To disable queue psq To cancel job 111 To display the status all queues To display the status of print queue lp0 To display the jobs submitted by user root To display the status of queue lp0 To list all the records in the /var/adm/wtmp To show the shutdown sessions To show how long the system has been up

Licensing commands
oslevel lslicense chlicense -u30 chlicense -f on To list the operating system level To see the number of license To change the fixed user license to 30 To enable floating user license

User commands
id current user id -gn id -Gn lsuser root lsuser ALL lsuser -a HOME ALL lsuser -a ALL lsuser -a auth1 auth2 ALL for all users lsuser -a expires ALL lsuser -a account_locked ALL chuser -a login=true san To list all system identifications for To list the default group for current user To list all system groups for current user To list the attribute of user root To list the attributes of all users To list the home directory of all users To list all usernames To list the authentication method To list expiry date To check account lock status of all users To enable the user san

chuser -a rlogin=true san mkuser si /usr/lib/security/mkuser.defalault mkuser su=false si rmuser si rmuser -p si who who /var/adm/wtmp and shutdowns who -r who am i /who -m mkgroup dcm chgroup users=u1,u2,u3 dcm rmgroup dcm chauthent

Enable san to login remotely Creates user si with default values in Create user si without su facility To remove user si To remove user si and his all attributes List users with tty nos and ip numbers Lists history of login logout system startup To list the run level To list the current user To create the group dcm To add users u1 u2 and u3 to dcm group To delete the group dcm To change the authentication methods

Subsystem Commands
lssrc -a lssrc -h node1 -a lssrc -s kadmind kadmind lssrc -g tcpip mkssys rmssys -s kerberos chssys -s kerb -s kad startsrc -s kadmin startsrc -g tcpip stopsrc -s kadmin stopsrc -g tcpip refresh -s nfsd refresh -g tcpip To list the status of all subsystems To list the status of all subsystems on foreign host node1 To list the status of the subsystem To get the status of the subsystem group tcpip To add a subsystem To remove the subsystem kerberos To rename the subsystem kerb to kad To start the subsystem kadmin To start the subsystem group tcpip To stop the subsystem kadmin To stop the subsystem group tcpip To refresh nfsd subsystem To refresh tcpip subsystem group

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

cron service /var/adm/cron/cron.deny at -l at -r root.dfjdhjdh.21 /var/adm/cron/at.allow /var/adm/cron/at.deny batch permits atq joe user joe

File containing users denied cron service To list the jobs scheduled via at command To remove the scheduled job root.dfjdhjdh.21 File containing users who allowed at service File containing users denied at service To run the command when the system load To list all the jobs submitted by

SSA Commands
Lscfg vl enclosure0 To get serial number of the enclosure and DISPLAY ID Smit ssad SSA Tools Ssaxlate l <hdiskX or pdiskX> To convert pdisk to hdisk and vice versa Ssaconn a ssaX [ {L} {-P}] To display disk attached to specific SSA adapter ssa_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_opt To get the objects from class sm_menu_opt odmget -q "id=licenses" sm_menu_opt To list objects that matches query id=licenses from object sm_menu_opt odmdelete -o sm_menu_opt -q "id=licenses" To delete the entries from class sm_menu_opt which agrees the query id=licenses odmshow sm_menu_opt To show the object class definition odmdrop -o sm_menu_opt To drop sm_menu_opt object class odmchange -o sm_menu_opt -q "id=licenses" file1 To change the attributes from file1

Error Report Command


errpt To display complete summary of report errpt -a To list complete detailed report errpt -d H To list all hardware related errors errpt -d S To list all software related errors errpt -a -j 34564423 To list detailed error report of error id 34564423 chitab tty002:23:respawn:/usr/sbin/getty /dev/tty To enter the entry tty002:23:respawn:/usr/sbin/getty /dev/tty in inittab lssrc -g portmap To start tcpip

HACMP Commands
logs /tmp/hacmp.out Detailed event script output logged in 7 day rolling history /var/adm/cluster.log High level view of cluster events (No clean up on this 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 all nodes in disfile1 in binary mode Sample entry for disfile1 HOSTS = ( root@node1 root@node3 ) FILES = ( /etc/passwd /etc/security/passwd) ${FILES} -> ${HOSTS} clstart -m -s -b -i -l s-clsmuxpd, To start cluster daemons (m-clstrmgr, b-broadcast message, -i-clinfo, -l cllockd) clstop -f -N To force shutdown cluster immediately without releasing resources clstop -g -N To do graceful shutdown immediately with no takeover

clstop -gr -N takeover cldare -t cldare -t -f cldare -r cldare -r -f clverify

To do graceful shutdown immediately with To sync the cluster toplogy To do the mock sync of topology To sync the cluster resources To do the mock sync of resources cluster verification utility

cllscf To list clustur topology information cllsclstr To list the name and security level of the cluster cllsnode To list the info about the cluster nodes cllsnode -i node1 To list info about node1 cllsdisk -g shrg To list the PVID of the shared hard disk for resource group shrg cllsnw To list all cluster networks cllsnw -n ether1 To list the details of network ether1 cllsif To list the details by network adapter cllsif -n node1_service To list the details of network adapter node1_service cllsvg To list the shared vgs which can be accessed by all nodes cllsvg -g sh1 To list the shared vgs in resource group sh1 cllslv To list the shared lvs cllslv -g sh1 To list the shared lvs in the resource group sh1 cllsdisk -g sh1 To list the PVID of disks in the resource group sh1 cllsfs To list the shared file systems cllsfs -g sh1 To list the shared file systems in the resource group sh1 cllsnim Show info about all network modules cllsnim -n ether Show info about ether network module cllsparam -n node1 To list the runtime parameters for the node node1 cllsserv To list all the application servers claddclstr -i 3 -n dcm and id 3 claddnode To add a cluster definition with name dcm To add an adapter

claddnim To add network interface module claddgrp -g sh1 -r cascading -n n1 n2 To create resource group sh1 with nodes n1,n2 in cascade claddserv -s ser1 -b /usr/start -e /usr/stop Creates an application server ser1 with startscript as /usr/start and stop script as /usr/stop

clchclstr -i 2 -n dcmds To change cluster definitions name to dcmds and id to 2 clchclstr -s enhanced To change the clustur security to enhanced clchnode To change the adapter parameters clchgrp To change the resource group name or node relationship clchparam To change the run time parameters (like verbose logging) clchserv To change the name of app. server or change the start/end scripts clrmclstr clrmgrp -g sh1 resources clrmnim ether clrmnode -n node1 clrmnode -a node1_svc clrmres -g sh1 sh1 clrmserv app1 clrmserv ALL To remove the cluster definition To delete the resource group sh1 and related To remove the network interface module ether To remove the node node1 To remove the adapter named node1_svc To remove all resources from resource group To remove the application server app1 To remove all applicaion servers

clgetactivenodes -n node1 To 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 To list the info about resource group sh1 clgetgrp -g sh1 -f nodes To list the participating nodes in the resource group sh1 clgetif To list interface name/interface device name/netmask associated with a specified ip label / ip address of a specific node clgetip sh1 To get the ip label associated to the resource group clgetnet 193.9.200.2 255.255.255.0 To list the network for ip 193.9.200.2, netmask 255.255.255.0

clgetvg -l nodelv cllistlogs clnodename -a node5 clnodename -o node5 -n node3 node3 clshowres group clfindres cluster xclconfig xhacmpm xclstat

To list the VG of LV nodelv To list the logs To add node5 to the cluster To change the cluster node name node5 to

Lists resources defined for all resource To find the resource group within a X utility for cluster configuration X utility for hacmp management 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 and administration tools Listens port 751. It checks acl files admin.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 &

ticket granting ticket for clients. kpropd Daemon to receive update for a secondary database server hardmon 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 panels Starts and configures SDR Sets node number 0 for cws in ODM Creates hmacls file with rood.admin entry in

Starts and configure PSSP daemons Configures default partition) setup_authent To setup workstation as SP authentication server (Creates /etc/krb.conf, /etc/krb.realms files Creates authentication database using kdb_edit command Create master key file /.k using kstash command Adds kadmin and kerberos to inittab file and starts them Define initial auth. admin (eg:- root.admin) using kdb_edit command Creates Kerberos ACLS (admin_acl.get,mod,add files) Execute kinit for root.admin and creates local service principals (hardmon.cws, rcmd.cws) Creates /.klogin file and add admin principal to it Creates /etc/krb-srvtab file using ext_srvtab command) setup_server splst_versions -G -t spmon_ctest spmon_itest & operational SYSMAN_test CSS_test To setup CWS as BIS To check the PSSP versions in all nodes To verify system monitor configured properly To verify system monitor installed properly To verify the system management component To verify communication subsystem

SDR_test -l si To verify SDR and logs the errors in file si SDRListClasses To list the class name in the SDR SDRArchive si To backup SDR in the directory /spdata/sys1/sdr/archives with name backup.<year><Julian day>.<hour><minute>.si sprestore_config backup.<year><Julian day>.<hour><minute>.si To restore SDR and partion sensitive subsystems SDRGetObjects Syspar To get the system partition info SDRGetObjects syspar_map To get the system partition map (with node info) SDRGetObjects Adapter node_number netaddr To get the node number and net address in the Adapter class SDRDeleteObjects Adapter netaddr==193.9.200.227 To delete class Adapter with netaddr value 193.9.200.227 SDRChangeAttrValues Node node_number==9 bootp_response==install To change the boot response as install on node with node number 9 SDRWhoHasLock <class_name> Returns the transaction ID of a lock on a specified class SDRClearLock <class_name> To unlock an SDR class syspar_ctrl -G -A partition sub systems syspar_ctrl -G -D partition sub systems syspar_ctrl -R in current partition syspar_ctrl -E syspar_ctrl -s current partition syspar_ctrl -k current partition syspar_ctrl -r in current partition To add and restart all system To stop and delete all system To restore all system partition sub systems To list all system partition sub systems To start all system partition sub systems in To stop all system partition sub systems in To refresh all system partition sub systems

ngcreate -s 1:1 si To create node group si with 1st node in 1st frame ngcreate -n 1 2 3 si To create node group si with 1st 2nd and 3rd nodes ngcreate -N ng1,ng2 si To create node group si with node groups ng1

and ng2 ngcreate -w n1,n2 si and n2 ngcreate -ae n1,n2 si the current partition nglist nglist -G ngfind si contain node group si ngnew si1 si2 si3 si1 si2 and si3 ngnew -G si1 si2 si3 si1 si2 and si3 ngresolve -G -n si node numbers ngresolve -w si group si as fully qualified ngresolve -d si fully qualified ngdelete si si1 ngdelete -u si other node groups ngclean -Ga ngaddto si 1 2 group si ngaddto si 1 2 ng1 group si ngdelfrom si 1 2 group si ngdelfrom si 1 2 ng1 node group si spled -G partition system spled or spmon -L partion Ex: #spmon -L node38

To create node group si with host name n1 To create node group si with all nodes in excluding hosts n1 and n2 To list node groups in current partition To list node groups globally To find all node groups which To create 3 node groups with names To create 3 node groups globally with names To resolve the nodes in the node group si as with global option To resolve the nodes in the node host name To resolve the nodes in the node group si as ip address To remove node groups si and si1 To remove node group si but leave entries in which is having the entries in it To clean up all node groups To add nodes 1 and 2 to the existing node To add nodes 1,2 and node group ng1 to node To remove nodes 1 and 2 from node To remove nodes 1, 2 and node group ng1 from

To display leds of nodes in a multi To display leds of nodes in the current

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

spmon -p on frame2/node3 Ex:#spmon -reset node38

To power on node 3 in frame 2

spmon -G -p on frame2/node3 To power on node3/frame 2 if it is outside current partition spmon -k service /frame2/node3 To change the key settings to service spmon -p off frame1 To power off frame1 spmon -K frame1/node1 To see the key settings of frame1/node1 spmon -reset frame1/node1 To reset spmon -open frame1/node1 To open a tty on frame1/node1==(s1term -w 1 1) spmon -d To run the diag in the current partition spmon -G -d To run the diag globally spbootins -r [(disk) (maintenance) (diag) (customize)] -l <node number> Ex: #spbootins -r maintenance -l 38 NOTE: After the task is completed run spbootins -r disk -l <node number> hmmon -V 1:1 variable names hmmon -Q -s 1:1 exists hmmon -q -s 1:1 hmreinit Displays a descriptive list of symbolic Displays the state of node1 in frame 1 and Displays and monitors continuously To stop and restart hardmon

hmcmds -G off all To power off all hardware hmcmds -G off 1:3 To power off slot 3 in frame 1 hmcmds -G on 1:3 To power on slot 3 in frame 1 hmcmds -v -G boot_supervisor 1:1 To reset the power of node_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 2 in frame 1 2 and 3 hmcmds -v synch_reset Perform sync reset. To clear the switch errors hmcmds -v power_on_reset Perform sync reset and do self test of switch chips cstartup -G all To startup all nodes globally cstartup -N 1 2 4-8 To startup nodes 1,2 and 4 to 8 cstartup -g si To startup node group si cstartup -GZ all To startup all nodes. With Z it will restart the nodes which are already running (otherwise command will exit) cstartup -k all To verify the startup with sequence file

(StartSeq) cstartup -E all file cshutdown -F node1 cshutdown -h node1 cshutdown -g si cshutdown -G -N 1 3 4-7 partition cshutdown -X -N 1 2 3 sequence file hostlist -av hostlist -avd

To startup all nodes ignoring the sequence

To shutdown node1 immediately To halt the node node1 To shutdown the nodes in the node group si To shutdown nodes 1 3 and 4 to 7 regardless To shutdown nodes 1 2 and 3 ignoring

To list sp host name which is active

S-ar putea să vă placă și