Operating System - HP-UX
1834466 Members
2899 Online
110067 Solutions
New Discussion

Swinstall - How do i find out files changed.

 
ben_43
Frequent Advisor

Swinstall - How do i find out files changed.

Team:

Good Morning. We manage nclass with 11.0 64bit. We receive filesets(swpackaged from the applications) which we have to install and remove on the test/QA nclass box to ensure that all the filesets are installing and removing properly. I have the foll. questions..
1. Is it possible with swinstall to find out what are the changes taking place to the OS or the filesystems with whatever we install.

2. The same with swremove. Is is possible to check with swremove to check whether they have removed all the files which they updated during swinstall?

3. Are there anyone who handle similar requirements? If so how are you handling? Any help or scripts would be very helpful.

Best Regards
Ben
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: Swinstall - How do i find out files changed.

Hi,

you have the option:

swlist -l files -a date | grep

Gideon
Elif Gius
Valued Contributor

Re: Swinstall - How do i find out files changed.

Also you can look into the swinstall/swremove Logfile.
James R. Ferguson
Acclaimed Contributor

Re: Swinstall - How do i find out files changed.

Hi Ben:

Probabaly the easist way to verify an installation and the removal of your packages is to review the SD logs in:

# /var/adm/sw/sw*.log

Regards!

...JRF...
ben_43
Frequent Advisor

Re: Swinstall - How do i find out files changed.

Team:

Thanks. But i guess i did not frame the question properly. I know i can look at logs for some errors. But what i am asking is..Is there a way to know what files are being updated/created with each installation of the application filesets? The first option provided swlist -l files is not supported.

Thanks
Ben
Tim Stallman
Advisor

Re: Swinstall - How do i find out files changed.

I think you're asking if there is a way to know all of the files added/updated by an installed file set? E.g. if some obscure file was placed in /var/opt/mydepot/thisdepot/newfile.
The only way I know to do this is to inventory the system before you do the install and then inventory after the install and see the differences using some variant of the "find" command and saving the ouput. I have written some custom scripts to do this in the past but they take a very long time to run due to the fact they search the entire file system.
Anil C. Sedha
Trusted Contributor

Re: Swinstall - How do i find out files changed.

Hi Ben,

Normally the swagent.log file will give you the directory where it installed the files.

You may go to these files and do

ls -ltr

this will give you a listing of the latest files at the bottom of the screen. This can give you a rough idea of what files changed. Other than this, you may cross verify the date for those files from a backup.

Regards,
Anil
If you need to learn, now is the best opportunity
James R. Ferguson
Acclaimed Contributor

Re: Swinstall - How do i find out files changed.

Hi (again) Ben:

The option is 'file' [singular, not plural]. Since you specifically note "filesets", you could use:

# swlist -l fileset -a date

Regards!

...JRF...