Reading command outout from ssh linux client
Posted: Fri Dec 11, 2020 4:36 pm
Hello , I need to find if specific user exist at hotspot users list.
This is what im doing:
But this is what I need:
Problem , is that if I get this "collapsed" view , I can not grep the mac address.
Is there some way to change this to get the full view of the command output?
Regards.
This is what im doing:
And this is what I get:sshpass -p 'api_user' ssh api_user\@172.30.7.2 -p22000 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null 'ip hotspot user print where name=60:8F:5C:B8:75:4F'
Code: Select all
Flags: * - default, X - disabled, D - dynamic
# SERVER NAME ADDRESS PROFILE UPTIME
0 60:8F:5C:... default 0s
Code: Select all
[api_user@hotspot] > ip hotspot user print where name=60:8F:5C:B8:75:4F
Flags: * - default, X - disabled, D - dynamic
# SERVER NAME ADDRESS PROFILE UPTIME
0 60:8F:5C:B8:75:4F default 0s
Is there some way to change this to get the full view of the command output?
Regards.