cloudstack/scripts/storage/zfs/iscsi/comstar/host_group_destroy.sh
Manuel Amador (Rudd-O) 05c020e1f6 Source code committed
2010-08-11 09:13:29 -07:00

19 lines
509 B
Bash
Executable File

#!/usr/bin/env bash
# $Id: host_group_destroy.sh 9132 2010-06-04 20:17:43Z manuel $ $HeadURL: svn://svn.lab.vmops.com/repos/vmdev/java/scripts/storage/zfs/iscsi/comstar/host_group_destroy.sh $
# host_group_destroy.sh -- delete all iSCSI host groups
#
# Usage: host_group_destroy.sh
#
# Removes all iSCSI host groups that are not in use.
#
# OpenSolaris
# Delete iSCSI host groups
host_groups=$(stmfadm list-hg | cut -d' ' -f 3)
for host_group in $host_groups
do
stmfadm delete-hg $host_group
done