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~

Hi!

Yes, the changes are stored in memory.

Use the save_configuration method to save them to file.

/Patrik

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

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

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?

/Patrik

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… :slightly_smiling_face:

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

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?

Hi! I’m fresh out of v10 to try this with, but have you considered adding the path to the config file? If it’s a v10 the path would be /config/bigip.conf.

Something like this: port.getSystemConfigSync().save_configuration(“/config/partitions/MyPart/bigip.conf”, “SAVE_HIGH_LEVEL_CONFIG”);

/Patrik

Yes, I had try port.getSystemConfigSync().save_configuration(“/config/bigip.conf”, “SAVE_HIGH_LEVEL_CONFIG”); But It does not work. I only have the trial version of BIG-IP. Thank you a lot~

What error message do you get? Have you considered upgrading to a newer version? 10.1.0 is very very old. :slight_smile:

/Patrik

I will write a program which will control the majority of F5’s version. The Error Message is “Access Denied: user(ma) does not have access to action (saving configuration)”

And you were using the Manager role? Have you tried upgrading the rights to Administrator and using the line I mentioned before?

port.getSystemConfigSync().save_configuration("/config/partitions/MyPart/bigip.conf", "SAVE_HIGH_LEVEL_CONFIG");

/Patrik

It’s ok if I use the Administrator or Resource Administrator, but Manager role will be failed. I had try three methods: port.getSystemConfigSync().save_configuration(“/config/partitions/MyPart/bigip.conf”, “SAVE_HIGH_LEVEL_CONFIG”);

port.getSystemConfigSync().save_configuration(“/config/bigip.conf”, “SAVE_HIGH_LEVEL_CONFIG”);

port.getSystemConfigSync().save_configuration(“”, “SAVE_HIGH_LEVEL_CONFIG”);

It seems to be ignore the filename parameter. The Error Message is the same.

Ok, then it seems like that the manager role is not allowed to save config over iControl. Not sure if there’s anything else I can do here. :frowning:

/Patrik

Thank you all the same~ I will use the administrator role~

No problem. Good luck!