[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]
Commands Reference, Volume 4
qosadd Command
Purpose
Adds a QoS (Quality of Service) Service Category or Policy Rule.
Syntax
To add a Service Category:
qosadd [ -s ServiceCategory] [ -t OutgoingTOS] [ -b MaxTokenBucket] [ -f FlowServiceType] [ -m MaxRate] service
To add a Policy Rule:
qosadd [ -s ServiceCategory] [ -r ServicePolicyRules] [ -l PolicyRulePriority] [ -n ProtocolNumber] [ -A SrcAddrRange] [ -a DestAddrRange] [ -P SrcPortRange] [ -p DestPortRange] policy
Description
The qosadd command adds the specified Service Category
or Policy Rule entry in the policyd.conf file and installs
the changes in the QoS Manager.
Flags
Flags with service add:
-s |
The name of the ServiceCategory attribute, which
is mandatory. |
-t |
The OutgoingTOS attribute, specified as an 8
bit binary number. |
-b |
The MaxTokenBucket attribute, specified in Kb
(Kilobits). |
-f |
The FlowServiceType attribute, which is ControlledLoad
or Guaranteed. |
-m |
The MaxRate attribute, which is specified in
Kbps (Kilobits per second). |
Flags with policy add:
-s |
The name of the ServiceCategory attribute, which
is mandatory. |
-r |
The name of the ServicePolicyRules attribute,
which is mandatory. |
-l |
The PolicyRulePriority attribute, which is a
positive integer. |
-n |
The ProtocolNumber attribute, which is defined
in the /etc/protocols file. |
-A |
The SrcAddrRange attribute, which is the Source
IP address range from a1 to a2 where a2 >= a1. |
-a |
The DestAddrRange attribute, which is the Destination
IP address range from i1 to i2 where i2 >= i1. |
-P |
The SrcPortRange attribute, which is the Source
Port range from a1 to a2 where a2 >= a1. |
-p |
The DestPortRange attribute, which is the Destination
Port range from i1 to i2 where i2 >= i1. |
Exit Status
0 |
Successful completion |
Positive Integer |
An error occurred. |
Examples
- To add the sc01 service, type:
qosadd -s sc01 -t 10000001 -b 81 -f ControlledLoad -m 41 service
- To add the pr01 policy, type:
qosadd -s sc01 -r pr01 -l 2 -n 17 -A 9.3.25.1-9.3.25.10 -a 9.3.25.33-9.3.25.33 -p 9001-9010 -P 9000-9000 policy
- To add the sc02 service, type:
qosadd -s sc02 -t 10000001 -b 81 service
- To add the pr02 policy, type:
qosadd -s sc02 -r pr02 -l 2 -n 17 policy
Related Information
The qosstat
command, qosmod command, qosremove command, qoslist command.
[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]