1837262 Members
2426 Online
110115 Solutions
New Discussion

swcopy

 
SOLVED
Go to solution
Craig Rants
Honored Contributor

swcopy

What am I doing wrong?

I am trying to copy a product on an application CD to a depot on a server. I can do it just fine throught SAM, but my command line syntax is failing.

here is what I am doing:

swcopy -s /cdrom/B9901AA \* @ /var/spool/sw/IPF_9000

the cdrom is a registerd depot, where is my mistake?

Thanks,
Craig
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
8 REPLIES 8
Scott Van Kalken
Esteemed Contributor

Re: swcopy

if it works from sam, try using the command:

/usr/sam/bin/samlog_viewer to see what it is that sam does that's different.

Other places to check as normal as the swinstall logs

/var/adm/sw/swinstall.log
/var/adm/sw/swcopy.log


Hope this helps.
Craig Rants
Honored Contributor

Re: swcopy

Actually, through the swcopy GUI, which produces a swcopy.log, of which the info in there does not refernce the command syntax.

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Jeff Schussele
Honored Contributor

Re: swcopy

Craig,

Believe you don't need the "@" symbol. Here's the excerpt from the manual:

In the swinstall command, if no source is specified, the local host's default depot directory (/var/spool/sw) is assumed. If no host is named, the system to receive the software is assumed to be the root (/) directory on your local host. So, you do not have to use the @ sign and [host][:][/directory] designation if you are operating on the local host and/or default depot directory

Here's the link to the page:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90154/B2355-90154_top.html&con=/hpux/onlinedocs/B2355-90154/00/00/11-con.html&toc=/hpux/onlinedocs/B2355-90154/00/00/11-toc.html&searchterms=swcopy&queryid=20020401-143741

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

Re: swcopy

Hi Craig
Try only
swcopy -s /cdrom/B9901AA \*
and it will create depot in /var/spool/sw

if you want somewhere else then
swcopy -s /cdrom/B9901AA \* @ /home/sachin/I_9000

Sachin
Is photography a hobby or another way to spend $
Craig Rants
Honored Contributor

Re: swcopy

The problem seems to be that swcopy does not recognize the B9901AA as a valid depot. Maybe I am pointing to the wrong source location?
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
someone_4
Honored Contributor

Re: swcopy

This might be way out there but what if you restart swagentd

#swagentd -r

Richard
Mateja Bezjak
Respected Contributor
Solution

Re: swcopy

Hi Craig,

Try swcopy -s /cdrom B9901AA @ /var/spool/sw/IPF_9000

Regards,
Mateja
Craig Rants
Honored Contributor

Re: swcopy

Well done Mateja, I knew it shouldn't have been as hard as I was making it.

Craig
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut