< Back

Get-FortiGateSystemSessionList

Sat Jan 18, 2020 7:49 pm

NAME Get-FortiGateSystemSessionList



SYNOPSIS

Gets the FortiGate system session list.





SYNTAX

Get-FortiGateSystemSessionList [-HostAddress] <String> [[-HostPort] <Int32>] [-Credential] <PSCredential>

[-AcceptKey <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Gets the FortiGate system session list.





PARAMETERS

-HostAddress <String>

The SSH host address of the FortiGate device.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HostPort [<Int32>]

The SSH host port of the FortiGate device.



Required? false

Position? 1

Default value 22

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The SSH credentials to use.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AcceptKey [<SwitchParameter>]

Automatically accept SSH key.



Required? false

Position? named

Default value

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



OUTPUTS

System.String







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



PS C:\\>Get-FortiGateSystemSessionList -HostAddress "192.168.1.99" -Credential (Get-Credential)





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



PS C:\\>Get-FortiGateSystemSessionList -HostAddress "192.168.1.99" -HostPort 22 -Credential (Get-Credential)

-AcceptKey







RELATED LINKS