#!/bin/sh
#
# Copyright 2013-2018. Quantum Corporation. All Rights Reserved.
# StorNext is either a trademark or registered trademark of
# Quantum Corporation in the US and/or other countries.
#
# All Rights Reserved.
#
# @version $Id$
#
#
# A script for collecting multipath information for bug reporting.
#

if [ -e /etc/multipath.conf ]
then
	echo ""
	echo ""
	echo "Contents of /etc/multipath.conf"
	cat /etc/multipath.conf
	echo "End of contents of /etc/multipath.conf"
	echo ""

	if [ -x /sbin/multipath ]
	then
		echo ""
		echo ""
		echo "System multipath configuration (/sbin/multipath -ll -v 2)"
		/sbin/multipath -ll -v 2
		echo "End of system multipath configuration"
		echo ""
	else
		echo ""
		echo ""
		echo "/sbin/multipath not executable."
		echo ""
	fi
else
	echo ""
	echo ""
	echo "Multipath not configured."
	echo ""
fi
