Forum Discussion

deltapez_21676's avatar
deltapez_21676
Icon for Nimbostratus rankNimbostratus
Mar 03, 2010

Updating Data Group

 

All,

 

 

To retrieve status of pools, this script runs the "b load" which saves everything. Is this the only method or will any write to the /var/class file update the data group?

 

 

My concern is that this is too much overhead for frequent reporting and a simpler method is needed to update just the external file.

 

 

 

Thanks,

 

D

 

 

 

!/bin/bash

 

The command below is included because it was required when patched to 9.3.1 HF6

 

b db bigpipe.displayservicenames false

 

 

b pool all member all | grep pool_ | awk '{print "\""$3"\""}'> | sort >/var/class/pool_member_status_list.class

 

 

Only performs a b load when it's on the active unit.

 

if [ "`/bin/ps1`" == "Active" ]; then

 

b load

 

fi

 

 

exit 0

 

  • Hi D,

     

    Yes you do not have to do a full b load

     

     

    You can get away with toggling one of the attributes on the class. Here's a CodeShare entry that does the trick

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/PingExternalClass.html

     

    Click here

     

     

    I hope this helps

     

     

    Bhattman