Forum Discussion
Why does the config disappear?
I have create a new F5 pool using IControl API. Why does the pool disappear when I reboot the system? Do I need commit the changes? Which method should I use? The version of the BIG-IP is v10.1.0. Any help would be greatly appreciated~
19 Replies
Hi!
Yes, the changes are stored in memory.
https://devcentral.f5.com/wiki/iControl.System__ConfigSync.ashx
Use the save_configuration method to save them to file.
/Patrik
- bes_newer_14056
Nimbostratus
Hi Patrik Thank you,it works with admin account, but I have another question.It said there is no permissions to access the action(save_configuration) when I use the save_configuration method with Manager role Account. How does the Configuration Utility(web) work? I can create the pool using the Configuration Utility and it still be there after rebooting the system.
So you're able to create the pool in the web interface with the same user used for connecting with icontrol?
Sounds like it should work.
/Patrik
- bes_newer_14056
Nimbostratus
Yes, using the Configuration Utility I can create pool, then the config file changes. But I can't invoke save_configuration method using the same account.
Very strange. Are you attempting the pool creation on the same partition? Could it be that you need access on common to save it?
(I use my personal admin account the few times I need to make changes through icontrol).
- bes_newer_14056
Nimbostratus
Yes, I work in the same Partition but not Common. I can create the Pool using IContrl, but I can't save it. Chaning to Common Partition makes no differences. Configuration Utility is the BIG-IP's tool, I don't know it invoke which method to save the pool changes.
Does the user have write access in common?
Checked out this example?
https://devcentral.f5.com/wiki/iControl.PowerShellAppAutomation.ashx
/Patrik
- bes_newer_14056
Nimbostratus
I can't run the sample, because the machine is in a private network. I just try the user who has write access in common, it's still failed. Does Configuration Utility use the IControl?
Hi mate!
Sorry for the late reply, weekend happened... 🙂
Are you sure you try to save the configuration with the right path?
Ie:
$f5.SystemConfigSync.save_configuration("/config/partitions/MyPart/bigip.conf", "SAVE_HIGH_LEVEL_CONFIG");Tried it myself with this one: http://climbi.com/b/oOGi52
/Patrik
- bes_newer_14056
Nimbostratus
I use: port.getSystemConfigSync().save_configuration("",SystemConfigSyncSaveMode.SAVE_HIGH_LEVEL_CONFIG); The Api says : 'the file name will be ignore.' The location of the API is https://devcentral.f5.com/wiki/iControl.System__ConfigSync__save_configuration.ashx The Big-IP's version is 10.1.0, is it a bug?
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