Sponsored Content
Full Discussion: Identifying a process
Top Forums UNIX for Beginners Questions & Answers Identifying a process Post 303038373 by brijan007 on Sunday 1st of September 2019 05:37:12 AM
Old 09-01-2019
PID 29575

Sorry, I made a mistake. i copy now the first result, and then, the second:
Code:
root@portalmw:/# sudo lsof -i | grep smtp
smtpd      1797      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      1797      postfix    9u  IPv4 212206070      0t0  TCP portalmw.com:submission->ip-113-76.4vendeta.com:11260 (ESTABLISHED)
smtpd      2546      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      2546      postfix   22u  IPv4 212229272      0t0  TCP portalmw.com:submission->141.98.80.73:2044 (ESTABLISHED)
smtpd      3729      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd      3736      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      3736      postfix    9u  IPv4 212275591      0t0  TCP portalmw.com:submission->ip-113-76.4vendeta.com:44060 (ESTABLISHED)
smtpd      4115      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      4115      postfix    9u  IPv4 212276769      0t0  TCP portalmw.com:submission->141.98.80.73:21098 (ESTABLISHED)
smtpd      4251      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd     16490      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd     16490      postfix    9u  IPv4 212138070      0t0  TCP empresadetrabajotemporal.com:smtp->mta1b5-booking.mta.e.sparkpost.com:9167 (ESTABLISHED)
master    22555         root   12u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
master    22555         root  109u  IPv4 184027627      0t0  TCP *:ssmtp (LISTEN)
smtpd     23313      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd     23313      postfix    9u  IPv4 212211036      0t0  TCP portalmw.com:submission->111.90.168.203:35374 (ESTABLISHED)
smtpd     26295      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
memc      29574     www-data    6u  IPv4 212287831      0t0  TCP portalmw.com:45962->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data    8u  IPv4 212287829      0t0  TCP portalmw.com:45960->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data    9u  IPv4 212287836      0t0  TCP portalmw.com:45967->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   10u  IPv4 212287830      0t0  TCP portalmw.com:47205->idcmail-mo2so.shaw.ca:smtp (SYN_SENT)
memc      29574     www-data   12u  IPv4 212287834      0t0  TCP portalmw.com:45965->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   16u  IPv4 212287832      0t0  TCP portalmw.com:45963->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   17u  IPv4 212287835      0t0  TCP portalmw.com:45966->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   19u  IPv4 212287833      0t0  TCP portalmw.com:45964->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   20u  IPv4 212287837      0t0  TCP portalmw.com:45968->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   21u  IPv4 212287838      0t0  TCP portalmw.com:45969->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   22u  IPv4 212287839      0t0  TCP portalmw.com:45970->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   23u  IPv4 212287840      0t0  TCP portalmw.com:45971->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
memc      29574     www-data   24u  IPv4 212287841      0t0  TCP portalmw.com:45972->idcmail-mx2no.cg.shawcable.net:smtp (SYN_SENT)
smtpd     30708      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd     30708      postfix    9u  IPv4 212043506      0t0  TCP empresadetrabajotemporal.com:submission->141.98.80.73:58334 (ESTABLISHED)
smtpd     31274      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd     31274      postfix    9u  IPv4 212075497      0t0  TCP portalmw.com:submission->ip-113-76.4vendeta.com:56622 (ESTABLISHED)
root@portalmw:/#
now the second:

root@portalmw:/# sudo lsof -i | grep smtpd
smtpd      1797      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      1797      postfix    9u  IPv4 212206070      0t0  TCP portalmw.com:submission->ip-113-76.4vendeta.com:11260 (ESTABLISHED)
smtpd      2546      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      2546      postfix   22u  IPv4 212229272      0t0  TCP portalmw.com:submission->141.98.80.73:2044 (ESTABLISHED)
smtpd      3729      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd      3729      postfix    9u  IPv4 212312685      0t0  TCP empleoytrabajotemporalmadrid.com:smtp->103.208.200.222:48099 (ESTABLISHED)
smtpd      3736      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      3736      postfix    9u  IPv4 212275591      0t0  TCP portalmw.com:submission->ip-113-76.4vendeta.com:44060 (ESTABLISHED)
smtpd      4115      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd      4115      postfix    9u  IPv4 212276769      0t0  TCP portalmw.com:submission->141.98.80.73:21098 (ESTABLISHED)
smtpd      4251      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd      4251      postfix    9u  IPv4 212321585      0t0  TCP empleoytrabajotemporalmadrid.com:smtp->177.137.192.74:50242 (ESTABLISHED)
smtpd      4993      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd      4993      postfix    9u  IPv4 212325475      0t0  TCP empleoytrabajotemporalmadrid.com:smtp->121.138.155.41:41859 (ESTABLISHED)
smtpd      5240      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd      5278      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd      5278      postfix    9u  IPv4 212328983      0t0  TCP empleoytrabajotemporalmadrid.com:smtp->103.6.184.222:52310 (ESTABLISHED)
smtpd     16490      postfix    6u  IPv4 184027531      0t0  TCP *:smtp (LISTEN)
smtpd     16490      postfix    9u  IPv4 212138070      0t0  TCP empleoytrabajotemporalmadrid.com:smtp->mta1b5-booking.mta.e.sparkpost.com:9167 (ESTABLISHED)
smtpd     23313      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd     23313      postfix    9u  IPv4 212211036      0t0  TCP portalmw.com:submission->111.90.168.203:35374 (ESTABLISHED)
smtpd     30708      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd     31274      postfix    6u  IPv4 184027632      0t0  TCP *:submission (LISTEN)
smtpd     31274      postfix    9u  IPv4 212075497      0t0  TCP portalmw.com:submission->ip-113-76.4vendeta.com:56622 (ESTABLISHED)
root@portalmw:/#

thank you very much for your help and sorry for the mistake
Moderator's Comments:
Mod Comment
Code tags please in the future.

Last edited by Peasant; 09-01-2019 at 09:09 AM.. Reason: Code tags.
 

10 More Discussions You Might Find Interesting

1. Solaris

Identifying new fields of data

i have hundreds of lines of formatted data with 10 different fields per line. the data is refreshed every few minutes and some fields in some lines may reflect new data. i'm looking for a sample of code that help me to identify those new fields so that i can write them to a file to indicate that... (0 Replies)
Discussion started by: davels
0 Replies

2. AIX

Identifying Semaphore Owners

Hi, I have an AIX server which has a number of root owned semaphores. Is there a way of identifying which processes/threads own these processes so that they can be removed. I there also a way to remove shared memory segments in a similar way Thanks. \ (1 Reply)
Discussion started by: backslash
1 Replies

3. UNIX for Advanced & Expert Users

identifying keyboard type

hi I am using a GUI language (based on C/C++) for my application. Now i need to identify the "Again" key in the Sun keyboard. I tried to do this by getting the ascii value (4155)of it . it was fine. but it is clashing with F12, whose ascii is 4155 in normal keyboards. Due to this either one of... (0 Replies)
Discussion started by: nimishm
0 Replies

4. Shell Programming and Scripting

Identifying RF users

HP-UX All, I work in a manufacturing environment where some users connect to our Progress-based system with wireless RF units (Bar-code). Sometimes they go out of range and get disconnected but their session remains alive (ghost sessions). This sometimes causes record lock problems and is a pain.... (6 Replies)
Discussion started by: rm-r
6 Replies

5. UNIX for Advanced & Expert Users

Identifying IO without the use of IOTop

Hey, I'm in the process of working on a script to identify IO usage on a high IO server I have setup (Debian Etch). My question is how can identify specific processes that are using much of these resources, I can identify the processes using IOTOP, but doing it remotely via script can be a pain... (1 Reply)
Discussion started by: dnbert
1 Replies

6. UNIX for Dummies Questions & Answers

Identifying the first line that has zeros

If I have a file like: 9350. 0.288426 9370. 0.320469 9390. 0.394475 9410. 0.353157 9430. 0.336001 9450. 0.336692 9470. 0.356827 9490. 0.359891 9510. 0.346305 9530. 0.356506 9550. 0.348306 9570. 0.36832 9590. 0.379067 9610. 0.0246704 9630. 0 9650. 0 9670. 0 (5 Replies)
Discussion started by: cosmologist
5 Replies

7. Shell Programming and Scripting

Identifying presence and name of new file(s)?

I have an HP-UX server that runs a script each night. The script connects to an SFTP server and downloads all xml files (if any are present) from a certain folder, and then deletes the files from the SFTP server. So sometimes it will download a new file, sometimes it will download 2 or 3 new... (4 Replies)
Discussion started by: lupin..the..3rd
4 Replies

8. UNIX for Advanced & Expert Users

Linux Swapping - identifying the process

Hi I ran the command vmstat -s , the output is below 2335876 total memory 2307284 used memory 902984 active memory 953180 inactive memory 28592 free memory 445848 buffer memory 1234196 swap cache 779872 total swap ... (3 Replies)
Discussion started by: rakeshkumar
3 Replies

9. Shell Programming and Scripting

Identifying interactive scripts

so for the purposes of this thread, interactive scripts are shell scripts that prompts for a response from a user and then waits for the user to enter a response before proceeding. now, from my understanding of this, the one common string i can expect to find in all interactive scripts is some... (1 Reply)
Discussion started by: SkySmart
1 Replies

10. Shell Programming and Scripting

Identifying cron jobs

Sometimes it is necessary to run a job in the foreground that would normally be run as an overnight cron job. When the job is run in the foreground, slightly different code may be required. Rather than having two scripts, I thought of following: #!/bin/ksh ... (3 Replies)
Discussion started by: jgt
3 Replies
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy