xml_pi_exec
Writes the XML-PI command specified using the cmd argument to the channel whose handler is specified using the fd argument and the spec-file specified by the spec_file argument to execute the command. The raw XML output data of the command is then read from the channel and the XML output is returned.
Syntax
xml_pi_show fd cmd [spec_file]
Arguments
fd |
(Mandatory) The CLI library file descriptor obtained from cli_open. |
cmd |
(Mandatory) IOS show command. |
spec_file |
(Optional) IOS CLI show command spec_file. |
Result String
Result of IOS show command in XML format.
Set _cerrno
Possible error raised:
1. error reading the channel