| MAC[% IF params.vendor %] | Vendor[% END %] | Match | Device or Node[% IF params.stamps %] | First Seen | Last Seen[% END %] | 
  
  
    [% SET first_row = 1 %]
    [% WHILE (row = ips.next) %]
    
      | [% IF first_row %]
        [% row.mac %]
        [% ELSE %]
         
        [% END %]
      
      [% IF params.vendor %] | [% IF first_row %]
        [% row.oui.company %]
        [% ELSE %]
         
        [% END %][% END %] | MAC → IP | [% row.ip %]
        [% ' (' _ row.dns.remove(settings.domain_suffix) _ ')' IF row.dns %]
        [% ' a' IF NOT row.active %][% IF params.stamps %] | [% row.time_first %] | [% rw.time_last %][% END %] | 
    [% SET first_row = 0 %]
    [% END %]
    [% WHILE (node = sightings.next) %]
    
      | [% IF first_row %]
        [% node.mac %]
        [% ELSE %]
         
        [% END %][% IF params.vendor %] | [% IF first_row %]
        [% node.oui.company %]
        [% ELSE %]
         
        [% END %][% END %] | Switch Port | [% node.switch %] [ [% node.port %] ]
        [% ' (' _ node.device.dns.remove(settings.domain_suffix) _ ')' IF node.device.dns %]
        [% ' a' IF NOT node.active %][% IF params.stamps %] | [% node.time_first %] | [% node.time_last %][% END %] | 
    [% SET first_row = 0 %]
    [% END %]
    [% WHILE (port = ports.next) %]
    
      | [% IF first_row %]
        [% port.mac %]
        [% ELSE %]
         
        [% END %][% IF params.vendor %] | [% IF first_row %]
        [% port.oui.company %]
        [% ELSE %]
         
        [% END %][% END %] | Switch Port | [% port.ip %] [ [% port.port %] ]
        [% ' (' _ port.device.dns.remove(settings.domain_suffix) _ ')' IF port.device.dns %][% IF params.stamps %] | [% port.creation %] | [% port.creation %][% END %] | 
    [% SET first_row = 0 %]
    [% END %]