Forum Discussion

Chris_Phillips's avatar
Chris_Phillips
Icon for Nimbostratus rankNimbostratus
Feb 01, 2007

reloading external data class?

Hi,

 

 

due to a number of shortcomings in the ltm software, i'm in a position where i thought i could read data in from an external data class in an irule and dynamically update that data from a shell script. other automated changes cause a configsync to be needed, which is no good place to be. but it seems that the contents of a data class is only read once when the class itself is created? i was updating an extenral class but my iRule was still showing the old data. when i deleted and recreated the class, or overwrote a part of the class config, the file was read again. is this correct behaviour? i can't update and use the contents of an extenral class without officially changeing that class in the config?

3 Replies

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    That's correct..classes are read in when the rules are loaded. You should, however, be able to modify the info already in memory via an iControl call, if I'm not mistaken. I think this has been covered in the iControl section of the forums...you might want to check there. Perhaps this thread is a good start for you - Click here

     

     

     

    HTH,

     

    Colin
  • wow,

     

     

    that's quite some replying bender you're going on here Colin... quiet day at the office??

     

     

    Quite sadly, this is actually the time where i have to ask "What *IS* iControl??" i thought i had to pay thousands of dollars for using it, whatever it was, so didn't go further than that... i can directly access the big-ip api hooks... in perl... for free...? if so, that's another few months of me playing around with all sorts of things i guess.
  • OK,

     

     

    well know i truly feel like one of the dozens of people i mock elsewhere for not knowing anything about Linux or whatever... you should shout about it a lot more though.. but i do feel dumb right now.

     

     

    so, i *promise* i'll take any further queries to the iControl forum but to make surethat is a direction worth heading in, will iControl let me...

     

     

    update a class every few minutes and have the data live and available to an iRule

     

     

    or even better...

     

     

    enable / disable pool members *without* saving the config and telling me i need a configsycn every minute of every day?

     

     

    I've been battling with the problems of trying to forward data to a host*NAME* and not just an ip or two, and still haven't found a solution i'm happy with. the NAME::resolve stuff is just too flaky in my experiemce, and all that tinering with named.conf and stuff... no thanks. so IF iControl can help me update some data somewhere with results non-persistent, non saved DNS lookups every few minutes, i can finally get some sleep at night...

     

     

    Cheers

     

     

    Chris