Task List

 

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.

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.

  • NAME: To identify the login level

  • COMMAND: denotes the command to be executed for entering the login level from the previous level, if any.

  • USERNAME: The user name.

  • PASSWORD: The password for the user name.

  • LOGINPROMPT: The login prompt to log in the device.

  • PASSWORDPROMPT: The password prompt for the device to log in.

  • PROMPT:  The command prompt that appears after logging into the level.

  • LEVELEXITCMD: The command to be sent for exiting the level and moving on to the previous level

CONFIG

 

It represents a single configuration of the device.

  • NAME: The configuration is identified with the NAME as its key

  • LOGINLEVEL: This specifies the level in which the configuration is to be executed.

  • DATAINTERFACE: This can be used to get the data for running the configuration.

CMDTASK

It represents a command, which will be run as a task in the configuration. It has the following attributes:

  • TASKNAME: uniquely identifies the command

  • TASKVALUE: is the command to be run

  • LOGINLEVEL: can be one among the sublevels of the configuration's loginlevel or any higher level in the hierarchy.

  • MANDATORY : boolean values (true/false). When not specified they take the value true

  • DATAREQUIRED: boolean values (true/false). When not specified they take the value true

  • DESCRIPTION: The task description for the command.

SCRIPTTASK

It represents a task using, which scripts can be run. It has the following attributes.

  • TASKNAME : This uniquely identifies the script.

  • TASKVALUE: This is the script file to be run.  

  • SCRIPTTYPE: This is the scripting language to be used for running the script.

  • LOGINLEVEL: This can only be one among the sublevels of the configuration's loginlevel

  • MANDATORY: The boolean values (true/false). When not specified. They take the value "true".

  • DATAREQUIRED: The boolean values (true/false). When not specified they take the value "true".

  • DESCRIPTION: The task description for the script.

 

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.

<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.