Operating System - HP-UX
1826388 Members
4499 Online
109692 Solutions
New Discussion

Re: swremove depot when depot directory not present

 
SOLVED
Go to solution
William Pribble
Frequent Advisor

swremove depot when depot directory not present

Hello

I want to clean up my depots registered with sd-ux. Some of them are very old, so old some of the actual directories where the depot once was are now gone. I am not able to remove the depot from my sd-ux. Anyone know how to do this?

I was using the command:

# swremove -d \* @ /old/depot/location/now/gone

Here is the output from the command:
ERROR: There is currently no depot software on host "host1" at
location "/old/depot/location/now/gone". Make sure that an
absolute pathname is specified for location (beginning with
"/").
* Target connection failed for
"host1:/old/depot/location/now/gone".
ERROR: More information may be found in the daemon logfile on this
target (default location is
host1:/var/adm/sw/swagentd.log).
* Selection had errors.

From the /var/adm/sw/swagentd.log:
ERROR: Failed to start remove agent on "//old/depot/location/now/gone" for
root@host1.domain.com. "/old/depot/location/now/gone" is
not a valid depot. 07/05/07 13:02:35 EDT

Thanks
Bill

7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: swremove depot when depot directory not present

Bill,

How about:

mkdir /old/depot/location/now/gone
then
# swremove -d \* @ /old/depot/location/now/gone


Pete

Pete
James R. Ferguson
Acclaimed Contributor
Solution

Re: swremove depot when depot directory not present

Hi Bill:

Use 'swreg". It registers and un-registers depots.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: swremove depot when depot directory not present

Hi Bill:

Use 'swreg'. It registers and un-registers depots.

Regards!

...JRF...
Matti_Kurkela
Honored Contributor

Re: swremove depot when depot directory not present

The exact command line would be:

swreg -l depot -u /old/depot/location/now/gone

The "-u" option means "unregister".

You can also unregister an existing depot, move the depot files to a different location (even to another host) and then re-register it:

swreg -l depot /old/depot/in/a/new/location

MK
MK
Geoff Wild
Honored Contributor

Re: swremove depot when depot directory not present

You can also just remove from:

/var/adm/sw/host_object

Then restart the agent:

/usr/sbin/swagentd -r

You can also vi that file if you want to change the ordering of the list of depots.

See:

http://www.met.ca/itrc/index.php?option=com_content&task=view&id=59&Itemid=2

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
William Pribble
Frequent Advisor

Re: swremove depot when depot directory not present

Thanks for the quick response.

Pete - I tried that and it did not work.

The two options
1) swreg from james/Matt
and
2) removing from /var/adm/sw/host_object swagentd -r

both worked great !!!!

Thanks
Bill
William Pribble
Frequent Advisor

Re: swremove depot when depot directory not present

swreg and editing the /var/adm/sw/host_options; /usr/sbin/swagentd -r