< Back
Disconnect-iBMC
Post
NAME Disconnect-iBMC
SYNOPSIS
Disconnects specified session[s] of iBMC Redfish Server.
SYNTAX
Disconnect-iBMC [-Session] <RedfishSession[]> [<CommonParameters>]
DESCRIPTION
Disconnects specified session[s] of iBMC Redfish Server by sending HTTP Delete request to location holds by
"Location" property in RedfishSession Object passed as parameter.
PARAMETERS
-Session <RedfishSession[]>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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
You can pipe the RedfishSession object array to Disconnect-iBMC. The RedfishSession array is obtained from
executing Connect-iBMC cmdlet.
OUTPUTS
This cmdlet does not generate any output.
NOTES
The RedfishSession object will be detached from iBMC Redfish Server. And the Session can not be used by
cmdlets which required Session parameter again.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Disconnect-iBMC -Session $session
PS C:\\>
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$session | Disconnect-iBMC
PS C:\\>
This will disconnect the sessions given in the variable $Session
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCSessionTimeout
Set-iBMCSessionTimeout
Connect-iBMC
Disconnect-iBMC
Test-iBMCConnect
SYNOPSIS
Disconnects specified session[s] of iBMC Redfish Server.
SYNTAX
Disconnect-iBMC [-Session] <RedfishSession[]> [<CommonParameters>]
DESCRIPTION
Disconnects specified session[s] of iBMC Redfish Server by sending HTTP Delete request to location holds by
"Location" property in RedfishSession Object passed as parameter.
PARAMETERS
-Session <RedfishSession[]>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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
You can pipe the RedfishSession object array to Disconnect-iBMC. The RedfishSession array is obtained from
executing Connect-iBMC cmdlet.
OUTPUTS
This cmdlet does not generate any output.
NOTES
The RedfishSession object will be detached from iBMC Redfish Server. And the Session can not be used by
cmdlets which required Session parameter again.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Disconnect-iBMC -Session $session
PS C:\\>
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$session | Disconnect-iBMC
PS C:\\>
This will disconnect the sessions given in the variable $Session
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCSessionTimeout
Set-iBMCSessionTimeout
Connect-iBMC
Disconnect-iBMC
Test-iBMCConnect