cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
182
Views
2
Helpful
6
Replies

Cisco EEM scripts

surazb
Level 1
Level 1

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

6 Replies 6

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

Regards, LG
*** Please Rate All Helpful Responses ***

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"

 

Do you have 

ftp username 

ftp password 

configured on the device?

Regards, LG
*** Please Rate All Helpful Responses ***

Yes, it is there and that is working fine 

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

Regards, LG
*** Please Rate All Helpful Responses ***

Mark Elsen
Hall of Fame
Hall of Fame

 

  - @surazb               FYI : https://bst.cisco.com/bugsearch/bug/CSCvg53802?rfs=qvred

  M.



-- Let everything happen to you  
       Beauty and terror
      Just keep going    
       No feeling is final
Reiner Maria Rilke (1899)