项目作者: mehrdadrad

项目描述 :
网络诊断工具
高级语言: Go
项目地址: git://github.com/mehrdadrad/mylg.git
创建时间: 2016-06-21T19:39:58Z
项目社区:https://github.com/mehrdadrad/mylg

开源协议:MIT License

下载


Build Status Go Report Card Gitter GORef

IMAGE

myLG, Command line Network Diagnostic Tool

myLG is an open source software utility which combines the functions of the different network probes in one network diagnostic tool.

Features

  • Popular looking glasses (ping/trace/bgp): Telia, Level3, NTT, Cogent, KPN
  • More than 200 countries DNS Lookup information
  • Local ping and real-time trace route
  • Packet analyzer - TCP/IP and other packets
  • Quick NMS (network management system)
  • Local HTTP/HTTPS ping (GET, POST, HEAD)
  • RIPE information (ASN, IP/CIDR)
  • PeeringDB information
  • Port scanning
  • Network LAN Discovery
  • Internet Speed Test
  • Web dashboard
  • Configurable options
  • Direct access to commands from shell
  • Support vi and emacs mode, almost all basic features
  • CLI auto complete and history features

Demo

IMAGE Demo

IMAGE ALT TEXT HERE
IMAGE ALT TEXT HERE
IMAGE ALT TEXT HERE
IMAGE ALT TEXT HERE

Usage

  1. =================================================
  2. _ ___
  3. _ __ _ _| | / __|
  4. | ' \ || | |_| (_ |
  5. |_|_|_\_, |____\___|
  6. |__/
  7. My Looking Glass
  8. Free Network Diagnostic Tool
  9. www.facebook.com/mylg.io
  10. http://mylg.io
  11. ================== myLG v0.2.6 ==================
  12. local> hping https://www.google.com -trace -c 4
  13. HPING www.google.com (216.58.194.196), Method: HEAD, DNSLookup: 17.2923 ms
  14. HTTP Response seq=0, proto=HTTP/1.1, status=200, time=183.097 ms, connection=34.789 ms, first byte read=148.167 ms
  15. HTTP Response seq=1, proto=HTTP/1.1, status=200, time=164.960 ms, connection=27.764 ms, first byte read=137.096 ms
  16. HTTP Response seq=2, proto=HTTP/1.1, status=200, time=153.559 ms, connection=27.881 ms, first byte read=125.526 ms
  17. HTTP Response seq=3, proto=HTTP/1.1, status=200, time=164.309 ms, connection=28.904 ms, first byte read=135.296 ms
  18. --- www.google.com HTTP ping statistics ---
  19. 4 requests transmitted, 4 replies received, 0% requests failed
  20. HTTP Round-trip min/avg/max = 153.56/164.05/183.10 ms
  21. HTTP Code [200] responses : [████████████████████] 100.00%
  22. local> whois 577
  23. BACOM - Bell Canada, CA
  24. +--------------------+-----------+
  25. | LOCATION | COVERED % |
  26. +--------------------+-----------+
  27. | Canada - ON | 61.3703 |
  28. | Canada | 36.2616 |
  29. | Canada - QC | 1.3461 |
  30. | United States - MA | 0.7160 |
  31. | Canada - BC | 0.1766 |
  32. | Canada - AB | 0.0811 |
  33. | United States | 0.0195 |
  34. | United States - NJ | 0.0143 |
  35. | Belgium | 0.0048 |
  36. | United States - NC | 0.0048 |
  37. | United States - TX | 0.0048 |
  38. | Canada - NB | 0.0000 |
  39. | Canada - NS | 0.0000 |
  40. +--------------------+-----------+
  41. local> scan www.google.com -p 1-500
  42. +----------+------+--------+-------------+
  43. | PROTOCOL | PORT | STATUS | DESCRIPTION |
  44. +----------+------+--------+-------------+
  45. | TCP | 80 | Open | |
  46. | TCP | 443 | Open | |
  47. +----------+------+--------+-------------+
  48. Scan done: 2 opened port(s) found in 5.605 seconds
  49. lg/telia/los angeles> bgp 8.8.8.0/24
  50. Telia Carrier Looking Glass - show route protocol bgp 8.8.8.0/24 table inet.0
  51. Router: Los Angeles
  52. Command: show route protocol bgp 8.8.8.0/24 table inet.0
  53. inet.0: 661498 destinations, 5564401 routes (657234 active, 509 holddown, 194799 hidden)
  54. + = Active Route, - = Last Active, * = Both
  55. 8.8.8.0/24 *[BGP/170] 33w0d 01:36:06, MED 0, localpref 200
  56. AS path: 15169 I, validation-state: unverified
  57. > to 62.115.36.170 via ae4.0
  58. [BGP/170] 8w3d 11:19:40, MED 0, localpref 200, from 80.91.255.95
  59. AS path: 15169 I, validation-state: unverified
  60. to 62.115.119.84 via xe-1/1/0.0
  61. to 62.115.119.88 via xe-1/2/0.0
  62. to 62.115.119.90 via xe-11/0/3.0
  63. to 62.115.119.102 via xe-9/0/0.0
  64. to 62.115.119.92 via xe-9/0/2.0
  65. > to 62.115.119.86 via xe-9/1/2.0
  66. to 62.115.119.98 via xe-9/2/2.0
  67. to 62.115.119.100 via xe-9/2/3.0
  68. to 62.115.119.94 via xe-9/3/1.0
  69. to 62.115.119.96 via xe-9/3/3.0
  70. ns/united states/redwood city> dig yahoo.com
  71. Trying to query server: 204.152.184.76 united states redwood city
  72. ;; opcode: QUERY, status: NOERROR, id: 19850
  73. ;; flags: qr rd ra;
  74. yahoo.com. 728 IN MX 1 mta6.am0.yahoodns.net.
  75. yahoo.com. 728 IN MX 1 mta5.am0.yahoodns.net.
  76. yahoo.com. 728 IN MX 1 mta7.am0.yahoodns.net.
  77. yahoo.com. 143013 IN NS ns4.yahoo.com.
  78. yahoo.com. 143013 IN NS ns6.yahoo.com.
  79. yahoo.com. 143013 IN NS ns2.yahoo.com.
  80. yahoo.com. 143013 IN NS ns5.yahoo.com.
  81. yahoo.com. 143013 IN NS ns1.yahoo.com.
  82. yahoo.com. 143013 IN NS ns3.yahoo.com.
  83. ;; ADDITIONAL SECTION:
  84. ns1.yahoo.com. 561456 IN A 68.180.131.16
  85. ns2.yahoo.com. 27934 IN A 68.142.255.16
  86. ns3.yahoo.com. 532599 IN A 203.84.221.53
  87. ns4.yahoo.com. 532599 IN A 98.138.11.157
  88. ns5.yahoo.com. 532599 IN A 119.160.247.124
  89. ns6.yahoo.com. 143291 IN A 121.101.144.139
  90. ns1.yahoo.com. 51624 IN AAAA 2001:4998:130::1001
  91. ns2.yahoo.com. 51624 IN AAAA 2001:4998:140::1002
  92. ns3.yahoo.com. 51624 IN AAAA 2406:8600:b8:fe03::1003
  93. ns6.yahoo.com. 143291 IN AAAA 2406:2000:108:4::1006
  94. ;; Query time: 1204 ms
  95. ;; CHAOS CLASS BIND
  96. version.bind. 0 CH TXT "9.10.4-P1"
  97. hostname.bind. 0 CH TXT "fred.isc.org"
  98. local> peering 6327
  99. The data provided from www.peeringdb.com
  100. +-------------------+---------------+---------------+--------------------+------+
  101. | NAME | TRAFFIC | TYPE | WEB SITE | NOTE |
  102. +-------------------+---------------+---------------+--------------------+------+
  103. | Shaw Cablesystems | 500-1000 Gbps | Cable/DSL/ISP | http://www.shaw.ca | |
  104. +-------------------+---------------+---------------+--------------------+------+
  105. +------------------+--------+--------+-----------------+-------------------------+
  106. | NAME | STATUS | SPEED | IPV4 ADDR | IPV6 ADDR |
  107. +------------------+--------+--------+-----------------+-------------------------+
  108. | Equinix Ashburn | ok | 20000 | 206.126.236.20 | 2001:504:0:2::6327:1 |
  109. | Equinix Ashburn | ok | 20000 | 206.223.115.20 | |
  110. | Equinix Chicago | ok | 30000 | 206.223.119.20 | 2001:504:0:4::6327:1 |
  111. | Equinix San Jose | ok | 30000 | 206.223.116.20 | 2001:504:0:1::6327:1 |
  112. | Equinix Seattle | ok | 20000 | 198.32.134.4 | 2001:504:12::4 |
  113. | Equinix New York | ok | 10000 | 198.32.118.16 | 2001:504:f::10 |
  114. | SIX Seattle | ok | 100000 | 206.81.80.54 | 2001:504:16::18b7 |
  115. | NYIIX | ok | 20000 | 198.32.160.86 | 2001:504:1::a500:6327:1 |
  116. | TorIX | ok | 10000 | 206.108.34.12 | |
  117. | PIX Vancouver | ok | 10000 | 206.223.127.2 | |
  118. | PIX Toronto | ok | 1000 | 206.223.127.132 | |
  119. | Equinix Toronto | ok | 10000 | 198.32.181.50 | 2001:504:d:80::6327:1 |
  120. +------------------+--------+--------+-----------------+-------------------------+
  121. local> disc
  122. Network LAN Discovery
  123. +--------------+-------------------+------+-----------+-------------------+
  124. | IP | MAC | HOST | INTERFACE | ORGANIZATION NAME |
  125. +--------------+-------------------+------+-----------+-------------------+
  126. | 172.16.0.0 | ff:ff:ff:ff:ff:ff | NA | en0 | NA |
  127. | 172.16.1.1 | e4:8d:8c:7a:66:26 | NA | en0 | Routerboard.com |
  128. | 172.16.1.10 | ac:bc:32:b4:33:23 | NA | en0 | Apple, Inc. |
  129. | 172.16.1.205 | 74:e5:b:97:11:28 | NA | en0 | NA |
  130. | 172.16.1.254 | 54:4a:0:33:b4:2f | NA | en0 | NA |
  131. | 172.16.2.12 | d4:f4:6f:7b:8f:cf | NA | en0 | Apple, Inc. |
  132. | 172.16.2.13 | 5c:ad:cf:23:7:f9 | NA | en0 | Apple, Inc. |
  133. | 172.16.2.111 | d0:a6:37:72:cf:2d | NA | en0 | Apple, Inc. |
  134. | 192.168.33.0 | ff:ff:ff:ff:ff:ff | NA | vboxnet0 | NA |
  135. | 192.168.33.1 | a:0:27:0:0:0 | NA | vboxnet0 | NA |
  136. | 224.0.0.251 | 1:0:5e:0:0:fb | NA | en0 | NA |
  137. +--------------+-------------------+------+-----------+-------------------+
  138. 11 host(s) has been found
  139. local> whois 8.8.8.8
  140. +------------+-------+--------------------------+
  141. | PREFIX | ASN | HOLDER |
  142. +------------+-------+--------------------------+
  143. | 8.8.8.0/24 | 15169 | GOOGLE - Google Inc., US |
  144. +------------+-------+--------------------------+
  145. local> dump -d
  146. +----------+-------------------+--------+-------+--------------------------------+-----------+-----------+--------------+----------+
  147. | NAME | MAC | STATUS | MTU | IP ADDRESSES | MULTICAST | BROADCAST | POINTTOPOINT | LOOPBACK |
  148. +----------+-------------------+--------+-------+--------------------------------+-----------+-----------+--------------+----------+
  149. | lo0 | | UP | 16384 | 127.0.0.1/8 ::1/128 fe80::1/64 | ✓ | | | ✓ |
  150. | gif0 | | DOWN | 1280 | | ✓ | | ✓ | |
  151. | stf0 | | DOWN | 1280 | | | | | |
  152. | en0 | ac:bc:32:b4:33:23 | UP | 1500 | fe80::181b:3d55:e9a2:e3df/64 | ✓ | ✓ | | |
  153. | | | | | 192.168.0.103/24 | | | | |
  154. | p2p0 | 0e:bc:32:b4:33:23 | UP | 2304 | | ✓ | ✓ | | |
  155. | awdl0 | ee:3a:98:da:44:5c | UP | 1484 | fe80::ec3a:98ff:feda:445c/64 | ✓ | ✓ | | |
  156. | en1 | 4a:00:03:9c:8d:60 | UP | 1500 | | | ✓ | | |
  157. | en2 | 4a:00:03:9c:8d:61 | UP | 1500 | | | ✓ | | |
  158. | bridge0 | 4a:00:03:9c:8d:60 | UP | 1500 | | ✓ | ✓ | | |
  159. | utun0 | | UP | 2000 | fe80::ec23:f621:ae74:5271/64 | ✓ | | ✓ | |
  160. | utun1 | | UP | 1380 | fe80::d187:7734:49d9:9d84/64 | ✓ | | ✓ | |
  161. | vboxnet0 | 0a:00:27:00:00:00 | DOWN | 1500 | | ✓ | ✓ | | |
  162. +----------+-------------------+--------+-------+--------------------------------+-----------+-----------+--------------+----------+
  163. local> dump
  164. 20:29:36.415 IPv4/TCP ec2-52-73-80-145.compute-1.amazonaws.com.:443(https) > 192.168.0.104:61479 [P.], win 166, len: 33
  165. 20:29:36.416 IPv4/TCP 192.168.0.104:61479 > ec2-52-73-80-145.compute-1.amazonaws.com.:443(https) [.], win 4094, len: 0
  166. 20:29:36.417 IPv4/TCP 192.168.0.104:61479 > ec2-52-73-80-145.compute-1.amazonaws.com.:443(https) [P.], win 4096, len: 37
  167. 20:29:36.977 IPv4/UDP 192.168.0.104:62733 > 192.168.0.1:53(domain) , len: 0
  168. 20:29:37.537 IPv4/TCP ec2-54-86-120-119.compute-1.amazonaws.com.:443(https) > 192.168.0.104:61302 [.], win 124, len: 0
  169. 20:29:38.125 IPv4/TCP 192.168.0.104:61304 > ec2-52-23-213-161.compute-1.amazonaws.com.:443(https) [P.], win 4096, len: 85
  170. 20:29:38.126 IPv4/TCP ec2-52-23-213-161.compute-1.amazonaws.com.:443(https) > 192.168.0.104:61304 [.], win 1048, len: 0
  171. 20:29:38.760 IPv4/TCP ec2-54-165-12-100.compute-1.amazonaws.com.:443(https) > 192.168.0.104:61296 [.], win 2085, len: 0
  172. 20:29:39.263 IPv4/ICMP 192.168.0.104 > ir1.fp.vip.ne1.yahoo.com.: EchoRequest id 20859, seq 27196, len: 56
  173. 20:29:39.265 IPv4/UDP 192.168.0.1:53(domain) > 192.168.0.104:62733 , len: 0
  174. local> dump tcp and port 443 -c 10
  175. 23:26:56.026 IPv4/TCP 192.168.0.104:64686 > 192.0.80.242:443(https) [F.], win 8192, len: 0
  176. 23:26:56.045 IPv4/TCP 192.168.0.104:64695 > i2.wp.com.:443(https) [F.], win 8192, len: 0
  177. 23:26:56.048 IPv4/TCP i2.wp.com.:443(https) > 192.168.0.104:64695 [F.], win 62, len: 0
  178. 23:26:56.081 IPv4/TCP 192.168.0.104:63692 > ec2-54-88-144-213.compute-1.amazonaws.com.:443(https) [P.], win 4096, len: 37
  179. 23:26:56.082 IPv4/TCP 192.168.0.104:64695 > i2.wp.com.:443(https) [.], win 8192, len: 0
  180. 23:26:56.083 IPv4/TCP 192.0.80.242:443(https) > 192.168.0.104:64686 [.], win 64, len: 0
  181. 23:26:56.150 IPv4/TCP ec2-54-88-144-213.compute-1.amazonaws.com.:443(https) > 192.168.0.104:63692 [.], win 166, len: 0
  182. 23:26:56.259 IPv4/TCP ec2-54-172-56-148.compute-1.amazonaws.com.:443(https) > 192.168.0.104:63623 [P.], win 1316, len: 85
  183. 23:26:56.260 IPv4/TCP 192.168.0.104:63623 > ec2-54-172-56-148.compute-1.amazonaws.com.:443(https) [.], win 4093, len: 0
  184. 23:26:56.820 IPv4/TCP 192.168.0.104:64691 > 192.30.253.116:443(https) [.], win 4096, len: 0
  185. local> dump -s http -x
  186. 22:10:15.770 IPv4/TCP 151.101.44.143:443(https) > 10.0.9.9:50771 [P.], win 59, len: 156
  187. 00000000 16 03 03 00 64 02 00 00 60 03 03 a2 32 19 4b 78 |....d...`...2.Kx|
  188. 00000010 77 ed 40 75 f6 4c 55 74 43 1d b7 6c f2 59 f8 d8 |w.@u.LUtC..l.Y..|
  189. 00000020 09 8a 3e 03 62 56 38 45 d2 bc 02 20 bd 52 8a 42 |..>.bV8E... .R.B|
  190. 00000030 5b 01 33 7d 2b 0b 41 da eb 38 87 79 f1 37 62 5c |[.3}+.A..8.y.7b\|
  191. 00000040 f3 ed 5a 7c 07 6c e9 28 9b fe fa 76 c0 2f 00 00 |..Z|.l.(...v./..|
  192. 00000050 18 ff 01 00 01 00 00 05 00 00 00 10 00 0b 00 09 |................|
  193. 00000060 08 68 74 74 70 2f 31 2e 31 14 03 03 00 01 01 16 |.http/1.1.......|
  194. 00000070 03 03 00 28 fc 20 2d 6f 1a 94 78 53 55 0f 8c 05 |...(. -o..xSU...|
  195. 00000080 3e ae 12 34 79 af d2 a9 bd 22 e5 3f b1 2b f5 36 |>..4y....".?.+.6|
  196. 00000090 ba 51 31 37 f5 0b e6 d2 40 fb 88 a5 |.Q17....@... |
  197. local> dump !udp -w /home/user1/mypcap -c 100000
  198. local> ping google.com -6
  199. PING google.com (2607:f8b0:400b:80a::200e): 56 data bytes
  200. 64 bytes from 2607:f8b0:400b:80a::200e icmp_seq=0 time=23.193988 ms
  201. 64 bytes from 2607:f8b0:400b:80a::200e icmp_seq=1 time=21.265492 ms
  202. 64 bytes from 2607:f8b0:400b:80a::200e icmp_seq=2 time=24.521306 ms
  203. 64 bytes from 2607:f8b0:400b:80a::200e icmp_seq=3 time=25.313072 ms
  204. local> trace google.com
  205. trace route to google.com (172.217.4.142), 30 hops max
  206. 1 192.168.0.1 4.705 ms 1.236 ms 0.941 ms
  207. 2 142.254.236.25 [ASN 20001/ROADRUNNER-WEST] 13.941 ms 13.504 ms 12.303 ms
  208. 3 agg59.snmncaby01h.socal.rr.com. (76.167.31.241) [ASN 20001/ROADRUNNER-WEST] 14.834 ms 11.625 ms 13.050 ms
  209. 4 agg20.lamrcadq01r.socal.rr.com. (72.129.10.128) [ASN 20001/ROADRUNNER-WEST] 17.617 ms 18.064 ms 15.612 ms
  210. 5 agg28.lsancarc01r.socal.rr.com. (72.129.9.0) [ASN 20001/ROADRUNNER-WEST] 16.291 ms 24.079 ms 20.456 ms
  211. 6 bu-ether26.lsancarc0yw-bcr00.tbone.rr.com. (66.109.3.230) [ASN 7843/TWCABLE-BACKBONE] 18.339 ms 23.278 ms 23.434 ms
  212. 7 216.0.6.25 [ASN 2828/XO-AS15] 19.842 ms 21.025 ms 35.105 ms
  213. 8 216.0.6.42 [ASN 2828/XO-AS15] 16.666 ms 18.252 ms 18.872 ms
  214. 9 209.85.245.199 [ASN 15169/GOOGLE] 14.358 ms 17.478 ms
  215. 209.85.246.125 [ASN 15169/GOOGLE] 18.593 ms
  216. 10 72.14.239.121 [ASN 15169/GOOGLE] 21.635 ms
  217. 72.14.238.213 [ASN 15169/GOOGLE] 16.133 ms
  218. 72.14.239.121 [ASN 15169/GOOGLE] 21.541 ms
  219. 11 lax17s14-in-f14.1e100.net. (172.217.4.142) [ASN 15169/GOOGLE] 18.127 ms 17.151 ms 18.892 ms
  220. local> show config
  221. set ping timeout 2s
  222. set ping interval 1s
  223. set ping count 4
  224. set hping timeout 2s
  225. set hping method HEAD
  226. set hping data mylg
  227. set hping count 5
  228. set web port 8080
  229. set web address 127.0.0.1
  230. set scan port 1-1024
  231. local> set hping count 10
  232. sh-3.2# mylg peering 577
  233. The data provided from www.peeringdb.com
  234. +----------------------+---------+------+--------------------+------+
  235. | NAME | TRAFFIC | TYPE | WEB SITE | NOTE |
  236. +----------------------+---------+------+--------------------+------+
  237. | Bell Canada Backbone | | NSP | http://www.bell.ca | |
  238. +----------------------+---------+------+--------------------+------+
  239. +-------------------+--------+-------+-----------------+------------------------+
  240. | NAME | STATUS | SPEED | IPV4 ADDR | IPV6 ADDR |
  241. +-------------------+--------+-------+-----------------+------------------------+
  242. | Equinix Ashburn | ok | 20000 | 206.126.236.203 | 2001:504:0:2::577:1 |
  243. | Equinix Chicago | ok | 20000 | 206.223.119.66 | 2001:504:0:4::577:1 |
  244. | Equinix Palo Alto | ok | 10000 | 198.32.176.94 | 2001:504:d::5e |
  245. | Equinix New York | ok | 10000 | 198.32.118.113 | 2001:504:f::577:1 |
  246. | SIX Seattle | ok | 10000 | 206.81.80.217 | 2001:504:16::241 |
  247. | NYIIX | ok | 10000 | 198.32.160.36 | 2001:504:1::a500:577:1 |
  248. +-------------------+--------+-------+-----------------+------------------------+
  249. local> nms
  250. nms> connect core1-sjc
  251. Connected: Juniper Networks, Inc. qfx10008 Ethernet Switch, kernel JUNOS 15.1X53 ...
  252. nms/core1-sjc> show interface xe-.*
  253. 15 interfaces has been found
  254. +--------------+---------+---------------------------------+------------+-------------+------------+-------------+------------+-------------+----------+-----------+
  255. | INTERFACE | STATUS | DESCRIPTION | TRAFFIC IN | TRAFFIC OUT | PACKETS IN | PACKETS OUT | DISCARD IN | DISCARD OUT | ERROR IN | ERROR OUT |
  256. +--------------+---------+---------------------------------+------------+-------------+------------+-------------+------------+-------------+----------+-----------+
  257. | xe-7/0/0:1 | Up | RSW011-01-SJC-002 | 192.58 K | 75.72 K | 64.60 | 56.60 | 0.00 | 0.00 | 0.00 | 0.00 |
  258. | xe-7/0/0:2 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  259. | xe-7/0/0:3 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  260. | xe-7/0/0:0 | Up | RSW012-01-SJC-001 | 61.40 K | 10.04 K | 8.60 | 5.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  261. | xe-6/0/0:0 | Down | CORE1-SAN-XE-2/2/0-AGGIPER40GLR | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  262. | xe-6/0/0:1 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  263. | xe-6/0/0:2 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  264. | xe-6/0/0:3 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  265. | xe-6/0/1:0 | Up | CORE1-SAN-XE-10/3/1-10GTEK | 11.79 M | 1.39 M | 1.82 K | 1.02 K | 0.00 | 0.00 | 0.00 | 0.00 |
  266. | xe-6/0/1:1 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  267. | xe-6/0/1:2 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  268. | xe-6/0/1:3 | Down | | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  269. | xe-6/0/2:0 | Up | CORE2-SJC-XE-1/2/0-AGG59 | 5.25 K | 409.60 | 0.20 | 0.01 | 0.00 | 0.00 | 0.00 | 0.00 |
  270. | xe-6/0/2:1 | Up | CORE3-SJC-XE-1/3/0-AGG31 | 5.44 K | 0.00 | 0.31 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  271. | xe-6/0/3:0 | Down | CORE3-SJC-XE-1/0/0-40GTEK | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
  272. +--------------+---------+---------------------------------+------------+-------------+------------+-------------+------------+-------------+----------+-----------+
  273. * units per seconds

Build

It can be built for Linux and Darwin. there is libpcap dependency:

  1. - LINUX
  2. apt-get install libpcap-dev
  3. - OSX
  4. brew install homebrew/dupes/libpcap

Given that the Go Language compiler (version 1.7 or greater is required) is installed, you can build it with:

  1. go get github.com/mehrdadrad/mylg
  2. cd $GOPATH/src/github.com/mehrdadrad/mylg/
  3. go build mylg.go

License

This project is licensed under MIT license. Please read the LICENSE file.

Contribute

Welcomes any kind of contribution, please follow the next steps:

  • Fork the project on github.com.
  • Create a new branch.
  • Commit changes to the new branch.
  • Send a pull request.