- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Hp-Ux server is hanging after logging in as NI...
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
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
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
тАО12-09-2012 11:46 PM - last edited on тАО12-13-2012 12:13 AM by Cathy_xu
тАО12-09-2012 11:46 PM - last edited on тАО12-13-2012 12:13 AM by Cathy_xu
Hp-Ux server is hanging after logging in as NIS user
HI , As i am new to system adminstration not able find the exact reason for following issue. 1.once login to hp-ux server using telnet as NIS user ,and server is getting hanged after giving any command.So can any one help me out . 2) we are using NIS and NFS servers Thanks in advance, Lokanath
P.S. This thread has been moved from Operating Systems >HP-UX >System Administration to HP-UX > networking-HP Forum Moderator
- Tags:
- NIS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2012 10:40 PM
тАО12-10-2012 10:40 PM
Re: HP-UX server is hanging after logging in as NIS user
What shell are you using? Does your $HISTFILE point to a local or NFS filesystem?
(If NFS, are the locking demons running?)
Does it get to /etc/profile and ~/.profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2012 04:15 AM
тАО12-11-2012 04:15 AM
Re: Hp-Ux server is hanging after logging in as NIS user
Can you connect as a local (= non-NIS) user? Can you access the system from the console?
This sounds like what happens when the user's PATH environment variable includes directories that are located on a NFS server that is unreachable at the moment.
First, you'll need to temporarily restrict PATH to local directories only, so that your session won't hang after each command.
These commands are built-in to the standard shell, so they should not cause hangs:
echo $PATH
echo $SHELL
The first command should display your current PATH setting, the second will identify the command shell used for the account. If the shell is /usr/bin/csh or (some path)/tcsh, you have a C-style shell and you will have to use this command to modify your PATH:
setenv PATH /usr/bin:/usr/ccs/bin:/usr/contrib/bin
If your shell is anything else, this command should be used instead:
export PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin
The setenv/export command will change your current PATH to a very simple one, which should not include NFS-mounted directories. That should reduce the likelihood of the session hanging.
The next step would be to confirm that your NIS works. Run:
ypcat passwd &
This should output a list of NIS users in /etc/passwd-like format. If the prompt does not appear after the output, just press Enter again. (The "&" suffix causes the command to be run in the background, so it if it hangs, the session will continue. This works with all commands.)
If NIS is OK, the problem is probably with NFS. Run "cat /etc/fstab" to identify any permanently-mounted NFS filesystems, then "cat /etc/auto_master" and "ypcat auto.master" to view the automounter master maps. The automouter maps can be used to determine which NFS filesystems to mount automatically when the user accesses them. "Access" includes searching for a command to run, if the filesystem is included in PATH. If one of the automountable filesystems is not accessible and it is referred to in PATH, it might be causing the sort of behavior you're experiencing.
- Tags:
- ypcat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2012 11:50 AM
тАО12-11-2012 11:50 AM
Re: HP-UX server is hanging after logging in as NIS user
>includes directories that are located on a NFS server that is unreachable at the moment.
Don't you typically get messages about "NFS server not responding" too?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2012 03:54 AM
тАО12-12-2012 03:54 AM
Re: Hp-Ux server is hanging after logging in as NIS user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2012 11:49 PM
тАО12-15-2012 11:49 PM
Re: Hp-Ux server is hanging after logging in as NIS user
How about commands like "whoami" and "id"? Do they report the correct UID for the user?
Create a temporary file in /tmp, then view its ownership and permissions. For example:
touch /tmp/foo ls -l /tmp/foo
If that produces normal results, then NIS apparently returns valid data for that user.
The next step is identifying and checking your NFS mounts and automounter maps, if you have them.
If your automounter maps indicate the system will auto-mount some NFS filesystems, test them to make sure the auto-mounted filesystems are usable.
Your git commands are not standard HP-UX commands, so I have no idea about which files they might be accessing and what their requirements might be. There is no well-known "standard setup" of git on HP-UX yet. If they are locally-produced custom scripts, then you must read them yourself to find out what exactly they do, and then try and identify what particular command causes the hang. (Or if someone at your site knows more about the scripts, you should ask him/her.)
The exact method for debugging a script will depend on which scripting language is used. For POSIX-style shell scripts, it might be useful to add "set -x" near the beginning of the script, so that all subsequent commands will be displayed before they are executed.