- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Not a Single command is working in HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 12:11 AM
06-09-2014 12:11 AM
Not a Single command is working in HPUX
Hello Expert ,
On one of my test server not a single command is working.
Please advice.
Thanks ,
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 01:02 AM - edited 06-09-2014 04:16 AM
06-09-2014 01:02 AM - edited 06-09-2014 04:16 AM
Re: root's PATH is missing /usr/sbin
What HP-UX version? What errors do you get?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 01:30 AM - edited 06-09-2014 02:32 AM
06-09-2014 01:30 AM - edited 06-09-2014 02:32 AM
Re: Not a Single command is working in HP-UX
HP-UX CRMPRD B.11.31 U ia64 3800860972 unlimited-user license
Error:
# ioscan -fnC tape
sh: ioscan: not found.
And this is for every comand that i am running
please suggest further ..
Thanks ,
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 03:24 AM - edited 06-09-2014 04:17 AM
06-09-2014 03:24 AM - edited 06-09-2014 04:17 AM
Re: root's PATH is missing /usr/sbin
># ioscan -fnC tape -> sh: ioscan: not found.
This looks like PATH isn't set properly. What is the value of $PATH?
What does this show:
/sbin/ioscan -fnC tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 03:37 AM
06-09-2014 03:37 AM
Re: Not a Single command is working in HP-UX
# /sbin/ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
tape 0 0/0/8/1/0.1.1.255.0.0.0 stape CLAIMED DEVICE HP U ltrium 4-SCSI
/dev/rmt/0m /dev/rmt/c14t0d0BEST
/dev/rmt/0mb /dev/rmt/c14t0d0BESTb
/dev/rmt/0mn /dev/rmt/c14t0d0BESTn
/dev/rmt/0mnb /dev/rmt/c14t0d0BESTnb
whereas the $PATH value is
# echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/gnome/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/propplus/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/gwlm/bin:/opt/ignite/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 03:55 AM - edited 06-09-2014 04:17 AM
06-09-2014 03:55 AM - edited 06-09-2014 04:17 AM
Re: root's PATH is missing /usr/sbin
>whereas the $PATH value is
This is not a valid path for root. You need to have /usr/sbin and /sbin in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 04:11 AM
06-09-2014 04:11 AM
Re: Not a Single command is working in HP-UX
thanks
VIshal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 04:15 AM - edited 06-09-2014 04:17 AM
06-09-2014 04:15 AM - edited 06-09-2014 04:17 AM
Re: root's PATH is missing /usr/sbin
>Please help me out to resolve this
I thought I did. The previous post should have been enough to tell you to do:
PATH=/usr/sbin:$PATH:/sbin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 11:45 AM - edited 06-09-2014 11:46 AM
06-09-2014 11:45 AM - edited 06-09-2014 11:46 AM
Re: Not a Single command is working in HPUX
>> On one of my test server not a single command is working.
I'm not sure I understand this correctly. If no comands are working, this would include login and the Unix shell, etc.
For all Unix style systems and even the lookalike MSDOS program, typing just the name of a command is a shortcut. There is no reason to expect the command to be found at all unless the PATH variable includes the rest of the command's location, also known as the full path. Every command on the computer will work if you start the command with "/" and follow that with the parent directories.
For ioscan, the path for ioscan is /usr/sbin. Apparenlty your system does not customize your login PATH variable to include /usr/sbin. NOTE: /usr/sbin normally contains root-only commands. ioscan can only be run by the root user *unless* you use the -k option.
Unix PATH variables are pretty basic stuff. You might want to look over a introduction to Unix and look specifically at how to add to your PATH variable using your login profile.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2014 08:49 PM
06-09-2014 08:49 PM
Re: Not a Single command is working in HPUX
Regards,
Vishal