The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
netstat -an -- meaning of the output thepurple SUN Solaris 3 01-12-2009 06:19 AM
filtering a range of ports out of a netstat output marcpascual Shell Programming and Scripting 1 09-30-2008 09:36 PM
output difference in two files ayhanne UNIX for Dummies Questions & Answers 4 07-16-2008 05:40 PM
How to output the difference of two files? yxiao UNIX for Dummies Questions & Answers 4 01-26-2004 01:55 PM
output of NETSTAT samprax UNIX for Dummies Questions & Answers 1 08-02-2002 02:50 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-05-2009
ejdv ejdv is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 46
Difference in netstat -a and -an output.

Hi,

Does anyone know why I get a different output when using "netstat -a" or "netstat -an" ??

Code:
# netstat -a | grep ts15r135
tcp        0      0  nbsol152.62736         ts15r135.23211          ESTABLISHED

# netstat -an | grep 172.23.160.78
tcp        0      0  135.246.39.152.51954   172.23.160.78.23212     ESTABLISHED
tcp        0      0  135.246.39.152.51952   172.23.160.78.58112     ESTABLISHED
tcp        0      0  135.246.39.152.51955   172.23.160.78.23211     ESTABLISHED
Code:
# uname -a
HP-UX nbsol151 B.11.11 U 9000/800 1020412055 unlimited-user license
Thanks,

E.J.
  #2 (permalink)  
Old 08-05-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 430
because the old connection dropped, and three new ones where established in the delay between netstat -a and netstat -an

or

172.23.160.78 is not the ip-adress of ts15r135
  #3 (permalink)  
Old 08-05-2009
ejdv ejdv is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 46
Thanks for the fast reply.
But that can't be it.
It is always like this and for more similar connections.
And the connection is stable.
Here the output with less than 1 second difference:

Code:
# date; netstat -a | grep ts15r135; date; netstat -an | grep 172.23.160.78               <
Wed Aug  5 10:02:07 GMT 2009
tcp        0      0  nbsol152.62736         ts15r135.23211          ESTABLISHED
Wed Aug  5 10:02:08 GMT 2009
tcp        0      0  135.246.39.152.51954   172.23.160.78.23212     ESTABLISHED
tcp        0      0  135.246.39.152.51952   172.23.160.78.58112     ESTABLISHED
tcp        0      0  135.246.39.152.51955   172.23.160.78.23211     ESTABLISHED
  #4 (permalink)  
Old 08-05-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 430
and nslookup ts15r135 gives 172.23.160.78 ?

(or hosts file entry)
  #5 (permalink)  
Old 08-05-2009
ejdv ejdv is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 46
No:

Code:
# nslookup ts15r135
Using /etc/hosts on:  nbsol152

looking up FILES
Name:    ts15r135
Address:  172.23.160.87
Stupid me :-( ; used 78 iso 87.
And 87 iso 78 for the other system !

Code:
# netstat -a | grep ts15r135
tcp        0      0  nbsol152.60377         ts15r135.23211          ESTABLISHED
# netstat -an | grep 172.23.160.87
tcp        0      0  135.246.39.152.60377   172.23.160.87.23211     ESTABLISHED
Thanks a lot !
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0