12-15-2008 11:06 AM
I've tried just about everything I could think of (yes, I've read the documentation) to do the following:
policy-map WAN-OUT
class class-default
fair-queue
The first statement, "policy-map WAN-OUT" is already on all the routers, but the next two may not be. I did a basic template to look for "class class-default" and have identified the routers that do not have the 2nd two statements but I have tried to create an advanced template to do a 'deploy and simple can't get it to: 1)Do a compliacny check and come up with the same results as the basic template (so that I know the advanced version is working correctly) and then, later, do a deploy.
The documentation is VERY sketchy and I'm spending too much time doing trial and error.
Any suggestions with a walk-through so I can actually understand how a double nested command will work?
I started off with a global command set(1) to do the first statement, but can't figure out if the "+ class class-default" should go into the list of commands at that point (something has to or you'll get an error when you try to save it).
Pretty confusing.
Solved! Go to Solution.
12-15-2008 03:33 PM
Sounds like there is still something wrong with your template. Here is one which should work.
12-15-2008 11:19 AM
I think what you want is something like:
Submode: policy-map WAN-OUT
Commands:
+ class class-default
+ fair-queue
12-15-2008 11:27 AM
Ooooh. That's too easy. ha!
The thing is that the "fair-queue" is a subcommand to "class class-default" so I was under the assumption that I needed to first do a global command, "policy-map WAN-OUT", then do another subcommand under that for "class class-default" and then the final command under the "class..." command. On the router itself, the "class..." is indented and under that the "fair..." is indented.
Flip
12-15-2008 11:40 AM
You'll need two commandlets in the same template, one the parent of the other:
Commandlet 1:
Submode: policy-map WAN-OUT
Commands:
+ class class-default
Commandlet 2:
Parent: Commandlet 1
Submode: class class-default
Commands:
+ fair-queue
12-15-2008 11:56 AM
I think that's what I have. But let's check.
I have a global "commandset":
Name: PolicyWFQ
Submode: policy-map WAN-OUT
Mark as Prerequisite: "checked"
CLI Commands: + class class-default
Now, should I create a command"set" that is also global or nest it under this first one?
If I don't nest it, would I make it the following global commandset?:
Name: ClassDefault
Subcommand: class class-default (??)
Prerequisite: PolicyWFQ
Mark as Prerequisite: (leave unchecked)
CLI Commands: + fair-queue
Prior to this conversation, I made the 2nd commandset nested under PolicyWFQ
Flip
12-15-2008 11:58 AM
You don't need to make PolicyWFQ a prerequisite, but you can. The ClassDefault command set should be a child of PolicyWFQ. Everything else looks correct.
12-15-2008 01:09 PM
The report that came back seemed OK but the non compliant devices showed:
+ policy-map WAN-OUT
+ fair-queue
I don't see the subcommand of the policy-map of "+ class class-default".
So, if I run a deploy, I assume it would put "fair-queue" directly under the "policy-map WAN-OUT; or at least attempt to.
In fact, I already tried this scenario. Shouldn't I see all three statements on the report?
Also, I did notice that the "+ fair queue" was indented on the report.
12-15-2008 03:33 PM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: