Forum Discussion
richard_76881
Nimbostratus
Apr 20, 2010using msbuild to remove server from cluster, deploy code and place back in
Hi there
New to F5 and IControl so looking initially for a pointer to use the IControl interface with msbuild.. The idea is that I can deploy our corporate site to 4 servers without any down...
Apr 21, 2010
Ok, got a couple of replies to address so hopefully I get them all.
First of all, I hope if you are using C that you are making use of the iControl assembly for .NET (iControl.dll) that has all of our web services bundled up into a proxy client with a nice interface wrapper around them. If not, you can get it from the iControl Assembly Labs project. The benefit here is that you will externalize all your iControl code from your application so as new builds come out you can just upgrade the iControl.dll without having to rebuild your app.
Secondly, if you are using partitions, then you will likely need to set the active partition with the Management.Partition.set_active_partition() before making any object calls. By default, the iControl user is accessing the "Common" partition. If you want to programmatically determine the users's assigned partition, you can get that info from the Management.UserManagement.get_my_permission() method.
Management.Partition.set_active_partition()
http://devcentral.f5.com/wiki/default.aspx/iControl/Management__Partition__set_active_partition.html
Management.UserManagement.get_my_permission()
http://devcentral.f5.com/wiki/default.aspx/iControl/Management__UserManagement__get_my_permission.html
I illustrated the use of the partition control methods in my CodeShare sample on PsPartitionAccess. It's in PowerShell but the syntax should be pretty close to C.
http://devcentral.f5.com/wiki/default.aspx/iControl/PsPartitionAccess.html
Please let me know if this helps out or if you need further assistance.
-Joe
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