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