From de087ba1276bb59c57b4c005f661aff705d1ea4d Mon Sep 17 00:00:00 2001 From: "matt.watson" Date: Fri, 13 May 2022 11:07:45 +1000 Subject: [PATCH 1/2] Added uuid to dx_get_appliance.pl --- bin/dx_get_appliance.pl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/dx_get_appliance.pl b/bin/dx_get_appliance.pl index 7ffaf0a..d77193a 100755 --- a/bin/dx_get_appliance.pl +++ b/bin/dx_get_appliance.pl @@ -74,6 +74,7 @@ if (defined($details)) { $output->addHeader( {'Appliance', 20}, + {'UUID',40}, {'Status', 8}, {'Version', 8}, {'Total (GB)', 10}, @@ -112,6 +113,7 @@ if (defined($details)) { $output->addLine( $engine, + "", $status, "", "", @@ -156,6 +158,7 @@ if (defined($details)) { $output->addLine( $engine, + $system->getUUID(), $status, $system->getVersion(), $storageinfo->{Total}, @@ -288,10 +291,10 @@ =head1 EXAMPLES Display a Delphix Engine details - dx_get_appliance.pl -d dxt1 -details + dx_get_appliance.pl -d dxt1 -details - Appliance Status Version Total (GB) Used (GB) Free (GB) PctUsed(%) dSource# VDBs# Total Ob vCpu vMem [GB] - -------------------- -------- -------- ---------- ---------- ---------- ---------- -------- -------- -------- -------- --------- - dxt1 UP 6.0.11.0 33.42 9.17 24.25 27.44 1 2 3 4 15.88 + Appliance UUID Status Version Total (GB) Used (GB) Free (GB) PctUsed(%) dSource# VDBs# Total Ob vCpu vMem [GB] + -------------------- ---------------------------------------- -------- -------- ---------- ---------- ---------- ---------- -------- -------- -------- -------- --------- + dlpx 564d754d-eb0f-bb3e-15a2-f45c08d0ae24 UP 6.0.12.1 21.80 7.40 14.40 33.94 1 0 1 2 8.00 =cut From a9d78f259be61fe31bc6a8900848794e92d10970 Mon Sep 17 00:00:00 2001 From: "matt.watson" Date: Sun, 15 May 2022 08:38:11 +1000 Subject: [PATCH 2/2] moved UUID to end of record --- bin/dx_get_appliance.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/dx_get_appliance.pl b/bin/dx_get_appliance.pl index d77193a..352a6c7 100755 --- a/bin/dx_get_appliance.pl +++ b/bin/dx_get_appliance.pl @@ -74,7 +74,6 @@ if (defined($details)) { $output->addHeader( {'Appliance', 20}, - {'UUID',40}, {'Status', 8}, {'Version', 8}, {'Total (GB)', 10}, @@ -85,7 +84,8 @@ {'VDBs#', 8}, {'Total Objects', 8}, {'vCpu', 8}, - {'vMem [GB]', 9} + {'vMem [GB]', 9}, + {'UUID',40} ); } else { $output->addHeader( @@ -113,7 +113,6 @@ if (defined($details)) { $output->addLine( $engine, - "", $status, "", "", @@ -124,6 +123,7 @@ "", "", "", + "", "" ); } else { @@ -158,7 +158,6 @@ if (defined($details)) { $output->addLine( $engine, - $system->getUUID(), $status, $system->getVersion(), $storageinfo->{Total}, @@ -169,7 +168,8 @@ scalar(@vdb), scalar(@dsource) + scalar(@vdb), $system->getvCPU(), - sprintf("%8.2f",$system->getvMem()) + sprintf("%8.2f",$system->getvMem()), + $system->getUUID() ); } else { $output->addLine( @@ -293,8 +293,8 @@ =head1 EXAMPLES dx_get_appliance.pl -d dxt1 -details - Appliance UUID Status Version Total (GB) Used (GB) Free (GB) PctUsed(%) dSource# VDBs# Total Ob vCpu vMem [GB] - -------------------- ---------------------------------------- -------- -------- ---------- ---------- ---------- ---------- -------- -------- -------- -------- --------- - dlpx 564d754d-eb0f-bb3e-15a2-f45c08d0ae24 UP 6.0.12.1 21.80 7.40 14.40 33.94 1 0 1 2 8.00 + Appliance Status Version Total (GB) Used (GB) Free (GB) PctUsed(%) dSource# VDBs# Total Ob vCpu vMem [GB] UUID + -------------------- -------- -------- ---------- ---------- ---------- ---------- -------- -------- -------- -------- --------- ---------------------------------------- + dxt1 UP 6.0.12.1 21.80 7.62 14.18 34.96 1 0 1 2 8.00 564d754d-eb0f-bb3e-15a2-f45c08d0ae24 =cut