- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to Troubleshoot commands that fails
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
Forums
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
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
01-14-2003 06:14 PM
01-14-2003 06:14 PM
Just recently have experienced issuing a command in my system that works before and now it fails. The error message is ...
for example...
# make_tape_recovery -Av
After a system reboot it works again.
Anyways I can find the root cause and fix the problem without system reboot?
regards...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 06:22 PM
01-14-2003 06:22 PM
Solution# env|grep PATH
Look for something like ..
..
PATH=/bin:/usr/bin:..
....
If it's not there (the path), you got to include it in root's profile. Another possibility is if you are already in the directory /opt/ignite/bin then it should be run like so ..
# ./make_tape_recovery
that is with a "./" in front of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 06:41 PM
01-14-2003 06:41 PM
Re: How to Troubleshoot commands that fails
To check:
# echo $PATH
You can use the 'whereis' command to find programs etc.
Add it to the default system path or you can add it as you need it.
# PATH=$PATH:/opt/ignite/bin ; export PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 07:07 PM
01-14-2003 07:07 PM
Re: How to Troubleshoot commands that fails
i.e. /opt/ignite/bin/make_recovery ... OR
in your home dir edit .profile and add the /opt/ignite/bin to the PATH variable
The second option is preferred as it will keep this permanent and you don't have to type the full path again and again.
HTH
Manju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 07:19 PM
01-14-2003 07:19 PM
Re: How to Troubleshoot commands that fails
1. Aside from intentionally/ accidentally changing the PATH variable any possible reason/s why PATH have changed?
Have not changed the PATH when I encountered the problem. Just rebooted the system then everything goes well.
2. Is the man pages related to this kind of problem?
thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 08:05 PM
01-14-2003 08:05 PM
Re: How to Troubleshoot commands that fails
do not know if both are present and varies then which one takes precedence?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 08:16 PM
01-14-2003 08:16 PM
Re: How to Troubleshoot commands that fails
If you haven't changed any thing and command worked after the reboot does not make sense..
did you update the PATH in .profile and run the command with out logout and login .. The reboot would have done this ..
Once you change the .profile you need to logout and login again to take the effect OR execute it using ". ./.profile" from your home directory
- Manju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 02:12 AM
01-15-2003 02:12 AM
Re: How to Troubleshoot commands that fails
As I have mentioned I really never did anything prior and after my system reboot to the PATH variable.
Anyways, many thanks for the ideas...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 04:12 AM
01-15-2003 04:12 AM
Re: How to Troubleshoot commands that fails
#command
and it doesn't work... try:
#./command
if it works that time then you need to enter the "." (pwd) into your path statement. Wheather or not you did something to your .profile doesn't mean that someone else didn't .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 04:50 AM
01-15-2003 04:50 AM
Re: How to Troubleshoot commands that fails
In fact I agree with you, if nothing has changed on your system, the "static" configuration defined in /etc/PATH, /etc/profile or $HOME/.profile should be good. So, first try should have been to logout and login to see if a script which could modify you $PATH had been sourced using a '.' command.
Regards.