#!/bin/ksh -p # $Id: //depot/dev/proactive/explorer3/tools/disks#14 $ # Source tools functions . ${EXP_LIB}/exp_tools # Run if specified to do so script=`basename $0` which_gate_exit storage $script default all # # Check for II, FWC or RDC # pkginfo -q SUNWspsv; SUNWspsv=$? pkginfo -q SUNWspsvr; SUNWspsvr=$? TEXT=`gettext "StorEdge Data Service not installed"` require "test \"$SUNWspsv\" -eq 0 -o \"$SUNWspsvr\" -eq 0" "${TEXT}" # Set the version if [ ${SUNWspsv} -eq 0 ] then DS=2 else DS=3 fi # For DS 2.0 and 3.0 get_cmd "/usr/opt/SUNWesm/sbin/iiadm -i all" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/sbin/nvmadm -v" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWnvm/sbin/fwcadm nvram -s" disks/StorEdge/ get_dir "/var/opt/SUNWesm" disks/StorEdge/ get_dir "/var/opt/SUNWesm/log" disks/StorEdge/log/ get_dir "/etc/opt/SUNWte" disks/StorEdge/ get_dir "/var/opt/SUNWte" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/sbin/svadm" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/sbin/scmadm" disks/StorEdge/ # Note: scmadm redirects STDOUT to STDERR, so err file contains the needed information # For DS 2.0 if [ "${DS}" = "2" ] then get_file "/etc/opt/SUNWii/iitab" disks/StorEdge/ get_file "/etc/opt/SUNWrdc/rdc.cf" disks/StorEdge/ get_file "/etc/opt/SUNWrdc/rdc_ii.cf" disks/StorEdge/ get_file "/etc/opt/SUNWscm/sd.cf" disks/StorEdge/ get_file "/etc/opt/SUNWspsv/sv.cf" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWrdc/sbin/rdcadm -p" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWte/sbin/steconf" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWte/sbin/steadm -c" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWnvm/sbin/fwcadm nvram -s" disks/StorEdge/ fi # For DS 3.0 if [ "${DS}" = "3" ] then get_cmd "/usr/opt/SUNWesm/SUNWrdc/sbin/sndradm -i" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWrdc/sbin/sndradm -p" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWrdc/sbin/sndradm -P" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWrdc/sbin/sndrstat" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/SUNWnvm/sbin/nvmadm -v" disks/StorEdge/ get_cmd "/usr/opt/SUNWscm/sbin/dscfg -l" disks/StorEdge/ get_cmd "/usr/opt/SUNWscm/sbin/dscfg" disks/StorEdge/ get_cmd "/usr/opt/SUNWesm/sbin/iiadm -g -L | /usr/bin/xargs -i -t /usr/opt/SUNWesm/sbin/iiadm -g {} -l" disks/StorEdge/ii-group-info fi