AIX Fundamentals
AIX Fundamentals Course Overview
IBM AIX Operating System and Korn Shell Programming training course introduces the delegate to the main concepts of the AIX Operating System. The most commonly used commands are described in detail as are the command line wildcard and redirection facilities. The mechanisms by which a user acquires a login environment are discussed and the main features of the Korn/Posix/Bash Shells are introduced.
It is designed to give delegates practical experience in developing and writing shellscripts. Most of the built-in shell commands are introduced together with the main program control structures.
------------------------------------------------------------------------------------------------------------------------------------------
Who will the Course Benefit?
There are no formal pre-requisites for the AIX Fundamentals course, although an understanding of and exposure to information technology is advantageous.
Programmers, administrators and support personnel who need to understand the AIX Operating system, existing shellscripts, automate procedures and write their own utilities.
Some programming experience may also prove advantageous.
------------------------------------------------------------------------------------------------------------------------------------
Course Objectives
To provide the skills needed to work productively in an IBM AIX environment to develop and customise shell programs.
--------------------------------------------------------------------------------------------------------------------------------------
Course Description
AIX Fundamentals online course get started with AIX operating system. AIX Fundamentals online course intention is to provide a foundation to understand AIX environment.
AIX Fundamentals online course will allow the participants to understand the benefits of understanding the AIX operating system.
AIX Fundamentals online course is ideally developed for any unix or aix developers who wants to specialize in AIX operating system and its core concepts.
In the AIX Fundamentals online training course, Uplatz provides an in-depth online training for the participants or learners to gain knowledge and able to manage AIX programming and environment. Uplatz provides appropriate teaching and expertise training to equip the participants for implementing the learnt concepts in an enterprise.
AIX Fundamentals online training course curriculum covers introduction, shell basics, file permissions and processes.
With the help of AIX Fundamentals online course, the learners can discover:
-
Inhouse Terminology and concepts related to the Unix Tools
-
To know AIX utilities
-
Know shell variables
-
Able to compress file
Uplatz provides an in-depth training to the learners to accelerate their knowledge and skill set required for an AIX programmer.
--------------------------------------------------------------------------------------------------------------------------------------
This is a AIX Fundamentals course by Uplatz.
AIX Fundamentals
AIX Fundamentals Training Course
Course Introduction
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
Session 1: INTRODUCTION TO THE AIX OPERATING SYSTEM
- A brief history of UNIX
- The UNIX kernel
- The UNIX file system
- A login Session
- Getting started navigating the file system
- The file system structure
- Directories and files
- Pathnames
- Navigating the file system
- Exercise: Logging on to the system
- Exercise: Navigating the file system
Session 2: BASIC COMMANDS
- Command line syntax
- Basic file handling commands
- Basic Directory handling commands
- Filename wildcard characters
- Exercise: Manipulating files and directories
Session 3: REDIRECTION AND PIPES
- Input redirection
- Output redirection
- Pipes
- Exercise: Using redirection and pipe facilities
AIX Fundamentals Training Course
Session 4: INTRODUCTION TO THE vi EDITOR
- Overview of the vi editor
- Basic functions
- Switching to input mode
- Other useful commands
- Exercises: Using the vi editor
- Exercise: Using more advanced vi features
Session 5: SEARCHING AND REPLACING TEXT
- Searching and replacing text using the vi editor
- Using regular expressions (regex)
- Using sed for search and replace
- Searching for text with grep, egrep and fgrep
- Exercises: Searching and Replacing Text
Session 6: RECALLING AND EDITING COMMANDS
- Overview
- The bash shell
- The korn shell
- Exercises: Recall and Edit Commands
Session 7: FILE PERMISSIONS AND ACCESS CONTROL
- Users and user groups
- File access permissions
- Changing file attributes
- Switching users and user groups
- Linking files
- Exercise: Setting and access permissions
AIX Fundamentals Training Course
Session 8: FILTERING TEXT
- Overview
- The cut command
- An introduction to awk
- The nl command
- Exercises: Filtering Text
Session 9: PROCESSES
- What is a process?
- Monitoring processes
- Killing processes
- Background processes
- Job Control
- Grouping commands
- Exercise: Monitoring and controlling processes
Session 10: THE USER ENVIRONMENT
- Customising the .profile or .bash_profile
- Customising the .kshrc or .bashrc
- Exercise: Setting up an environment
Session 11: MORE BASIC COMMANDS
- The find command
- Using xargs command
- Using the locate command
- The df command
- The cut command
- The sort command
- Finding duplicate content
- The finger and pinky commands
- Exercise: More Basic Commands
AIX Fundamentals Training Course
Session 12: UNIX COMMAND REVIEW
- Basic Unix commands
- General commands
- File and directory handling commands
- Filename generation characters and regular expressions (regex)
- I/O Redirection features
- Other commands
Session 13: GETTING STARTED
- What is a shell script?
- Development guidelines
- Creating and editing shell scripts
- Naming and storing shell scripts
- Executing shell scripts
- Exercise: Write a simple shell script
Session 14: USING VARIABLES
- Environment variables
- Local variables
- Assigning values to variables
- Assessing variable values
- Using quotes
- Delimiting variable names
- echo control sequences
- Exercise: Add variables to a script
Session 15: INTEGER ARITHMETIC
- Using the expr command
- Using the (( )) notation
- Exercise: Add integer arithmetic to a shell script
Session 16: HANDLING RUN TIME DATA
- The read command
- Command line arguments
- Exercise: Writing a generic shell script
- Exercise: Writing an interactive shell script
Session 17: CONDITIONAL EXECUTION
- The if statement
- The test command
- Exercise: Adding validation to previous scripts
Session 18: ADDITIONAL KORN, BASH & POSIX SYNTAX
- Other test notations
- Default and substitute variables
- Exit status codes
- Exercise
AIX Fundamentals Training Course
Session 19: LOOP CONSTRUCTS
- The while loop
- The until loop
- The for loop
- The while true and until false loops
- Loop control commands
- Exercise: Enhancing the previously written scripts
- Exercise: Writing a script to copy files using a 'for' loop
- Exercise: Writing a script to generate numbers with the 'while' loop
Session 20: MULTI-BRANCH DECISIONS
- The case statement
- Menu driven applications
- Exercise: Developing and writing a menu system
Session 21: FUNCTIONS
- What is a function?
- Syntax
- Examples
- Exercise: Add a function to a script
Session 22: INTERRUPT HANDLING
- Interrupt signals
- Trapping interrupts
- Exercise: Adding traps to the menu script
Session 23: ADDITIONAL FEATURES AND FACILITIES
- The exec commands
- The includes notation
- More about loops
- Arrays
- Here Documents
- Exercise: Create a here script
Attending this course will help gain some of the skills and product knowledge outlined in the exam objectives. Studying this course and its associated reference materials can form part of the preparation to achieve certification. Experience, practice, self-study and aptitude are also key requirements for exam success.
Before taking any exam, ensure you have the recommended experience. The IBM website lists all exam requirements and these are updated regularly.
Exams are not included as part of the course.
AIX Fundamentals online certification course with the help of expert professionals training is recognized across the globe. Because of the increased adoption of the AIX concepts in various companies the participants are able to find the job opportunity easily. The leading companies hire AIX programmer considering their skill of mastering AIX development concepts. AIX Fundamentals online certification course is known for their knowledge in managing AIX enterprise system. After pursuing AIX Fundamentals online certification course the participants can become as an Unix or AIX programmer, shell developer, network analyst, software developer, system administrator and can pursue a wide range of career paths.
--------------------------------------------------------------------------------------------------------
IBM AIX Interview Questions
--------------------------------------------------------------------------------------------------------1) How 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. The value is 32 for normal, 128 for big and 1,024 for scalable volume group.
2) How Do I Create A Volume Group?
Use the following command, where s partition_size sets the number of megabytes (MB) in each physical partition where the partition_size is expressed in units of MB from one through 1,024. (It’s one through 131,072 for AIX 5.3.)
mkvg -y name_of_volume_group -s partition_size list_of_hard_disks
The partition_size variable must be equal to a power of two (for example: one, two, four or eight). The default value for standard and big volume groups is the lowest value to remain within the limitation of 1,016 physical partitions per physical volume. The default value for scalable volume groups is the lowest value to accommodate 2,040 physical partitions per physical volume.
3) How Can I Change The Characteristics Of A Volume Group?
You use the chvg command to change the characteristics of a volume group.
4) How Do I Create A Logical Volume?
#mklv -y name_of_logical_volume name_of_volume_group number_of_partition
5) How Do I Increase The Size Of A Logical Volume?
To increase the size of the logical volume represented by the lv05 directory by three logical partitions, for example, type extendlv lv05 3.
6) How Do I Display All Logical Volumes That Are Part Of A Volume Group (e,g, Rootvg)?
You can display all logical volumes that are part of rootvg by typing the following command: #lsvg -l rootvg/
7) How Do I List Information About Logical Volumes?
Run the following command to display information about the logical volume #lv1: lslv lv1.
8) How Can I Clone The Rootvg?
You can run the alt_disk_copy command to copy the current rootvg to an alternate disk. The following example shows how to clone the rootvg to hdisk1: alt_disk_copy -d hdisk1.]
9) How Do I Replace A Disk?
extendvg VolumeGroupName hdisk_new
migratepv hdisk_bad hdisk_new
reducevg -d VolumeGroupName hdisk_bad
10) How Do I Mirror A Logical Volume?
· mklvcopy LogicalVolumeName Numberofcopies
· syncvg VolumeGroupName
11) How Can I Display Or Set Values For Network Parameters?
The no command sets or displays current or next boot values for network tuning parameters.
12) How Do I Get The IP Address Of My Machine?
Type one of the following: ifconfig -a or host Fully_Qualified_Host_Name. For example, host cyclop.austin.ibm.com
13) Explain the boot process?
Three phases available in BOOT Process
· Ros kernel init phase
· Base Device Configuration
· System boot phase
14) Explain PP, LP.
Physical Partition (PP):
Storage space from physical volumes is divided into physical partitions (PPs).
The size of the physical partitions is identical on all disks belonging to the
same VG.
Logical Partition (LP):
Logical volumes consist of one or more logical partitions (LPs). Each logical
partition has at least one corresponding physical partition. A logical partition
and a physical partition always have the same size. You can have up to three
copies of the data located on different physical partitions
15) What is the difference between alt_disk_install and alt_disk_copy?
alt_disk_copy command is just a subset of alt_disk_install. When we run the alt_disk_install it actually runs the alt_disk_copy as well under cover.
16) What all are the basic file sets needed for the alt_clone operation to perform?
Before proceeding with the alt_clone operation we have to verify the below mentioned file sets available on the server for the alt_clone operation:
#lslpp -l|grep -I alt_disk
bos.alt_disk_install.boot_images
bos.alt_disk_install.rte 7.2.3.0 COMMITTED Alternate Disk Installation
17) How can we replace a failed disk in rootvg?
For this we need to get a new luns from the Storage team of equal the size of the good copy existing the rootvg disk or greater than that in size. Then we can follow the below procedure if we have 2 rootvg disks and one disk failed:
#cfgmgr
#lspv
#extendvg rootvg
#migratepv
#reducevg -d rootvg
#mirrorvg -S
18) There’s a vulnerability reported for a package installed on the server. What action do we need to take?
We need to check for the APAR released by IBM for the software product. If yes, then download it and by using the “emgr” command install it on the server.
18) How to recover the root password?
We need to boot the server from a bootable media either cd-rom. From there we can go to the option Installation & Maintenance Menu and can choose to start it in a system recovery mode. From there we can reset the root password.
#shutdown -r
#Option 3
#passwd
19) For a mirrored volume group the administrator would like to ensure if one disk fails the vg stays online What’s the command to check that?
chvg -Qn
20) How to check the HMC version?
After login into the HMC on the top we can see the version.
21) How can we restore a single file from the mksysb image file?
From the mksysb image file we can restore file by using the below command:
#restore -xvf .//
22) How can we check the maximum resources consumed processes?
In AIX we have below procedures to find out the maximum resources consumed processes details:
#top: command which provides the live update of the processes and their utilization of resources
From the “nmon analyzer” we can find out the detailed details of the processes.
#ps -ef
#svmon -Put 5
23) How to rename a vgname?
To re-name a VG here is the procedure:
#lspv -> Here disks will show allocated to a VG
#varyoff
#exportvg
#lspv -> Here the disks will be showing none means not allocated to any VG
#importvg -y hdisk*
#lspv -> Here it will show the new vg name
A downtime of VG required for this operation to be done.
24) How a client server can be able to communicate with the NIM server?
With the help of “niminfo” file the client server can communicate with the Master NIM server.
In the client server generate the NIMINFO file:
#niminit -a master= -a name=`uname -n`
25) How to find out the MAC address of a server?
In the “netstat -ia” command from the “Address” column you can find the MAC address.
26) When an IBM engineer asks about to collect the logs what command do we use?
To collect the system log “snap -gc” command.
27) How can we do OS Upgradation?
By using the “nimadm” command we can do the OS Upgradation.
#nimadm -j nimadmvg -c -s -l -d <hdisk*> -Y
It has 12 steps post which the OS get successfully upgraded.
28) What is the procedure to change the Network card speed on AIX?
We can change the network card speed by using the following steps:
#chdev -l en0 -a state=detach –> Detach the interface
#chdev -l ent0 -a media_speed=1000_Full_Duplex –> Make appropriate changes
#chdev -l en0 -a state=up –> Change the step to UP
29) Command to find the real memory of a server?
Here is the command to find the real memory of a server:
#lsattr -EL sys0 -a realmem
30) How can we get the detailed information of my server?
We can find the detailed information of a server using the below commands:
#prtconf
#lscfg -vpl
Whereas,
-v : Displays the vital product data (VPD) found in the customized VPD object class
-p : Displays platform-specific device information.
31) How Do I Identify The Network Interfaces On My Server?
Either of the following two commands will display the network interfaces: lsdev -Cc if or ifconfig -a. To get information about one specific network interface, for eaxample tr0, run the command ifconfig tr0.
32) How Do I Activate A Network Interface?
To activate the network interface tr0, run the command ifconfig tr0 up.
33) How Do I Display Routing Table, Interface And Protocol Information?
To display routing table information for an Internet interface, type netstat -r -f inet. To display interface information for an Internet interface, type netstat -i -f inet. To display statistics for each protocol, type netstat -s -f inet.
34) Difference Between Jfs & Jfs2?
JFS: JFS is normal filesystem. We cannot create large files in JFS.
Files can be access dynamically.
Max file system size=1TB
Max file size=64GB
Inode size=128b
JFS2: Can create a large size filesystems.
Files can be access accordingly as required. (not randomly or sequentially)
Max files system size=4PB
Max file size=4PB
Inode size=512
35) How Will You Find The Inode Number?
# ls –li
# istat /etc/passwd
36) How Will You Find Ltg Size?
#lsvg vgname
#lquerypv –M hdiskname
37) How Will You Change Ltg Size?
#rmdev -l hdiskx
#chdev -l hdiskx -a max_transfer=0*80000
#mkdev -l hdiskx
38) How Will You Find Whether A Quorum Is Up Or Not?
# lsvg vg name
39) How To Copy A Lv From One Vg To Another?
# cplv -v
40) How Will You Change A Pp Size?
PP size can be changed using a T-fac
--------------------------------------------------------------------------------------------------------