I have configured and applied Qos successfully on my router,the following is the configuration.
class-map match-any HTTP_TRAFFIC
match protocol http
match protocol secure-http
class-map match-any ftp-traffic
match protocol ftp
class-map match-any nbar-discovery
match protocol fasttrack
match protocol edonkey
match protocol gnutella
match protocol winmx
class-map match-any GARBAGE
match protocol h323
match protocol cuseeme
match protocol vdolive
class-map match-any ALL_TRAFFIC
match class-map HTTP_TRAFFIC
match class-map ftp-traffic
match class-map nbar-discovery
match class-map GARBAGE
match class-map class-default
!
!
policy-map PRIORITY
class HTTP_TRAFFIC
bandwidth 2560
class ftp-traffic
bandwidth 1024
class nbar-discovery
bandwidth 20
class GARBAGE
drop
class class-default
fair-queue
policy-map SHAPE_4096
class ALL_TRAFFIC
shape average percent 100
service-policy PRIORITY
policy-map blocking_P2P
class nbar-discovery
police cir 40500
conform-action transmit
exceed-action drop
class GARBAGE
drop
class HTTP_TRAFFIC
police 2560000
class ftp-traffic
police cir percent 25
Now i want that Qos applied only for office timings. how can i do that.