Sponsored Content
Full Discussion: Finding port number !!
Operating Systems Solaris Finding port number !! Post 302242920 by kumarmani on Friday 3rd of October 2008 07:43:57 AM
Old 10-03-2008
I tried location the same in different post and got couple of answer also as user
Quote:
# lsof

1. I am using Solaris 10 - Solaris 10 5/08 s10s_u5wos_10 SPARC
2. i am unable to get the above command

Quote:
# netstat –a
I did tried and got the output, now I am confused . While executing

Quote:
#netstat –a |grep telnet
I got below as output

Quote:
*.telnet *.* 0 0 49152 0 LISTEN
172.24.1.168.telnet 10.10.108.169.1499 63310 1 49640 0 ESTABLISHED
*.telnet *.* 0 0 49152 0 LISTEN
Which is port number in above ?
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

get number of a port

Hello every one. I work in a LAN with many application server. Each one use a different port. What command permit to obtain the number of these port. thanks (2 Replies)
Discussion started by: hoang
2 Replies

2. UNIX for Advanced & Expert Users

finding a process running on a port

how do I find the process that is running on a port in HP-Unix? Murali (8 Replies)
Discussion started by: manduva
8 Replies

3. IP Networking

finding port numbers

hither! whatz the command to find which process is using a specific port number? for example, port 8082? (3 Replies)
Discussion started by: darkcastle
3 Replies

4. Shell Programming and Scripting

port number as an argument

What is the script that takes a port number as parameter and displays status, whether it is available or is already used by other process pls help (1 Reply)
Discussion started by: saikiran
1 Replies

5. UNIX for Dummies Questions & Answers

Need to know port number

Hi expert, I wanted to know in which port my apache is running in solaris box thanks Shaan (1 Reply)
Discussion started by: shaan_dmp
1 Replies

6. UNIX for Dummies Questions & Answers

port number

hi all i want to connect a system, how can i know the port number of a system. (2 Replies)
Discussion started by: tukuna82
2 Replies

7. Shell Programming and Scripting

Need help in finding and replacing port numbers.

Hi All, I am trying to write a shell script which firstly will search some files and then increase the port numbers mentioned in them by a certain no. let me clear it with an example- suppose there r few files a,b,c,d.... file a's content- <serverEntries xmi:id="ServerEntry_1"... (3 Replies)
Discussion started by: ankushsingh10
3 Replies

8. AIX

Finding service based on port number

is it possible to find out which Service is running on the basis of port no which is open/listening? Regards Manoj (2 Replies)
Discussion started by: manoj.solaris
2 Replies

9. SCO

Problem finding what is using a serial port

How can I determine what process is currently using a serial port? A good bit of google searching hasn't turned up anything useful, but it seems like there has to be a way to do this without too much difficulty. When I first started looking into this problem, I assumed that when a port was in... (2 Replies)
Discussion started by: jdsnatl
2 Replies

10. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
UMAD_GET_PORT(3)					    OpenIB Programmer's Manual						  UMAD_GET_PORT(3)

NAME
umad_get_port, umad_release_port - open and close an InfiniBand port SYNOPSIS
#include <infiniband/umad.h> int umad_get_port(char *ca_name, int portnum, umad_port_t *port); int umad_release_port(umad_port_t *port); DESCRIPTION
umad_get_port() fills the port structure with the IB port attributes specified by ca_name and portnum , or the default port if ca_name is NULL and portnum is zero. If only one of ca_name and portnum are specified, the other is used as a filter. For example, passing a NULL ca_name and 2 for the portnum means get a port from any of the local IB devices, as long as it is the second port. Note that the library may use some reference scheme to support port caching therefore umad_release_port() should be called before the port structure can be deal- located. The argument port is an umad_port_t struct, as specified in <infiniband/umad.h>. typedef struct umad_port { char ca_name[UMAD_CA_NAME_LEN]; /* Name of the device */ int portnum; /* Physical port number */ uint base_lid; /* Base port LID */ uint lmc; /* LMC of LID */ uint sm_lid; /* SM LID */ uint sm_sl; /* SM service level */ uint state; /* Logical port state */ uint phys_state; /* Physical port state */ uint rate; /* Port link bit rate */ uint64_t capmask; /* Port capabilities */ uint64_t gid_prefix; /* Gid prefix of this port */ uint64_t port_guid; /* GUID of this port */ } umad_port_t; umad_release_port() releases the resources that were allocated by the umad_get_port() function for the specified IB port. RETURN VALUE
umad_get_port() and umad_release_port() return 0 on success, and a negative value on error. AUTHORS
Hal Rosenstock <halr@voltaire.com> Dotan Barak <dotanb@mellanox.co.il> OpenIB May 21, 2007 UMAD_GET_PORT(3)
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy