AVArcher
Virtual Infrastructure Specialists
HOME SERVICES ABOUT US PARTNERS CONTACT US

PowerCLI and Technical Support Mode in ESXi v4.1

In previous versions of ESXi you would manage Technical Support Mode by modifying properties of the advanced setting 'VMkernel.Boot.techSupportMode'. Now both local and remote, are elevated to services and as such can be managed using the Get-VMHostService and Set-VMHostService cmdlets.

 

The Get-VMHostService cmdlet will, by default, return;

get-vmhostservice output

 

So, to change aspects of one of these use the Set-VMHostService, which has the syntax;

Set-VMHostService [-HostService] <HostService> [-Policy] <HostServicePolicy> [-WhatIf] [-Confirm] [<CommonParameters>]

To change the Remote Tech Support mode's policy to on so that it survives reboots;

Get-VMHostService | where { $_.key -eq 'TSM-SSH' } | Set
-VMHostService -Policy on

get-vmhost service output after starting Technical Support Mode Remote (SSH) in ESXi 4.1.

 

To start the service use the following;

Get-VMHostService | where { $_.key -eq 'TSM-SSH' } | Start-VMHostService

Use the start-vmhostservice cmdlet to start the Technical Support Mode remote (SSH) service in PowerCLI.

 

© 2002-2010 AVArcher