06-28-2010 07:54 AM
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.
Best regards,
Jaffer
06-28-2010 11:13 PM
Exactly what are you doing, and what errors are you seeing? On what version of IOS are you installing this policy?
06-29-2010 06:30 AM
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.
07-01-2010 11:35 AM
What errors are you seeing in the show log from the switch? Are you using AAA command authorization on this device?
07-01-2010 02:33 PM
There are no errors. I am not using AAA, just local authentication. The EEM job through RME deploys just fine:
Commands
-------------
#MODE_ENABLE
#INTERACTIVE
mkdir flash:/QoS
#ENDS_INTERACTIVE
#MODE_CONFIG
event manager directory user policy flash:/QoS
#MODE_ENABLE
#INTERACTIVE
copy tftp://xxx.xxx.xxx.xxx/null flash:/QoS/QoS.tcl
#ENDS_INTERACTIVE
#MODE_CONFIG
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
Name
1 script user syslog Off Fri May 7 10:11:05 1993 2048
QoS.tcl
pattern {%LINK-3-UPDOWN}
nice 0 queue-priority normal maxrun 60.000 scheduler rp_primary
07-01-2010 02:36 PM
Enable "debug event manager tcl cli", trigger the policy again, then post the debug output.
07-01-2010 02:54 PM
07-01-2010 03:04 PM
07-02-2010 01:53 PM
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?
Thanks,
jaffer
07-02-2010 10:47 PM
How would you want to trigger it if the interface is already up? Does this need to be timer-based, or does it need to run manually?
07-03-2010 12:31 PM
Yes, if its already up and if a new interfaces comes up (IP Phone, Router, Switch) to apply the correct QoS statements, would that be possible?
07-04-2010 11:27 PM
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?
07-05-2010 06:00 PM
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?
07-06-2010 10:49 PM
07-12-2010 06:29 AM
Joseph, this works for me. I appreciate all your effort!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide