< Back
Test-iBMCConnect
Post
NAME Test-iBMCConnect
SYNOPSIS
Test whether specified session[s] of iBMC Redfish Server is still alive
SYNTAX
Test-iBMCConnect [-Session] <RedfishSession[]> [<CommonParameters>]
DESCRIPTION
Test whether specified session[s] of iBMC Redfish Server is still alive by sending a HTTP get request to Session
Location Uri.
PARAMETERS
-Session <RedfishSession[]>
RedfishSession array that created by Connect-iBMC cmdlet.
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 array to Test-iBMCConnect. The RedfishSession array is obtained from executing
Connect-iBMC cmdlet.
OUTPUTS
RedfishSession Object with field Alive identified whether session is still alive
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-iBMCConnect -Session $Session
Id : 1
Name : Manager
ManagerType : BMC
FirmwareVersion : 3.00
UUID : 877AA970-58F9-8432-E811-80345C184638
Model : iBMC
Health : OK
State : Enabled
DateTime : 2018-10-16T17:50:05+08:00
DateTimeLocalOffset : Asia/Chongqing
BaseUri : https://10.1.1.2
Location : /redfish/v1/SessionService/Sessions/8c2790fbef51b40c
Alive : False
AuthToken : eac9b1d6be37f69fd783355ece67f2f2
TrustCert : True
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCSessionTimeout
Set-iBMCSessionTimeout
Connect-iBMC
Disconnect-iBMC
Test-iBMCConnect
SYNOPSIS
Test whether specified session[s] of iBMC Redfish Server is still alive
SYNTAX
Test-iBMCConnect [-Session] <RedfishSession[]> [<CommonParameters>]
DESCRIPTION
Test whether specified session[s] of iBMC Redfish Server is still alive by sending a HTTP get request to Session
Location Uri.
PARAMETERS
-Session <RedfishSession[]>
RedfishSession array that created by Connect-iBMC cmdlet.
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 array to Test-iBMCConnect. The RedfishSession array is obtained from executing
Connect-iBMC cmdlet.
OUTPUTS
RedfishSession Object with field Alive identified whether session is still alive
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-iBMCConnect -Session $Session
Id : 1
Name : Manager
ManagerType : BMC
FirmwareVersion : 3.00
UUID : 877AA970-58F9-8432-E811-80345C184638
Model : iBMC
Health : OK
State : Enabled
DateTime : 2018-10-16T17:50:05+08:00
DateTimeLocalOffset : Asia/Chongqing
BaseUri : https://10.1.1.2
Location : /redfish/v1/SessionService/Sessions/8c2790fbef51b40c
Alive : False
AuthToken : eac9b1d6be37f69fd783355ece67f2f2
TrustCert : True
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCSessionTimeout
Set-iBMCSessionTimeout
Connect-iBMC
Disconnect-iBMC
Test-iBMCConnect