Forum Discussion

f5TechieAA_7448's avatar
f5TechieAA_7448
Icon for Nimbostratus rankNimbostratus
Nov 20, 2008

Which Icontrol java API can be used to specify(set) partition name to get pool info

How and where can I specify my partition name to get partition specific pool name and other attributes instead of getting all common partition information

 

 

m_endpoint = "https://user name:password@hostname:port/iControl/iControlPortal.cgi";

 

 

m_pool = (iControl.LocalLBPoolBindingStub)

 

new iControl.LocalLBPoolLocator().getLocalLBPoolPort(new java.net.URL(m_endpoint));

 

m_poolMember = (iControl.LocalLBPoolMemberBindingStub)

 

new iControl.LocalLBPoolMemberLocator().getLocalLBPoolMemberPort(new java.net.URL(m_endpoint));

 

System.out.println("Pool user name "+m_pool.getUsername());

6 Replies

  • Don_MacVittie_1's avatar
    Don_MacVittie_1
    Historic F5 Account
    Management.Partition.set_active_partition() should take care of it for you. Call it before your other calls, and you'll be set. Assuming you have rights to the partition anyway.

     

     

    Don.
  • Management is the module and Partition is the interface. The generated class in the java library is ManagementPartition and I just verified in that it is in there in the last build I released to DevCentral.

     

     

    -Joe
  • Don_MacVittie_1's avatar
    Don_MacVittie_1
    Historic F5 Account
    Sorry rachukola, I was listing from the documents rather than giving you the actual class name.

     

     

    Don.
  • Thanks Joe . I wanted to get pool information from certain partition only.

     

    It finally worked. Thanks a lot for your help.

     

     

    iControl.ManagementPartitionBindingStub partition = (iControl.ManagementPartitionBindingStub)new iControl.ManagementPartitionLocator().getManagementPartitionPort(new java.net.URL("url"));

     

    partition.set_active_partition("partition Name");