IMC
cancel
Showing results for 
Search instead for 
Did you mean: 

F5 v12.1.2 backup_startup_config_scp.tcl fails "enable_prompt": no such variable"

DPS_IT
Occasional Advisor

F5 v12.1.2 backup_startup_config_scp.tcl fails "enable_prompt": no such variable"

Hi there,

I have recently tried to backup the config of our BIG F5 LTM appliances and it breaks when it executes this script

backup_startup_config_scp.tcl 

 

"Failed to exec cmd: C:/Program Files/iMC/server/bin/../../server/conf/adapters/ICC/F5/F5BIGIP/backup_startup_config_scp.tcl, error message: C:/Program Files/iMC/server/bin/../../server/conf/adapters/ICC/F5/F5BIGIP/backup_startup_config_scp.tcl(27): error: can't read "enable_prompt": no such variable"

Within the script that references enable_prompt

set ERROR_RESULT true
set ERROR_MESSAGE "Timeout to login. No message recive from device!"
#exit
set loop false
} $enable_prompt {
set loop false
}
}
}

 

I had to fix the save_sys_ucs.tcl since bigpipe has been deprectiated although i am stuck with scping the ucs file to the IMC repository.

Thoughts?

Thanks

Mark

 

 

 

2 REPLIES
DPS_IT
Occasional Advisor

Re: F5 v12.1.2 backup_startup_config_scp.tcl fails "enable_prompt": no such variable"

Hi there,

Can i please have a response.

 

Thank you 

DPS_IT
Occasional Advisor

Re: F5 v12.1.2 backup_startup_config_scp.tcl fails "enable_prompt": no such variable"

Hi there,

 

I thought i would re invesitgate this.

Lindsay i noticed in one of your previous responses regarding a similar issue with $enable_prompt in which the poster removed the entries in order for the backup to work successfully  (https://community.hpe.com/t5/IMC/Deploy-Configuration-Fails-since-E0403P04/td-p/6887401)

I removed it from the following tcls

backup_running_config_scp.tcl

backup_startup_config_scp.tcl

And i modified save_sys_ucs.tcl with send "save sys ucs /var/local/ucs/imc_icc_f5_cfg.ucs\r" since "b config save  /var/local/ucs/imc_icc_f5_cfg.ucs\r" does not work for v12 although now i receive the following error.

scp: startup-config: No such file or directory

Using keyboard-interactive authentication.
Password:
Last login: Fri Oct 27 14:32:32 2017 from x.x.x.x
admin@(xxxxxxx)(cfg-sync In Sync)(Active)(/Common)(tmos)# save sys ucs /var/local/ucs/imc_icc_f5_cfg.ucs
/var/local/ucs/imc_icc_f5_cfg.ucs: file exists, overwrite it? (y/n) y
Saving active configuration...
/var/local/ucs/imc_icc_f5_cfg.ucs is saved.
admin@(xxxxxx)(cfg-sync In Sync)(Active)(/Common)(tmos)#
admin@(xxxxxx)(cfg-sync In Sync)(Active)(/Common)(tmos)# Using keyboard-interactive authentication.
Password:
scp: startup-config: No such file or directory

Using SCP for file transfer.

 

I was looking around the scipts  and i found this error result under the save_sys_ucs.txt file.

Any thoughts?

 

#**************************************************************************
# Identification:save_sys_ucs
# Purpose:       save current configuration to ucs file
#**************************************************************************

set timeout $long_timeout
expect *
send "save sys ucs /var/local/ucs/imc_icc_f5_cfg.ucs\r"
#send "b config save  /var/local/ucs/imc_icc_f5_cfg.ucs\r"

set loop true
while {$loop == "true"} {
    expect {
        "y/n" {
            send "y\r"
        } "No such file or directory" {
            set ERROR_RESULT  true
            set ERROR_MESSAGE "No such file or directory."