For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Benson01_160074's avatar
Benson01_160074
Icon for Nimbostratus rankNimbostratus
Jul 18, 2014

Saving Big-IP System Configuration in a background job

Powershell script:

Initialize-F5.iControl -hostname 'xxx.xxx.xxx.xx' -credentials (Get-Credential)
Enable-F5.LTMPoolMember -pool $pool -member $member

Start-Job -scriptblock {
        (Get-F5.iControl).SystemConfigSync.save_configuration('bigip.conf','SAVE_HIGH_LEVEL_CONFIG')
}

It appears that Start-Job creates another Powershell instance, so Get-F5.iControl is not recognized inside the background job. Is there any way to pass this in?

Start-Job -scriptblock { ... } -ArgumentList '???'

No RepliesBe the first to reply