with Tags:
oneliner
X

Find disks in AIX volume groups that are bigger than supported by VG
If you work with AIX systems that have original or big volume groups you are going to have limitations on the size of LUN's that can be supported by the volume group. To find the maximum disk size allowed in the volume group, run "lsvg <vgname>". Find the "PP Size" and multiply it by the "MAX PPs Per PV". For example, if your PP size is 16 MB and your Max PPs Per PV is 2032 the maximum PV/disk size would be 32,512 MB (about 32 GB). But what happens in this scenario if you take a 20... [More]
Tags:  volumegroup aix oneliner script |
HMC one liner script to generate HTML report of Systems / LPAR's
Here is a quick one liner script you can copy/paste in to your HMC SSH terminal that will generate a HTML report showing all of the managed systems and LPAR's attached to the HMC and their current state. You could easily change/extend the script to show other information like LPAR CPU settings, memory settings, etc. in the report as well. This kind of script can be very handy to generate quick reports to send to people who might not have direct access to the HMC. You can also run the one liner on multiple HMC's, and... [More]
Tags:  script bash oneliner ksh hmc aix |
New Article: Boost Your Productivity with Single-Line AIX Shell Scripts |
Being careful not to shoot yourself in the foot when cleaning up users and home directories on AIX and Linux
It is possible on Linux or AIX to have users that share a home directory. For example, you might have user1, user2, and user3 all have their home directories set to /sharedhome. Anytime you are deleting users and home directories you need to keep this in mind. You might only need to delete "user1" but want to leave "user2" and "user3" unaffected. But if you delete user1 and its home directory you might end up deleting the shared home directory which would have a big impact... [More]
Tags:  shell linux aix oneliner script |
How to Show Most Recently Installed/Updated Filesets on AIX
One of the fundamental principles of troubleshooting any issue is to look for what has changed between the time things went from working to not working. One thing that could be relevant to any issue is if any software has been recently updated or installed. AIX provides the "lslpp -h" command which will show fileset installation and update dates for each fileset. Unfortunately it doesn't sort the output of this, so it can be very difficult to look through the output to find filesets that have... [More]
Tags:  oneliner lslpp aix |