Forum Discussion

Wes_98712's avatar
Wes_98712
Icon for Nimbostratus rankNimbostratus
Nov 16, 2005

use comment lines?

I know in v9 irules you can use to comment lines, but is there a comparable feature in v4.X that we can use? In particular just a comment char that we can put date stamps against as our rules change nearly daily.

 

 

-Wes
  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    Wesley,

    version 4.x allows to put comments anywhere in the configuration file (comments start with ""). However, it can be done only by editting the configuration file directly in text editor (vi, pico). Unfortunately comments are lost on every "bigpipe save" or change from the GUI :-(. So, for majority practical purposes the answer is: no, comments are not supported in rules in version 4.x.

    If all you need is tracking configuration changes, you can use the audit facility. You can enable it by setting global variable "audit" to "enable". It allows to track changes made from the GUI and from the commandline. Audit records are logged to file /var/log/bigip. The look (for example) like this:

    
    Nov 17 10:49:02 b6 kernel: RULE - name: test_server, key: 2 **added**
    Nov 17 11:03:16 b6 kernel: VIP 10.66.66.218:80 **added**