< Back
Disconnect-HPEOSP
Post
NAME Disconnect-HPEOSP
SYNOPSIS
The Disconnect-HPEOSP cmdlet closes the connection.
SYNTAX
Disconnect-HPEOSP [-Connection] <Connection[]> [<CommonParameters>]
DESCRIPTION
The Disconnect-HPEOSP cmdlet closes the connection and cleans up the resource.
PARAMETERS
-Connection <Connection[]>
Connection object to iLO for OS Provisioning. This is a session object that identifies the target to which the
connection is established. The Connection object is created by the Connect-HPEOSP command using the
IP/Hostname and accompanying Username and Password to log into the iLO.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
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
HPE.OSP.Connection[]
OUTPUTS
None
EXAMPLE 1
PS C:\\> $connection = Connect-HPEOSP -IP 10.20.30.1 -Username admin -Password admin123
PS C:\\> Disconnect-HPEOSP $connection
This example disconnects the connection object passed as positional parameter.
EXAMPLE 2
PS C:\\> $connection = Connect-HPEOSP -IP 10.20.30.1,10.20.30.2,10,20.30.3 -Username admin -Password admin123
PS C:\\> $connection | Disconnect-HPEOSP
This example disconnects a list of iLO connection objects passed through a pipeline.
RELATED LINKS
http://www.hpe.com/servers/powershell
Connect-HPEOSP
Test-HPEOSPConnection
SYNOPSIS
The Disconnect-HPEOSP cmdlet closes the connection.
SYNTAX
Disconnect-HPEOSP [-Connection] <Connection[]> [<CommonParameters>]
DESCRIPTION
The Disconnect-HPEOSP cmdlet closes the connection and cleans up the resource.
PARAMETERS
-Connection <Connection[]>
Connection object to iLO for OS Provisioning. This is a session object that identifies the target to which the
connection is established. The Connection object is created by the Connect-HPEOSP command using the
IP/Hostname and accompanying Username and Password to log into the iLO.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
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
HPE.OSP.Connection[]
OUTPUTS
None
EXAMPLE 1
PS C:\\> $connection = Connect-HPEOSP -IP 10.20.30.1 -Username admin -Password admin123
PS C:\\> Disconnect-HPEOSP $connection
This example disconnects the connection object passed as positional parameter.
EXAMPLE 2
PS C:\\> $connection = Connect-HPEOSP -IP 10.20.30.1,10.20.30.2,10,20.30.3 -Username admin -Password admin123
PS C:\\> $connection | Disconnect-HPEOSP
This example disconnects a list of iLO connection objects passed through a pipeline.
RELATED LINKS
http://www.hpe.com/servers/powershell
Connect-HPEOSP
Test-HPEOSPConnection