Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Friday, 22 November 2013

AIX Software Installation

After BOS installation you will be able to determine maintenance level.
The general syntax of the oslevel command is -
# oslevel [ -l Level | -g Level | -q ] [ -r ] [ -f ]
-l filesets earlier than the maintenance levels
-g filesets later than the current maintenance level.
-r  Applies all flags to Recommended Maintenance Levels
-f  Forces cache rebuilt
-q  Lists names of known maintenance levels, use with -l flag.
To show current maintenance level of system
# oslevel -r
O/p → 5300-03
Here 03 means maintenance level is 3.
Note:-Do not confuse this output with the M in V.R.M.F.
Software Installation:-
  • Software can be installed in one of two states: applied or committed.
  • The applied state places Software on the system. It retains the previous Version  of the Software.
  • When an update is in the applied state Previous Version  is stored in the /usr/LPP/PackageName directory. This process is useful for deploying or testing new Software, where it may be necessary to go back to the previousVersion  of the Software in case of errors.
  • The committed state places Software on the system and removes all previous levels of the Software from the /usr/LPP/PackageName directory
  • If committed Software needs to be removed, you cannot go back to the previous Version  without a complete reinstall of the previous Version  Software.
  • We recommend you install new Software in the applied state, rather than the committed state, until the newSoftware has been thoroughly tested.
  • Sofware are installed by using installp command.
Command to install Software in an Applied State :-
# installp -a [ -eLogFile ] [ -V Number ] [ -dDevice ] { FilesetName [ Level ]… | -f ListFile | all }
 Command to install Software in an Commited State:-
installp -ac [ -N ] [ -eLogFile ] [ -V Number ] [ -dDevice ] { FilesetName [ Level ]… | -f ListFile | all }
For Example- To install all filesets within the bos.net Software Package in Applied State
# installp -avX  -d  /usr/sys/inst.images bos.net
To preview an install of all filesets within the bos.net Software Package in /usr/sys/inst.images directory in the Committed State
# installp -acpX  -d   /usr/sys/inst.images bos.net
# cat /var/adm/sw/installp.summary ( record of the installp output will found in this file)
Committing applied updates :-
For Example : To Commit all updates, type
# installp -cgX all
Rejecting applied updates :-
For Example-:, to reject all applied updates listed in the file ./reject.list, type
# installp -rBfX ./reject.list
Removing installed Software:-
For Example, to preview a remove of bos.net.ipsec.rte and its dependents, type
# installp -ugp -V2 bos.net.ipsec.rte
 Cleaning up after failed installations :-
For Example , to do cleanup of all fileset for reinstallation, type
# installp -C
Listing all installable Software on media :-
For example, to list the Software that is on your CD-ROM, type
# installp -L -d /dev/cd0
Software Installation Using Smit command:-
You all are now familiar with installpcommand for S/W installation but S/W’s installation can be done by using SMIT.
To install Software products:
# smitty install_latestspan>
INPUT DEVICE / directory for Software
SOFTWARE TO INSTALL → [_all_latest]
Committing applied updates :-
# smitty install_commit
SOFTWARE NAME → [all]
Rejecting applied updates :-
# smitty install_reject
SOFTWARE NAME → [] (Press F4 on the SOFTWARE name field to select the Software update you want to reject.)
Removing installed Software:-
# smitty install_remove
SOFTWARE NAME → [] ( Press F4 → Select the Software you want to remove by pressing F7, followed by Enter)

No comments:

Post a Comment