tc - vypis jedneho classu

Michal Rybarik michal.rybarik na ecce.sk
Středa Květen 31 22:16:46 CEST 2006


Zdravim,

nech robim co robim, nedari sa mi presvedcit tc aby vypisalo iba jeden jediny class.
Podla heplu je syntax:
      tc class show [ dev STRING ] [ root | parent CLASSID ]
ale ked zadam device a klucove slovo "root" tak nevypise nic, a ked pouzijem "parent X:XX" 
tak vypise vzdy vsetky classy. Skusal som aj vselico ine, ale bezuspesne. 
Classy mam nastavene napriklad takto:


[fero-snp]$ tc -s c show dev imq1 parent 1:525
class htb 1:526 parent 1:2 leaf 526: prio 4 rate 256Kbit ceil 4000Kbit 
burst 1499b cburst 6720b
 Sent 8504749015 bytes 23372899 pkts (dropped 367, overlimits 0)
 rate 143076bps 292pps
 lended: 14522267 borrowed: 8850632 giants: 0
 tokens: -34962 ctokens: 7760

class htb 1:2 root rate 15Mbit ceil 15Mbit burst 21257b cburst 21257b
 Sent 8800635557 bytes 24889640 pkts (dropped 0, overlimits 0)
 rate 143893bps 292pps
 lended: 8970926 borrowed: 0 giants: 0
 tokens: 8083 ctokens: 8083

class htb 1:525 parent 1:2 leaf 525: prio 1 rate 512Kbit ceil 512Kbit 
burst 1499b cburst 2254b
 Sent 95708609 bytes 456391 pkts (dropped 0, overlimits 0)
 rate 55bps
 lended: 456318 borrowed: 73 giants: 0
 tokens: 18250 ctokens: 27688

class htb 1:495 parent 1:2 leaf 495: prio 4 rate 256Kbit ceil 1Mbit 
burst 1499b cburst 2909b
 Sent 200177933 bytes 1060350 pkts (dropped 68, overlimits 0)
 rate 241bps 3pps
 lended: 940129 borrowed: 120221 giants: 0
 tokens: 36300 ctokens: 17888

--
Michal Rybarik




Další informace o konferenci Linux