Operating System - HP-UX
1824637 Members
4768 Online
109672 Solutions
New Discussion юеВ

Some Command Not Work Under CO

 
Mousa55
Super Advisor

Some Command Not Work Under CO

Hi
I have rp8420 server with 4 node and 11.11 O.S version,
When I using the CO from MP and then select the first node
And tray to use some command, I found the more commands
Are not work in the CO for e.g. I can use ll command and bdf
And ioscan and netstat, but when I try to use another command
I am see this message
Ksh not found the command
For e.g. the who, whereis, ifconfig , SAM
And another command
And I am check this command on another node(partition) and it is working
And I am checking on the /usr/sbin file and find all the command
How to solve this problem?


Thanks & kind Regards
21 REPLIES 21
Torsten.
Acclaimed Contributor

Re: Some Command Not Work Under CO

If you say "node" I assume you mean "nPar", right?

Is this nPar really up and running or somewhere in a lower init level (init 1 or single user mode)?


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!   
Dennis Handly
Acclaimed Contributor

Re: Some Command Not Work Under CO

>I am see this message
ksh not found the command

ksh: sfsf: not found
This seems to indicate that you PATH isn't set up properly for your shell. What does this show:
echo $PATH
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
the output of echo $PATH
/usr/sbin:/opt/........and more directory
thanks
Torsten.
Acclaimed Contributor

Re: Some Command Not Work Under CO

Does
/sbin/vgdisplay -v vg00
work?
What is the result of

/usr/bin/who -r

You need to check if you reached the correct run level. "who -r" may produce incorrect results - you can also check /etc/rc.log and the console log from MP for this partition.

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!   
Rasheed Tamton
Honored Contributor

Re: Some Command Not Work Under CO

Hi,,

Are you running the commands as root or as normal user.

What is the output of the below commands:

which ll bdf ioscan netstat
which who whereis ifconfig sam

whence ll bdf ioscan netstat
whence who whereis ifconfig sam

Test running the above as root and the normal user. Is there any difference in the output?

Regards.
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
the /sbin/vgdisplay -v vg00 it is work but without sbin the vgdisplay is not work
/usr/bin/who -r
run level 3 0 s
and the which ll bdf ioscan netstat it is working under root user and normal user
but the whereis and SAM and ifconfig is not working
thanks

Thanks & kind Regards
Rasheed Tamton
Honored Contributor

Re: Some Command Not Work Under CO

Hi Nejad,

What is the output of the whence command.

Regards.
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
the same output ksh not found whence
thanks
Torsten.
Acclaimed Contributor

Re: Some Command Not Work Under CO

I really wonder about your "ksh not found ..."

What is the exact message?

Example:

> bla
ksh: bla: not found

Did you by chance configure /usr/sbin/ksh as root's default shell? just an idea...

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!   
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
i am try all command with root user and and i am see the same error massage
>whence
ksh: whence: not found
and i am tray with a full path for a command
/usr/sbin/.... and the same error

Thanks & kind Regards

Torsten.
Acclaimed Contributor

Re: Some Command Not Work Under CO

this is really strange, since "whence" is a shell built-in.

Try this

> which ksh

should result

/usr/bin/ksh

What is the result of "set" command? Please 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!   
Rasheed Tamton
Honored Contributor

Re: Some Command Not Work Under CO

May be your Ksh needs patching!
If you change your shell to posix and run the commands, what response you get.

run sh or /usr/bin/sh
and repeat the other commands.
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
the output of > which ksh is
/usr/bin/ksh
but the set command it is the more output i can't posted because i am work on the MP from the datacenter from integrated keyboard mentor
and if my shell need a patch what is this the patch.

Thanks & kind Regards
Rasheed Tamton
Honored Contributor

Re: Some Command Not Work Under CO

Does posix sh work.

What is the output of:
what /usr/bin/ksh

regards.
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
i can't copy the output of this command because i am work on the MP from server on datacenter.
but the output is more name and number of patch for ksh
thanks
Torsten.
Acclaimed Contributor

Re: Some Command Not Work Under CO

If you cannot post the results of various commnds this is not a good basis for troubleshooting ...

Are you able to reboot the partition?

If yes, watch it! Does the system comes up properly?

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!   
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

Hi
sorry to i can't post the output,
and i can't able to reboot a server because it is a producton server.
thanks
Rasheed Tamton
Honored Contributor

Re: Some Command Not Work Under CO

Hi Nejad,

We suspect there might be some issues with your system. That is why, I guess, Torsten mentioned about reboot and there may be a possibility the system might not come up clean.

What results you get when you run the below:
/usr/bin/whereis -b who ifconfig sam
/usr/bin/whereis -b ll bdf ioscan netstat

Can you run those commands using the full path.

Regards.

Patrick Wallek
Honored Contributor

Re: Some Command Not Work Under CO

The 'ksh' messages are a bit disconcerting. As root your shell should be /sbin/sh and NOT /usr/bin/ksh, unless you changed it after you logged in.

Check /etc/passwd and see what the default shell is for root. If it is not /sbin/sh, change it back.

What happens if you log out and log back in as root?

Dennis Handly
Acclaimed Contributor

Re: Some Command Not Work Under CO

>i can't copy the output of this command because i am work on the MP from server on datacenter.

Why not? You redirect the output of the command to a file then access that file from another machine or terminal.

You can also invoke the script(1) command to log all input/output.

>Torsten: Are you able to reboot the partition?

Instead of rebooting, can you access the machine remotely, not from the MP?
Mousa55
Super Advisor

Re: Some Command Not Work Under CO

thanks for all