Forum Discussion
davidfisher
Cirrus
May 30, 2019How to use integers or numbers in custom SNMP Traps?
Hi I am asking this from some questions I came across. How would you make a trap for 01010029:5: Clock advanced by <number> ticks Is <number> the right way or should it be int or *int somethi...
Dario_Garrido
Noctilucent
May 30, 2019The easiest way is to use "Clock advanced by (.*) ticks" as matching expression.
KR,
Dario.
- davidfisherJun 01, 2019
Cirrus
so .* only stands for numerics or integers or for any string?
- HamishJun 01, 2019
Cirrocumulus
Its a regex...
. == any character
* == 0 or more of the preceding character
So .* effectively matches ANY string. Including an empty one.
See https://techdocs.f5.com/kb/en-us/products/big-ip-afm/manuals/product/dns-dos-firewall-implementations-11-6-0/6.html for details of alert configs
Also see https://www.rexegg.com/regex-quickstart.html for a regex cheat sheet.
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