Cisco Systems 4.1 Dust Collector User Manual


 
8-75
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 8 Archiving Configurations and Managing Them Using Archive Management
Baseline Template
Details : The negation of the name1 is done which returns False. Since there is no other command with
logging statement except "logging name1" , the template is Non-Compliant.
Use Case 3: When there is no logging commands
Commands in Device config :
No logging commands
Template :+ logging [# !name1 #]
Details: First the negation of the name1 is done which returns False. Since there are no login commands,
the template is Non-compliant.
The Baseline template uses java.util.regex engine for regular expressions. For more information, see
the regex API guide for Java 1.4.2 from Sun:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
Submode commands are provided only if the commands are to be compared inside a submode.
For example:
interface [#Ethernet.*#]
+ no shutdown
no shutdown command will apply to all interfaces with Ethernet.
Defining Commandsets
The commandsets are a set of one or more CLI commands. You can define a commandset while creating
a Baseline template in the Advanced mode.
The features of the commandsets are:
If the commands in commandset are in a submode (ip/interface etc.) a submode command must be
specified for such a commandset.
Commandsets can have one or more child commandsets.
Child commandsets inherit parent’s sub-mode command.
You can define commandsets that have to be checked before running the actual commands.
The features of the prerequisite commandsets are:
A commandset can have another commandset as its prerequisite.
A prerequisite commandset is used only for comparison and is not deployed onto the device.
A commandset is compared with the config only if its prerequisite condition is satisfied.
The RME evaluates the commandsets in different ways depending on whether you have defined the
commandset as Parent or Prerequisite.
For example assume that you have defined two commandsets, commandset1 and commandset2:
Commandset defined as Prerequisite
commandset1 as the Prerequisite of commandset2. While RME evaluates the Baseline template,
commandset1 is evaluated first and commandset2 is evaluated next.
If commandset1 does not contain submode and is not present in a device, then commandset2 is not
evaluated and the device is displayed in excluded list in compliance report.
If commandset1 contains submode and is not present in applicable submodes , then commandset2
is not evaluated and the device is displayed in excluded list in compliance report.
Commandset defined as Parent