1837984 Members
2810 Online
110124 Solutions
New Discussion

Re: depot file creation

 
SOLVED
Go to solution
Shivkumar
Super Advisor

depot file creation

Dear Sirs,

How depot files are created ?

Thanks,
Shiv
8 REPLIES 8
Arunvijai_4
Honored Contributor
Solution

Re: depot file creation

Shiv, Depots are managed SD(Software Distributor) or SD-UX. You can find more information here,

http://docs.hp.com/en/5990-6771/ch02s02.html
http://www.unixadm.net/howto/create_depot.html

mainly depots consists of PSF file, Control scripts like Preinstall, post install, configure, etc..

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

Re: depot file creation

Hi Shiv,
Refer to the doc attached.
Go thr' "man swpackage".
Also have a look at swreg,swinstall,swlist and swremove commands.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Rajesh SB
Esteemed Contributor

Re: depot file creation

Hi Shivkumar,

To know more about SD Depot creation for thru the SD UX. Depot creation is pretty simple.

You need to create one .psf file Product Specification File. This .psf file is the input file for SD command "swpackage" like

# /usr/sbin/swpackage -v -s XYZ.psf -x target_type=tape @ .depot

Refer this pdf for more in detail.

http://docs.hp.com/en/B2355-90789/B2355-90789.pdf

Cheers,
Rajesh
Arunvijai_4
Honored Contributor

Re: depot file creation

Cem Tugrul
Esteemed Contributor

Re: depot file creation

Hi Shiv,

i sometimes use the link below when i want to
create depot

http://docs.hp.com/en/SD/cookbook.html

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Muthukumar_5
Honored Contributor

Re: depot file creation

Refer this:

http://docs.hp.com/en/B2355-90740/index.html

It is having everything. See man pages of sd, swpackage and SEE Also part pages.

-Muthu
Easy to suggest when don't know about the problem!
AwadheshPandey
Honored Contributor

Re: depot file creation

Creating a Patch Depot
1. Create a Patch Depot:

Obtain the set of patches you want to place and manage in an SD depot. For example:


PHCO_7891 PHCO_9348 PHKL_9361 PHSS_7726 PHSS_8966 PHSS_9400 PHCO_8353 PHKL_8376 PHKL_9569 PHSS_8667 PHSS_9201


HP patches as delivered by the Response Center or the HP Web site are shar files consisting of a product depot and README file.

2. Unshar the patches:


# for i in PH*


do


sh $i


done


3. Combine all these separate depots into one depot.

To do this, use the swcopy command. First, create the directory to store the patches:


# mkdir /var/opt/ignite/Patches


4. Now take the patch depots and copy them into the target depot:


# for i in PH*.depot


do


swcopy -s ${PWD}/$i \* @ /var/opt/ignite/Patches


done


5. Verify the contents of the depot:


# swlist -d @ /var/opt/ignite/Patches


Assuming the above example list of patches, you would see the following:


# Initializing...


# Contacting target "interop1"...


#


# Target: interop1:/var/opt/ignite/Patches


#


#


# No Bundle(s) on interop1:/var/opt/ignite/Patches


# Product(s):


#


PHCO_7891 B.10.00.00.AA allows mount to turnon hfs-specific opts PHCO_8353 B.10.00.00.AA cumulative awk(1) patch PHCO_9348 B.10.00.00.AA cron(1M) and at(1) patch PHKL_8376 B.10.00.00.AA Fix vmtrace bug. PHKL_9361 B.10.00.00.AA Fix panic caused by MP race PHKL_9569 B.10.00.00.AA NFS and VxFS (JFS) cumulative patch PHSS_7726 B.10.00.00.AA CDE Dtterm August 96 patch PHSS_8667 B.10.00.00.AA CDE Runtime Nov96 Patch PHSS_8966 B.10.00.00.AA LIBCL cumulative patch PHSS_9201 B.10.00.00.AA fix for aC++ dld.sl PHSS_9400 B.10.00.00.AA ld(1) cumulative patch


In the above output, swlist states that the depot has "No Bundles". HP-UX Patches are SD "products", but Ignite-UX can only manage SD "Bundles".

6. Convert the individual patches into a single bundle using the /opt/ignite/bin/make_bundles command. Run the script and create a bundle in the Patches depot:


# make_bundles -B -n Misc_Patches -t "HP-UX 11.00 Patches" \ /var/opt/ignite/Patches


7. Rerun swlist on this depot to verify the Bundle has been created:


# swlist -d @ /var/opt/ignite/Patches


(Output of swlist command assuming the example patches)



# Initializing...# Contacting target "interop1"...# # Target: interop1:/var/opt/ignite/Patches ## # Bundle(s): # Misc_Patches HP-UX 11.00 Patches


The default behavior of swlist is to now show only the higher level software bundles. Individual patches in the bundle can still be viewed by using swlist options. The following will show the patch "products" contained in the bundle:


# swlist -l product -d @ /var/opt/ignite/Patches




Note: If you need to add additional patches to the depot in the future, simply unshar the patches as described above, swcopy them into the Patches depot, and rerun the "make_bundles" command. This will repackage the depot.






If you would like to remove a Patch from the depot, simply use the swremove command. You can either run swremove and use its friendlier user-interface, or run swremove in command line mode. The following will remove the PHKL_8376 patch from the bundle:


# swremove -d Misc_Patches.PHKL_8376 @ /var/opt/ignite/Patches

Regards,

Awadhesh
It's kind of fun to do the impossible
Sยภเl Kย๓คг
Respected Contributor

Re: depot file creation

Hi,

In HPUX, SD-UX software manager. Use #man sd to find all commands available with SD-UX

You can use swpackage command to create the Software Depots. See #man swpackage.
Synopsis
swpackage [-p] [-v] [-s directory] [-x option=value]
[s/w_selections] [@ target]

swpackage packages software products into a depot(directory or tape).

You can use the same command to re-package the entire depots also.

Regards,
Sunil

Your imagination is the preview of your life's coming attractions