I am attempting to modify an existing tcl script that can apply QoS policies on IP Phones and Router/Switch ports but it does not seem to work, anyone know what I could be doing wrong? Ideally once I have this script working, I would use EEM netconfig job in LMS 3.2 to a group of switches. I have attached the script to this discussion.
I am trying to do the following:
Apply "auto qos voip cisco-phone" on IP Phones
Apply "auto qos voip trust" on ports connected to other switches and routers
Running the following version:
12.2(53) IP Services
QoS policies don't seem to apply ports connected switches and routers.
There are no errors. I am not using AAA, just local authentication. The EEM job through RME deploys just fine:
event manager directory user policy flash:/QoS
copy tftp://xxx.xxx.xxx.xxx/null flash:/QoS/QoS.tcl
event manager policy QoS.tcl
But the policy does not seem to be doing anything, its connected to another switch but its not applying the QoS policy to uplink port.
show event manager policy registered
No. Class Type Event Type Trap Time Registered Secu
1 script user syslog Off Fri May 7 10:11:05 1993 2048
nice 0 queue-priority normal maxrun 60.000 scheduler rp_primary
Niiice but the QoS policy worked to the policy after I physically disconnect/reconnect the port connected to another switch, is there a way to apply the policy if its already connected?
Again, what do you want the trigger to be? The way the policy is written now, when ANY interface comes up, your QoS commands will be applied to that interface. The trigger for this is a syslog message. Do you want another trigger, and if so, what trigger do you want?
I think my only requirement is that it should apply the policy according to the device type, I don't want to reset the physical interface just to apply the QoS policy. If the interface is already up than I suppose there would not be any messages via syslog hence no trigger, what else would you recommend?