README FOR getPatchLevel 1.1 ---------------------------- getPatchLevel prints the most recent versions of specified Solaris patches installed on a host. INSTALLATION ------------ In the Makefile, set INST_DIR to wherever you want the software installed. You may also need to change the INSTALL command, depending on the location and version of "install" on your system. Then run "make install". USE --- getPatchLevel has very basic usage. Simply provide a list of Solaris patch numbers, either with or without the trailing dash and two-digit patch level, and getPatchLevel processes "showrev -p" output to provide a simple list of the most recent installed version of each patch. For example: % getPatchLevel 112233-12 120719 119254 118560-01 112233-13 120719-01 118560-01 Sometimes it's useful to get the output on one line. (For instance, when running the command on many hosts at once using rshall.) For that, pipe it through "xargs echo": % rshall -s "solaris 10" -1 'getPatchLevel 112233-12 120719 119254 118560-01 \| xargs echo' mars: 112233-13 120719-01 118560-01 neptune: 112233-10 118560-01 jupiter: 112233-13 120719-01 119254-09 118560-01 venus: 112233-13 120719-01 118560-01 PLATFORMS --------- getPatchLevel has been tested on the following platforms: - Solaris - versions 2.5.1 through 10 CHANGES ------- You're not required by the license to submit changes back to the source, but I'd appreciate portability improvements or enhancements of general applicability. You can email new versions or contextual diffs ("diff -c old_file new_file") to . Some things to keep in mind if you do this: - Formatting - I use tabs for indentation, and sometimes to align code segments for readability. Please do the same. - Please don't use NotePad or some other Windows editor to make changes. Or if you do, get rid of the DOS linefeeds before submitting changes. - Please try to follow the formatting conventions established in the existing code. - Readability - Usually, I will trade off efficiency (of running time or of development time) in favor of readability. - Insert meaningful comments where appropriate. - Portability - All shell scripts are Bourne-compatible. I won't use shell- specific constructs from bash, ksh, etc. CONTRIBUTORS ------------ Leon Towns-von Stauber Enjoy! Copyright (c) 2006. All rights reserved. See the LICENSE file distributed with this code for restrictions on its use and further distribution. Original distribution available at .