Skip to content

Tag: <postamble_task> - Postamble Task Definition

Definition

The <postamble_task> tag can be used in two places.

Firstly, under the <proxy_parameters> tag it can be used to define commands that are run after a connection to a device to run a system task has ended but before the connection is dropped. This is often used to do a final 'save config' before exit type of command.

Secondly, the <postamble_task> tag can be used under <proxy_parameters> tag to define commands that are to be run before the connection from a user has ended. Again this is often used to do a final 'save config' before exit type of command.

The tag has the following attributes:

Parameters

  • Name (str) : This is the internal name of the task. This for legacy reasons the name of the task is 1.

The <postamble_task> tag contains a single <commands> tag, which can then contain multiple <command> tags. Any operation that can be done in a user task can be done in a postamble task.

Example: Config Save

This example saves the config on the device. I can be used at the end of a <access> or a <proxy_parameters> tag, so can be used for both the ending of system tasks or user tasks:

1
2
3
4
5
6
7
8
   <postamble_task name='1'>
      <commands>
         <command response_timeout='300'>write memory
            <success type='ci_in' value='OK'/>
            <failed type='default'/>
         </command>
      </commands>
   </postamble_task>

Parent Tags

Child Tags