Software Distributor Administrator Guide (September 2010)
In the target file, blank lines and comments (lines beginning with #) are ignored. Each
target selection must be specified on a separate line and must consist of a host name
or network address, optionally followed by a colon and a full path:
host[:/directory]
NOTE: The host can be an internet address either in IPv4 format with dot notation
or in IPv6 format. When IPv6 internet address is specified, it can be optionally enclosed
within square brackets [ and ].
7.6.2 Examples
7.6.2.1 swacl
To list the global product template ACL on remote host gemini:
# swacl -l global_product_template @ gemini
If 3ffe:ffff:101::230:6eff:fe04:d9ff is the IPv6 address of gemini, then
the global product template ACL on the remote host gemini can also be listed with the
following command:
# swacl -l global_product_template @ 3ffe:ffff:101::230:6eff:fe04:d9ff
7.6.2.2 swask
To run all request scripts from depot /var/spool/sw on the remote system swposix
and write a response file back to the same depot:
# swask -s swposix:/var/spool/sw \*
To run all request scripts from depot /mydepot on the remote system with IPv6 address
fe80::21a:4bff:fef3:90e8 and write a response file back to the same depot:
# swask -s fe80::21a:4bff:fef3:90e8:/mydepot \*
Or, mention the IPv6 address optionally within the square brackets as shown below:
# swask -s [fe80::21a:4bff:fef3:90e8]:/mydepot \*
7.6.2.3 swconfig
To configure the C and Pascal products on three remote hosts:
# swconfig cc pascal @ hostA hostB hostC
To configure C on the remote host with the IPv6 address
ffe:ffff:101::230:6eff:fe04:d9ff:
# swconfig cc @ [ffe:ffff:101::230:6eff:fe04:d9ff]
7.6.2.4 swcopy
To copy the C and Pascal products to one local and two remote depots:
# swcopy -s sw_server cc pascal @ /var/spool/sw \
hostA:/tmp/sw hostB
7.6 Remote Operations from the Command Line 171