01-20-2026 03:54 AM
Hi Experts,
Need your help one more time
I am configuring EEM script for switches backup but i facing below errors
Configured command -
action 25.0 cli command "copy running-config ftp://CISCOSWITCH:Passwd@192.168.10.10/SWITCH/IN/$h/$h-$t abc.txt"
Error -
%HA_EM-3-FMPD_UNKNOWN_ENV: fh_parse_var: could not find environment variable: h
Could you please help me here
Thanks a lot in advanced
01-20-2026 04:28 AM
Hello @surazb,
Do you have the command
cli command “enable”
in your script before the copy command?
can you share the script in order to better understand the issue?
Hope this helps.
Liviu
01-20-2026 04:36 AM
Here configured commands
action 15.0 cli command "enable"
action 20.0 cli command "term len 0"
action 25.0 cli command "copy running-config ftp://CISCOSWITCH:Passwd@192.168.10.10/SWITCH/IN/$h/$h-$t abc.txt"
01-20-2026 04:48 AM
Do you have
ftp username
ftp password
configured on the device?
01-20-2026 04:50 AM
Yes, it is there and that is working fine
01-20-2026 05:46 AM
The link provided by @Mark Elsen points to a possible cause for your issue.
If you have a support contract for your device, you can contact TAC for further investigation.
Hope this helps.
Liviu
01-20-2026 04:31 AM
- @surazb FYI : https://bst.cisco.com/bugsearch/bug/CSCvg53802?rfs=qvred
M.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide