Initial add of defaria.com
[clearscm.git] / defaria.com / Computers / code / adm / bin / lspatches
1 #!/bin/bash
2 ################################################################################
3 #
4 # File:         lspatches
5 # RCS:          $Header: lspatches,v 1.1 97/04/21 14:23:58 defaria Exp $
6 # Description:  Lists patches for a 10.x machine
7 # Author:       Andrew DeFaria, California Language Labs
8 # Created:      Mon Nov 13 16:14:30 1995
9 # Modified:     Mon Nov 13 16:16:56 1995 (Andrew DeFaria) defaria@spock
10 # Language:     Korn Shell
11 #
12 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
13 #
14 ################################################################################
15 # First source the appserver script
16 if [ -x /app/appserver ]; then
17   . /app/appserver
18 fi
19
20 if [ $# -eq 0 ]; then
21   print -u2 "Patches for $(uname -n):"
22   /usr/sbin/swlist -l product | grep PH
23 else
24   for machine in "$@"; do
25     print -u2 "Patches for $machine:"
26     remsh $machine -n /usr/sbin/swlist -l product | grep PH
27   done
28 fi