# MCdt.ctl:258: Collects StorEdge T3 Information # $Id: MCdt.ctl,v 1.5 2013/10/30 07:18:25 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/EXPLORER/MCdt.ctl,v 1.5 2013/10/30 07:18:25 RDA Exp $ # # Change History # 20130829 JGS Improve SENA commands. =head1 NAME EXPLORER:MCdt - Collects StorEdge T3 Information =head1 DESCRIPTION Collects StorEdge T3 information. The following reports can be generated and are regrouped under C: =cut use Buffer use Mrc # Initialization var $VALIDATE = true keep $VALIDATE section begin var $ERR = '---## Associated Errors' var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' run EXPLORER:XPLRlib('t3') # ----------------------------------------------------------------------------- # XPLR_t3 section # ----------------------------------------------------------------------------- section XPLR_t3 # Validate the execution context if !${B_GLOBAL:true} return call log_run('Processing T3 sections...') pretoc '2: StorEdge T3' =head2 t3_cmd_scsi_${DEV} - SCSI Drives For each drive (DEV) returned by the F command, collects the command C. ${FIL} holds the format command file, which is created as part of this collection. =cut if ?testFile('f','/usr/sbin/format') {# Adjust environment to avoid format to trigger luflist commands var $env = setEnv('NOINUSE_CHECK',1) # Validate the context if !grepCommand('/usr/sbin/format &1')) {next !match($lin,'(\w+)\s*.SUN-T3') var ($dev) = last # Collect SCSI drive information for each drive found report concat('t3_cmd_scsi_',$dev) title '---+!! SCSI Drive ',$dev,' Information' prefix {write '---## Using: /usr/sbin/format -e -f