Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

fh_parse_var: could not find environment variable: hour

Hi guys, I just found an error on using the script and the action doesn't work. It says there's something wrong with the variable "hour". How can I resolve this? Thanks.

Script:

ROUTER(config)#event manager applet cell2

ROUTER(config-applet)# event syslog pattern "Modem in HWIC slot 0/2 is DOWN"

ROUTER(config-applet)# action 1.0 cli command "enable"

ROUTER(config-applet)# action 1.1 cli command "show clock"

ROUTER(config-applet)# action 1.2 regexp "([0-9]+):[0-9]:[0-9]" $_cli_result match hour

ROUTER(config-applet)# action 1.3 if $hour ge 17

ROUTER(config-applet)# action 1.4 reload

ROUTER(config-applet)# action 1.5 end

Error:

Aug 25 08:23:57.362: %CELLWAN-2-MODEM_DOWN: Modem in HWIC slot 0/0 is DOWN

Aug 25 08:23:57.690: %HA_EM-3-FMPD_UNKNOWN_ENV: fh_parse_var: could not find environment variable: hour

Aug 25 08:23:57.690: %HA_EM-3-FMPD_UNKNOWN_ENV: fh_parse_var: could not find environment variable: hour

758
Views
0
Helpful
0
Replies
CreatePlease to create content