11-19-2015 03:01 PM
I have an EEM script that generates this output based on monitoring my WAN interface load:
%HA_EM-6-LOG: INTERFACE_LOAD: BW: 50000 kbps/sec || TX: 15/255, 1651000 bits/sec, 598 packets/sec || RX: 8/255, 3057000 bits/sec, 627 packets/sec
I would like to make the values of the variables be the same metric of kbps/sec or Mbps/sec and include the comma in the correct locations. No matter what I do, I cannot get it work correct with trim, replace, match, etc.
Can anyone help?
11-20-2015 12:52 PM
Have a look at http://wiki.tcl.tk/37493. ; Those procedures should give you exactly what you're looking for.
11-23-2015 04:29 PM
I am using an applet and not a Tcl script. :-(
11-23-2015 05:51 PM
I don't see a way to do this easily with an applet. Can you convert to Tcl using http://www.marcuscom.com/convert_applet, and then use the above code to print your numbers?
11-24-2015 11:25 AM
I will just trim the right 3 digits off the bit/sec and reference the numbers as kbps like the bandwidth statement.
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