aix cmds

 Books - Non-fiction

 21 views
of 36
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Description
dgh
Share
Tags
Transcript
  COMMANDSKernelHow would I know if I am running a 32-bit kernel or 64-bit kernel?To display if the kernel is 32-bit enabled or 64-bit enabled, type:bootinfo  KHow do I know if I am running a uniprocessor kernel or a multiprocessor kernel?/unix is a symbolic link to the booted kernel. To find out what kernel mode is running, enter ls -l/unix and see what file /unix it links to. The following are the three possibleoutputs from the ls-l /unix command and their corresponding kernels:/unix -> /usr/lib/boot/unix_up # 32 bit uniprocessor kernel/unix -> /usr/lib/boot/unix_mp # 32 bit multiprocessor kernel/unix -> /usr/lib/boot/unix_64 # 64 bit multiprocessor kernelNote:AIX 5L Version 5.3 does not support a uniprocessor kernel.How can I change from one kernel mode to another?During the installation process, one of the kernels, appropriate for the AIX version and the hardwarein operation, is enabled by default. Let us use the method from the previous question and assume the32-bit kernel is enabled. Let us also assume that you want to boot it up in the64-bit kernel mode.This can be done by executing the following commands in sequence:ln -sf /usr/lib/boot/unix_64 /unixln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unixbosboot -ad /dev/hdiskxxshutdown  rThe /dev/hdiskxx directory is where the boot logical volume /dev/hd5 is located.To find out whatxx is in hdiskxx, run the following command:lslv -m hd5Note:In AIX 5.2, the 32-bit kernel is installed by default. In AIX 5.3, the 64-bit kernel is installed on 64-bit hardware and the 32-bit kernel is installed on 32-bit hardware by default.HardwareHow would I know if my machine is capable of running AIX 5L Version 5.3?AIX 5L Version 5.3 runs on all currently supported CHRP (Common Hardware ReferencePlatform)-based POWER hardware.How would I know if my machine is CHRP-based?Run the prtconf command. If it's a CHRP machine, the string chrp appears on theModelArchitecture line.How would I know if my System p machine (hardware) is 32-bit or 64-bit?To display if the hardware is 32-bit or 64-bit, type:bootinfo  yHow much real memory does my machine have?To display real memory in kilobytes (KB), type one of the following:bootinfo -rlsattr -El sys0  a realmemCan my machine run the 64-bit kernel?64-bit hardware is required to run the 64-bit kernel.What are the values of attributes for devices in my system?To list the current values of the attributes for the tape device, rmt0, type:lsattr -l rmt0  ETo list the default values of the attributes for the tape device, rmt0, type:lsattr -l rmt0  DTo list the possible values of the login attribute for the TTY device, tty0, typ  e:lsattr -l tty0 -a login  RTo display system level attributes, type:lsattr -E  l sys0How many processors does my system have?To display the number of processors on your system, type:lscfg | grep procHow many hard disks does my system have and which ones are in use?To display the number of hard disks on your system, type:LspvHow do I list information about a specific physical volume?To find details about hdisk1, for example, run the following command:lspv hdisk1How do I get a detailed configuration of my system?Type the following:LscfgThe following options provide specific information:-p Displays platform-specific device information. The flag is applicable to AIX4.2.1 or later.-v Displays the VPD (Vital Product Database) found in the customized VPD objectclass.For example, to display details about the tape drive, rmt0, type:lscfg -vl rmt0You can obtain very similar information by running the prtconf command.How do I find out the chip type, system name, node name, model number, and so forth?The uname command povides details about your system.uname -p Displays the chip type of the system. For example, PowerPC.uname -r Displays the release number of the operating system.uname -s Displays the system name. For example, AIX.uname -n Displays the name of the node.uname -a Displays the system name, nodename, version, machine ID.uname -M Displays the system model name. For example, IBM, 9114-275.uname -v Displays the operating system version.uname -m Displays the machine ID number of the hardware running the system.uname -u Displays the system ID number.AIXWhat version, release, and maintenance level of AIX is running on my system?Type one of the following:oslevel  rlslpp -h bos.rteHow can I determine which fileset updates are missing from a particular AIX level?To determine which fileset updates are missing from 5300-04, for example, run the followingcommand:oslevel -rl 5300-04What SP (Service Pack) is installed on my system?To see which SP is currently installed on the system, run the oslevel -s command. Sample outputfor an AIX 5L Version 5.3 system, with TL4, and SP2 installed would be:oslevel  s5300-04-02Is a CSP (Concluding Service Pack) installed on my system?To see if a CSP is currently installed on the system, run the oslevel -s command. Sample outputfor an AIX 5L Version 5.3 system, with TL3, and CSP installed would be:oslevel  s5300-03-CSPHow do I create a file system?  The following command will create, within volume group testvg, a jfs file systemof 10MB withmounting point /fs1:crfs -v jfs -g testvg -a size=10M -m /fs1The following command will create, within volume group testvg, a jfs2 file system of 10MB withmounting point /fs2 and having read only permissions:crfs -v jfs2 -g testvg -a size=10M -p ro -m /fs2How do I change the size of a file system?To increase the /usr file system size by 1000000 512-byte blocks, type:chfs -a size=+1000000 /usrNote: In AIX 5.3, the size of a JFS2 file system can be shrunk as well.How do I mount a CD?Type the following:mount -V cdrfs -o ro /dev/cd0 /cdromHow do I mount a file system?The following command will mount file system /dev/fslv02 on the /test directory:mount /dev/fslv02 /testHow do I mount all default file systems (all standard file systems in the /etc/filesystems filemarked by the mount=true attribute)?The following command will mount all such file systems:mount {-a|all}How do I unmount a file system?Type the following command to unmount /test file system:umount /testHow do I display mounted file systems?Type the following command to display information about all currently mounted file systems:MountHow do I remove a file system?Type the following command to remove the /test file system:rmfs /testHow can I defragment a file system?The defragfs command can be used to improve or report the status of contiguous space within afile system. For example, to defragment the file system /home, use the followingcommand:defragfs /homeWhich fileset contains a particular binary?To show bos.acct contains /usr/bin/vmstat, type:lslpp -w /usr/bin/vmstatOr to show bos.perf.tools contains /usr/bin/svmon, type:which_fileset svmonHow do I display information about installed filesets on my system?Type the following:lslpp -lHow do I determine if all filesets of maintenance levels are installed on my system?Type the following:instfix -i | grep MLHow do I determine if a fix is installed on my system?To determine if IY24043 is installed, type:instfix -ik IY24043How do I install an individual fix by APAR?To install APAR IY73748 from /dev/cd0, for example, enter the command:instfix -k IY73748 -d /dev/cd0How do I verify if filesets have required prerequisites and are completely installed?To show which filesets need to be installed or corrected, type:  lppchk  vHow do I get a dump of the header of the loader section and the symbol entries in symbolicrepresentation?Type the following: dump  HtvHow do I determine the amount of paging space allocated and in use?Type the following:lsps  aHow do I increase a paging space?You can use the chps -s command to dynamically increase the size of a paging space. Forexample, if you want to increase the size of hd6 with 3 logical partitions, youissue the followingcommand:chps  s 3 hd6How do I reduce a paging space?You can use the chps -d command to dynamically reduce the size of a paging space. For example, ifyou want to decrease the size of hd6 with four logical partitions, you issue thefollowing command:chps  d 4 hd6How would I know if my system is capable of using Simultaneous Multi-threading (SMT)?Your system is capable of SMT if it's a POWER5-based system running AIX 5L Version 5.3.How would I know if SMT is enabled for my system?If you run the smtctl command without any options, it tells you if it's enabledor not.Is SMT supported for the 32-bit kernel?Yes, SMT is supported for both 32-bit and 64-bit kernel.How do I enable or disable SMT?You can enable or disable SMT by running the smtctl command. The following is the syntax:smtctl [ -m off | on [ -w boot | now]]The following options are available:-m off Sets SMT mode to disabled.-m on Sets SMT mode to enabled.-wbootMakes the SMT mode change effective on next and subsequent reboots if you run thebosboot command before the next system reboot.-w now Makes the SMT mode change immediately but will not persist across reboot.If neither the -w boot or the -w now options are specified, then the mode changeis madeimmediately. It persists across subsequent reboots if you run the bosboot command before the nextsystem reboot.How do I get partition-specific information and statistics?The lparstat command provides a report of partition information and utilizationstatistics. Thiscommand also provides a display of Hypervisor information.Volume groups and logical volumesHow do I know if my volume group is normal, big, or scalable?Run the lsvg command on the volume group and look at the value for MAX PVs. Thevalue is 32for normal, 128 for big, and 1024 for scalable volume group.How to create a volume group?Use the following command, where spartition_size sets the number of megabytes (MB) in each
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks