Operating System - HP-UX
1843774 Members
2932 Online
110223 Solutions
New Discussion

Can not access sam or swremove, swinstall, swlist

 
Brian butler
Frequent Advisor

Can not access sam or swremove, swinstall, swlist

just installed HWEnable 11i on Visulize B132L+
and can not run anyone of the following kmtune, sam, swinstall, swremove, and i am wondering what it is that i have done i just got finisted cold installing HP Ux 11.11


OSIRIS sent Event Monitor notification information:

/storage/events/disks/default/8_16_5.2.0 is >= 3.
Its current value is SERIOUS(4).



Event data from monitor:

Event Time..........: Sun Apr 7 16:57:04 2002
Severity............: SERIOUS
Monitor.............: disk_em
Event #.............: 100776
System..............: OSIRIS

Summary:
Disk at hardware path 8/16/5.2.0 : Software configuration error


Description of Error:

The device was unsuccessful in processing the current request message
because the message contained an invalid field in the command data block.
The request was not processed.

Probable Cause / Recommended Action:

The error most likely indicates that the device is not fully supported by
the current driver. This may or may not cause a problem in the operation
Qualification criteria met.
Number of events..: 1
Associated OS error log entry id(s):
None
Additional System Data:
System Model Number.............: 9000/778
OS Version......................: B.11.11
STM Version.....................: A.28.00
EMS Version.....................: A.03.20
Latest information on this event:
http://docs.hp.com/hpux/content/hardware/ems/scsi.htm#100776

v-v-v-v-v-v-v-v-v-v-v-v-v D E T A I L S v-v-v-v-v-v-v-v-v-v-v-v-v



Component Data:
Physical Device Path...: 8/16/5.2.0
Device Class...........: CD-ROM
Reboot and give me twenty....
3 REPLIES 3
Brian butler
Frequent Advisor

Re: Can not access sam or swremove, swinstall, swlist

ok i can now run swinstall, kmtune, swremove, and swlist and sam but its quite strange now i have to specify the full path,i have herd of this in some cases but, i have never had to do this before installing the patch that i specifyed
Reboot and give me twenty....
Bill Hassell
Honored Contributor

Re: Can not access sam or swremove, swinstall, swlist

When you have to specify a full path, then the programs you mentioned are not located in a directory that is in your current $PATH variable. The programs you mentioned are located in /usr/sbin, which only root would have in $PATH. Normally this would be set in .profile so check if it is there is a statement soemthing like this:

PATH=/usr/sbin:$PATH:/sbin

If not, something removed that line or replaced .profile with a different version. You can replace your .profile with the reference version found in /usr/newconfig/.profile.

If the PATH statement is there, then .profile probably not being executed. Start by executing .profile locally with:

. .profile

NOTE: The isolated . is required in order to transfer the changes from .profile into the current shell. If that sets $PATH correctly, then most likely, .dtprofile has not been changed to execute .profile when you start dtterm windows. This is a common problem in that the default for CDE is to *NOT* run /etc/profile AND .profile, thus PATH and many other settings are missed.

To get the full benefit of a 'normal' Unix login, you can put the following line in the file .Xdefaults:

*loginShell: true

This will now cause the 3 most common terminal emulators: dtterm, hpterm and xterm to correctly login and have the shell inherit the standard values from /etc/profile and .profile.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: Can not access sam or swremove, swinstall, swlist

Hi

This is certainly a PATH problem as shown but I would do this.See 1B

Sourceing of the
/etc/profile or $HOME/.profile.

1: Setup the ttymodes for CDE.

1A:Create a $HOME/.Xdefaults file for user specific settings

1B:Copy the file
/usr/dt/config/C/sys.resources
to the /etc/dt/config/C directory

Then for both cases apply the following lines for the tty modes and the force of sourcing the /etc/profile, each time you open a new shell.

*ttyModes: erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z
*loginShell: True

NOTE: make sure that you have no blanks in front of *ttyModes ..... and no blanks in front of *loginShell ....

2: Make sure to have the latest shell patches installed to avoid known problems with the ksh and Posix shell.

3: Motify the /etc/profile and the $HOME/.profiles to have an IF-Statement around and settings for DISPLAY, stty and other services, which make no sence to get executed under CDE..

Everything between the follow lines, will not executed when login from CDE:

if [ ! "$DT" ]; then
.
.
.
fi # if !DT


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)