< Back

Get-SVTshutdownStatus

Tue Jan 14, 2020 2:07 am

NAME Get-SVTshutdownStatus



SYNOPSIS

Get the shutdown status of one or more Omnistack Virtual Controllers





SYNTAX

Get-SVTshutdownStatus [[-HostName] <String[]>] [-Force] [<CommonParameters>]





DESCRIPTION

This RESTAPI call only works if executed on the local host to the OVC. So this cmdlet

iterates through the specifed hosts and connects to each specified host to sequentially get the status.



This RESTAPI call only works if status is 'None' (i.e. the OVC is responsive), which kind of renders the

REST API a bit useless. However, this cmdlet is still useful to identify the unresponsive (i.e shut down or

shutting down) OVC(s).



Note, because we're connecting to each OVC, the connection token will point to the last OVC we successfully

connect to.

You may want to reconnect to your preferred OVC again using Connect-SVT.





PARAMETERS

-HostName <String[]>



Required? false

Position? 1

Default value (Get-SVThost | Select-Object -ExpandProperty HostName)

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Force [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

HPE.SimpliVity.Host





OUTPUTS

System.Management.Automation.PSCustomObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-SVTshutdownStatus



Connect to all OVCs in the Federation and show their shutdown status









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-SVTshutdownStatus -HostName <Name of SimpliVity host>













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-SVThost -Cluster MyCluster | Get-SVTshutdownStatus



Shows all shutdown status for all the OVCs in the specified cluster

HostName is passed in from the pipeline, using the property name









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>'10.10.57.59','10.10.57.61' | Get-SVTshutdownStatus



Hostname is passed in them the pipeline by value. Same as:

Get-SVTshutdownStatus -Hostname @(''10.10.57.59','10.10.57.61')











RELATED LINKS