Operating System - HP-UX
1847485 Members
5070 Online
110265 Solutions
New Discussion

Need to know the contain of a product

 
SOLVED
Go to solution
Dewa Negara_4
Regular Advisor

Need to know the contain of a product

Hi All,

I have a product called VALIDATION from my depot server. This product will be distributed across all servers. However, some servers are not supported by SD (Software Distribution), so I need to transfer manually the contain of the product using a simple script.

How can I know what files included into the product? How can I know if there is psf file was used?

The goal is I need to get the contain of the product, so I can create a simple script to transfer the files.

Please help High score will be given.

Thanks and Best Regards,
Dewa

[root@prod:/root]
# swlist -l product @ /var/spool/sw/applications/HP/VALIDATION
# Initializing...
# Contacting target "prod"...
#
# Target: prod:/var/spool/sw/applications/HP/VALIDATION
#

VALIDATION 2.1.2 SanityCheck utilities refresh product
Santos
16 REPLIES 16
Arunvijai_4
Honored Contributor
Solution

Re: Need to know the contain of a product

Hi Dewa,

Just run this command and you will get all the file list,

# swlist -l file -s

To get the list of Filesets,

# swlist -l fileset -s

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Need to know the contain of a product

Try as,

# swlist -l file @ /var/spool/sw/applications/HP/VALIDATION

to get file level informations.

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Need to know the contain of a product

The goal is I need to get the contain of the product, so I can create a simple script to transfer the files.

==

Do you want to transfer the files in the product some other machine? Or swlist execution to some other machine. You can swcopy or rcp or scp or ftp the product directory to another machine. That is all.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Need to know the contain of a product

To be more precise,

# swlist -l file @ /var/spool/sw/applications/HP/VALIDATION

# swlist -l fileset @ /var/spool/sw/applications/HP/VALIDATION

You can also use swcopy to unpack the contents and tar /untar it to your preferred servers.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Dewa Negara_4
Regular Advisor

Re: Need to know the contain of a product

Thanks a lot all.

Hi Muthu / Arun,

I got the problem because some boxes are not supported by SD as well as not running swagentd.

How can we rcp the product and untar it on those servers that are not supported by SD?

Thanks and Best Regards,
Dewa

Santos
Arunvijai_4
Honored Contributor

Re: Need to know the contain of a product

Hello,

You asked " How can we rcp the product and untar it on those servers that are not supported by SD?"

Yes, you can do it. It could be an ugly way of doing it since you can't uninstall the product and you have to create links manually (if needed)

Hope this is clear.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: Need to know the contain of a product

Hi Dewa,

Keep this handy with you,

http://docs.hp.com/en/B2355-90754/index.html

[Software DistributorAdministration Guidefor HP-UX 11i: HP Computers]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Need to know the contain of a product

I got the problem because some boxes are not supported by SD as well as not running swagentd.

===

You can rcp the product to remote machine and untar them in normal manner. You can export the path to PATH variable or give symbolic link to /usr/bin or needed locations.

sd* commands will install packages based on the scripts available in that product. Instead of that you can use the binaries available in the product directly.

If you are not using symbolic link method them for uninstalling simply rm -rf .

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Need to know the contain of a product

If you are not installing a product with swinstall in a proper manner then that is hard way of working.

Just start swagend and install it. Then make it stop. It will be good more.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Need to know the contain of a product

If the servers are not supported by, you can install SD-UX and enable it.

Download SD-UX from here,

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6818AA

Start swagentd by,
#/sbin/init.d/swagentd start

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Dewa Negara_4
Regular Advisor

Re: Need to know the contain of a product

Hi Arun / Muthu,

Thanks a lot. Some of the servers are AIX 5L where I got a confirmation that those AIX 5L servers are not supported by SD.

Instead of using swinstall to install the product, I am thinking to do rcp to transfer those files on the product.

Do you have any better idea than this?

Thanks a lot again.

Best Regards,
Dewa
Santos
Muthukumar_5
Honored Contributor

Re: Need to know the contain of a product

Dewa,

You can use the binaries which are supported based on operating system only. Is the product directory having files which are supported to run on AIX platform. I hope not.

/var/spool/sw/application/HP/VALIDATION may be supported to hp-unix platforms only. Check the production platform support document first.

For different operating system they will give in different format.

--
Muthu
Easy to suggest when don't know about the problem!
Dewa Negara_4
Regular Advisor

Re: Need to know the contain of a product

Hi Muthu,

The product is working well on HP, AIX, SUN servers. It's only the problem appear on those AIX 5L servers because swagent is not running on them. If swagent is not running, that is impossible to install the product thru swinstall. Please correct me if I am wrong.

Thanks and Best Regards,
Dewa
Santos
Arunvijai_4
Honored Contributor

Re: Need to know the contain of a product

Hi Dewa,

You can't install and use binaries from HP-UX to AIX by any mean. There is no binary compatibility or what so ever.

You can compile the product on your own in AIX 5L and use it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: Need to know the contain of a product

Hi Dewa,

Just wondering how did you manage install and run the binaries from HP-UX to Sun Solaris and other AIX servers ?? Are they perl scripts ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Need to know the contain of a product

Confused!!

Just try to copy the product directory to that machine and try to run the binaries there.

Better to copy already installed product in AIX to AIX 5L machine. If your copy process is completed then try to see the files and binaries availablity and execute it.

Is it working?

--
Muthu
Easy to suggest when don't know about the problem!