iteration
To configure iteration size for large XML agent responses, use iteration command in xml agent configuration mode. To revert to the default iteration settings, use no form of this command.
iteration {off | on size iteration-size}
Syntax Description
off |
Disables iteration- Entire XML response is returned, regardless of its size.
|
||
on |
Enables iteration- Large XML responses are broken into chunks according to the iteration chunk size specified. |
||
size iteration-size |
Specifies the size of the iteration chunk, in Kbytes. Iteration-size can range from 1 to 100,000. |
Command Default
Iteration is enabled; with the iteration-size as 48.
Command Modes
XML agent
TTY XML agent
SSL XML agent
Command History
Release | Modification |
---|---|
Release 7.0.1 |
This command was introduced. |
Usage Guidelines
When a XML agent returns a large response, it splits the response into chunks and returns one chunk at a time. Externally, a GetNext request is sent to obtain the next chunk. This command can be used to control the size of iteration chunks.
A larger chunk value lets you receive many chunks in a shorter time, but, makes the router busy. A smaller chunk value lets you receive only a few chunks even over long time but, does not make the router busy. The iteration can be disabled by using the off keyword in the command..
Note |
It is not recommended to disable iteration because, it could result in large transient memory usage. |
Examples
The following example shows how to configure the iteration chunk size to 100 Kbytes.
RP/0/RP0/CPU0:router(config)# xml agent
RP/0/RP0/CPU0:router(config-xml)# iteration on size 100
The following example shows how to disable iteration:
RP/0/RP0/CPU0:router(config)# xml agent
RP/0/RP0/CPU0:router(config-xml)# iteration off
The following example shows how to turn on iteration with the default iteration size:
RP/0/RP0/CPU0:router(config)# xml agent
RP/0/RP0/CPU0:router(config-xml)# no iteration off
The following example shows how to change the iteration size to the default iteration size.
RP/0/RP0/CPU0:router(config)# xml agent
RP/0/RP0/CPU0:router(config-xml)# no iteration on size 100
The following example shows how to change the iteration size of the TTY agent to 3 Kbytes:
RP/0/RP0/CPU0:router(config)# xml agent tty
RP/0/RP0/CPU0:router(config-xml-tty)# iteration on size 3
The following example shows how to turn off the iteration of the SSL agent:
RP/0/RP0/CPU0:router(config)# xml agent ssl
RP/0/RP0/CPU0:router(config-xml-ssl)# iteration off