Forum Discussion
Saving running configuration using iControl in Powershell
I am trying to do the equivalent in Powershell:
tmsh sys save config
This is what I have in my Powershell script:
(Get-F5.iControl).SystemConfigSync.save_configuration('bigip.conf','SAVE_HIGH_LEVEL_CONFIG')
(Get-F5.iControl).SystemConfigSync.save_configuration('bigip_base.conf','SAVE_BASE_LEVEL_CONFIG')
(Get-F5.iControl).SystemConfigSync.save_configuration('bigip_local.conf','SAVE_FULL')
(Get-F5.iControl).SystemConfigSync.save_configuration('bigip_sys.conf','SAVE_FULL')
Am I going in the right direction? How can I view these .conf files to verify my script?
1 Reply
- squip_86995
Nimbostratus
Hi there - Do you simply want to view the contents of each of those files? You could download them locally if you want? There's an example here - https://devcentral.f5.com/wiki/iControl.PsBigipListConfiguration.ashx
Or are you wanting to check the last write time on those file remotely?
Also, I'm pretty sure SystemConfigSync.save_configuration() without any params should save all files (I could be horribly wrong though)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
