How to detect usable ports?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to detect usable ports?
# 1  
Old 02-12-2016
Blade How to detect usable ports?

I have 4 unix machines two with webservers and two with app servers, with the app servers then connecting to backend databases and other third party server processes.

I need to write an email to the firewall team asking them to open and allow all the ports that are used for traffic / data flow inwards and outwards on these 4 unix systems for a new set of similar 4 servers we will be migrating this entire environment to.

What is the easy and feasible way; i can find all active ports on these 4 servers so i can request firewall team to open them on a new set of 4 servers we are migrating our applications to.

Please suggest.

Last edited by mohtashims; 02-12-2016 at 01:35 AM..
# 2  
Old 02-12-2016
Hi,

Probably the quickest and easiest way would be to run nmap or zenmap or something similar against the servers, from that you could build a composite port list.

It would also allow you to identify ports that you don't need to have open.

Without OS specifics it's not easy to be more precise on htat front.

Additionally you should be aware that the application/database may have specific port requirements that may have to be considered.

Regards

Gull04
# 3  
Old 02-12-2016
Code:
 
$ uname -a
SunOS mymac 5.10 Generic_150400-23 sun4v sparc sun4v

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Detect OS

whats the equivalent of detect OS in perl with an if then ? platform='uname' if ]; then alias ls='ls --color=auto' elif ]; then alias ls='ls -G' fi In perl I see perl -Mstrict -MEnglish -E 'say $OSNAME' or print "$^O" Please use CODE tags as required by... (1 Reply)
Discussion started by: nixguynj
1 Replies

2. Filesystems, Disks and Memory

Installed memory ≠ usable size?

I was configuring my BIOS after installing 2 GB of RAM, and I saw this: System memory Installed size : 4096MB Usable size : 3584MBI have a 64-bit OS (Ubuntu 9.04 64-bit), so does that mean the motherboard (ASUS M3A78-T) doesn't support more than 4 GB of addressing? (23 Replies)
Discussion started by: CRGreathouse
23 Replies

3. Red Hat

krb5.h not usable and not found during samba configuration error

Hi folks, I am using RH linux server 8.0 and have downloaded latest samba package for it. While configuring samba with --with-krb5 option while making this server join a windows AD domain, it gives the following error. active directory cannot be supported... (1 Reply)
Discussion started by: dextergenious
1 Replies

4. Shell Programming and Scripting

detect F5 is pressed

Hello friends, I want to write a shell script in bash shell . Working for the script is to detect any key pressed and disply on screen as "you have pressed: " For example if user pressed F5 then a messaged has to be displayed as "you have pressed F5. Thank you. (4 Replies)
Discussion started by: pradeepreddy
4 Replies

5. UNIX for Advanced & Expert Users

How to detect OS is SLES 10 or not

Hi, I would like to programmatically find if given OS is SLES 10 / RHEL 3/.RHEL 4/RHEL5 etc .. For this do we have any library call/sys call? Or should we use any sys. structure which would give me detailed info. Share me if you have any pointers. Thanks in advance - Krishna (1 Reply)
Discussion started by: krishnamurthig
1 Replies

6. Shell Programming and Scripting

Re-usable function to parse csv files with different number of fields

Hi there, been pondering how to deal with this and hoping someone would give me an insight on this. I need help on creating a reusable bash funtion to parse csv files containing different number of fields (comma-seperated). My initial thought is to create function for each input csv file (20+... (2 Replies)
Discussion started by: jy2k7ca
2 Replies

7. UNIX for Dummies Questions & Answers

find usable keyboard and mouse for UNIX spac machine. Help

I have got a SunBlade150 box. But I don't have Sun UNIX keyboard and mouse to hook up with the machine. I know some other IBM compitable keyboard and mouse can be used on Sun UNIX box. If any one has the same situation or experience, please advise me the type, FCC ID and other information on the... (2 Replies)
Discussion started by: duke0001
2 Replies

8. Shell Programming and Scripting

xterm detect

i have this script that launches multiple xterm sessionon a CDE. i would like to test the xterm so that when i execute the script using an ordinary terminal it will detect that it will unable to launch the xterm and execute other script instead. i tried using trap and exit status. maybe i am... (2 Replies)
Discussion started by: inquirer
2 Replies
Login or Register to Ask a Question