ā07-20-2015 11:35 AM
ā10-08-2018 05:40 PM
ā10-08-2018 03:23 PM
ā08-03-2015 11:41 AM
ā08-03-2015 08:44 AM
exos.api.exec_cli(cmds, timeout=0)So, we're now getting the formatted CLI output - is there a way to get it as XML like in the other python environment? As Dave stated, the CLI output could change from release to release, so it would be great to get XML instead of formatted CLI output.
Send a list of commands to the CLI and return the output. This call will block until all commands have completed. This is a non-interactive, session-less version of the CLI. It doesnāt prompt or page, meaning some CLI commands are not valid in it (example: dis clipaging).
Parameters:
cmds (str): a list of commands.
timeout (int): timeout value, defaults to 0.
Returns:
A string of the CLI output (str).
ā08-03-2015 08:44 AM