Forum Discussion

ykkim's avatar
ykkim
Icon for Nimbostratus rankNimbostratus
Mar 21, 2012

Getting the last LTM configuration change time

I'm implementing an application using iControl to manage F5 LTM configurations. I need the last LTM configuration change time. How can I get the configuration apply/save time and changed category(GTM, LTM...).

 

If this is impossible in iControl way, can I find the information directly on the BIGIP?

 

4 Replies

  • Hi,

     

     

    I don't think you can easily separate GTM or other module configuration change timestamps from LTM changes. But there's a DB key you can use to track the total configuration's last change:

     

     

    Configsync.LocalConfigTime

     

     

    You can use the Management::DBVariable interface to get this DB key value:

     

     

    https://devcentral.f5.com/wiki/iControl.Management__DBVariable.ashx

     

     

    Aaron
  • ykkim's avatar
    ykkim
    Icon for Nimbostratus rankNimbostratus
    Aaron.

     

    Thanks a lot.

     

     

    I've retrieved the DB variable successfully. Maybe the value is better. Configsync.LocalConfigTime includes LTM change time and System configuration change time.

     

    And I'm glad to learn that F5's API can access DB variables.

     

     

    Kim.
  • ykkim's avatar
    ykkim
    Icon for Nimbostratus rankNimbostratus
    Aaron.

     

    Thanks a lot.

     

     

    I've retrieved the DB variable successfully. Maybe the value is better. Configsync.LocalConfigTime includes LTM change time and System configuration change time.

     

    And I'm glad to learn that F5's API can access DB variables.

     

     

    Kim.
  • I have the same need... How to get the time the configuration last changed?

     

    I am trying this, but the returned value does not seem to be correct.. is Configsync.LocalConfigTime really what I need here?

     

     

    In [44]: datetime.fromtimestamp(int(bigip.Management.DBVariable.query(['Configsync.LocalConfigTime'])[0]['value'])).ctime()

     

    Out[44]: 'Sat Nov 3 12:20:18 2012'