Forum Discussion

chandru_14815's avatar
chandru_14815
Icon for Nimbostratus rankNimbostratus
Jan 13, 2009

Icontrol to display nodes, Virtual servers, Pools and all stats

 

Hi all,

 

 

Can you guys please help me to come up with some web based application in .Net to know the status of the Virtual server, IP pools, nodes and there stats.

 

 

I am looking for a single web interface which will show the complete Big IP F5 information

 

 

I am new to programming and very much interested in using Icontrol with .net to build a new web based application to know the status.

 

 

Is there already any code i can use in the resource?

 

 

Thanks in advance for your help

 

 

Chandru

10 Replies

  • I know of customers who have written ASP applications to front-end manage their BIG-IPs but there aren't any here on DevCentral as open source as far as I'm aware.

     

     

    The development process with regards to the iControl interfaces would be very similar to that of the C samples found on this site. You'd just load the iControl.dll into your project as a reference, instantiate an iControl.interfaces object, initialize it with the BIG-IP address/username/password, and then make method calls.

     

     

    Hope this helps...

     

     

    Sorry for the lack of samples on ASP.NET. When you get yours working, we'd gladly take it as a contribution to the iControl CodeShare B-).

     

     

    -Joe
  • Joe,

     

     

    Can you help me with a basic .net code to start with which will help me carry on with the code?

     

     

    Thanks

     

    Chandru
  • Can you provide an exact logic flow of what you would like to see? I can provide a console application that dumps a virtual, it's default pool, and the default pool's members pretty easily.

     

     

    -Joe
  • Thanks Joe!!

     

     

    I would like to see the same status as we see in the BIG-IP statics page for the below?

     

     

    1. Statistics for status Summary normalized format

     

    2. Statistics for Virtual Servers and Virtual Addresses with status and colour of the state

     

    3. Statistics for pools and pool members (not below the pool but next the pool) with state and colour of the status

     

    4. Statistics for Nodes with status and colour of the state

     

     

    Thanks for your help with this! I think all this are pretty much easy to get from the BIG-IP in tabular format and view in a Single page

     

     

    I have multiple BIG-IP and would also like to know which is active and Standby and status of all the BIG-IP's in a Single page or each refresh should show the status of the next one

     

     

    Thanks again

     

    -Chandru
  • Hi Joe,

     

     

    Did you get a chance to look into this?

     

     

    IS there any new code or application which will get this info?

     

     

    I am also looking for setting up alerts

     

     

    Can you please help as we have 6 F5 box and need to know the status and alerts?

     

     

    Waiting to hear from you guys

     

     

    Thanks

     

    Chandru
  • Unfortunately I have not working on this. I said I could write up a simple console script but you requested normalization and coloring which implied you wanted something GUI based. If you do not have the staff to build a customized iControl app, F5 does have a consulting service that can do it for you. DevCentral is not a consulting service. I try to help out when I can with providing some simple examples to help get you started with a project but this seems a bit bigger than that.

     

     

    I could write up a PowerShell script or C Console app that will print out statistics for various objects if that will help.

     

     

    -Joe
  • Joe,

     

     

    Yes that would really help!

     

     

    Can it show the availability aswell for the pools, Virtual server and nodes please?

     

     

    Thanks

     

    Chandru
  • Here's a quick little console app I put together for you that queries node addresses, pools, and virtual servers for their bits in, bits out, current connections, availablility and enabled states and then presents it in a csv format.

    http://devcentral.f5.com/downloads/codeshare/F5ObjectStatus.zip

    Click here

    Here's the output on one of my test systems:

     PS D:\dev\iControl\F5ObjectStatus\F5ObjectStatus\bin\Debug> .\F5ObjectStatus.exe bigipaddress user pass  
     TYPE,NAME,BYTES_IN,BYTES_OUT,CONN_CUR,ENABLED,AVAILABLE,DESCRIPTION  
     NODE,10.10.10.202,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.213,23357,315968,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.148,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,30.30.30.149,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.203,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,20.20.20.102,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,20.20.20.101,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.149,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.212,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.211,7698195,21745230,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.204,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.201,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.121,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,10.10.10.120,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,1.2.3.4,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,1.1.1.3,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,1.1.1.2,0,0,0,DISABLED,UNKNOWN,Node address does not have service checking enabled  
     NODE,1.1.1.1,0,0,0,ENABLED,UNKNOWN,Node address does not have service checking enabled  
     POOL,dc-llix-web,7698195,21745230,0,ENABLED,AVAILABLE,The pool is available  
     POOL,xpbert-ssh,0,0,0,ENABLED,AVAILABLE,The pool is available  
     POOL,xpbert-http,0,0,0,ENABLED,AVAILABLE,The pool is available  
     POOL,dc-web-sandbox,0,0,0,ENABLED,AVAILABLE,The pool is available  
     POOL,dc-sea-web,0,0,0,ENABLED,AVAILABLE,The pool is available  
     POOL,dc-sea-media,0,0,0,ENABLED,AVAILABLE,The pool is available  
     POOL,catbert-ssh,0,0,0,ENABLED,NOT AVAILABILE,The children pool member(s) are down  
     POOL,dc-llix-media,23357,315968,0,ENABLED,AVAILABLE,The pool is available  
     POOL,dc-db-sandbox,0,0,0,ENABLED,AVAILABLE,The pool is available  
     POOL,catbert-http,0,0,0,ENABLED,NOT AVAILABILE,The children pool member(s) are down  
     VS,dc-llix-web,7691079,21837023,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,dc-sandbox-db,0,0,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,dc-sea-web,0,0,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,dc-sandbox-web,0,0,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,xpbert-https,0,0,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,xpbert-ssh,0,0,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,xpbert-http,0,0,0,ENABLED,AVAILABLE,The virtual server is available  
     VS,tftp_server_vip,0,0,0,ENABLED,UNKNOWN,The children pool member(s) either don't have 
     service checking enabled, or service check results are not available yet

    The source is included in the .zip so feel free to take a look if you need to add in functionality.

    Hope this helps...

    -Joe