Guest User

Untitled

a guest
Nov 11th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. input
  2. @all_stats=
  3. [#<LowIpAlertStat:0x7f5af0527cc0
  4. @autonomous_system=
  5. #<AutonomousSystem id: 11, name: "DFW", number: 33070, description: "DFW", created_at: nil, updated_at: "2013-09-04 19:30:06", owner_number: "DCO1", private: false, autonomous_system_id: nil, network_environment_id: 55, low_ip_alert_check: true, low_ip_alert_threshold: 70>,
  6. @percentages_grouped_by_block=
  7. {"166.78.42.0/23"=>100.0,
  8. "166.78.33.0/24"=>100.0,
  9. "209.61.129.0/24"=>100.0,
  10. "166.78.36.0/22"=>99.21875,
  11. "166.78.32.0/24"=>100.0,
  12. "209.61.131.0/24"=>100.0,
  13. "209.61.128.0/24"=>100.0,
  14. "50.56.228.0/24"=>100.0},>]
  15. =>nil
  16.  
  17. desired out put
  18. autonomous_system_name cider percentage
  19. DFW 166.78.42.0/23 100
  20. DFW 166.78.33.0/24 100
  21. DFW 209.61.129.0/24 100.0
  22. DFW 166.78.36.0/22 99.21875
Advertisement
Add Comment
Please, Sign In to add comment