cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
511
Views
0
Helpful
1
Replies

How to parse the standard output from script task in CPO

esramasa
Cisco Employee
Cisco Employee

Hi All,

How to parse the standard output from script task in CPO.

 

Do we have any activity to parse the outputs ??

1 Accepted Solution

Accepted Solutions

As I outlined in https://supportforums.cisco.com/discussion/12172506/how-get-variable-script-cpo the means for parsing the output will depend on the output format and what you are trying to achieve.

The tools/activities to use could range from

  • simple condition comparison of the output against a wildcard or regular expression.
  • Match Regular Expression
  • XPath Query or XSL Transform activities (if your output is XML-formatted)
  • Read Table from XML (if your output is XML)
  • Read Table from Text (if your output is comma-separated table)

View solution in original post

1 Reply 1

As I outlined in https://supportforums.cisco.com/discussion/12172506/how-get-variable-script-cpo the means for parsing the output will depend on the output format and what you are trying to achieve.

The tools/activities to use could range from

  • simple condition comparison of the output against a wildcard or regular expression.
  • Match Regular Expression
  • XPath Query or XSL Transform activities (if your output is XML-formatted)
  • Read Table from XML (if your output is XML)
  • Read Table from Text (if your output is comma-separated table)

Review Cisco Networking for a $25 gift card