1848163 Members
7905 Online
104022 Solutions
New Discussion

Downloading depot files

 
Joe Voytovich_1
New Member

Downloading depot files

Hi,

I've been trying to download a depot file from the HP website. The problem is that I've had to do this on a PC, then transfer the file to the hpux system. During the transfer, CR/NL pairs appear and the checksum is thrown off. If I transfer it as ASCII, the binary portion at the end of the depot would get corrupted. How can I get around this? The hpux network is not configured to easily access the internet via a browser, but I probably could use ftp. Has anyone downloaded hp files using ftp?
Thanks.
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: Downloading depot files

If you transfer it from the hp web site to your PC use BINARY only, then BINARY only to your HP.

The ftp on your HP works about the same, but fortunately it defaults to BINARY.

live free or die
harry
Live Free or Die
Patrick Wallek
Honored Contributor

Re: Downloading depot files

When you are downloading to your PC from HP, are you using BINARY mode? You should always use BINARY mode.

There should be no problem downloading the stuff to your PC and then transferring to your HP-UX box.
Stefan Farrelly
Honored Contributor

Re: Downloading depot files


You must transfer the file as type binary using ftp from your PC. We do it all the time (download to PC, run ftp from the PC and push it to an HP-UX box) and it always works perfectly. We use the normal Windows ftp program (fire up a dos window and invoke ftp from there).
If youre file is still being corrupted then perhaps its not downloading completely to your PC first.
Im from Palmerston North, New Zealand, but somehow ended up in London...
nancy rippey
Trusted Contributor

Re: Downloading depot files

You can do one of two things. If you just want a few patches you can ftp to
ftp 192.151.52.14
login as anonymous
passwd 'your email'
cd /hp-ux_patches/s700_800/11.X
get PH*
quit
on server
sh -x PH*

If you have numerous patches or have support to run a patch analysis you can go to software assessment on HPs site and run a patch analysis. First you must have cpm_collect.sh installed on your server. Run the script then go to the hp site.

hope this helps
nrip
Terri Mando
Occasional Contributor

Re: Downloading depot files

Here's a cool versitle little script I use just for the purpose of what you are doing.

#!/bin/ksh
# set up variables
# local dir, to put patch
LCD="/var/adm/crash"
LOGIN="anonymous"
PASS="user@company.com"
PATCH="PHSS_#####"

rm /tmp/batchftp.err
rm /tmp/batchftp.log

cd $LCD

/usr/bin/ftp -v -n >> /tmp/batchftp.log 2>> /tmp/batchftp.err <open ftp.itrc.hp.com
user $LOGIN $PASS
binary
cd /hp-ux_patches/s700_800/11.X
get $PATCH
quit
EOD

I usually run this in the background, or via cron in the middle of the night. :