For a clean output on the IP address for nslookup, create a file with the list of hosts be lookup and run:
# for i in `cat /tmp/list`; do echo -n $i": " ; getent hosts $i | awk '{ print $1 }'; done
To see the memory consuption in Solaris
# vmstat 1 2 |tail -1 | awk '{ print $5/1024, "MB"}'
To run a list of commands (i.e. over SSH)
for i in `cat file.host.list` ; do ssh -o ConnectTimeout=5 $i "$(<cmd.txt)" 1>> output.out; done
Where cmd.txt contains a list of commands separated Read more...
backup
All posts tagged backup
Time Machine creates incremental backups of files that can be restored at a later date. It allows the user to restore the whole system or specific files.
You can use a TimeCapsule external WiFi disk, or an USB disks that OSX will format to be used as backup storage.
TimeMachine can work with remote units mounted over network protocols like AFP or SAMBA, but this way is not supported by Apple, but they allow you to do it without support running next command to enable it:
$ sudo defaults write Read more...