Sponsored Content
Full Discussion: get number of a port
Special Forums Cybersecurity get number of a port Post 21001 by manderson19 on Wednesday 8th of May 2002 08:08:35 PM
Old 05-08-2002
also check the /etc/services file.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

FTP Port Number

On HP-UX 11 how do I get the port number of an active ftp connection? (2 Replies)
Discussion started by: mbb
2 Replies

2. 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

3. 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

4. Solaris

Finding port number !!

Hi all , I want know the port no on which a particular application is running. How to find that? Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
11 Replies

5. IP Networking

Binding the port number.

Hi all, Application A is using an port number 100 and is binded to an interface 1. Application B is using an port number 100 and is binded to an interface 2. can we bind the two applications on same port number based on interfaces. what i want to know is two... (3 Replies)
Discussion started by: vijaypdp2006
3 Replies

6. Shell Programming and Scripting

To get Port number alone from the list

~]#netstat -vatn | grep LISTEN tcp 0 0 0.0.0.0:34895 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN ... (7 Replies)
Discussion started by: linuxadmin
7 Replies

7. UNIX for Advanced & Expert Users

Port number file

In which file inside the application code we can find the list of port numbers that the application is entitled to listen? (4 Replies)
Discussion started by: p_gautham12
4 Replies

8. Shell Programming and Scripting

How to extract port number?

Hi my code is as follow: stringA=`cat /s01/oracle/11.2/network/admin/listener.ora | grep "PORT"` stringB=`cat $ORACLE_HOME/network/admin/listener.ora | grep "PORT"` stringC="PORT" echo ${stringA} echo ${stringB} echo ${stringC} position=`expr index "$stringB" "stringC"` echo... (2 Replies)
Discussion started by: jediwannabe
2 Replies

9. Solaris

To get process id for port number

Hi All, How to get the list of port numbers and it is correspoding proceses id that are currently running on. Please suggest and it is urgent Thanks. (7 Replies)
Discussion started by: rbalaj16
7 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
SERVICES_MKDB(8)					    BSD System Manager's Manual 					  SERVICES_MKDB(8)

NAME
services_mkdb -- generate the services database SYNOPSIS
services_mkdb [-b | -l] [-q] [-o database] [file] services_mkdb -u [file] DESCRIPTION
The services_mkdb utility creates a db(3) database for the specified file. If no file is specified, then /etc/services is used. The data- base is installed into /var/db/services.db. The file must be in the correct format (see services(5)). The options are as follows: -b Use big-endian byte order for database metadata. -l Use little-endian byte order for database metadata. -o database Put the output databases in the named file. -q Do not warn about duplicate services. -u Print the services file to stdout, omitting duplicate entries and comments. The databases are used by the C library services routines (see The -b and -l flags are mutually exclusive. The default byte ordering is the current host order. getservent(3)). FILES
/var/db/services.db The current services database. /var/db/services.db.tmp A temporary file. /etc/services The current services file. EXIT STATUS
The services_mkdb utility exits 0 on success, and >0 if an error occurs. SEE ALSO
db(3), getservent(3), services(5) BUGS
Because services_mkdb guarantees not to install a partial destination file it must build a temporary file in the same file system and if suc- cessful use rename(2) to install over the destination file. If services_mkdb fails it will leave the previous version of the destination file intact. BSD
April 4, 2010 BSD
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy