Operating System - HP-UX
1820736 Members
3292 Online
109627 Solutions
New Discussion юеВ

Re: swlist giving error while listing depot on remote Server

 
SOLVED
Go to solution
Girish_17
Regular Advisor

swlist giving error while listing depot on remote Server

Hi Guru's,

I have mounted a CD with depot software on server A. Now from Server B i am trying to execute swlist command but it is giving me following error.

============================================
Checking package1 package ................................ not installed
* "serverA:/CDMount/depot": Cannot open the logfile on this
target or source. Possibly the media is read-only or there is
a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.

==============================================
CD is mounted on /CDMount and i have registered /CDMount/depot directory which is done quite normally without any error.

If i do on serverA:
# swlist -s /CDMount/depot
It works but from serverB if i execute the same command i get the above mentioned error.

Can anybody tell me what exactly is happening and what could be the resolution for the same.

Thanks in advance.
Awaiting your replies.

Regards,
Girish.
36 REPLIES 36
harry d brown jr
Honored Contributor

Re: swlist giving error while listing depot on remote Server


And /etc/exports is set up?

live free or die
harry d brown jr
Live Free or Die
bhavin asokan
Honored Contributor

Re: swlist giving error while listing depot on remote Server

hi,
try using pfs_mount

#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &

ps -aef |grep pfs should show four entrirs.

/usr/sbin/pfs_mountd
pfs_mountd.rpc
/usr/sbin/pfsd
pfsd.rpc

regds,


Peter Godron
Honored Contributor

Re: swlist giving error while listing depot on remote Server

Girish,
you may just want to add the
-x logfile=/tmp/logfile option to swlist, just in case there is a problem writing the log file.
Regards
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Sorry guys,
None of them works...

Harry ... i tried putting the mount point in /etc/export and did "exportfs -a" but while exporting itself it said exporting filesystem with read only option. swlist reported the same error again.

Bhavin i tried pfs_mount but it doesn't work.. i was able to mount the file system but error remains.

Peter i tried that -x option with logfile=/tmp/xxx but it say unknown option...

Please let me know where exactly it is going wrong.

Thanks for your replies.
Awaiting still for your suggestions.
Regards,
Girish


Peter Godron
Honored Contributor

Re: swlist giving error while listing depot on remote Server

Girish,
can you actually cd to the drive and ls down the directories on the CD?
All I can find about this error message is when swinstall is used. Is it possible to mount the CD drive onto server B?
Is there anything in the suggested logfiles?
Does swlist just stop after showing the error?
Sorry to ask all these questions, but it may give us a few more clues.
Regards
bhavin asokan
Honored Contributor

Re: swlist giving error while listing depot on remote Server

hi,

try the following things.first restart the swagentd daemon on servers

/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start


and if the depot is a licenced software add the codewords on server B also.

regds,
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Hi Peter,

1. can you actually cd to the drive and ls down the directories on the CD?

Yes on server A i am able to scroll down into directories and files.

2.Is it possible to mount the CD drive onto server B?

No .. It says permission denied but does that matter. I am directly reading the remote mount point!!

3. Is there anything in the suggested logfiles?
I don't know which log file it is talking about. I have checked swagentd.log on server A but no error are reported. Also there is no "/var/tmp/swagent.log" file on server B as swlist reports me to check.

4. Does swlist just stop after showing the error?
No .. it goes further listing the package desired but the error comes which i want to get rid off (this is required).

Awaiting further to your responses.

Bhavin i checked the swagentd daemon it is working fine and only one instance of the daemon is in picture.

Thanks
Girish
bhavin asokan
Honored Contributor

Re: swlist giving error while listing depot on remote Server

hi,
daemon may be working on servers.but sometimes it will give the error at the time of installation even it is showing ok.

i gave the command to stop and start the daemon.sometimes if the related daemons restarts it will solve the problem.

regds,
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Yes bhavin i tried as per your suggestion but it doesn't work still.
Regards,
girish
MarkSyder
Honored Contributor

Re: swlist giving error while listing depot on remote Server

"Cannot open the logfile on this target or source" - is /var full on one of the servers?

bdf -il /var

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Robert-Jan Goossens
Honored Contributor

Re: swlist giving error while listing depot on remote Server

did you mount it with the ro options ?

# mount -F nfs -o ro serverA:/cdrom /cdrom
MarkSyder
Honored Contributor

Re: swlist giving error while listing depot on remote Server

Alternative thought:

Does /var have incorrect permissions on one of the servers? I've checked a couple of mine and it's set to r-xr-xr-x.

Mark
The triumph of evil requires only that good men do nothing
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Hi,
Thanks for your replies mark and robert.

Mark var is not full... it has 2GB free space.

Robert i am trying to list the depot software which is on the remote server. I don't want to mount the Server A cdrom on Server B.

I have CD in Server A CD drive and mounted on /CDMount directory of ServerA.

I am listing the depot software of serverA's depot /CDMount/depot from ServerB using swlist command.

The command works fine but the error is displayed which should not happen.

Regards,
Girish
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Yes the permission of /var are 555 which is normal.
Regards,
Girish

Re: swlist giving error while listing depot on remote Server

Girish,

What is the output from:
# swlist -l depot -s serverA

Also, assuming that you see "/CDMount/depot" in the output of the above, what is the output of:
# swlist -l bundle -s serverA:/CDMount/depot

Thanks...

Steve Hamilton
James George_1
Trusted Contributor

Re: swlist giving error while listing depot on remote Server

Hi

Is there any error reported in /var/adm/sw/swagent.log ???

and also, check the permission of /var/adm/sw/swagent.log

James
forum is for techies .....heaven is for those who are born again !!
Scot Bean
Honored Contributor

Re: swlist giving error while listing depot on remote Server

I believe this msg is a false alarm. Have you tried continuing the swinstall, despite this error?

swagentd, by default, has this option set:
source_depot_audit=true

This means that logging for a depot is attempted in the depot directory itself. Since your directory is read only, this is not possible. It 'should' be using '/var/tmp/swagent.log' quietly, but is throwing a (false alarm?) error.

Workarounds:
- try the swinstall awyway, should go
- copy the CD-ROM depot to disk, then swinstall from disk
- are the 2 machines on different HPUX releases? 10.20 vs 11.0? Try installing the latest swinstall patches, this may be fixed
- play with the 'source_depot_audit=false' option on the depot machine, turning this off should quiet the error. (see man 1m swagent for details)
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Hi,
Thanks again for those replies.

Steve:
# swlist -l depot -s serverA
This command works fine for me without any errors and list all the available depots alongwith the one in the mounted CDROM which is /CDMount/depot.

# swlist -l bundle -s serverA:/CDMount/depot
This doesn't work since i don't have Bundle software in that depot but
# swlist -l product -s serverA:/CDMount/depot
This works and list the products in the depot but again the same error message repeats.

* "serverA:/CDMount/depot": Cannot open the logfile on this
target or source. Possibly the media is read-only or there is
a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.

James: There is no error message in /var/adm/sw/swagent.log file (in both A & B )
I tried changing the permission of swagent.log file on both servers as 666 (restarted the daemon after this) but still the message remains.

Scot i think you may be close to the solution and i am also thinking in that way but not able to supress that error still. I edited /var/adm/sw/defaults to add source_depot_audit=false (restarted daemon) but error still remains.
And yes as you said the swinstall works fine and installs required product from A to B without any errors.
Also copying depot to the disk resolves the issue but i am not suppose to work that way.
Both the machines are running 11.23v2 (Sep2004 Bundle) so i think they are uptodate with patches (atleast for swagentd).

Still looking out for resoultion?? :(
And i have to atleast suppress the error if i not able to resolve it!!!
Wating still for more suggestions and thanks all for your help and concern.

Regards,
Girish


Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Putting this on TOP...
bhavin asokan
Honored Contributor

Re: swlist giving error while listing depot on remote Server

hi,

try with following

swlist -l product -d @ serverB:/CDMount

and what is the permission,ownership of /CDMount directory before mounting cdrom

regds,



bhavin asokan
Honored Contributor

Re: swlist giving error while listing depot on remote Server

hi,

and provide the permission and ownership of /var/tmp/swagent.log,/var/adm/sw/swagentd.log
and /var/tmp directory of both servers.

regds,

Scot Bean
Honored Contributor

Re: swlist giving error while listing depot on remote Server

I think you are heading in the right direction, sounds like you do have the latest patches, and this may be a new defect in 11.23 Sep04.

One more workaround to try. In your /var/adm/sw/defaults file, use

swagent.source_depot_audit = true

instead, then restart swgagentd with "swagentd -r" to reset.
Girish_17
Regular Advisor

Re: swlist giving error while listing depot on remote Server

Hi
Scot tried updating /var/adm/sw/defaults file with swagent.source_depot_audit = true and then restart swgagentd with "swagentd -r" but problem still remains.

Can you tell me how can i proceed further to communicate with HP in case it's a genuine BUG!!

Bhavin i have already tried those things and conveyed here in my previous replies.

Regards,
Girish

Scot Bean
Honored Contributor

Re: swlist giving error while listing depot on remote Server

Oops, "= false" is what I meant to say.

Bugs:
- If you have a support contract, it is easy.
- If not, call 800-474-6836