- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DTC port incorrectly shows up in 'ps' command
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
тАО03-15-2011 08:01 AM
тАО03-15-2011 08:01 AM
>> who -u|grep d0201
fki[root]:/
>>
But if I look for a process related to that DTC port I get a positive result (see pid 27774)!!!
>> ps -ef|grep d0201
root 27774 1204 0 08:40:15 d0201 0:00 telnetd
root 2910 12021 1 08:57:43 pts/tic 0:00 grep d0201
c.dlc 27775 27774 0 08:40:16 d0201 0:05 /usr/pro5/pro5 -m3072 -c/usr/pro
5/config.bbx PREMEN
fki[root]:/
>>
But, again, the 'who' command shows the correct port:
>> who -u|grep 27775
c.dlc pts/tOd Mar 15 08:40 0:02 27775 dlc.internal.fotokem.com
fki[root]:/
>>
If I kill this process, another process will show up with the 'ps' command as using d0201 when, in fact, it is not.
Does anyone have a clue as to why/how this is happening? I think that because of this 'confusion' the terminal cannont establish a connection to the DTC port.
TIA
Brad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 08:48 AM
тАО03-15-2011 08:48 AM
SolutionThis command should produce a text version of the utmp file as /tmp/utmp.txt:
/usr/sbin/acct/fwtmp < /etc/utmp >/tmp/utmp.txt
You could then locate and remove the corrupted record, and then use the fwtmp command to create a fixed version of /etc/utmp:
/usr/sbin/acct/fwtmp -ic /etc/utmp.fixed
... and then replace the corrupted utmp file with the fixed one.
See "man fwtmp" for more information about the command, and look into /usr/include/utmp.h for more information about the structure of the utmp file.
Look for utmp records associated with PID 27774, and/or with d0201. Ignore records with the type field set to 8 = DEAD_PROCESS.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 09:00 AM
тАО03-15-2011 09:00 AM
Re: DTC port incorrectly shows up in 'ps' command
>> grep d0201 utmp.txt
fki[root]:/tmp
>>
Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 11:44 PM
тАО03-15-2011 11:44 PM
Re: DTC port incorrectly shows up in 'ps' command
It might be your /etc/utmp is so corrupted that fwtmp cannot find anything recognizable in it, or your HP-UX version uses the newer /etc/utmpx instead of /etc/utmp (which may still exist for legacy compatibility reasons).
What's the timestamp and size of /etc/utmp?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2011 11:19 AM
тАО03-16-2011 11:19 AM
Re: DTC port incorrectly shows up in 'ps' command
Who is the owner of the d0201 device? Use ll to list the device file.
>the 'who' command shows the correct port:
You know this how?
>but found many in /tmp/btmp.txt
What dates have these bad logins? Is someone hacking into your system?