Operating System - HP-UX
1752660 Members
5761 Online
108788 Solutions
New Discussion юеВ

Re: Where to get missing swinstall utility

 
Sam DeFilippis
Occasional Advisor

Where to get missing swinstall utility

Our HP-UX B.11.00 U 9000/800 system is missing the "swinstall" utility and it is urgently needed.
How can I get this? The installation CD is not available.

Thanks.
Sam
9 REPLIES 9
Rick Garland
Honored Contributor

Re: Where to get missing swinstall utility

Any backups available that you can restore from?
Sam DeFilippis
Occasional Advisor

Re: Where to get missing swinstall utility

No server filesystem backups are available.
John J Read
Frequent Advisor

Re: Where to get missing swinstall utility

That seems very odd. Is /usr/sbin generally OK? If just swinstall is missing, you could copy this from another server with the same OS but it strikes me that more might be wrong with the host. Perhaps you are not in a properly sourced root shell and /usr/sbin is not in your $PATH? Check that 1st. I have a feeling it's really there.
John J Read
Frequent Advisor

Re: Where to get missing swinstall utility

Just to clarify.. You are looking for
/usr/sbin/swinstall

If it's missing, are there other files in /usr/sbin? Perhaps /usr isn't mounted or something?
Sam DeFilippis
Occasional Advisor

Re: Where to get missing swinstall utility

No, /usr/sbin was the second directory I checked. However, I found "swconfig" in /usr/lbin and ran it. Now "swinstall" is in /usr/bin. I just need to put /usr/sbin in the PATH since it is also missing from there.

Thanks everyone for your help.

Sam
Dennis Handly
Acclaimed Contributor

Re: Where to get missing swinstall utility

There should be 11 hardlinks to swinstall in /usr/sbin/
-r-sr-xr-x 11 root bin 2289664 Aug 19 2003 /usr/sbin/swinstall
Do you have any sw* files there at all?
Bill Hassell
Honored Contributor

Re: Where to get missing swinstall utility

> No, /usr/sbin was the second directory I checked. However, I found "swconfig" in /usr/lbin and ran it. Now "swinstall" is in /usr/bin.

This is not a good situation. swinstall is never found in /usr/lbin or /usr/bin. Someone (with root privileges) has apparently changed or moved things around. Like LVM commands, Software Distributor (SD or swinstall, swremove, etc) is a single file with multiple names (ie, hard links). As Dennis states, the SD commands (they start with sw) will be found in /usr/sbin. Here is a 'normal' /usr/sbin directory (using ll -i to illustrate the hard link inode numbers):

2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swacl
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swask
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swconfig
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swcopy
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swinstall
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swjob
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swlist
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swreg
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swremove
2697 -r-sr-xr-x 11 root bin 2301952 ... /usr/sbin/swverify

Note that there are other files that start with sw but they are not linked.

> I just need to put /usr/sbin in the PATH since it is also missing from there.

Only for root. /usr/sbin contains processes that are for root only. Adding entries to root's PATH are standard procedures when first setting up any Unix system.


Bill Hassell, sysadmin
Ishwar_1
Frequent Advisor

Re: Where to get missing swinstall utility

Sam,

You can reinstall the patch for the Swinstall from one of the HP Standards ftp Site
ftp us-ffs.external.hp.com

Hope this information helps you
Sam DeFilippis
Occasional Advisor

Re: Where to get missing swinstall utility

Thank you to all of you. I think we are past this problem now.