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

Getting output of command executed through Execute Terminal Command

apriydar
Cisco Employee
Cisco Employee

Hi,

I am trying to get the output of the command executed through Execute Terminal Command Adapter.

But Execute Terminal Command Adapter prints everything including the command.

Is there a way to restrict the output to return only the command's output.

Thanks,

Abhi

1 Reply 1

Shaun Roberts
Cisco Employee
Cisco Employee

Abhi,

No, you'll always see the entire "screen scrape" basically. TEO is just acting like a SSH/telnet client so just like when you type in a command at the screen, you see the full screen, so does TEO.

Basically, it types the command, hits enter, and then looks to make a match from the expect templates you have defined.

I have done lots of process authoring with the terminal adapter and the best way to get information out of a command line output is using the "match regular expression" activity or using some of the string activities. (find string, etc)

-Shaun

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com