Operating System - HP-UX
1844876 Members
2233 Online
110233 Solutions
New Discussion

Re: strange errors on rp2470

 
SOLVED
Go to solution
Grayh
Trusted Contributor

strange errors on rp2470

On My rp2470 server I get the following error

[1] % sysdiag
sysdiag: Command not found.
[2] % swlist
swlist: Command not found.
[20] % ioscan -fnC disk
ioscan: Command not found.

I am logged in as root... but still I do not know why I do not get the o/p..

[10] % uptime
8:18am up 8 mins, 2 users, load average: 0.00, 0.05, 0.04
[11] % bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 147456 146871 585 100% /
/dev/vg00/lvol1 298928 37544 231488 14% /stand
/dev/vg00/lvol8 1081344 464346 583582 44% /var
/dev/vg00/lvol7 737280 621631 108442 85% /usr
/dev/vgSYS/lvolTRNS
3072000 1426738 1542496 48% /usr/sap/trans
/dev/vgSYS/lvolUSR 3072000 91421 2794319 3% /usr/sap/TXW
/dev/vg00/lvol4 65536 18261 44927 29% /tmp
/dev/vgSYS/lvolSAPMNT
3072000 770635 2157586 26% /sapmnt/TXW
/dev/vgDB/lvolSTAGE
2048000 927955 1050059 47% /oracle/stage/817_32
/dev/vgDB/lvolORA 102408192 99166320 3216600 97% /oracle/TXW
/dev/vgSYS/lvolOLA 204800 48575 146467 25% /oracle/TXW/origlogA
/dev/vgSYS/lvolMLB 204800 42119 152520 22% /oracle/TXW/mirrlogB
/dev/vg00/lvol6 409600 222494 175453 56% /opt
/dev/INST/lvolINST 35549184 12059824 23305880 34% /inst
/dev/vg00/lvol5 32768 1455 29410 5% /home
[12] % vgdisplay
vgdisplay: Command not found.


30 REPLIES 30
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

There is something wrong with your PATH variable or even with your profile.

/sbin/ioscan
or
/sbin/vgdisplay should work.

Try

echo $PATH

and inspect your .profile and /etc/profile

What shell are you using?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

[45] % pwd
/var
[46] % ll
total 22
drwxr-xr-x 3 bin bin 96 Aug 11 2004 X11
drwxr-xr-x 11 adm adm 1024 Sep 3 08:10 adm
drwxr-xr-x 4 root sys 2048 Sep 3 08:12 dt
drwxrwxrwt 2 bin bin 96 Aug 11 2004 home
drwxr-xr-x 2 root root 96 Aug 11 2004 lost+found
drwxrwxr-x 2 bin mail 96 Aug 21 06:55 mail
drwxrwxrwx 2 bin bin 96 Aug 11 2004 news
dr-xr-xr-x 11 bin bin 1024 Sep 17 2004 opt
drwxrwxrwx 3 root sys 2048 Aug 13 2004 patches
drwxrwxrwx 2 bin bin 96 Aug 11 2004 preserve
drwxrwxrwx 2 bin bin 96 Aug 11 2004 rbootd
dr-xr-xr-x 2 bin bin 96 Jul 30 2007 run
dr-xr-xr-x 9 bin bin 1024 Sep 3 08:11 sam
drwxr-xr-x 13 root sys 1024 Aug 13 2004 spool
drwxr-xr-x 4 root sys 96 Aug 11 2004 statmon
drwxrwxrwx 3 bin bin 2048 Sep 3 08:11 tmp
dr-xr-xr-x 6 bin bin 96 Aug 11 2004 uucp
drwxr-xr-x 3 root sys 1024 Aug 11 2004 yp
[47] %

*******There is no Tombstones directory***********


[47] % echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/b
in:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/b
in:/opt/graphics/common/bin

I do not find any issues in these .profile and /etc/profile

[53] % cat .profile
# @(#) $Revision: 74.2 $

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u

PATH=/usr/sbin:$PATH:/sbin:/home/root

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM

EDITOR=vi
export EDITOR

fi # if !VUE


# Set up shell environment:

set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.


# Set up shell variables:

MAIL=/var/mail/root
# don't export, so only login shell checks.

echo "WARNING: YOU ARE SUPERUSER !!\n"
[54] %


[55] % cat /etc/profile

# @(#) $Revision: 74.2 $

# Default (example of) system-wide profile file (/usr/bin/sh initialization).
# This should be kept to the bare minimum every user needs.

# Ignore HUP, INT, QUIT now.

trap "" 1 2 3

# Set the default paths - Do NOT modify these.
# Modify the variables through /etc/PATH and /etc/MANPATH

PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin
MANPATH=/usr/share/man:/usr/contrib/man:/usr/local/man

# Insure PATH contains either /usr/bin or /sbin (if /usr/bin is not available).

if [ ! -d /usr/sbin ]
then
PATH=$PATH:/sbin

else if [ -r /etc/PATH ]
then

# Insure that $PATH includes /usr/bin . If /usr/bin is
# present in /etc/PATH then $PATH is set to the contents
# of /etc/PATH. Otherwise, add the contents of /etc/PATH
# to the end of the default $PATH definition above.

grep -q -e "^/usr/bin$" -e "^/usr/bin:" -e ":/usr/bin:"\
-e ":/usr/bin$" /etc/PATH
if [ $? -eq 0 ]
then
PATH=`cat /etc/PATH`
else
PATH=$PATH:`cat /etc/PATH`
fi
fi
fi

export PATH

# Set MANPATH to the contents of /etc/MANPATH, if it exists.

if [ -r /etc/MANPATH ]
then
MANPATH=`cat /etc/MANPATH`
fi

export MANPATH

# Set the TIMEZONE

if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE
else
TZ=MST7MDT # change this for local time.
export TZ
fi

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# set term if it's not set

if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup" \
-o "$TERM" = "network" ]
then
eval `ttytype -s -a`
fi

export TERM

# set erase to ^H, if ERASE is not set
if [ "$ERASE" = "" ]
then
ERASE="^H"
export ERASE
fi
stty erase $ERASE

# Set up shell environment:

trap "echo logout" 0


# This is to meet legal requirements...

cat /etc/copyright

# Message of the day

if [ -r /etc/motd ]
then
cat /etc/motd
fi

# Notify if there is mail

if [ -f /usr/bin/mail ]
then
if mail -e
then echo "You have mail."
fi
fi

# Notify if there is news

if [ -f /usr/bin/news ]
then news -n
fi

# Change the backup tape

if [ -r /tmp/changetape ]
then echo "\007\nYou are the first to log in since backup:"
echo "Please change the backup tape.\n"
rm -f /tmp/changetape
fi

fi # if !VUE

# Leave defaults in user environment.

trap 1 2 3

[56] %
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

Have a look:

# whence bdf
/usr/bin/bdf

# whence uptime
/usr/bin/uptime

# whence ioscan
/usr/sbin/ioscan

# whence vgdisplay
/usr/sbin/vgdisplay

# grep /usr/sbin /.profile
PATH=/usr/sbin:$PATH:/sbin:

/usr/sbin is likely missing in your PATH!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

I'm trying the third time to reply, but my posts disappear.

:-((


What shell are you using?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

Ohhh... Yes...

How can I update it...

Also when i wanted to find the pdf version i give mstm and i hit the following it errorrs...

[59] % mstm
mstm: Command not found.
[60] % model
9000/800/A500-7X
[61] % uname -a
HP-UX taxware B.11.00 U 9000/800 864899611 unlimited-user license

The tombstones directory is not there...
No crash dumps...
The GSP hasen't been configured..there is no IP address for it to access GSP remotely..I can only log in with the console.
melvyn burnard
Honored Contributor

Re: strange errors on rp2470

Well let's start from the beginning here.
Your prompt does not look right for a root user on Hp-UX.
It looks more like you are using a csh or ksh.
Please do:
env| grep SHELL
Also, do :
who am i
whoami

if you are logged in as a normal user, did you use su to switch to root user?


My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

Guess where "mstm" is!

# whence mstm
/usr/sbin/mstm


Your PATH variable is still missing the /usr/sbin

Please run

# ps

and post.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
John Payne_2
Honored Contributor

Re: strange errors on rp2470

It also can't help you at all that / has filled on your machine...

John
Spoon!!!!
Grayh
Trusted Contributor

Re: strange errors on rp2470

Opssss....the server is down now... lokks like i'll haver to replace the CPU..

And then i'll start troubleshooting
John Payne_2
Honored Contributor

Re: strange errors on rp2470

What makes you think it is a CPU problem? A full / filesystem can easily cause a machine to crash. Have you been having other problems with this machine? Did you have something else that indicated a hardware problem?

John
Spoon!!!!
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

I guess you are about to damage your system now - can you explain why?

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1265280

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

Now the server is up and running normally...

[2] % whence mstm
whence: Command not found.
[3] % /usr/sbin/mstm
/usr/sbin/mstm: Command not found.
[4] % ps
PID TTY TIME COMMAND
2797 pts/ta 0:00 csh
2796 pts/ta 0:00 telnetd
3440 pts/ta 0:00 ps
[5] % env| grep SHELL
SHELL=/usr/bin/csh
[6] % whoami
root
[7] % who am i
root pts/ta Sep 3 10:50
[8] %

I also would like to change the root prompt as I do not like that prompt.
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

I do not like csh for root!

Should be always /sbin/sh - please check
/etc/passwd

for this.

Also check if csh is started in your profile.

The csh "profile" is different and doesn't include /usr/sbin - that's why you cannot "find" the commands.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

What do you see if you run

# grep root /etc/passwd

/sbin/sh or something different?

How about /.profile ?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

[8] % grep root /etc/passwd
root:ru06NmEN8FuMQ:0:3::/:/usr/bin/csh
[9] % cat .profile
# @(#) $Revision: 74.2 $

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u

PATH=/usr/sbin:$PATH:/sbin:/home/root

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM

EDITOR=vi
export EDITOR

fi # if !VUE


# Set up shell environment:

set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.


# Set up shell variables:

MAIL=/var/mail/root
# don't export, so only login shell checks.

echo "WARNING: YOU ARE SUPERUSER !!\n"
[10] %

Grayh
Trusted Contributor

Re: strange errors on rp2470

I also would like to change the root prompt as I do not like that % prompt.
Torsten.
Acclaimed Contributor
Solution

Re: strange errors on rp2470

.



8] % grep root /etc/passwd
root:ru06NmEN8FuMQ:0:3::/:/usr/bin/csh


First change this! This is important!

change

/usr/bin/csh

to

/sbin/sh

log out and back in.


Now try this if you like it:

export PS1='$LOGNAME'@`uname -n`:'$PWD # '

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

[10] % grep root /etc/passwd
root:ru06NmEN8FuMQ:0:3::/:/sbin/sh

When I press a shift 2(@) the entire line at the command prompt disappears...

So unable to type the entire command

export PS1='$LOGNAME'@`uname -n`:'$PWD # '

I thpe " export PS1='$LOGNAME' " and then @ and the entire line vanishes... When I press backspace I get ^H^H^H( some junk)
Grayh
Trusted Contributor

Re: strange errors on rp2470

[15] % vgdisplay
vgdisplay: Command not found.
[16] % sysdiag
sysdiag: Command not found.
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

Did you log out after changing /etc/passwd ???

Try this instead

export PS1='$LOGNAME'#`uname -n`:'$PWD # '

;-)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

wow... thanks Totsten.. That works

o There is no /var/tobmstones directory or the
ts99,ts98.... files

o There is no crash info in /var/adm/crash

o I see the following message in syslogs

Sep 3 10:39:43 taxware syslog: IRMD[Info]: Adapter 0/6/0/1: Battery is fully ch
arged. It is safe to set the cache policy to WRBACK if desired. In order to do
that, please run irm. Select the RAID adapter at /dev/iop0 and change the cach
e policy of the desired logical drives to WRBACK.

o Also I get the following errors

root@taxware:/ # echo "selclass qualifier cpu;info;wait;infolog" | cstm
sh: cstm: not found.
root@taxware:/ # echo "map selall info;wait infolog" | cstm
sh: cstm: not found.
root@taxware:/ #
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

No problem.

o There is no /var/tobmstones directory or the
ts99,ts98.... files

o There is no crash info in /var/adm/crash


Be lucky - no crashes.

The syslog message comes from your RAID4si adapter - use "irm" to adjust the settings.

Finally, you still have your PATH problem.

use

echo "selclass qualifier cpu;info;wait;il" | /usr/sbin/cstm

echo "sel dev all;info;wait;il" | /usr/sbin/cstm



Did you really log out completely?

Your profile was not executed so far...



Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: strange errors on rp2470

Yes.. I have logged out, closed the telnet session and started a new session..

Vgdisplay, ioscan are all working..

but the cstm command dosen't work... ??
Torsten.
Acclaimed Contributor

Re: strange errors on rp2470

Is it there?

# swlist | grep -i diag
OnlineDiag B.11.11.20.03 HPUX 11.11 Support Tools Bundle, December 2007


# ll /usr/sbin/cstm
-r-xr-xr-x 1 bin bin 588 Aug 24 1995 /usr/sbin/cstm


Is it running?

# ps -ef | grep diagmond
root 22913 1 0 Jun 23 ? 46:29 /usr/sbin/stm/uut/bin/sys/diagmond

start it!

/usr/sbin/cstm


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!