You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:42:30 UTC

svn commit: r962271 - in /incubator/deltacloud/trunk/server: ./ lib/deltacloud/drivers/rhevm/ lib/deltacloud/drivers/rhevm/scripts/

Author: lutter
Date: Thu Jul  8 23:42:29 2010
New Revision: 962271

URL: http://svn.apache.org/viewvc?rev=962271&view=rev
Log:
Fixed RHEV-M driver for Windows environment

Added:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/addVM.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/common.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/deleteVm.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/rebootVm.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/startVm.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/stopVm.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/storageDomains.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templateById.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templates.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vmById.ps1
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vms.ps1
Modified:
    incubator/deltacloud/trunk/server/drivers.rb
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb

Modified: incubator/deltacloud/trunk/server/drivers.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/drivers.rb?rev=962271&r1=962270&r2=962271&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/drivers.rb (original)
+++ incubator/deltacloud/trunk/server/drivers.rb Thu Jul  8 23:42:29 2010
@@ -1,4 +1,3 @@
-
 DRIVERS = {
   :ec2 => { :name => "EC2" },
   :rackspace => { :name => "Rackspace" },
@@ -19,12 +18,12 @@ def driver_class_name
 end
 
 def driver_source_name
-  "deltacloud/drivers/#{DRIVER}/#{DRIVER}_driver.rb"
+  File.join("deltacloud", "drivers", "#{DRIVER}", "#{DRIVER}_driver.rb")
 end
 
 def driver_mock_source_name
-  return "deltacloud/drivers/#{DRIVER}/#{DRIVER}_driver.rb" if driver_name.eql? 'Mock'
-  "deltacloud/drivers/#{DRIVER}/#{DRIVER}_mock_driver.rb"
+  return File.join('deltacloud', 'drivers', DRIVER, "#{DRIVER}_driver.rb") if driver_name.eql? 'Mock'
+  File.join('deltacloud', 'drivers', DRIVER, "#{DRIVER}_mock_driver.rb")
 end
 
 def driver
@@ -36,4 +35,3 @@ def driver
 
   @driver ||= eval( driver_class_name ).new
 end
-

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb?rev=962271&r1=962270&r2=962271&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb Thu Jul  8 23:42:29 2010
@@ -24,8 +24,8 @@ module Deltacloud
 
 class RHEVMDriver < Deltacloud::BaseDriver
 
-  SCRIPT_DIR = File.dirname(__FILE__) + '/../scripts'
-  CONFIG = YAML.load_file(RAILS_ROOT + '/config/rhevm_config.yml')
+  SCRIPT_DIR = File.dirname(__FILE__) + '/scripts'
+  CONFIG = YAML.load_file(File.dirname(__FILE__) + '/../../../../config/rhevm_config.yml')
   SCRIPT_DIR_ARG = '"' + SCRIPT_DIR + '"'
   DELIM_BEGIN="<_OUTPUT>"
   DELIM_END="</_OUTPUT>"
@@ -41,6 +41,7 @@ class RHEVMDriver < Deltacloud::BaseDriv
   def execute(credentials, command, *args)
     args = args.to_a
     argString = genArgString(credentials, args)
+    puts argString
     outputMaps = {}
     output = `#{POWERSHELL} -command "&{#{File.join(SCRIPT_DIR, command)} #{argString}; exit $LASTEXITCODE}`
     exitStatus = $?.exitstatus

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/addVM.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/addVM.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/addVM.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/addVM.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,31 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$templateId,
+        [string]$name,
+        [string]$storageId)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+$templ = get-template $templateId
+beginOutput
+add-vm -TemplateObject $templ -Name $name -StorageDomainId $storageId
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/common.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/common.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/common.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/common.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,32 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+$DELIM_BEGIN="<_OUTPUT>"
+$DELIM_END="</_OUTPUT>"
+$VM_PROPERTY_LIST="VmId", "Name", "Description", "TemplateId", "Domain", "Status", "OperatingSystem"
+function beginOutput {
+    echo $DELIM_BEGIN
+}
+
+function endOutput {
+    echo $DELIM_END
+}
+
+function verifyLogin {
+    param($username, $password, $domain)
+    Login-User $username $password $domain
+}

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/deleteVm.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/deleteVm.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/deleteVm.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/deleteVm.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$id)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+# The AppliacationList causes the YAML pain, so Omit it
+remove-vm $id | format-list -Property $VM_PROPERTY_LIST
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/rebootVm.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/rebootVm.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/rebootVm.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/rebootVm.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$id)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+# The AppliacationList causes the YAML pain, so Omit it
+stop-vm $id | format-list -Property $VM_PROPERTY_LIST
+beginOutput
+start-vm $id | format-list -Property $VM_PROPERTY_LIST
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/startVm.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/startVm.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/startVm.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/startVm.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$id)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+# The AppliacationList causes the YAML pain, so Omit it
+start-vm $id | format-list -Property $VM_PROPERTY_LIST
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/stopVm.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/stopVm.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/stopVm.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/stopVm.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$id)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+# The AppliacationList causes the YAML pain, so Omit it
+stop-vm $id | format-list -Property $VM_PROPERTY_LIST
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/storageDomains.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/storageDomains.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/storageDomains.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/storageDomains.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+# The AppliacationList causes the YAML pain, so Omit it
+select-storagedomain *
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templateById.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templateById.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templateById.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templateById.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$id)
+
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+get-template $id
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templates.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templates.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templates.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/templates.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+select-template *
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vmById.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vmById.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vmById.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vmById.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain,
+        [string]$id)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+$vm = get-vm $id
+beginOutput
+# The AppliacationList causes the YAML pain, so Omit it
+$vm | format-list -Property $VM_PROPERTY_LIST
+endOutput
\ No newline at end of file

Added: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vms.ps1
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vms.ps1?rev=962271&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vms.ps1 (added)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/scripts/vms.ps1 Thu Jul  8 23:42:29 2010
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2009  Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+param([string]$scriptsDir,
+        [string]$username,
+        [string]$password,
+        [string]$domain)
+# Get the common functions
+. "$scriptsDir\common.ps1"
+verifyLogin $username $password $domain
+beginOutput
+# The AppliacationList causes the YAML pain, so Omit it
+select-vm * | format-list -Property $VM_PROPERTY_LIST
+endOutput
\ No newline at end of file