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());

1 Reply

  • rachulola, sorry for the delay in the response, I've been out of the office for the holidays and am just catching up on things.

     

     

    I wrote a tech tip on partitions and all the methods are discussed in there. It's written in PowerShell but you should be able to extract the relevant logic in there to translate it to Java. Let me know if you get stuck and I'll help you out.

     

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=176

     

    Click here

     

     

     

    -Joe