1832753 Members
3274 Online
110045 Solutions
New Discussion

Re: swreg error

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

swreg error

Hey guys,

Hello guys,

I'm trying to register a depot and I keep getting this message.

There is currently no depot software on host "xxx" at location "/tmp/patches".
12 REPLIES 12
Sanjay_6
Honored Contributor

Re: swreg error

Hi Sanman,

what is the command you are using.

you should use

swreg -l depot @ /tmp/patches

Hope this helps.

thanks
Edward Alfert_2
Respected Contributor

Re: swreg error

Here is somebody else that had the same problem and they solved it following the suggestions provided:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xf77cdfe5920fd5118fef0090279cd0f9,00.html
"Do what you love and you will never work a day in your life." - Confucius
Ragni Singh
Super Advisor

Re: swreg error

Okay let me ask this. I have multiple patches that I have downloaded and there are all now sitting in /tmp with *.depot and *.text. I want to make a bundle and then do a swinstall after that. What my question is, what is the command sintex to create a bundle for multiple patches.
Edward Alfert_2
Respected Contributor

Re: swreg error

The link i included previously has an answer by Frederic Soriano and gives you a step by step of combining a bunch of depots into 1 depot and then using that 1 depot with swinstall..

I think that is what you want... right?
"Do what you love and you will never work a day in your life." - Confucius
Sanjay_6
Honored Contributor

Re: swreg error

Hi Sanman,

Did you do a ptach analysis and dowloaded the file .sh and used that to downlaod the patch. If you did, it will have a file called make_depot. Do a "sh make_depot" and it will create a single file PATCHES.depot which you can use to install all the patches at the same time.

If you are not using that and if you want to use the hp cutom patch manager tool follow the link below.

http://us-support.external.hp.com/wps/bin/doc.pl/sid=d9c52c72106f114f82

Hope this helps.

thanks
linuxfan
Honored Contributor
Solution

Re: swreg error

Hi,

First create a depot with all the patches together.

cd /tmp
for i in PH*
do
swcopy -s /tmp/$i \* @ /tmp/mypatches.depot
done

Once the depot is created you can use the make_bundler command (which is part of ignite/UX) or you can create a PSF file and package your bundle.


Look at the thread, can't get any easier than this ;)

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x7086abe92dabd5118ff10090279cd0f9,00.html

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Michael Tully
Honored Contributor
linuxfan
Honored Contributor

Re: swreg error

Hi,

While working on another thread, i realized i made a mistake. This should definitely work


cd /tmp
for i in $(ls -1 PH* |egrep -v 'depot|text')
do
sh $i
done

for i in PH*.depot
do
swcopy -s /tmp/$i \* @ /tmp/mypatches.depot
done

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Ragni Singh
Super Advisor

Re: swreg error

THanks a lot for all your responses. There were some conflicting answers but I was able to work through it. There seesm to be many many questions regarding swinstall so would it be possible for anyoe of you fine individuals to come up with a step by step process of doing a swinstall. I mean from the time you get a patch to the unix machine, to doing swreg, swinstall, creating a patch bundle and so forth. Thanks for all the help again guys. Now let me go and give you guys so points.
linuxfan
Honored Contributor

Re: swreg error

Hi Sanman,

I would strongly recommend reading the guide
http://docs.hp.com/hpux/pdf/5967-3578.pdf
for patch management on HP-UX.

But this is the general procedure i follow,

1. Look for the patch(es) in the patch database,
2. look for dependencies (a Pen and paper is required to sort out the dependencies)
2a. download all the patches(including the dependencies)
3. when you down the patches are in shar format
Unshar them using sh Patchname, here if you have downloaded multiple patches you could do something like
cd /tmp (or whereever you have downloaded the patches)
for i in PH*
do
sh $i
done

4. Now for each patch you will have .depot and .text files. I generally look in the .text file to see if there are any special instructions. If i downloaded multiple patches, i create a depot to minimize reboots

cd /tmp
for i in PH*depot
do
swcopy -s /tmp/$i \* @ /tmp/mypatches.depot
done

This will create a depot with all the patches you downloaded. Sometimes swcopy complains about dependency errors, errors saying all the filesystems are not mounted, so you may have to give additional options to swcopy (man swcopy for all the options)

5. You are now ready to install the patches
swinstall -s /tmp/mypatches.depot

6. If the patches need a reboot, reboot the machine and after the machine is up, check to make sure all the patches are configured.
swlist -a state -l fileset |egrep -v "config|^#"

This should not return anything, if it returns any fileset in installed or transient state you may have to use swconfig to configure the unconfigured filesets.

That's it, this is in short what i normally do when i install the patches.
But like i said, read the doc i mentioned above.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Ragni Singh
Super Advisor

Re: swreg error

Ramesh,

thanks a lot bro for all your time and effort. Your work is greatly appreciated.