# MCemc.ctl:254: Collects EMC PowerPath Information # $Id: MCemc.ctl,v 1.4 2014/01/08 08:20:45 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/EXPLORER/MCemc.ctl,v 1.4 2014/01/08 08:20:45 RDA Exp $ # # Change History # 20140103 PRA Add IPS support. =head1 NAME EXPLORER:MCemc - Collects EMC PowerPath Information =head1 DESCRIPTION Collects EMC PowerPath information. =cut 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('emc') # ----------------------------------------------------------------------------- # XPLR_emc section # ----------------------------------------------------------------------------- section XPLR_emc # Validate the execution context if !${B_GLOBAL:true} return call log_run('Processing EMC sections ...') if is_ips_installed($pkg = 'system/EMCpower') var $dir = get_ips_base($pkg,'^(.*)/EMCpower/bin') elsif is_pkg_installed($pkg = 'EMCpower') var $dir = get_pkg_base($pkg) else return log_info('EMCpower not installed') =head2 emc_cmd - EMC PowerPath Collects EMC PowerPath information using the C command. =cut debug ' Inside EMC collection, gathering EMC commands' # Determine the command to collect if !and(defined($dir),\ defined($pgm = testFile('f',catFile($dir,'EMCpower','bin','powermt')))) var $pgm = '/etc/powermt' # Generate the report report emc_cmd call do_exec(['emc/powermt_display_dev=all',\ $pgm,'display dev=all',\ '---+!! EMC PowerPath Information']) # Add the report in the table of contents if isCreated(true) toc '2:[[',getFile(),'][rda_report][EMC PowerPath]]' =head1 SEE ALSO L, L =head1 COPYRIGHT NOTICE Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. =head1 TRADEMARK NOTICE Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. =cut