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 17, 2014

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

  • 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)