Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. SELECT
  2. HEX(hi.exporter_id) AS exporter_hex,
  3. IF(SUBSTRING_INDEX(MAX(ti.nametag),':',-1) IN('asa','sonicwall','flowalyzer','mailinizer','enterasys','paloalto','barracuda','vitals') ,
  4. SUBSTRING_INDEX(MAX(ti.nametag),':',-1),
  5. 'flow') AS icon_type
  6. FROM plixer.distributed_history_index hi
  7. JOIN plixer.distributed_template_names ti ON hi.template_hash_int = ti.template_hash_int
  8. WHERE interval_len = 1
  9. AND ti.nametag NOT LIKE '%:'
  10. GROUP BY exporter_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement