1834766 Members
3300 Online
110070 Solutions
New Discussion

Swinstall and SW depots

 
SOLVED
Go to solution
darnnell
Occasional Contributor

Swinstall and SW depots

logged in as root, I am getting this error: "There is currently no depot software on host "hostname" at
location "#####".

#swlist

indicates that my depot target is in "hostname:/"
What might I be doing wrong to keep getting this error? If more info is needed please let me know.

5 REPLIES 5
Cheryl Griffin
Honored Contributor
Solution

Re: Swinstall and SW depots

First, check to see if you have any depots registered.
# swlist -l depot

If you do not, you will want to register a depot using swreg.

If you have been using a depot on the machine and this message just started happening, kill the swagentd and restart it.
Then try swinstall again.

There is a great patch white paper located in /usr/share/doc/patch_pgrm.txt.

Cheryl
"Downtime is a Crime."
Rick Garland
Honored Contributor

Re: Swinstall and SW depots

A SW depot is not registered. Can use the swreg command to register a depot.
darnnell
Occasional Contributor

Re: Swinstall and SW depots

Thanks Cheryl, et al.

What would be the correct process to creating sw depots, installing sw packages and swreg. This system is very new, and some things haven't been configured. This is my first time, and some things will have to be clarified. I just downloaded some software off of the software porting and Archive site and downloaded them to the /opt directory. So within opt I have files with the .depot extention. I'm following someone elses written directions, but his point of view was on an already configured box.

Here is the outcome:
swlist -l depot
# Initializing...
WARNING: No depot was found for "w0195u03:"

I tried to do the swreg and got:
#swreg -l depot

======= 08/11/00 10:56:12 EDT BEGIN swreg SESSION (non-interactive)

* Session started for user "root@w0195u03".

* Beginning Selection
* Targets: w0195u03
ERROR: There is currently no depot software on host "w0195u03" at
location "/var/spool/sw".
ERROR: More information may be found in the daemon logfile on this
target (default location is
w0195u03:/var/adm/sw/swagentd.log).
* Selection had errors.


I also tried swpackage:
#swpackage -s apache-1.3.12-sd-11.00.depot -d /tmp/depot

======= 08/11/00 10:31:01 EDT BEGIN swpackage SESSION

* Session started for user "root@w0195u03".

* Source: w0195u03:apache-1.3.12-sd-11.00.depot
* Target: w0195u03:/tmp/depot
* Software selections:
* Beginning Selection Phase.
* Reading the Product Specification File (PSF)
"apache-1.3.12-sd-11.00.depot".
WARNING: Ignoring unknown keyword "catalog/INDEX" at line 1.
WARNING: Ignoring unknown keyword "path_max" at line 7.
WARNING: Ignoring unknown keyword "name_max" at line 8.
* Reading the product "apache" at line 11.
* Reading the fileset "apache-INC" at line 44.
WARNING: Incomplete definition for the fileset "apache-INC", beginning
at line 43. The following attributes are not defined:
ERROR: Invalid definition for the fileset "apache-RUN", beginning at
line 61. Details described above. The error(s) must be
corrected before the parsing can continue.
ERROR: Invalid definition for the product "apache", beginning at line
11. Details described above. The error(s) must be corrected
before the parsing can continue.

I'm not sure what I'm doing wrong but this is very confusing.Thanks again.
Rick Garland
Honored Contributor

Re: Swinstall and SW depots

After you un-sh and get a depot file (in a lot of cases), you can use swcopy to copy the depot file and do the registration at the same time.

swcopy -s /tmp/ @ (location of depot)

Some files do not need to be un-sh and they are in the depot format already.
Stefan Farrelly
Honored Contributor

Re: Swinstall and SW depots


You shouldnt neet to use swreg to register new depots. When you copy some filesets to a new depot it will automatically be registered.

To see registered depots use> swlist -l depot

When for example you have a new CD arrive and mounted as /SD_CDROM if you want to copy something off it to a software depot (on disk) then use a command like>
swcopy -s /SD_CDROM @
eg. swcopy -s /SD_CDROM OnlineDiag @ /var/spool/sw

After youve done this use> swlist -l depot
and it will list /var/spool/sw as a depot. To see whats inside it use>
swlist -s /var/spool/sw
and it will show OnlineDiag as being in the depot.

Now, from any other HP server if you do an> swlist -l depot -s where you just created your depot>
you will see the depot registered and you can now use this remote depot to install from. eg, if you are on a remote host to install from the host where the depot is use>
swinstall -s :/var/spool/sw OnlineDiag
and it will install on your local host. Very handy. If you have lots of servers to save you always having to use CD's simply copy everything into a depot and install all the other servers from there.

Only use swpackage to create a bundle/fileset of your own. You shouldnt need to use this command - only developers building applications or customised filesets will use it to bundle up software of their own.
Im from Palmerston North, New Zealand, but somehow ended up in London...