Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory I do not understand the out put of lsof -i -P -n Post 302550893 by melodysneed on Sunday 28th of August 2011 12:32:14 PM
Old 08-28-2011
Question I do not understand the out put of lsof -i -P -n

Code:
lsof -i -P -n
COMMAND    PID        USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
SystemUIS 1578 melodysneed    9u  IPv4 0x07d608ec      0t0  UDP *:*
SystemUIS 1578 melodysneed   11u  IPv4 0x0ba68810      0t0  UDP *:*
WebProces 2141 melodysneed    7u  IPv4 0x0c550748      0t0  TCP 192.168.1.71:51015->74.125.67.17:443 (ESTABLISHED)
WebProces 2141 melodysneed   11u  IPv4 0x049f7ee8      0t0  TCP 192.168.1.71:50706->207.46.232.182:80 (ESTABLISHED)

Smilie

Moderator's Comments:
Mod Comment Wrong forum and double post, continued here

Last edited by pludi; 08-28-2011 at 05:46 PM.. Reason: Code tags.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

lsof output

I have a number of open files connecting to the rpcbind process running on HPUX 11.00. Usinf lsof -p rpcbind I am unable to identify the ip addresses of the open files. Example of one below - Any ideas? rpcbind 19754 root 100u inet 72,0x72 0t0 TCP 79.60.53.40:* (BOUND) (2 Replies)
Discussion started by: Malcolmm
2 Replies

2. Filesystems, Disks and Memory

lsof

Could someone please give me a step for a hint on which version and where is the above utility is for version 4.3.3.0 of Aix. (1 Reply)
Discussion started by: jacl
1 Replies

3. UNIX for Dummies Questions & Answers

lsof output

what does this line of output signify from the lsof output: java 1419 root 7u sock 0,0 2170 can't identify protocol Thanks (2 Replies)
Discussion started by: skotapal
2 Replies

4. AIX

command lsof

hello Sorry but i don't understand very well the lsof command with the man. Can you explain to me what is the use of this command ? thank you (2 Replies)
Discussion started by: pascalbout
2 Replies

5. UNIX for Dummies Questions & Answers

lsof ???

Hi All, I'm having a problem with "lsof" in HP-UX system. Its giving me 2 two different results when running it. 1 . lsof -p 'PID' | wc -l -----gives some value 2 . lsof | grep 'PID' | wc -l The above two commands gives me two different values with the same PID...... Thanks (6 Replies)
Discussion started by: marc
6 Replies

6. Shell Programming and Scripting

Find and lsof

Hi All, My target is to find the biggest files opened by any process and from that i have to find process id and the corresponding file also. To get the process id which is accessing the biggest file in the given file system, i am using the below command. lsof -s /home/arun/my_work |... (3 Replies)
Discussion started by: Arunprasad
3 Replies

7. UNIX for Dummies Questions & Answers

lsof

I'm looking to list all of the files open at a certain time up on a UNIX box. From looking on the internet, it looks as though lsof is the most common. However have tried this and got the following: ksh: lsof: not found Now having gone into bash mode and hit tab twice I see that lsof... (3 Replies)
Discussion started by: meevagh
3 Replies

8. UNIX for Dummies Questions & Answers

about lsof

Hi, I typed lsof -i :80 in my putty but i am not able to get sockets related to port 80 Can any one help me out soon Can anyone point out the reason for not able to get the related sockets Output of what i am getting in my putty is displayed below training@use:~> lsof -i :80... (4 Replies)
Discussion started by: satheeshkr_cse
4 Replies

9. HP-UX

lsof in HP-UX

In Linux and Solaris lsof accepts the -X switch which allows to see if deleted files are still in use and eat disk space. In HP-UX it is now working and it is a problem... today one of my filesystems on the server was increasing very fast but existing file sizes were not really changing. lsof shows... (3 Replies)
Discussion started by: Vorb
3 Replies

10. Shell Programming and Scripting

Lsof command

Hi, I am trying to find the files in a specific directory that are currently in open state. I need this information to archive the old files that are not active in the directory. I get the following output when I try the command $ lsof +d '/var/tmp/'|awk '{print $9}'|sort -u NAME... (1 Reply)
Discussion started by: ryzen7
1 Replies
Paranoid::Network(3pm)					User Contributed Perl Documentation				    Paranoid::Network(3pm)

NAME
Paranoid::Network - Network functions for paranoid programs VERSION
$Id: Network.pm,v 0.68 2012/05/29 21:38:19 acorliss Exp $ SYNOPSIS
use Paranoid::Network; $rv = ipInNetwork($ip, @networks); $rv = hostInDomain($host, @domains); @ips = extractIP($string1, $string2); $rv = netIntersect( $cidr1, $cidr2 ); DESCRIPTION
This modules contains functions that may be useful for network operations. IPv6 is supported out of the box starting with Perl 5.14. Earlier versions of Perl will require Socket6(3) installed as well. If it is available this module will use it automatically. SUBROUTINES
/METHODS ipInNetwork $rv = ipInNetwork($ip, @networks); This function checks the passed IP against each of the networks or IPs in the list and returns true if there's a match. The list of networks can be either individual IP address or network addresses in CIDR notation or with full netmasks: @networks = qw(127.0.0.1 192.168.0.0/24 172.16.12.0/255.255.240.0); IPv6 is supported if the Socket6(3) module is installed or you're running Perl 5.14 or higher. This routine will select the appropriate address family based on the IP you're testing and filter out the opposing address family in the list. NOTE: IPv4 addresses encoded as IPv6 addresses, e.g.: ::ffff:192.168.0.5 are supported, however an IP address submitted in this format as the IP to test for will be converted to a pure IPv4 address and compared only against the IPv4 networks. This is meant as a convenience to the developer supporting dual-stack systems to avoid having to list IPv4 networks in the array twice like so: ::ffff:192.168.0.0/120, 192.168.0.0/24 Just list IPv4 as IPv4, IPv6 as IPv6, and this routine will convert IPv6-encoded IPv4 addresses automatically. This would make the following test return a true value: ipInNetwork( '::ffff:192.168.0.5', '192.168.0.0/24' ); but ipInNetwork( '::ffff:192.168.0.5', '::ffff:192.168.0.0/120' ); return a false value. This may seem counter intuitive, but it simplifies things in (my alternate) reality. Please note that this automatic conversion only applies to the IP argument, not to any member of the network array. hostInDomain $rv = hostInDomain($host, @domains); This function checks the passed hostname (fully qualified) against each of the domains in the list and returns true if there's a match. None of the domains should have the preceding '.' (i.e., 'foo.com' rather than '.foo.com'). extractIPs @ips = extractIP($string1, $string2); This function extracts IP addresses from arbitrary text. If you have Socket6(3) installed or running Perl 5.14 or higher it will extract IPv6 addresses as well as IPv4 addresses. This extracts only IP addresses, not network addresses in CIDR or dotted octet notation. In the case of the latter the netmask will be extracted as an additional address. NOTE: in the interest of performance this function does only rough regex extraction of IP-looking candidates, then runs them through inet_aton (for IPv4) and inet_pton (for IPv6) to see if they successfully convert. Even with the overhead of Paranoid (with debugging and loadModule calls for Socket6 and what-not) it seems that this is an order of a magnitude faster than doing a pure regex extraction & validation of IPv6 addresses. NOTE: Like the ipInNetwork function we filter out IPv4 addresses encoded as IPv6 addresses since that address is already returned as a pure IPv4 address. netIntersect $rv = netIntersect( $cidr1, $cidr2 ); This function is an IPv4/IPv6 agnostic wrapper for the ipv{4,6}NetIntersect functions provided by Paranoid::Network::IPv{4,6} modules. The return value from which ever function called is passed on directly. Passing this function non-IP or undefined values simply returns a zero. DEPENDENCIES
o Paranoid o Paranoid::Network::Socket o Paranoid::Network::IPv4 o Paranoid::Network::IPv6 BUGS AND LIMITATIONS
AUTHOR
Arthur Corliss (corliss@digitalmages.com) LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information. (c) 2005, Arthur Corliss (corliss@digitalmages.com) perl v5.14.2 2012-05-29 Paranoid::Network(3pm)
All times are GMT -4. The time now is 02:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy