The XML-driven TaskList can be used to carry out the predefined configuration tasks. This template can be used to generate CLI commands (tasks) that can be used to send devices and receive response. It is used in AdventNet Configuration Application to generate IOS commands for configuring the Network devices such as CISCO routers. The TaskList can be used to carry out the following functions.
To set various login levels for users
To configure some of the essential tasks such as general, interface, access-list, and NAT and other commonly used IOS parameters
To add/delete/modify additional tasks
To run wizards for the tasks
The table given below is a list of parameters grouped under the CONFIG-DRIVER tag, with a brief description.
| Tag | Description |
|---|---|
|
LOGIN-LEVELS |
It contains different levels, which can be used for logging into the device. The LOGININTERFACE attribute is used for getting the USERNAME and PASSWORD of a login level in case they are not specified in the TaskList file. |
|
CONFIG-LIST |
It contains a list of configurations, which can run in it. The DATAINTERFACE attribute is used for getting the data to run the configuration. |
|
LEVEL
|
It defines a particular login level. The login level could be nested, if a specific level can be reached only from another specific level.
|
|
CONFIG
|
It represents a single configuration of the device.
|
|
CMDTASK |
It represents a command, which will be run as a task in the configuration. It has the following attributes:
|
|
SCRIPTTASK |
It represents a task using, which scripts can be run. It has the following attributes.
|
Login Levels
Generally, network devices are provided with different levels of access to the users. The TaskList is provided with a provision to access in three levels, user mode, privilege mode, and globalConfig mode. It also provides facility to add additional login levels (modes) according to hierarchy of authentication.
|
<LOGIN-LEVELS LOGININTERFACE="com.adventnet.cli.config.LoginInterfaceImpl"> <LEVEL NAME="userExec" COMMAND="" PASSWORDPROMPT="Password:" PASSWORD="" PROMPT=">"> <LEVEL NAME="privelegedExec" COMMAND="enable" PASSWORDPROMPT="Password:" PASSWORD="" PROMPT="#"> <LEVEL NAME="globalConfig" COMMAND="configure terminal" PROMPT="(config)#"/> </LEVEL> </LEVEL> </LOGIN-LEVELS> |
Configuration Tasks
The following configuration tasks can be added by default after loading the Tasklist. The additional tasks can also be added. The added new tasks are appended to the Tasklist. The following tasks are added while loading the Tasklist into Configuration Application.
General configuration
Interface configuration
Access list
Network Address Translation
|
<CONFIG-LIST> <CONFIG NAME="AccessListConfig" LOGINLEVEL="userExec" DATAINTERFACE=""> <CMDTASK TASKNAME="accessList" TASKVALUE="access-list $ipALNo $packetAccess #protocol $sourceIPMask #srcOperPortNo #destIPMask #destOperPortNo"/> </CONFIG> </CONFIG-LIST> |
For more details, please refer to Tasklist.dtd and Tasklist.xml available in <CLI HOME>/conf directory.