cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a depot of scripts

Sagar Sirdesai
Trusted Contributor

Creating a depot of scripts

Hi

I have some scripts in /opt/support/sbin.
I intend to create depot of these scripts and install it on the other servers using the swinstall command.

Please let me know the steps

Thanks
5 REPLIES
Duncan Edmonstone
Honored Contributor

Re: Creating a depot of scripts

You can either spend a good deal of time using the swpackage command to do this, or if you want to keep it pretty simple, just us the Software Package Builder product available here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SwPkgBuilder

HTH

Duncan

HTH

Duncan
Mel Burslan
Honored Contributor

Re: Creating a depot of scripts

It is not as trivial as one might think. One question comes to mind : if this is a set of scripts in the same directory, and you are not planning to sell/license these scripts to a 3rd party, why bother with creating a depot. Just tar them up and copy them to other servers, via ftp/scp/rcp or whatever method you can think of.

If you insist on creating a depot, I'd suggest you pint out the man pages of swpackage command and start reading and testing it as you go. I personally do not want to deal with it. Good luck if you will go that route.
________________________________
UNIX because I majored in cryptology...
Viktor Balogh
Honored Contributor

Re: Creating a depot of scripts

if you are sticking do make a depot from it, here is how i've done it with my scripts (just because our customer wanted it in a depot):

# swpackage -p -x write_remote_files=true -x media_type=tape -vv -s qqsudo-1.00.00.psf @ qqsudo-1.00.00.depot

This psf file is a Product Specification File, see 'man 4 swpackage', you will have a psf file in order to create a depot.
'man 1m swpackage' is a very recommended to read!
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: Creating a depot of scripts

'if you are sticking _TO_ make a depot from it...'

i forgot to mention that the output will be a .depot tape depot, you can simply swcopy it to your network depot.
****
Unix operates with beer.
Dennis Handly
Acclaimed Contributor

Re: Creating a depot of scripts

>Viktor: the output will be a .depot tape depot, you can simply swcopy it to your network depot.

Or you can remove "-x media_type=tape" if you want a directory depot.