How to run this script

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
how to run the below

create qosprofile "QP5"
#Start editor to create file#
vi omsubnet.pol

#Enter insert mode#

#Copy and Paste the below#
entry QP5subnet {
if {
 then {
Qosprofile qp5;
#To this line#

#To save#

#Enable DSCP replacement#
configure access-list omsubnet.pol

Photo of Khalid Saif

Khalid Saif

  • 70 Points

Posted 2 years ago

  • 0
  • 1
Photo of Taykin Izzet

Taykin Izzet , Employee

  • 3,106 Points 3k badge 2x thumb
Khalid, we do have an article that walks through creating and applying an access-list in further detail:

You would have to use your policy instead of the example in the article. Be sure to press escape and i (insert) before pasting otherwise you may miss a line.

The policy will have to be applied to port or VLAN:

configure access-list <POLICY_NAME> [port|vlan] <PORT_NUMBER | VLAN_NAME> [ingress|egress]

You can also verify whether there are any errors in the policy using:

check policy <policy_name>