Powershell‎ > ‎

F5


F5 iControl


download iControlSnapInSetup_23.msi click on Download link in the upper right of this page
run powershell as administrator
cd C:\Program Files (x86)\F5 Networks\iControlSnapIn
.\setupSnapIn.ps1
exit admin powershell session


open new powershell session
Add-PSSnapIn iControlSnapIn
Get-Command -Module iControlSnapIn
Get-F5.iControlCommands | measure



Initialize-F5.iControl -Hostname <bigip_address> -Credentials (Get-Credential)
Initialize-F5.iControl -Hostname <bigip_address> -Username <username> -Password <password>


$cred = Get-Credential
Initialize-F5.iControl -HostName <bigip_address> -Credentials $cred

Get-F5.LTMPool
$F5DBVar=Get-F5.DBVariable
#Is this node active or standby
$F5DBVar | where {$_.Name -eq "Failover.State"}

$F5iControl = Get-F5.iControl

$F5iControl.SystemHAStatus
$F5iControl.SystemConfigSync
$clustername=$F5iControl.SystemCluster.get_list()

$ClusterSyncStatus=$F5iControl.ManagementDeviceGroup.get_sync_status_overview()
$ClusterSyncStatus


Comments