Ipmitool
view release on metacpan or search on metacpan
lib/Ipmitool.pm view on Meta::CPAN
while (@args)
{
my ($x);
($x)=shift(@args);
if ($x eq "-ipaddress")
{
$self->{"ipaddress"}=shift(@args);
my $p = Net::Ping->new();
if (!$p->ping($self->{"ipaddress"}))
{
#print " Machine is alive\n";
die "$self->{ipaddress} : invalid ip address or machine is unreachable\n";
}
$p->close();
} elsif ($x eq "-username")
{
$self->{"username"}=shift(@args);
} elsif ($x eq "-password")
{
$self->{"password"}=shift(@args);
open PASSFILE, ">file" or die "Unable to create password file\n";
( run in 1.203 second using v1.01-cache-2.11-cpan-39bf76dae61 )