#!/bin/sh
# san_version simply reports the version of the various components of 
# the NetApp Linux SAN Attach Kit
# usage: san_version [-v]
#
KIT_VERSION=5.3
KIT_CHANGEID=1195482
all_versions=0

if [ $# -gt 1 ] ; then
	echo "usage: san_version [-v]"
	exit 1
fi

if [ $# -eq 1 ] ; then
	while getopts v c
	do
		case $c in
		v)	all_versions=1;;
		\?)	echo "usage: san_version [-v]"
			exit 1;;
		esac
	done
fi	


# Now display the versions of the various components

echo "NetApp Linux Host Utilities version $KIT_VERSION"

if [ $all_versions -eq 1 ] ; then
	# display versions for everything
	
	# disply the sanlun command version
	echo `/opt/netapp/santools/sanlun version`
fi

