* OSF/1 License PAK checker
@ 1995-12-21 5:00 Jeff Scheib
1995-12-21 5:00 ` Mark Bartelt
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Scheib @ 1995-12-21 5:00 UTC (permalink / raw)
Any utilities out there which can warn of pending license PAK expiration for
OSF/1?
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: OSF/1 License PAK checker
1995-12-21 5:00 OSF/1 License PAK checker Jeff Scheib
@ 1995-12-21 5:00 ` Mark Bartelt
0 siblings, 0 replies; 2+ messages in thread
From: Mark Bartelt @ 1995-12-21 5:00 UTC (permalink / raw)
[ Jeff Scheib ]
| Any utilities out there which can warn of pending license PAK expiration for
| OSF/1?
Well, it's rather trivial to use existing tools. It took less than five minutes
to cook up the following shell script; some minor variant of it could be invoked
by cron on the first day of each month ...
---------------
#!/bin/sh
set `date`
mon_year=`echo $2-$6|tr '[a-z]' '[A-Z]'`
paklist=`
lmf list full |
egrep 'Product Name:|Key Termination Date:' |
sed 's/.*: *//' |
awk ' (NR%2) == 1 { prodname = $1 }
(NR%2) == 0 && NF != 0 { termdate = $1; printf "%11s %s\n", termdate, prodname } ' |
sed 's/...//' |
awk ' $1 == "'$mon_year'" { print $2 }'
`
if test -n "$paklist"; then
echo "The following PAKs expire this month:
$paklist" | Mail -s "PAK expiry alert!" your_sysadmin
fi
---------------
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Sheep not busy being shorn are busy frying" - Dylan, at a NZ lamb barbecue
[ singing "It's all right, ma (I'm only bleating)" ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-12-21 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-21 5:00 OSF/1 License PAK checker Jeff Scheib
1995-12-21 5:00 ` Mark Bartelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox