Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetRemoteLinuxIp(hostAddress) {
- console.log(hostAddress);
- exec("ifconfig -a | tr -s ' ' | awk -F'[: ]' ' {if (/^[a-z]/) printf $1 " "} {if (/inet addr:/) print $4 }' ", {
- user: 'user',
- host: hostAddress,
- password: 'password'
- }).pipe(process.stdout)
- };
- enp0s3 192.168.1.8
- enp0s3 192.168.1.9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement