Forum Discussion
Benson01_160074
Nimbostratus
Jul 18, 2014Saving 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
