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:

Item Description
-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:

Item Description
-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

Item Description
0 Successful completion
Positive Integer An error occurred.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To add the sc01 service, type:
    qosadd -s sc01 -t 10000001 -b 81 -f ControlledLoad -m 41 service
  2. 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
  3. To add the sc02 service, type:
    qosadd -s sc02 -t 10000001 -b 81 service
  4. To add the pr02 policy, type:
    qosadd -s sc02 -r pr02 -l 2 -n 17 policy