Forum Discussion
richkingly_1410
Altostratus
Jan 16, 2015Calling a TMSH Command in iCall
Hi, I'm new to iApps/iCall and was wondering if anyone could help please? I make use of a very specific ASM report which I can get via TMSH with the following command: send-mail analytics ap...
mikeshimkus_111
Jan 16, 2015Historic F5 Account
It looks like tmsh::send-mail isn't part of the API, so you can't call it from an iCall script: https://devcentral.f5.com/wiki/TMSH.Commands.ashx
However, it looks like you can create a scheduled ASM report using tmsh::create, so you should be able to write an iApp that creates this object and update the schedule on reconfiguration. Does that help?
analytics application-security scheduled-report test_charts_scheduler {
email-addresses { me@example.com }
first-time 2015-01-16:14:00:00
frequency every-24-hours
include-total enabled
multi-leveled-report {
chart-path { attack-type application }
limit 5
time-diff last-day
view-by violation
}
next-time 2015-01-16:14:00:00
smtp-config my_smtp
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects