#!/usr/bin/env perl # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.htm #------------------------------------------------------------------------------ =head1 SINV =head2 Package Description This program module file supplies a set of utility programs for the sinv command. =cut #------------------------------------------------------------------------------ package xCAT::SINV; BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } use strict; use xCAT::MsgUtils; use xCAT::NodeRange; use xCAT::NodeRange qw/noderange abbreviate_noderange/; use xCAT::Utils; use Fcntl qw(:flock); use Getopt::Long; use Data::Dumper; my $tempfile; my $errored = 0; my @dshresult; my $templatepath; my $processflg; my @cmdresult; my @errresult; # # Subroutines # #------------------------------------------------------------------------------ =head3 usage Display usage message =cut #------------------------------------------------------------------------------ sub usage { my $callback = shift; ## usage message my $usagemsg1 = "The sinv command is designed to check the configuration of nodes in a cluster.\nRun man sinv for more information.\n\nInput parameters are as follows:\n"; my $usagemsg1a = "sinv -h \nsinv -v \nsinv"; my $usagemsg3 = " -p