- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- DTC port incorrectly shows up in 'ps' command
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
DTC port incorrectly shows up in 'ps' command
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-15-2011 09:00 AM
03-15-2011 09:00 AM
Re: DTC port incorrectly shows up in 'ps' command
Re: DTC port incorrectly shows up in 'ps' command
>> grep d0201 utmp.txt
fki[root]:/tmp
>>
Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-15-2011 11:44 PM
03-15-2011 11:44 PM
Re: DTC port incorrectly shows up in 'ps' command
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-16-2011 11:19 AM
03-16-2011 11:19 AM
Re: DTC port incorrectly shows up in 'ps' command
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?
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP