1752429 Members
5585 Online
108788 Solutions
New Discussion юеВ

swcopy command

 
System Administrator_4
Occasional Contributor

swcopy command

I have created a depot on a server, bundled a group of patches.

What is the correct swcopy syntax to copy this depot/bundle to another server?
8 REPLIES 8
Jeff Schussele
Honored Contributor

Re: swcopy command

HI,

The basic command will look like:

swcopy /path/to/current/depot_name @ new_hostname:/path/to/new/depot_root

It will place depot_name into the new depot_root.

And of course you can run the interactive GUI by just kicking off

swcopy &

and then select source & destination.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Arunvijai_4
Honored Contributor

Re: swcopy command

Two ways of doing it,
1) swcopy -s : \* @
2) FTP to other host

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: swcopy command

You can simply do as,

swcopy @ remotemachine:location

Or else you can simply transfer this with normal file transfer methods as,

ftp / rcp / scp / sftp

hth.
Easy to suggest when don't know about the problem!
System Administrator_4
Occasional Contributor

Re: swcopy command

Still having issues ...

I am on the target host.

I issue the command, and get the below error:
swcopy sourcehost:/var/opt/ignite/depot/Rel_B.11.11/06_05XSW11i @ /var/opt/ignite/depot/Rel_B.11.11/06_05_XSW11i


======= 10/05/05 15:08:29 CDT BEGIN swcopy SESSION (non-interactive)

* Session started for user "root@targethost".

* Beginning Selection
* "targethost:/var/opt/ignite/depot/Rel_B.11.11/06_05_XSW11i":
This target does not exist and will be created.
ERROR: There is currently no depot software on host "targethost" at
location "/var/spool/sw". Make sure that an absolute pathname
is specified for location (beginning with "/").
* Source connection failed for "targethost:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is
targethost:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 10/05/05 15:08:30 CDT END swcopy SESSION (non-interactive)

help!
sstan
Frequent Advisor

Re: swcopy command

can u try the option ,

put the targethost name before the path to the destination name of the directory path ? for e.g hostname of the machine: AVIVA:/var/opt/ignite......

It may work.
Muthukumar_5
Honored Contributor

Re: swcopy command

swcopy sourcehost:/var/opt/ignite/depot/Rel_B.11.11/06_05XSW11i @ /var/opt/ignite/depot/Rel_B.11.11/06_05_XSW11i

====

ok. In source machine check as,

# ls -l /var/opt/ignite/depot/Rel_B.11.11/06_05XSW11i

In target Machine,
# ping sourcehost

If they are correct, can you try as from source machine,

# swcopy /var/opt/ignite/depot/Rel_B.11.11/06_05XSW11i @ destinationhost:/var/opt/ignite/depot/Rel_B.11.11/06_05_XSW11i

hth.
Easy to suggest when don't know about the problem!
System Administrator_4
Occasional Contributor

Re: swcopy command

none of this worked.

ftped the bundled.

Then ran swreg on the new depot area, worked fine.
Geoff Wild
Honored Contributor

Re: swcopy command

This should work - as I do it - from the "other" server:

swcopy -s servera:/var/software/hp/SHC \* @ /var/software/hp/SHC

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.