Home Man
Today's Posts

AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

AIX Bits and Pieces

installp, lvm, mksysb

👤 Login to reply

Thread Tools Search this Thread
# 1  
Old 12-07-2005
AIX Bits and Pieces

There are quite many nifty little tricks, which can make life easier for the AIX administrator carrying out typical tasks in his job. I'll start the collection, suggestions will be highly welcome and added here when they are messaged to me. No, i don't claim to have found out myself what stands here.

Please do not hesitate to share your knowledge.

  • Restore single file from a mksysb tape:
    put tape into tape drive rmtX and save original file first, it will be overwritten
    # tctl -f /dev/rmtX rewind
    # tctl -f /dev/rmtX.1 fsf3 ; tar -xvf /dev/rmtX.1 /path/to/file

  • Reset the time counter of the SSA-RAID-Adapters cache battery (i.e. after a battery change):
    # ssa_format -b -l <device>

  • Access the hidden (IBM only) SBB panels on a POWER3 machine (6H1, H80, etc.):
    In the main menu enter "14900"

  • See all OS maintenance levels the machine is aware of:
    # instfix -i | grep AIX_ML

  • See all packages which are downlevel for a certain maintenance level:
    At least the machine has to be aware of the maintenance level in question. List all the maintenance levels the machine is aware of (see there). Use the displayed keyword as argument for instfix and grep for ":-:' to get all packages downlevel for this ML.

    # instfix -i | grep AIX_ML
    # instfix -ick <ML_Keyword> | grep ':-:'

    Example: Find all filesets downlevel relative to ML03
    # instfix -i | grep AIX_ML
    All filesets for were found.
    All filesets for 5100-01_AIX_ML were found.
    All filesets for 5100-02_AIX_ML were found.
    Not all filesets for 5100-03_AIX_ML were found.
    Not all filesets for 5100-04_AIX_ML were found.
    Not all filesets for 5100-05_AIX_ML were found.
    Not all filesets for 5100-06_AIX_ML were found.

    # instfix -ick 5100-03_AIX_ML | grep ':-:'
    5100-03_AIX_ML:IMNSearch.rte.httpdlite: 5100-03 Update
    5100-03_AIX_ML:X11.adt.imake: 5100-03 Update
    5100-03_AIX_ML:X11.apps.xdm: 5100-03 Update

    Update IMNSearch.rte.httpdlite, X11.adt.imake and X11.apps.xdm to get to ML03.

  • Shorten the /var/adm/wtmp file
    This file can grow quite big and possibly exhaust disk space in /var. It is essential, though, to preserve the files inode therefore simply deleting it and then "touch /var/adm/wtmp" is a dangerous method. Use the following command instead (as root):

    # cat /dev/null > /var/adm/wtmp

    You might copy the file before for archival purposes:

    # cp /var/adm/wtmp /path/to/wtmp.archive ; cat /dev/null > /var/adm/wtmp

  • Prevent screen redraw with "more" ("man", ...)
    Set the following variable (see this thread):

    # MORE="-W notite" ; export MORE

  • Find out the connection status to the HMC
    To find out the connection status of the LPAR to the HMC issue
    hscroot@hmc # lspartition -dlpar
    but you can also get that information from the LPAR directly:
    # /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc

    Management Domain Status: Management Control Points
    I A 0x9d8fee8dea7422d6 0001
    I A 0x26fe4069162a4c12 0002
    This means that both HMCs have correct RMC-connections. A counter example would be this, where the second HMC has no working connection:
    # /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc

    Management Domain Status: Management Control Points
    I A 0x5d070d1bc6c9d0c0 0001
    O A 0xcac7e15c5df1adfc 0002
  • Find out the Volume Group type
    You an get the information about a VG being a "classic", "big" or "scalable" VG also from other observations (i.e. observing the max. number of PPs in the VG, etc.), but the most foolproof way is to read the VGDA. The following example is a "classic" VG:
    # readvgda <PV-of-the-VG> | head -7
    ..... Tue Jun 7 17:36:49 CEST:201
    ..... readvgda hdisk4
    ..... readvgda_file: /dev/rhdisk4
    ..... readvgda_type: smallvg
    ..... readvgda_ver: 3

last update: 2016 06 07, bakunin

Last edited by bakunin; 06-07-2016 at 11:54 AM..
The Following User Says Thank You to bakunin For This Useful Post:
aaron8667 (02-04-2015)
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Place Bits & Win Bits!!! - 17th Annual Satellite Awards Yoda What is on Your Mind? 0 12-04-2012 12:44 AM
Assembling the Pieces of a Regular Expression Michael_K Shell Programming and Scripting 2 08-01-2012 01:05 PM
Grab 2 pieces of data within a file greglocke Shell Programming and Scripting 2 07-25-2012 06:51 PM
AIX server is compiling executables to 32-bits by default, how to change it? edgarvm AIX 4 09-12-2011 10:32 AM
How do I split file into pieces with PERL? 3junior Shell Programming and Scripting 7 12-12-2010 01:08 PM
Random pieces of number learnbash Shell Programming and Scripting 6 08-12-2010 02:43 PM
32 bits procesaor with 64 bits Solaris enkei17 UNIX for Dummies Questions & Answers 0 04-15-2010 04:19 PM
Changing 24 bits to 8 bits display larry UNIX for Dummies Questions & Answers 4 03-05-2002 10:51 AM

All times are GMT -4. The time now is 02:15 AM.

All times are GMT -4. The time now is 02:15 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password