1832552 Members
5838 Online
110043 Solutions
New Discussion

Re: swlist : not listing

 
vselvaraj
Advisor

swlist : not listing

Dear All

In One of my server swlist is not listing anything, I am getting error like this.
--------------------------------------------
#swlist
Initializing...
# Contacting target "blrnd1"...
ERROR: The expected depot or root does not exist at "/".
ERROR: There is currently no installed software on host "blrnd1" at location "/". (Note that you need to use "swlist -d" to manage depot software).
---------------------------------------------

If I want to remove any software it is not happening , In sam also I am not able to list or remove any softwares. basically I want to remove MWA trial version and to install the licensed one.60 days is over and now the trial version is not working. I installed the licensed one without uninstalling the trial one, But i could not start the application it is referring to the trial version and it is telling 60 days over.

I remember installation time swlist was working , this problem might have come recently.

One difference I found compared with other servers is # bdf output abt / filesystem.

/dev/root 409600 97024 293179 25% /

other servers:
/dev/vg00/lvol3 409600 102452 288020 26% /

Can somebody help me to correct the swlist error and to uninstall the trial version of
MWA and to install the licensed one.

Thanks in advance
V.Selvaraj






19 REPLIES 19
Stefan Farrelly
Honored Contributor

Re: swlist : not listing


rm /etc/mnttab then do a bdf and / should be mounted as lvol3. Try swlist again. Check if any depots exist; swlist -l depot, has someone installed software to a dir other than / ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Andreas Voss
Honored Contributor

Re: swlist : not listing

Hi,

your problem can be solved:

rename the file /etc/mnttab to /etc/mnttab.old
Then do a bdf.
This will take a little time while bdf rebuilds the /etc/mnttab.
After this you shoud have the correct device for the root filesystem and your swlist will go.

Regards

Andrew
John Palmer
Honored Contributor

Re: swlist : not listing

Have you changed the nodename (uname -S name) since the server was booted?

If so, you could revert the name or try restarting the swagentd daemon.

Your /dev/root problem can be corrected by:
mv /etc/mnttab /tmp
mount

Alex Glennie
Honored Contributor

Re: swlist : not listing

Two more possible reasons :

You are getting these errors because the system that contains the main
depot does not have the correct entries to allow access from other
clients to the depot.

You should use something similar to the following entry to allow access
from other clients to the depot:

/tmp -anon=2,access=root

Let's say that your depot is called /tmp/depots. All root clients can
access the depot and execute SD (Software Distribution) commands via
NFS to manipulate the depot. In order to access the depot via NFS, the
files in the depot should have read/write permissions for user, group,
and other.

Perform the following steps to resolve your problem:

1. Change the permissions on the files in your depot:

chmod -R *

2. Re-export the directory:

exportfs -v

The NFS client can now swlist, swinstall, and perform all other SD
operations via the NFS mount.


Perform one of the following steps to resolve your error:

A. 1. De-select 'All targets to resolve source locally' for that
session.

2. Re-start swagentd.

--OR--

B. 1. Edit the '/var/adm/sw/defaults' file by commenting out the
following entry:

swinstall.use_alternate_source= true

2. Re-start swagentd.


vselvaraj
Advisor

Re: swlist : not listing

My bdf problem has been sorted out by
removing mnttab and giving mount command again.
But still swlist is not working, I restarted
swagentd also once.

any more help?
V.Selvaraj
vselvaraj
Advisor

Re: swlist : not listing

My bdf problem has been sorted out by
removing mnttab and giving mount command again.
But still swlist is not working, I restarted
swagentd also once.

any more help?
V.Selvaraj
John Palmer
Honored Contributor

Re: swlist : not listing

Have you checked that the 'uname' hasn't changed?
John Palmer
Honored Contributor

Re: swlist : not listing

You can also get this sort of problem if the server can't resolve it's own IP address. You haven't changed the IP address have you?
vselvaraj
Advisor

Re: swlist : not listing

IP Address and the host name both are not got
changed for the past 8 months.
ie from the installation date.

V.Selvaraj
Stefan Farrelly
Honored Contributor

Re: swlist : not listing


Check where your software has been installed to by doing;

grep "Targets:" /var/adm/sw/swinstall.log

This will show where your software has been installed to, it should return lots of entries which either say; loopback:/ or :/ If not then let us know what the output is. Maybe someone installed to an alternate root directory, or someone has cleaned out something from /var/adm/sw which has stopped swlist working, does the file /var/adm/sw/products/INDEX exist ? and it should be big.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: swlist : not listing


You IPD could also be corrupt. To rebuild your IPD install some simple free product, eg. ignite (can download easily) and it will rebuild the IPD. Then swlist should work fine and you should be able to install OB aok.
Im from Palmerston North, New Zealand, but somehow ended up in London...
vselvaraj
Advisor

Re: swlist : not listing

Dear stefan,

/var/ad/sw/products/INDEX is available and it is very less in size compared with other
servers.

Grep Targets: gave result like this where 'blrnd1' is the hostname.

blrnd1 # more swinstall.log |grep Targets
* Targets: blrnd1:/
* Targets: blrnd1:/
* Targets: blrnd1:/
* Targets: blrnd1:/

I installed Measureware agent trial version and licensed version now.
Now these 2 are listed in swlist. But still I am not able to start MWA, if I start it
is referring the old trial version and it says 60 days over. As I said already I am not able to remove the old trial version.

Thanks and regards
V.Selvaraj.

Alex Glennie
Honored Contributor

Re: swlist : not listing

could try moving /opt/perf/newconfig/mwakey.srv to /var/opt/perf/mwakey : make copies first though of you have one ?
Stefan Farrelly
Honored Contributor

Re: swlist : not listing


So your swlist is working now ? you get a full list showing the operating system, MWA, patch bundles etc ? So it was a corrupt IPD ?

Dont forget to allocate points to all those who helped.
Im from Palmerston North, New Zealand, but somehow ended up in London...
vselvaraj
Advisor

Re: swlist : not listing

Hi stefan
I installed IgniteUX for HPUX11.00 from
Application cd-3, after that also I am not getting all the S/Ws installed.

Now I am getting 3 S/Ws in the list.
Please help me to get full list.How to recover the corrupted IPD?

Selvaraj
vselvaraj
Advisor

Re: swlist : not listing

Please help me ,
I am not able to resolve this,
I am really new to this field.

Stefan where are you?
If you can , will you give your contact
Email ID

Selvaraj
Stefan Farrelly
Honored Contributor

Re: swlist : not listing


Hi Selvaraj,

im here. Give us the output from swlist and from an ls /var/adm/sw/product.
Once I take a look there are other ways to rebuild the IPD.
Im from Palmerston North, New Zealand, but somehow ended up in London...
vselvaraj
Advisor

Re: swlist : not listing

Thanks Stefan,

refer the following answers for your question. (Attchment)

Waiting for ur reply
Selvaraj.V.

Stefan Farrelly
Honored Contributor

Re: swlist : not listing


Hi Selvaraj,

Well, taken a look at your attachment, and your swlist matches perfectly with the contents of /var/adm/sw/products which means the IPD is fine. The problem you have is someone/something has removed entries from the products directory!
For example, the core os products are missing;
HPUXEng64RT (or 32RT)
UXCoreMedia
SW-DIST
SOE
SystemAdmin
and on and on and on. A normal ls in /var/adm/sw/products should come up with tens and tens of entries, including all patches.

Your system has been screwed. The only solution you have is to restore the missing files from the products dir from a backup tape - or else reinstall your OS. If you can restore from tape restore only those that dont already exist, then swremove ignite, swinsall ignite, and you should be back in business. If you cant restore them from tape then even making an ignite tape and restoring it wont work, you will need to reinstall the OS.
Im from Palmerston North, New Zealand, but somehow ended up in London...