Script for port is open or not

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Script for port is open or not
# 1  
Old 06-25-2018
Script for port is open or not

I need a script on which if i will pass the port number and the host name as external parameter then it should respond me if the port is open or not

Moderator's Comments:
Mod Comment thread moved

Last edited by jim mcnamara; 06-25-2018 at 10:27 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10: How to just open a port - nothing else

Hi there, I tried just open a port but I failed ;-( # telnet localhost 9876 That should work so I did ... # vi /etc/services myport 9876/tcp # my port # svcadm restart inetd -> New pid, see ps - ef | grep inet # netstat -an | grep 9876 No port 9876 is waiting ;( #... (4 Replies)
Discussion started by: System
4 Replies

2. HP-UX

How to open 443 port in HP-UX?

Hello Experts, I want to open the port 443 on my HP-UX system. can you please help ? Thanks in advance. (1 Reply)
Discussion started by: purushottamaher
1 Replies

3. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies

4. Red Hat

[help]Open port Centos

I uses iptables but not working :mad: (2 Replies)
Discussion started by: lup
2 Replies

5. Red Hat

Open port with iptables

Hi, What iptables command do I need to run in order to open up the following port for incomming traffic on the following server: # telnet 127.0.0.1 1521 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection... (3 Replies)
Discussion started by: Duffs22
3 Replies

6. IP Networking

Unknown open port: "6881/tcp open bittorrent-tracker" found with nmap

Hi. I ran nmap on my server, and I get the following: Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT Interesting ports on -------- (-----): Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 6881/tcp open bittorrent-tracker The... (0 Replies)
Discussion started by: Rledley
0 Replies

7. AIX

How to open a port in AIX

Hi Guys, i am trying to open a port in AIX. but i am not able to get the command for this. AIX is not having the iptables file present. So please any body can tell me how to open a port in AIX... Thanks sanju (2 Replies)
Discussion started by: sanju_d1231
2 Replies

8. Linux

open port

How can I open a port on linux machine ??? (5 Replies)
Discussion started by: mm00123
5 Replies

9. Solaris

Solaris 8 to many open port

hi all, My OS is solaris 8 with core system installation only. so far everything works fine. by i do some testing from my xp pc as client to nmap and scan opening port to my solaris. the result as below: Initiating SYN Stealth Scan against 10.10.10.10 at 16:25 Discovered open port 21/tcp on... (3 Replies)
Discussion started by: hezry79
3 Replies
Login or Register to Ask a Question
fibreconfig(8)						    BSD System Manager's Manual 					    fibreconfig(8)

NAME
fibreconfig -- Tool for configuring settings for Fibre Channel controllers and targets. SYNOPSIS
fibreconfig [-r] [-c xx:xx:xx:xx:xx:xx:xx:xx] [-a AL_PA] [-s port_speed] [-t topology_type] [-l] [-v] OPTIONS
The available options are as follows: -r Dynamically updates system settings. Note: Cannot be used in conjunction with -c option. -c Defines the host port used for an operation. By default, if no other options are specified, fibreconfig will display information about the specified host port. -a Sets the AL_PA for specified host port. The AL_PA must be one of the values defined in Table 1.1 located in the examples section. -s Sets speed to [ 1gigabit, 2gigabit, 4gigabit, auto ] for specified host port. -t Sets topology to [ nport, nlport, auto ] for specified host port. -l Lists all known information about all nodes ( controllers, targets, and their LUNs ). -v Display version number. RETURN VALUES
Returned Error Code 0 No error. -50 Error in user parameter list. FILES
/sbin/fibreconfig Executable for version 2.0 and later. EXAMPLES
1. Set the AL_PA to 1E for a given host port. fibreconfig -c 00:11:22:33:44:55:66:77 -a 1E 2. Disable the AL_PA for a given host port. fibreconfig -c 00:11:22:33:44:55:66:77 -a FF 3. Set the speed to auto for a given host port. fibreconfig -c 00:11:22:33:44:55:66:77 -s auto 4. Set the topology to nlport for a given host port. fibreconfig -c 00:11:22:33:44:55:66:77 -t nlport 5. Table 1.1 List of valid AL_PA settings: ======================================= 01 02 04 08 0F 10 17 18 1B 1D 1E 1F 23 25 26 27 29 2A 2B 2C 2D 2E 31 32 33 34 35 36 39 3A 3C 43 45 46 47 49 4A 4B 4C 4D 4E 51 52 53 54 55 56 59 5A 5C 63 65 66 67 69 6A 6B 6C 6D 6E 71 72 73 74 75 76 79 7A 7C 80 81 82 84 88 8F 90 97 98 9B 9D 9E 9F A3 A5 A6 A7 A9 AA AB AC AD AE B1 B2 B3 B4 B5 B6 B9 BA BC C3 C5 C6 C7 C9 CA CB CC CD CE D1 D2 D3 D4 D5 D6 D9 DA DC E0 E1 E2 E4 E8 EF DIAGNOSTICS
Return value on exit provides information about the success or failure of the utility. ERRORS
See return values. HISTORY
Last updated February 1, 2005. BUGS
Known issues: 1. Currently only displays information for Apple shipped Fibre Channel cards. Mac OS X October 27, 2004 Mac OS X