Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Cisco Employee

How to parse the standard output from script task in CPO

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:/

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)
1 REPLY

As I outlined in https:/

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)
57
Views
0
Helpful
1
Replies