<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Netflow ED missing more real-life examples? in Network Management</title>
    <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232841#M123701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; There is an absolute parameter to timestamp in the flow record.&amp;nbsp; Can you tap into that metric instead?&amp;nbsp; It should give you epoch time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 18:03:25 GMT</pubDate>
    <dc:creator>Joe Clarke</dc:creator>
    <dc:date>2013-04-26T18:03:25Z</dc:date>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232834#M123694</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EEM v3.0 introduced a very powerful event detector in my opinion: Netflow Event Detector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I wasn’t able to find too many EEM applets/TCL scripts taking advantage of this Netflow ED or even tutorials that explains how to use it appropriately (especially how to use it with TCL scripts).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to find only one TCL script on many forums/blogs: yes, you may know it; it’s how to identify the “TTL low than 5” flows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m asking the community whether you have more useful real-life examples of applets/scripts that use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I was thinking of using it to detect packet retransmissions (using the “TCP sequence number” field values) or to find if certain packets that should come at predefined intervals (like SCCP keepalives or EIGRP hellos) are missing (using the “timestamp sysuptime last” field value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to “read” the sysuptime last timestamp, but I haven’t found out a way to compare two timestamps to see if there’s a missed packet inside the interval. Do you know what format has “timestamp” field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mihai&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 14:29:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232834#M123694</guid>
      <dc:creator>mpetcu</dc:creator>
      <dc:date>2013-04-26T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232835#M123695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have any other NF ED examples, but the sysUpTime timestamp is the value of sysUpTime when the flow was matched.&amp;nbsp; SysUpTime is tracked in hundredths of a second.&amp;nbsp; It counts up monotonically until it hits 2^32-1 (just over a year), then it will reset to zero.&amp;nbsp; Assuming a wrap did not occur, you can simply subtract the later from the earlier then multiply by 100 to get a diff in seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 14:45:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232835#M123695</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2013-04-26T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232836#M123696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below the configuration I have tested:&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;flow record FNF&lt;/P&gt;&lt;P&gt;match ipv4 source address&lt;/P&gt;&lt;P&gt;match ipv4 destination address&lt;/P&gt;&lt;P&gt;collect timestamp sys-uptime first&lt;/P&gt;&lt;P&gt;collect timestamp sys-uptime last&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;flow monitor FNF&lt;/P&gt;&lt;P&gt;record FNF&lt;/P&gt;&lt;P&gt;cache timeout inactive 300&lt;/P&gt;&lt;P&gt;cache timeout active 604800&lt;/P&gt;&lt;P&gt;cache timeout update 604800&lt;/P&gt;&lt;P&gt;cache entries 9000&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;event manager applet fnf&lt;/P&gt;&lt;P&gt;event nf monitor-name "FNF" event-type update event1 entry-value "224.0.0.10" field ipv4 destination address entry-op eq event2 field timestamp sys-uptime last entry-op wc maxrun 60&lt;/P&gt;&lt;P&gt;action 010 puts "$_nf_monitor_name"&lt;/P&gt;&lt;P&gt;action 020 puts "$_nf_dest_address"&lt;/P&gt;&lt;P&gt;action 030 puts "$_nf_event2_field"&lt;/P&gt;&lt;P&gt;action 040 puts "$_nf_event2_value"&lt;/P&gt;&lt;P&gt;action 041 puts "$_event_pub_time"&lt;/P&gt;&lt;P&gt;action 050 wait 16&lt;/P&gt;&lt;P&gt;action 060 set x $_event_pub_time&lt;/P&gt;&lt;P&gt;action 070 puts "x = $x"&lt;/P&gt;&lt;P&gt;action 080 wait 16&lt;/P&gt;&lt;P&gt;action 090 set y $_event_pub_time&lt;/P&gt;&lt;P&gt;action 100 puts "y = $y"&lt;/P&gt;&lt;P&gt;action 110 subtract $x $y&lt;/P&gt;&lt;P&gt;action 120 puts "$_result"&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I had the following results:&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;Apr 26 18:30:11.591: %HA_EM-6-LOG: fnf: x = Apr 26 18:29:55.511&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;Apr 26 18:30:14.179: %HA_EM-6-LOG: fnf: y = Apr 26 18:29:42.047&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;Apr 26 18:30:14.179: %HA_EM-6-FMPD_OPERAND_INVALID: Invalid operand in action, expected value within range -2147483648 to 2147483647, received: Apr 26 18:29:42.047&lt;/P&gt;&lt;P&gt;! &lt;/P&gt;&lt;P&gt;Apr 26 18:30:14.179: %HA_EM-3-FMPD_ERROR: Error executing applet fnf statement 110&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to obtain variables “x” and “y” as timestamps but somehow I wasn’t able to subtract. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something obvious?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mihai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:38:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232836#M123696</guid>
      <dc:creator>mpetcu</dc:creator>
      <dc:date>2013-04-26T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232837#M123697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're not using the NetFlow timestamp, you're using the EEM event timestamp.&amp;nbsp; These are very different.&amp;nbsp; If you want to use the event time, then use _event_pub_sec.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:57:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232837#M123697</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2013-04-26T16:57:06Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232838#M123698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I have pasted another applet version - I have plenty of variants but none was working, inclusing the below version which uses Netflow timestamp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;event manager applet fnf &lt;/P&gt;&lt;P&gt; event nf monitor-name "FNF" event-type update event1 entry-value "224.0.0.10" field ipv4 destination address entry-op eq event2 field timestamp sys-uptime last entry-op wc maxrun 60&lt;/P&gt;&lt;P&gt; action 010 puts "$_nf_monitor_name"&lt;/P&gt;&lt;P&gt; action 020 puts "$_nf_dest_address"&lt;/P&gt;&lt;P&gt; action 030 puts "$_nf_event2_field"&lt;/P&gt;&lt;P&gt; action 040 puts "$_nf_event2_value"&lt;/P&gt;&lt;P&gt; action 050 wait 16&lt;/P&gt;&lt;P&gt; action 060 set x $_nf_event2_value&lt;/P&gt;&lt;P&gt; action 070 puts "x = $x"&lt;/P&gt;&lt;P&gt; action 080 wait 16&lt;/P&gt;&lt;P&gt; action 090 set y $_nf_event2_value&lt;/P&gt;&lt;P&gt; action 100 puts "y = $y"&lt;/P&gt;&lt;P&gt; action 110 subtract $x $y&lt;/P&gt;&lt;P&gt; action 120 puts "$_result"&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;Apr 26 18:43:22.871: %HA_EM-6-LOG: fnf: timestamp sys-uptime last&lt;/P&gt;&lt;P&gt;Apr 26 18:43:22.871: %HA_EM-6-LOG: fnf: 18:43:23.767&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;Apr 26 18:43:25.119: %HA_EM-6-LOG: fnf: x = 18:43:08.019&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;Apr 26 18:43:26.739: %HA_EM-6-LOG: fnf: y = 18:42:55.627&lt;/P&gt;&lt;P&gt;Apr 26 18:43:26.743: %HA_EM-6-FMPD_OPERAND_INVALID: Invalid operand in action, expected value within range -2147483648 to 2147483647, received: 18:42:55.627&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;Apr 26 18:43:26.747: %HA_EM-3-FMPD_ERROR: Error executing applet fnf statement 110&lt;/P&gt;&lt;P&gt;R1#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your feedback!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 17:10:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232838#M123698</guid>
      <dc:creator>mpetcu</dc:creator>
      <dc:date>2013-04-26T17:10:39Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232839#M123699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like sysUpTime is being translated to actual time automatically.&amp;nbsp; That won't work for you.&amp;nbsp; What if you try the absolute time instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 17:16:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232839#M123699</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2013-04-26T17:16:11Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232840#M123700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By "absolute time" do you mean _event_pub_sec?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 17:39:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232840#M123700</guid>
      <dc:creator>mpetcu</dc:creator>
      <dc:date>2013-04-26T17:39:46Z</dc:date>
    </item>
    <item>
      <title>Netflow ED missing more real-life examples?</title>
      <link>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232841#M123701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; There is an absolute parameter to timestamp in the flow record.&amp;nbsp; Can you tap into that metric instead?&amp;nbsp; It should give you epoch time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 18:03:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/netflow-ed-missing-more-real-life-examples/m-p/2232841#M123701</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2013-04-26T18:03:25Z</dc:date>
    </item>
  </channel>
</rss>

