5 – Detailed Descriptions of Command LineTools
File Management Tools
5.3.4
Simplified Editing of Node-Specific Files
(Linux): The combination of uploadall and downloadall provide a powerful
yet simple to use mechanism for reviewing and/or editing node-specific files
without the need to login to each node.
This is best explained with an example.
Assume the file /etc./sysconfig/network-scripts/ifcfg-ib1 needs
to be reviewed and possibly edited for each host. This file would typically contain
the IP configuration information for IPoIB and may contain a unique IP address
per host.
To upload the file from all the hosts:
uploadall /etc/sysconfig/network-scripts/ifcfg-ib1 ifcfg-ib1
Now edit the uploaded files with an editor, such as vi:
vi uploads/*/ifcfg-ib1
If via the editor the file was changed for some or all of the hosts, it can then be
downloaded to all the hosts:
downloadall -d uploads ifcfg-ib1 /etc/sysconfig/network-scripts/ifcfg-ib1
Alternatively, if there was no need to download the file to all hosts, a subset of
hosts can be specified using the -h option or by creating an alternate host list file:
downloadall -d uploads -h 'host1 host32' ifcfg-ib1 /etc/sysconfig/network-scripts/ifcfg-ib1
NOTE:
5.3.5
Simplified Setup of Node-Generic Files
(Linux): In contrast scpall can provide a powerful yet simple to use mechanism
for transferring files to all nodes that are generic (i.e., not node-specific).
For example, if all nodes in the cluster will use the same DNS server and TCP/IP
name resolution, they may be quickly set as follows:
Create an appropriate local file with the desired information. For example:
vi resolv.conf
Now copy the file to all hosts:
scpall resolv.conf /etc/resolv.conf
5-24
When downloading to a subset of hosts, make sure that only the hosts
uploaded from are specified.
Q
D000006-000 Rev A
Need help?
Do you have a question about the Fast Fabric and is the answer not in the manual?