Single Server

lslpp -qch | awk -F: '{printf "%-14s %-40s %-15s\n",$7,$2,$3}' | sort | uniq | sed 's/70/-70/' | sort -t '/' -k 3,3n -k 1,1n -k 2,2n | sed 's/-70/70/'

 

Multiple Server

for lslpp_recent_list in `cat server`
do
echo $lslpp_recent_list
echo "================"
ssh $lslpp_recent_list lslpp -qch | awk -F: '{printf "%-14s %-40s %-15s\n",$7,$2,$3}' | sort | uniq | sed 's/70/-70/' | sort -t '/' -k 3,3n -k 1,1n -k 2,2n | sed 's/-70/70/'
done

Multiple server for year 2017 alone

for lslpp_recent_list in `cat server`
do
echo $lslpp_recent_list
echo "================"
ssh $lslpp_recent_list lslpp -qch | awk -F: '{printf "%-14s %-40s %-15s\n",$7,$2,$3}' | sort | uniq | sed 's/70/-70/' | sort -t '/' -k 3,3n -k 1,1n -k 2,2n | sed 's/-70/70/' |grep "/17" |grep -v "/17/"
done
Advertisements