Operating System - HP-UX
1834162 Members
2604 Online
110064 Solutions
New Discussion

Re: software restoration ..

 
Shankar_6
Regular Advisor

software restoration ..

Hi,

Assumei have software "ABC".I will be removing it and install new version software "XYZ".in case if it dont work,i want to revert back to "ABC".I can restore the old version files from backup,but how can i update products database so that i can use old software.

points will be alotted.

thx-shankar
7 REPLIES 7
Marco A.
Esteemed Contributor

Re: software restoration ..

Hello Shankar,

If you restore the product and actually the prodcut is shown in /var/adm/sw/product you can rebuild the index file by running the followoing command .:

swmodify -a state=configured OS-Core.q4

After that the product will appears in the swlist ..

be sure that you have not corrupt product in your database first.

Hope this helps,

Marco
Just unplug and plug in again ....
Pete Randall
Outstanding Contributor

Re: software restoration ..

I assume you are talking about using Software Distributor. Given that, you would swremove ABC, then swinstall XYZ. If XYZ fails, you would swremove it, then swinstall ABC again.

An easier way would be to take an Ignite make_tape_recovery backup of your root VG. Then if XYZ doesn't work out, you simply rebuild your root VG as it was before, with ABC.


Pete

Pete
Marco A.
Esteemed Contributor

Re: software restoration ..

You can also take a look at this book:

http://docs.hp.com/en/B2355-90754/B2355-90754.pdf

Explain in detail to how resolve a lot of software issues, and the normal procedures.

Best regards,

Marco
Just unplug and plug in again ....
Jaime Bolanos Rojas.
Honored Contributor

Re: software restoration ..

Shankar,

I do not think software products works the same way than patches.
First thing to check would be to see if this application can be upgraded or it needs to have a new installation.
If it can be upgrade like ignite or onlinejfs then if something goes wrong just uninstall the later one and you are done.

But the swremove and swinstall option would be the safest way to go.

Regards,

Jaime.
Work hard when the need comes out.
Shankar_6
Regular Advisor

Re: software restoration ..

Hi,

Thanks for all ur valuable reply.Issue now here is this software upgradation is on production box and also dont have old software version installation files.Since its a production i cant think of restoring from ignite etc..(time consuming..!?)

Let me know any options to get the old software version.

Shankar
Dennis Handly
Acclaimed Contributor

Re: software restoration ..

>Marco: you can rebuild the index file by running the followoing command:
swmodify -a state=configured OS-Core.q4

Is this just an example? Or using q4 doesn't matter?

>Jaime: I do not think software products works the same way than patches.

Right. If you install a new version, you can't get the old one back. While you could back up the files, you can't get the IPD to agree with the old files.

>also dont have old software version installation files.
>Let me know any options to get the old software version.

What software is it? You might install the new software to an alternate root, test it there, then remove that alternate root.
Marco A.
Esteemed Contributor

Re: software restoration ..

Dennis, was not an example! .. I was talking about how to update the INDEX file just in case that you have corrupt products and want to delete them to install the new ones.

This is the command that do that! ...
# swmodify -a state=configured OS-Core.Q4

Regards,

MArco
Just unplug and plug in again ....