Forum Discussion

liycheng_55020's avatar
liycheng_55020
Icon for Nimbostratus rankNimbostratus
Jan 21, 2010

Any possiable for convert V9 .scf configuration into XML format?

Any possiable for convert V9 .scf configuration into XML format?

 

Does F5 provide such kind of API?

 

Or someone who would like to share your tools?

 

 

  • well, it is a little bit difficult to phrase the .scf file, I stuck here for days,

     

    like this part:

     

    system {

     

    auth source type local

     

    failsafe action failover restart tm

     

    gui setup disable

     

    hostname lb001

     

    }

     

    snmpd {

     

    allow

     

    "10.10.10.0/255.255.255.0"

     

    include "sysdescr BIG-IP lb001 Version 9.4.6 401.0"

     

    load max1 5

     

    load max15 5

     

    load max5 5

     

    syscontact "root@xxx.com"

     

    syslocation "NY"

     

    sysservices 78

     

    trapsess

     

    box1

     

    auth password none

     

    auth protocol NONE

     

    community "public"

     

    engine id none

     

    host box1.xxx.com

     

    port 161

     

    privacy password none

     

    privacy protocol NONE

     

    security level noAuthNoPriv

     

    security name none

     

    version 2c

     

    community comm-public

     

    access ro

     

    community name "public"

     

    ipv6 disable

     

    oid none

     

    source "default"

     

    proc

     

    bigd

     

    process "/usr/bin/bigd"

     

    bigdbd

     

    process "/usr/bin/bigdbd"

     

    chmand

     

    process "/bin/chmand"

     

    httpd

     

    max "infinity"

     

    process "/usr/sbin/httpd"

     

    mcpd

     

    process "/bin/mcpd"

     

    sod

     

    process "/usr/bin/sod"

     

    tmm

     

    max "infinity"

     

    process "/bin/tmm"

     

    disk

     

    root

     

    minspace 2K

     

    path "/"

     

    var

     

    minspace 10K

     

    path "/var"

     

    }

     

    it is not easy to tell them as in "key=value" format,

     

    since the key name can not be picked up easy, sometimes it is one word,

     

    somethimes it maybe two or three or more, sometimes, these key/value pairs may cross several lines.

     

    unless I can get a lookup table filrst which contain all the key words,

     

    so that I can separate the configure information from .scf format into some aggregate like "key=value" format.

     

     

     

    Or someone may have a better idea?