Veritas Expiration check script (Solaris) 
The script performs licence expiration check for VeritasFS. It allows you to check all your servers in one run and it should work with all major versions of the Veritas.

#!/bin/bash
#!/usr/bin/ksh
#
#---------------------------------------------------------------------------------
# Program : veritas_info
# Function : Performs veritas license check - several veritas version support
# Author : xxx xxx
# History : 11.09.2007 - alchy - new
#
#---------------------------------------------------------------------------------
LIST="/here/is/the/server/list"
echo "Output for list ${LIST} @ " `hostname`

for host in `cat ${LIST} | awk -F":" '{ print $1 }'`
do
VERITAS=`ssh $host "df -kl | grep dev | grep vx | wc -l"`
if [ ${VERITAS} ] # can we connect?
then

echo -n "host: $host vx_fs: ${VERITAS} "

if [ "${VERITAS}" -gt 0 ]; then

if [ `ssh $host 'ls /opt/VRTSvlic/bin/vxlicrep 2> /dev/null'` ]
then
echo "vxlicrep" > /tmp/veritas_${host}
ssh $host '/opt/VRTSvlic/bin/vxlicrep' >> /tmp/veritas_${host}

# PERMANENT
cat /tmp/veritas_${host} | grep "License Type" | grep "PERMANENT" > /dev/null
if [ $? -eq 0 ]
then
echo -n "license_permanent "
fi

# DEMO
cat /tmp/veritas_${host} | grep "License Type" | grep "DEMO" > /dev/null
if [ $? -eq 0 ]
then
echo -n "license_limit ("
cat /tmp/veritas_${host} | grep "Demo End Date" | while read license
do
END_DATE=`echo $license | awk -F" " '{ print " end: "$5 " " $6 " " $7 " " $9 }'`
echo -n " " ${END_DATE}
done
echo -n " )"
fi

elif [ `ssh $host 'ls /usr/sbin/vxserial 2> /dev/null'` ]; then
echo "vxserial" > /tmp/veritas_${host}
ssh $host "/usr/sbin/vxserial -p" >> /tmp/veritas_${host}

# DEMO
cat /tmp/veritas_${host} | grep "Expiration date" | grep "No expiration date" > /dev/null
if [ $? -eq 0 ]
then
echo -n "license_permanent "
else
# EXPIRATION
echo -n "license_limit ("
cat /tmp/veritas_${host} | grep "Expiration date" | while read license
do
END_DATE=`echo $license | awk -F" " '{ print " end: "$5 " " $6 " " $7 " " $9 }'`
echo -n " " ${END_DATE}
done
echo -n " )"
fi

elif [ `ssh $host 'ls /usr/sbin/vxlicense 2> /dev/null'` ]; then
echo "vxlicense" > /tmp/veritas_${host}
ssh $host "/usr/sbin/vxlicense -p" >> /tmp/veritas_${host}

# DEMO
cat /tmp/veritas_${host} | grep "Expiration date" | grep "No expiration date" > /dev/null
if [ $? -eq 0 ]
then
echo -n "license_permanent "
else
# EXPIRATION
echo -n "license_limit ("
cat /tmp/veritas_${host} | grep "Expiration date" | while read license
do
END_DATE=`echo $license | awk -F" " '{ print " end: "$5 " " $6 " " $7 " " $9 }'`
echo -n " " ${END_DATE}
done
echo -n " )"
fi

else
echo "No relevant method for finding the license information found!"
fi
else
echo -n "no_veritas_found"
fi
echo
fi
done




[ 7 comments ]   |  [ 0 trackbacks ]   |  permalink
Show all the network interfaces (Solaris 10) 
Need to configure LAN interface on a new Solaris box and unsure about the name? The ifconfig command can't show you interfaces which are not plumbed yet. To discover all physical interfaces run dladm command as shown below:

# dladm show-dev 
ce0 link: unknown speed: 1000 Mbps duplex: full
ce1 link: unknown speed: 0 Mbps duplex: unknown



[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Tatry 07 


Prvni fotka, na ktere jsem zkousel HDR (high-dynamic-range). Film je naskenovany s korekci expozice -0.7/0/+0.7 EV, TIFFy v Photoshopu preveveny do "HDR" obrazku. Velmi pekny tutorial HDR. Dalsi informace o HDR.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Rhodos 07 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Santorini 06 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Crete 06 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Croatia 06 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Babylon 06 



[ add comment ]   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 |