Chapter 6: Access Control for Administration 63
Return Command Output to a Remote machine
You can create a file with a number of restorer commands, with one command on a line, and then
use the file as input to the login. Output from all the commands is returned. For example, a file
named
cmds11 could contain the following commands:
filesys status
system show uptime
nfs status
The login and the returned data look similar to the following:
# ssh -l sysadmin dd10 < cmds11
sysadmin@dd10’s password:
The filesystem is enabled
3:00 pm up 14 days 10 hours 15 minutes 1 user, load average:
0.00, 0.00, 0.00
Filesystem has been up 14 days 10:13
The NFS system is currently active and running
Total number of NFS requests handled = 314576
To use scripts that return output from a restorer, see “Add an Authorized SSH Public Key” on
page 60 to eliminate the need for a password.