DX Unified Infrastructure Management

 View Only

How to count string in single line using logmon

  • 1.  How to count string in single line using logmon

    Posted May 04, 2012 06:13 PM

    Hu Guys,

     

    I need help to using logmon probe to count String in a single line and save QOS Count.

     

    I'm using URL mode and this page returns this string: "OK|Requisition successfully executed|INTERFACE!LAN!1280144486!4219423164:INTERFACE!WAN!4171080392!1397183388:IP_CLIENTE!192.168.123.241!5391737!37482505:IP_CLIENTE!192.168.126.146!10449016!93071245:IP_CLIENTE!192.168.124.185!5673867!65324028:IP_CLIENTE!192.168.126.149!15270942!116866447:IP_CLIENTE!192.168.123.18!1832169!8577129:IP_CLIENTE!192.168.124.192!844204!6408026:IP_CLIENTE!192.168.124.96!203021!6460319:IP_CLIENTE!192.168.126.203!5926586!53493280:IP_CLIENTE!192.168.125.91!8719564!21263986"

     

    I need to save QOS count with string IP_CLIENTE, but this string is dynamic.

     

    I tryed to use match "*IP_CLIENT*", but the count value is 1 because logmon search the first string.

     

    Someone can help if is it possible? or I need to create script to create multi-line file based on this url command?

     

    Thanks.

    Marcelo