Just would like to know how to config the following requirement:
1. SRX345 is monitoring the WAN interfaces of bandwidth utilization.
2. If the utilization goes upto the 90%, some events will happen ( some commands).
If I can can create an event-option to achieve the task ? any configuration example ?
If You need to monitor a single logical interface (be it VLAN, IRB or AE), then this is possible with JUNOS RMON.
1/ configure a RMON alarm and event with log for that interface, OID would be ifHCOut1SecRate or ifHCIn1SecRate
2/ when RMON alarm fires, You'd get a SNMP_RMON syslog message
3/ configure Your event-policy to act on the above message
If You need to monitor 2 or more logical interfaces and do something when sum of BW utilizations across all monitored interfaces crosses the threshold, then You need to use an event-script.
Thanks for your great advice and recommendation...
Will try this solution,
depending on what you are tying to achieve, you may want to check the average bandwidth utilization of an interface for a bit longer period(for example, 5 minutes) rather than ifHCIn1SecRate/ifHCOut1SecRate. You can see a proof of concept event script here: https://github.com/jumation/bwutil
I didn't test it on SRX, but on MX it worked fine:
Thanks so much for your advice and recommendation..
I shall test this POC.
No problem. In addition, I updated the installation instructions with a screenshot which highlights what needs to be changed in text editor before uploading the script to device: