ani toto mi nejde
$results = $API->comm("/queue/simple/print");
$API->comm("stats");
echo "<tr><td><strong>Přenesená data : </strong></td></tr><br />";
echo "<table width=100% border=1>";
echo "<font color='black'";
echo "<tr><td align=left size=2>Název zařízení</td><td size=6>Upload</td><td size=2>Download</td></tr>";
echo "<tr><td align=left>";
for ($i=0; $i<$pocet; $i++)
{
$regtable = $results[$i];
echo "<font size=6>" . $regtable['name'] . "</font><br>";
}
echo "</td><td>";
for ($i=0; $i<$pocet; $i++)
{
$regtable = $results[$i];
$retezec = $regtable['bytes'];
$parser = explode('/', $retezec);
$parser[0] = $parser[0]/1024/1024;
$parser2 = $parser[0]/1024;
echo "<font size=6>" . round($parser[0]) . " MB (" . round($parser2,1) . " GB)" . "</font><br>";
}
$API->disconnect();
}
data to vycita
<<< [19] /queue/simple/print >>> [3/3] bytes read. >>> [3, 3240]!re >>> [7/7] bytes read. >>> [7, 3232]=.id=*1 >>> [13/13] bytes read. >>> [13, 3218]=name=Kuba-PC >>> [24/24] bytes read. >>> [24, 3193]=target=192.168.1.110/32 >>> [12/12] bytes read. >>> [12, 3180]=parent=none >>> [14/14] bytes read. >>> [14, 3165]=packet-marks= >>> [13/13] bytes read. >>> [13, 3151]=priority=8/8 >>> [34/34] bytes read. >>> [34, 3116]=queue=default-small/default-small >>> [13/13] bytes read. >>> [13, 3102]=limit-at=0/0 >>> [29/29] bytes read. >>> [29, 3072]=max-limit=20000000/150000000 >>> [16/16] bytes read. >>> [16, 3055]=burst-limit=0/0 >>> [20/20] bytes read. >>> [20, 3034]=burst-threshold=0/0 >>> [17/17] bytes read. >>> [17, 3016]=burst-time=0s/0s >>> [20/20] bytes read. >>> [20, 2995]=bucket-size=0.1/0.1 >>> [10/10] bytes read. >>> [10, 2984]=bytes=0/0 >>> [14/14] bytes read. >>> [14, 2969]=total-bytes=0 >>> [12/12] bytes read. >>> [12, 2956]=packets=0/0 >>> [16/16] bytes read. >>> [16, 2939]=total-packets=0 >>> [12/12] bytes read. >>> [12, 2926]=dropped=0/0 >>> [16/16] bytes read. >>> [16, 2909]=total-dropped=0 >>> [9/9] bytes read. >>> [9, 2899]=rate=0/0 >>> [13/13] bytes read. >>> [13, 2885]=total-rate=0 >>> [16/16] bytes read. >>> [16, 2868]=packet-rate=0/0 >>> [20/20] bytes read. >>> [20, 2847]=total-packet-rate=0 >>> [19/19] bytes read. >>> [19, 2827]=queued-packets=0/0 >>> [23/23] bytes read. >>> [23, 2803]=total-queued-packets=0 >>> [17/17] bytes read. >>> [17, 2785]=queued-bytes=0/0 >>> [21/21] bytes read. >>> [21, 2763]=total-queued-bytes=0 >>> [14/14] bytes read. >>> [14, 2748]=invalid=false >>> [14/14] bytes read. >>> [14, 2733]=dynamic=false >>> [15/15] bytes read. >>> [15, 2717]=disabled=false >>> [3/3] bytes read. >>> [3, 2712]!re >>> [7/7] bytes read. >>> [7, 2704]=.id=*2 >>> [17/17] bytes read. >>> [17, 2686]=name=Kuba-iPhone >>> [24/24] bytes read. >>> [24, 2661]=target=192.168.1.114/32 >>> [12/12] bytes read. >>> [12, 2648]=parent=none >>> [14/14] bytes read. >>> [14, 2633]=packet-marks= >>> [13/13] bytes read. >>> [13, 2619]=priority=8/8 >>> [34/34] bytes read. >>> [34, 2584]=queue=default-small/default-small >>> [13/13] bytes read. >>> [13, 2570]=limit-at=0/0 >>> [28/28] bytes read. >>> [28, 2541]=max-limit=20000000/20000000 >>> [16/16] bytes read. >>> [16, 2524]=burst-limit=0/0 >>> [20/20] bytes read. >>> [20, 2503]=burst-threshold=0/0 >>> [17/17] bytes read. >>> [17, 2485]=burst-time=0s/0s >>> [20/20] bytes read. >>> [20, 2464]=bucket-size=0.1/0.1 >>> [10/10] bytes read. >>> [10, 2453]=bytes=0/0 >>> [14/14] bytes read. >>> [14, 2438]=total-bytes=0 >>> [12/12] bytes read. >>> [12, 2425]=packets=0/0 >>> [16/16] bytes read. >>> [16, 2408]=total-packets=0 >>> [12/12] bytes read. >>> [12, 2395]=dropped=0/0 >>> [16/16] bytes read. >>> [16, 2378]=total-dropped=0 >>> [9/9] bytes read. >>> [9, 2368]=rate=0/0 >>> [13/13] bytes read. >>> [13, 2354]=total-rate=0 >>> [16/16] bytes read. >>> [16, 2337]=packet-rate=0/0 >>> [20/20] bytes read. >>> [20, 2316]=total-packet-rate=0 >>> [19/19] bytes read. >>> [19, 2296]=queued-packets=0/0 >>> [23/23] bytes read. >>> [23, 2272]=total-queued-packets=0 >>> [17/17] bytes read. >>> [17, 2254]=queued-bytes=0/0 >>> [21/21] bytes read. >>> [21, 2232]=total-queued-bytes=0 >>> [14/14] bytes read. >>> [14, 2217]=invalid=false >>> [14/14] bytes read. >>> [14, 2202]=dynamic=false >>> [15/15] bytes read. >>> [15, 2186]=disabled=false >>> [3/3] bytes read. >>> [3, 2181]!re >>> [7/7] bytes read. >>> [7, 2173]=.id=*3 >>> [9/9] bytes read. >>> [9, 2163]=name=NAS >>> [24/24] bytes read. >>> [24, 2138]=target=192.168.1.250/32 >>> [12/12] bytes read. >>> [12, 2125]=parent=none >>> [14/14] bytes read. >>> [14, 2110]=packet-marks= >>> [13/13] bytes read. >>> [13, 2096]=priority=8/8 >>> [34/34] bytes read. >>> [34, 2061]=queue=default-small/default-small >>> [13/13] bytes read. >>> [13, 2047]=limit-at=0/0 >>> [32/32] bytes read. >>> [32, 2014]=max-limit=1000000000/1000000000 >>> [16/16] bytes read. >>> [16, 1997]=burst-limit=0/0 >>> [20/20] bytes read. >>> [20, 1976]=burst-threshold=0/0 >>> [17/17] bytes read. >>> [17, 1958]=burst-time=0s/0s >>> [20/20] bytes read. >>> [20, 1937]=bucket-size=0.1/0.1 >>> [18/18] bytes read. >>> [18, 1918]=bytes=66809/19151 >>> [14/14] bytes read. >>> [14, 1903]=total-bytes=0 >>> [16/16] bytes read. >>> [16, 1886]=packets=465/286 >>> [16/16] bytes read. >>> [16, 1869]=total-packets=0 >>> [12/12] bytes read. >>> [12, 1856]=dropped=0/0 >>> [16/16] bytes read. >>> [16, 1839]=total-dropped=0 >>> [9/9] bytes read. >>> [9, 1829]=rate=0/0 >>> [13/13] bytes read. >>> [13, 1815]=total-rate=0 >>> [16/16] bytes read. >>> [16, 1798]=packet-rate=0/0 >>> [20/20] bytes read. >>> [20, 1777]=total-packet-rate=0 >>> [19/19] bytes read. >>> [19, 1757]=queued-packets=0/0 >>> [23/23] bytes read. >>> [23, 1733]=total-queued-packets=0 >>> [17/17] bytes read. >>> [17, 1715]=queued-bytes=0/0 >>> [21/21] bytes read. >>> [21, 1693]=total-queued-bytes=0 >>> [14/14] bytes read. >>> [14, 1678]=invalid=false >>> [14/14] bytes read. >>> [14, 1663]=dynamic=false >>> [15/15] bytes read. >>> [15, 1647]=disabled=false >>> [3/3] bytes read. >>> [3, 1642]!re >>> [7/7] bytes read. >>> [7, 1634]=.id=*4 >>> [19/19] bytes read. >>> [19, 1614]=name=nVidia Shield >>> [24/24] bytes read. >>> [24, 1589]=target=192.168.1.115/32 >>> [12/12] bytes read. >>> [12, 1576]=parent=none >>> [14/14] bytes read. >>> [14, 1561]=packet-marks= >>> [13/13] bytes read. >>> [13, 1547]=priority=8/8 >>> [34/34] bytes read. >>> [34, 1512]=queue=default-small/default-small >>> [13/13] bytes read. >>> [13, 1498]=limit-at=0/0 >>> [32/32] bytes read. >>> [32, 1465]=max-limit=1000000000/1000000000 >>> [16/16] bytes read. >>> [16, 1448]=burst-limit=0/0 >>> [20/20] bytes read. >>> [20, 1427]=burst-threshold=0/0 >>> [17/17] bytes read. >>> [17, 1409]=burst-time=0s/0s >>> [20/20] bytes read. >>> [20, 1388]=bucket-size=0.1/0.1 >>> [10/10] bytes read. >>> [10, 1377]=bytes=0/0 >>> [14/14] bytes read. >>> [14, 1362]=total-bytes=0 >>> [12/12] bytes read. >>> [12, 1349]=packets=0/0 >>> [16/16] bytes read. >>> [16, 1332]=total-packets=0 >>> [12/12] bytes read. >>> [12, 1319]=dropped=0/0 >>> [16/16] bytes read. >>> [16, 1302]=total-dropped=0 >>> [9/9] bytes read. >>> [9, 1292]=rate=0/0 >>> [13/13] bytes read. >>> [13, 1278]=total-rate=0 >>> [16/16] bytes read. >>> [16, 1261]=packet-rate=0/0 >>> [20/20] bytes read. >>> [20, 1240]=total-packet-rate=0 >>> [19/19] bytes read. >>> [19, 1220]=queued-packets=0/0 >>> [23/23] bytes read. >>> [23, 1196]=total-queued-packets=0 >>> [17/17] bytes read. >>> [17, 1178]=queued-bytes=0/0 >>> [21/21] bytes read. >>> [21, 1156]=total-queued-bytes=0 >>> [14/14] bytes read. >>> [14, 1141]=invalid=false >>> [14/14] bytes read. >>> [14, 1126]=dynamic=false >>> [15/15] bytes read. >>> [15, 1110]=disabled=false >>> [3/3] bytes read. >>> [3, 1105]!re >>> [7/7] bytes read. >>> [7, 1097]=.id=*6 >>> [16/16] bytes read. >>> [16, 1080]=name=VerandaSTB >>> [23/23] bytes read. >>> [23, 1056]=target=192.168.1.21/32 >>> [12/12] bytes read. >>> [12, 1043]=parent=none >>> [14/14] bytes read. >>> [14, 1028]=packet-marks= >>> [13/13] bytes read. >>> [13, 1014]=priority=8/8 >>> [34/34] bytes read. >>> [34, 979]=queue=default-small/default-small >>> [13/13] bytes read. >>> [13, 965]=limit-at=0/0 >>> [32/32] bytes read. >>> [32, 932]=max-limit=1000000000/1000000000 >>> [16/16] bytes read. >>> [16, 915]=burst-limit=0/0 >>> [20/20] bytes read. >>> [20, 894]=burst-threshold=0/0 >>> [17/17] bytes read. >>> [17, 876]=burst-time=0s/0s >>> [20/20] bytes read. >>> [20, 855]=bucket-size=0.1/0.1 >>> [22/22] bytes read. >>> [22, 832]=bytes=557271/44182446 >>> [14/14] bytes read. >>> [14, 817]=total-bytes=0 >>> [19/19] bytes read. >>> [19, 797]=packets=9250/31042 >>> [16/16] bytes read. >>> [16, 780]=total-packets=0 >>> [12/12] bytes read. >>> [12, 767]=dropped=0/0 >>> [16/16] bytes read. >>> [16, 750]=total-dropped=0 >>> [9/9] bytes read. >>> [9, 740]=rate=0/0 >>> [13/13] bytes read. >>> [13, 726]=total-rate=0 >>> [16/16] bytes read. >>> [16, 709]=packet-rate=0/0 >>> [20/20] bytes read. >>> [20, 688]=total-packet-rate=0 >>> [19/19] bytes read. >>> [19, 668]=queued-packets=0/0 >>> [23/23] bytes read. >>> [23, 644]=total-queued-packets=0 >>> [17/17] bytes read. >>> [17, 626]=queued-bytes=0/0 >>> [21/21] bytes read. >>> [21, 604]=total-queued-bytes=0 >>> [14/14] bytes read. >>> [14, 589]=invalid=false >>> [14/14] bytes read. >>> [14, 574]=dynamic=false >>> [15/15] bytes read. >>> [15, 558]=disabled=false >>> [3/3] bytes read. >>> [3, 553]!re >>> [7/7] bytes read. >>> [7, 545]=.id=*7 >>> [11/11] bytes read. >>> [11, 533]=name=Dream >>> [24/24] bytes read. >>> [24, 508]=target=192.168.1.112/32 >>> [12/12] bytes read. >>> [12, 495]=parent=none >>> [14/14] bytes read. >>> [14, 480]=packet-marks= >>> [13/13] bytes read. >>> [13, 466]=priority=8/8 >>> [34/34] bytes read. >>> [34, 431]=queue=default-small/default-small >>> [13/13] bytes read. >>> [13, 417]=limit-at=0/0 >>> [32/32] bytes read. >>> [32, 384]=max-limit=1000000000/1000000000 >>> [16/16] bytes read. >>> [16, 367]=burst-limit=0/0 >>> [20/20] bytes read. >>> [20, 346]=burst-threshold=0/0 >>> [17/17] bytes read. >>> [17, 328]=burst-time=0s/0s >>> [20/20] bytes read. >>> [20, 307]=bucket-size=0.1/0.1 >>> [20/20] bytes read. >>> [20, 286]=bytes=738335/379864 >>> [14/14] bytes read. >>> [14, 271]=total-bytes=0 >>> [18/18] bytes read. >>> [18, 252]=packets=8721/5375 >>> [16/16] bytes read. >>> [16, 235]=total-packets=0 >>> [12/12] bytes read. >>> [12, 222]=dropped=0/0 >>> [16/16] bytes read. >>> [16, 205]=total-dropped=0 >>> [14/14] bytes read. >>> [14, 190]=rate=1032/656 >>> [13/13] bytes read. >>> [13, 176]=total-rate=0 >>> [16/16] bytes read. >>> [16, 159]=packet-rate=1/1 >>> [20/20] bytes read. >>> [20, 138]=total-packet-rate=0 >>> [19/19] bytes read. >>> [19, 118]=queued-packets=0/0 >>> [23/23] bytes read. >>> [23, 94]=total-queued-packets=0 >>> [17/17] bytes read. >>> [17, 76]=queued-bytes=0/0 >>> [21/21] bytes read. >>> [21, 54]=total-queued-bytes=0 >>> [14/14] bytes read. >>> [14, 39]=invalid=false >>> [14/14] bytes read. >>> [14, 24]=dynamic=false >>> [15/15] bytes read. >>> [15, 8]=disabled=false >>> [5/5] bytes read. >>> [5, 1]!done <<< [5] stats >>> [5/5] bytes read. >>> [5, 40]!trap >>> [31/31] bytes read. >>> [31, 8]=message=no such command prefix >>> [5/5] bytes read. >>> [5, 1]!don
UZ MI TO JDE.. JSEM ZAPOMNEL DEBIL DOSADIT PROMENOU POCET