Operating System - HP-UX
1752806 Members
5957 Online
108789 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!