Welcome to the AIX Lab Simulation practice guide! This file contains hands-on exercises to help you learn AIX commands effectively.
First, make sure you've set up the simulation:
source ./aix_simulation.shLearn to gather basic system information:
# Check AIX version and maintenance level
oslevel
oslevel -r
oslevel -s
# Get complete system information
uname -a
# Check system configuration
prtconf | head -20
# Get memory information
bootinfo -rTry it yourself: What's the difference between oslevel, oslevel -r, and oslevel -s?
Understanding AIX storage hierarchy:
# List all physical volumes
lspv
# Get detailed info about hdisk0
lspv hdisk0
# List all volume groups
lsvg
# Show detailed info about rootvg
lsvg rootvg
lsvg -l rootvg
# List logical volumes
lslv hd4
# Check file system usage
df -g
lsfsChallenge: Explain the relationship between hdisk0, rootvg, and the logical volumes shown.
Monitor system performance:
# Check current processes
ps -ef
# See who's logged in
w
who
# Monitor system performance
topas
vmstat 2 5
iostat 2
# Check memory and swap usage
lsps -aPractice: Start topas and observe the different metrics displayed.
Explore network configuration:
# Show network interfaces
ifconfig -a
# Display routing table
netstat -rn
# Show network connections
netstat -an
# Test connectivity (simulated)
ping google.comExercise: What information can you gather about the network configuration?
Learn about AIX services:
# List all services
lssrc -a
# List TCP/IP services specifically
lssrc -g tcpip
# Check specific service status
lssrc -s sshd
lssrc -s cronQuestion: How many services are running in the tcpip group?
Understanding system errors:
# View error log
errpt
# Show detailed error information
errpt -a
# Filter errors by date
errpt -s 0101000024
# Show only hardware errors
errpt -T PERMAnalysis: Look at the different types of errors and their classifications.
# Examine volume group details
lsvg -p rootvg # Show physical volumes
lsvg -l rootvg # Show logical volumes
lsvg -L rootvg # Show VG characteristics
# Look at specific logical volume
lslv -l hd4 # Show which PV it's on
lslv -m hd4 # Show logical to physical mapping
# File system details
lsfs -q /
lsfs -l /usr# List all devices
lsdev
# Show only available devices
lsdev -C
# Look at processor info
lsdev -Cc processor
# Show device attributes
lsattr -El sys0
lsattr -El hdisk0# Detailed interface statistics
entstat en0
# Network performance
netstat -i
# Protocol statistics
netstat -sYou've been told the system is running low on disk space. Use AIX commands to:
- Check overall disk usage
- Identify which file systems are full
- Determine which volume groups have available space
- Find the physical layout of storage
# Your commands here:
# df -g
# lsvg
# lspvUsers are complaining about slow system performance. Investigate:
- Check current system load
- Identify resource-intensive processes
- Check memory and swap usage
- Monitor I/O performance
# Your investigation commands:
# topas
# ps -ef | sort
# vmstat
# iostatA network service isn't responding properly. Troubleshoot:
- Check if network services are running
- Verify network configuration
- Test connectivity
- Look for related error messages
# Your troubleshooting steps:
# lssrc -g tcpip
# ifconfig -a
# netstat -an
# errptlspv- List physical volumeslsvg- List volume groupslslv- List logical volumeslsfs- List file systemsdf -g- Disk usage in GB
topas- Real-time performance monitornmon- Advanced performance toolvmstat- Virtual memory statsiostat- I/O statisticssar- System activity reporter
ifconfig -a- All network interfacesnetstat -rn- Routing tablenetstat -an- All connectionsentstat en0- Ethernet statisticsping host- Test connectivity
lssrc -a- List all serviceslssrc -g group- List service groupstartsrc -s service- Start servicestopsrc -s service- Stop service
errpt- Show errorserrpt -a- Detailed errorserrpt -s date- Errors since dateerrpt -j ID- Specific error detail
Mark off each skill as you master it:
- Can check AIX version and system info
- Understand storage hierarchy (PV → VG → LV → FS)
- Can navigate physical and logical storage
- Know how to monitor system performance
- Can troubleshoot network issues
- Understand service management
- Can analyze system errors
- Comfortable with common flags and options
- Can combine commands for troubleshooting
- Ready for real AIX administration!
- Practice regularly: Use the simulation daily to build muscle memory
- Read man pages: Use the cheatsheet to understand command options
- Combine commands: Learn to pipe and combine AIX commands
- Focus on flags: Many AIX commands have powerful flag combinations
- Think hierarchically: AIX storage is hierarchical - understand the layers
- Learn error codes: AIX has specific error reporting - understand the categories
Once comfortable with these exercises:
- Review the full
aix_cheatsheet.txtfor advanced topics - Practice SMIT navigation (System Management Interface Tool)
- Learn about automation and scripting in AIX
- Explore advanced performance tuning concepts
Good luck with your AIX learning journey! 🚀