- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sockets in unix
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
Forums
Discussions
Discussions
Discussions
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
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
11-15-2007 10:51 AM
11-15-2007 10:51 AM
Sockets in unix
how can i test this one ?
please let me know...
Regards, Daniela.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 11:13 AM
11-15-2007 11:13 AM
Re: Sockets in unix
For more details refer man pages , extract from man pages:
netstat -a Show the state of all sockets, including passive sockets used by server processes. When netstat is used without any options only active sockets are shown. This option does not show the state of X.25 programmatic access sockets.
The option is ignored if the -g, -i, -I, -M,
-p, -r, -s or interval option is specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 01:23 PM
11-15-2007 01:23 PM
Re: Sockets in unix
you also can use lsof -i to display all the sockets in unix.
if you want to test the socket
eg:
telnet
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 02:03 PM
11-15-2007 02:03 PM
Re: Sockets in unix
tcp 0 0 unix28.1363 *.* LISTEN
tcp 0 0 unix28.53726 unix28.1363 ESTABLISHED
tcp 0 0 unix28.1363 unix28.53726 ESTABLISHED
udp 0 0 *.1363 *.*
unix28 87:
is correct to found 2 times the port 1363?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 02:09 PM
11-15-2007 02:09 PM
Re: Sockets in unix
server2 90: telnet 11.22.33.44 1364
Trying...
Connected to 11.22.33.44
Escape character is '^]'.
does this mean it worked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 02:13 PM
11-15-2007 02:13 PM
Re: Sockets in unix
YES the port is working!!
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 02:14 PM
11-15-2007 02:14 PM
Re: Sockets in unix
Try this also
# lsof -nP -i tcp:1363
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 02:18 PM
11-15-2007 02:18 PM
Re: Sockets in unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 02:47 PM
11-15-2007 02:47 PM
Re: Sockets in unix
is there other similar command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 03:20 PM
11-15-2007 03:20 PM
Re: Sockets in unix
Could you please let us know the reason behind checking the sockets.. what's the purpose..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2007 11:17 PM
11-15-2007 11:17 PM
Re: Sockets in unix
>tcp 0 0 unix28.53726 unix28.1363 ESTABLISHED
>tcp 0 0 unix28.1363 unix28.53726 ESTABLISHED
>udp 0 0 *.1363 *.*
>unix28 87:
>
>is correct to found 2 times the port 1363?
It depends on what services your box is using or offering.
The second socket is UDP.
Here it is more difficult to check if the service listening there is working properly without knowledge of the application layer protocol further up the stack because a UDP datagram sent to this socket may never elicit a response.
Since UDP is said to be connection less there is no such mechanism as with the TCP three-way handshake (that you had successfully tested with your telnet connection) to prompt a reaction from a UDP listening socket.
All control is left to the application.
However, a look at IANA's port list may give a hint
http://www.iana.org/assignments/port-numbers
There you will find these entries:
ndm-requester 1363/tcp Network DataMover Requester
ndm-requester 1363/udp Network DataMover Requester
Perhaps these ports are also registered in your server's /etc/services.
Just check
$ grep [^0-9]1363/..p /etc/services