cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

319
Views
0
Helpful
1
Replies
esramasa
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
Svetlana Kryukova
Participant

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
Svetlana Kryukova
Participant

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

Content for Community-Ad
This widget could not be displayed.