Forum Discussion
Joao_Carmona_41
Jan 20, 2011Nimbostratus
List Partitions Virtual Servers
Hi Joe,
I just installed the powershell icontrolSnapin and all the common commands works fine. My problem is that my Big-Ip device have 5 partitions (plus the common), and all Virtual Servers are in that 5 partitions.
I can get/list the partitions, but i didn't figured out how to get the virtual servers from that partitions.
For listing the partitions i'm using:
(Get-F5.iControl).ManagementPartition.get_partition_list();
I was looking on the icontrol samples for some help, and the PS Partition Access Sample caught my attention:
(Get-F5.iContro).ManagementPartition.set_active_partition("Partition1");
If i activate a partition, when I do a list Pools, i'm going to get the ones from that partition (Partition1)?
(Get-F5.iControl).LocalLBPool.get_list();
This is a production environment, so I don't want to mess the things Up.
One final Note, you should include the http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShellSetupSnapin.html, on the setup/install file. It works pretty well on Windows 2008 R2.
Best Regards,
João Carmona
- You are using the right logic. A call to set_active_partition() will change the context to the specified partition for the current user. This value is a persistent server side value that stays constant until a LTM restart. So, you should only have to call it once before making your calls for that specific partition.
- Joao_Carmona_41NimbostratusThanks Joe, it makes a lot of sense.
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