02-24-2022 01:07 AM
hello all, i would like to ask you for advice. i would need to send from my devices each hour a syslog message (for example heartbeat_nameofdevice) each hour to Qradar. those devices are nexus 9K (9.3.9) and ASA firewall. i tried to configure it with event manager on nexus in this way
event manager applet heartbeat
action 1 syslog msg test_BEUWVVSSPRLESW009N93
but i am not able to set up timer in order to trigger this action each hour
thank you
Michal
02-24-2022 01:18 AM
Hello,
you can add a CRON timer (in the example below, the syslog message would be run one minute after each hour):
event manager applet heartbeat
--> event timer cron cron-entry "01 * * * *" maxrun 99999999
action 1 syslog msg test_BEUWVVSSPRLESW009N93
02-24-2022 01:23 AM
unfortunately event timer is not a option which is enabled on my nexus devices
(config-applet)# event ?
cli - Create a cli event specification
counter - Create a counter event
fanabsent - Create fanabsent event specification
fanbad - Create fanbad event specification
fib - FIB related event
gold - Create a 'Diagnostic' event specification
internal-link-flap - Create a 'internal-link-flap' event specification
memory - Create memory thresholds event specification
module - Create a 'module' event specification
module-failure - Create a 'module-failure' event specification
neighbor-discovery - Show CDP new neighbors
oir - Create Online-Insertion-Removal event specification
policy-default - Use the event in the system policy being overridden
poweroverbudget - Create poweroverbudget event specification
snmp - Create a 'snmp' event specification.
storm-control - Create a storm control event specification
syslog - Create a syslog event specification
sysmgr - System manager related events
tag - Event tag identifier
temperature - Create temperature event specification
test - Create a 'test' event specification
track - Create a 'track' event specification
is there some other option ?
02-24-2022 01:36 AM
Hello,
check if you can use KRON instead:
event manager applet EVERYHOUR_APP
event none
action 1 syslog msg test_BEUWVVSSPRLESW009N93
!
kron policy-list EVERYHOUR_POL
cli event man run EVERYHOUR_APP
!
kron occurence EVERYHOUR_OCC in 60 recurring
policy-list EVERYHOUR_POL
02-24-2022 01:55 AM
hello Georg,
unfortunately even KRON is not enabled on our nexuses
(config-applet)# kron ?
^
% Invalid command at '^' marker.
(config-applet)# exit
(config)# kron ?
^
% Invalid command at '^' marker.
02-24-2022 01:56 AM
maybe is there some other way how to automatically generate log on nexus and ASA each hour ?
02-24-2022 02:27 AM
Hello,
for the Nexus, try the below:
feature scheduler
!
scheduler job name SYSLOG_JOB
syslog msg test_BEUWVVSSPRLESW009N93
!
scheduler schedule name SCHED_HOURLY
job name SYSLOG_JOB
time hourly 00
02-24-2022 01:58 AM
Try EEM with scheduler :
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