Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

SSH Commands - parsing stdOut to separate new fields

$
0
0
I am looking for some ways to parse out stdOut from a SSH command. When I run an SSH command I get the following stdOut value:

Fabric Interconnect:
ID OOB IP Addr OOB Gateway OOB Netmask Operability
---- --------------- --------------- --------------- -----------
A 3.156.167.19 3.156.167.1 255.255.255.0 Operable
B 3.156.167.20 3.156.167.1 255.255.255.0 Operable

I would like to just create 5 fields:

ID
OOB_IP_Addr
OOB_Gateway
OOB_Netmask
Operability

Any ideas on how to accomplish this? Thanks in advance!!!

KP

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>