Re: tc not taking stdin as input for creaing tc rules

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 22, 2017 at 03:01:10PM +0530, Akshat Kakkar wrote:
> Following command is not executing. It gives tc help output in reply.
> 
> printf "class del dev eno2 parent 1: classid 1:1
> class del dev eno2 parent 1: classid 1:2
> class del dev eno2 parent 1: classid 1:3
> class del dev eno2 parent 1: classid 1:4
> class del dev eno2 parent 1: classid 1:5
> class del dev eno2 parent 1: classid 1:6
> class del dev eno2 parent 1: classid 1:7
> class add dev eno2 parent 1:  classid 1:1 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> class add dev eno2 parent 1:  classid 1:2 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> class add dev eno2 parent 1:  classid 1:3 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> class add dev eno2 parent 1:  classid 1:4 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> class add dev eno2 parent 1:  classid 1:5 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> class add dev eno2 parent 1:  classid 1:6 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> class add dev eno2 parent 1:  classid 1:7 htb rate 100000000bit burst
> 10M ceil 100000000bit prio 1
> " | /usr/sbin/tc -force -b

Option -b requires a parameter (batch file containing commands). Use '-'
to make tc read stdin.

Cheers, Phil
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux