Forum Discussion

Steve-S_87321's avatar
Steve-S_87321
Icon for Nimbostratus rankNimbostratus
Sep 10, 2007

Restore config from Fireguard 4.6.2 build117 to 4.5PTF-07 Build18

Is it possible to restore a configuration from one BigIP version 4.6.2 build117 to BigIP 4.5PTF-07 Build18 ? They are both HA systems but we need to restore the configuration and I get the following when attempting to restore:

 

 

Hostname of UCS file is lb240f508.sysco.com, local hostname is lb240f511.sysco.com

 

Installing shared configuration on host lb240f511.sysco.com

 

Saving active configuration...

 

Creating UCS for config save request...

 

Script file does not exist:

 

Common.Bigip.CS.save.459.inst_post = "/usr/local/lib/configsync/sysip_inst_post"

 

Error accessing database.

 

Error: Error parsing configsync entry in database

 

 

Any ideas how I can get the config from one to another ?
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi,

    Can I ask first why you are trying to load a 4.6.x UCS on a 4.5ptf7 unit? I don't think F5 officially supports loading a UCS from a different 4.x version. I think the cleanest option might be to install 4.6.2 on the unit, install the UCS from the other unit and then upgrade to the latest 4.6.x version. This avoids any question about the integrity of the current software installed on the box.

    With that said...

    It looks like the config install script is erring before it actually tries to load the config from the UCS--when it first tries to save the existing config to a UCS file. There are keys in the database which specify which files to include in a UCS archive. For some reason, the database has a key which specifies to save the sysip_inst_post script, but that file isn't present on the filesystem.

    Was the database modified manually? Or has another UCS been partially loaded on this unit before? If you don't want to perform a clean install and you have support for the unit, it might be a good idea to open a case to get help troubleshooting this.

    I would expect that you'd get this error when trying to save the config on the 4.5ptf7 unit.

    I don't have a 4.5ptf7 unit to check. But here are the contents of the script from a 4.5.12 unit. Perhaps you could create the sysip_inst_post script and retry the 'b config save' command.

    HOST:/usr/local/lib/configsync cat sysip_inst_post

    
     fix sysip in /etc/snmpd.conf using either
      local.bigip.snmpd.sysip or local.bigip.ftb.myipaddr
    if [ -f /etc/snmpd.conf ]; then
        ipaddr=`/sbin/bigpipe db get local.bigip.snmpd.sysip 2>/dev/null \
                        | sed -e 's/.* = //' -e 's/"//g'`
        if [ X${ipaddr} = X ]; then
            ipaddr=`/sbin/bigpipe db get local.bigip.ftb.myipaddr 2>/dev/null \
                        | sed -e 's/.* = //' -e 's/"//g'`
        fi
        if [ X${ipaddr} != X ]; then
             see if anything needs to be done
            grep "^sysip.*${ipaddr}" /etc/snmpd.conf 2>&1 > /dev/null;
            if [ $? -ne 0 ]; then
                sed -e "s/^sysip.*/sysip          ${ipaddr}/" \
                    < /etc/snmpd.conf > /tmp/snmpd.conf.$$
                mv -f /tmp/snmpd.conf.$$ /etc/snmpd.conf
            fi
        fi
    fi

    Else, if the script isn't actually needed for your version, you could try removing the database entry that specifies to try to save the file:

    b db unset Common.Bigip.CS.save.459.inst_post

    Hopefully this gives you a few options on how to proceed.

    Aaron