From 95aa4d0a6053b749fb677eb54c24035b49cdc565 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 8 Jun 2010 20:15:34 +0000 Subject: [PATCH] -Correct some argument specifications to sendmsg in esx.pm -Add NIC info to rinv output on vmware guests git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6399 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 3ae288408..40ea03e17 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -448,11 +448,11 @@ sub inv { } my $vmview = $args{vmview}; my $uuid = $vmview->config->uuid; - sendmsg("$node: UUID/GUID: $uuid"); + sendmsg("UUID/GUID: $uuid",$node); my $cpuCount = $vmview->config->hardware->numCPU; - sendmsg("$node: CPUs: $cpuCount"); + sendmsg("CPUs: $cpuCount",$node); my $memory = $vmview->config->hardware->memoryMB; - sendmsg("$node: Memory: $memory MB"); + sendmsg("Memory: $memory MB",$node); my $devices = $vmview->config->hardware->device; my $label; my $size; @@ -465,7 +465,9 @@ sub inv { $size = $device->capacityInKB / 1024; $fileName = $device->backing->fileName; - sendmsg("$node: $label: $size MB @ $fileName"); + sendmsg("$label: $size MB @ $fileName",$node); + } elsif ($label =~ /Network/) { + sendmsg("$label: ".$device->macAddress,$node); } } } @@ -548,7 +550,7 @@ sub chvm { for $disk (@deregister) { $device = getDiskByLabel($disk, $devices); unless($device) { - sendmsg("$node: Disk: $disk does not exist"); + sendmsg([1,"Disk: $disk does not exist"],$node); return; } #sendmsg(Dumper($device)); @@ -563,7 +565,7 @@ sub chvm { for $disk (@purge) { $device = getDiskByLabel($disk, $devices); unless($device) { - sendmsg("$node: Disk: $disk does not exist"); + sendmsg([1,"Disk: $disk does not exist"],$node); return; } #sendmsg(Dumper($device)); @@ -609,7 +611,7 @@ sub chvm { my $disk = $device; $device = getDiskByLabel($disk, $devices); unless($device) { - sendmsg("$node: Disk: $disk does not exist"); + sendmsg([1,"Disk: $disk does not exist"],$node); return; } $value = getUnits($value, "G", 1024);