Sponsored Content
Top Forums Shell Programming and Scripting *ix script to check port of client server and return output Post 302726165 by MeFirst on Saturday 3rd of November 2012 06:53:50 PM
Old 11-03-2012
Thanks for suggestion, But

In our work environment i have hell lot of servers. In a day i get 20 to 30 tickets or requests saying a port check have been failed on so and so(6445 or 6996) node. so everytime its new server(even i dont know there names)
script should prompt.
enter username
enter node name;
enter password
enter port number to check
check port (listening or established or nothing) and show me the result.
if the port is not up or server is unreachable show fixed error(try manually human :-)))

please help... i am fed up of doing same lengthy steps to check the tickets.


Br,
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

copy file from server to client script

i want to run automated backup copy , using crontab and how to do that? the backup file should be taken from the sun server and put it in the client machine daily.pls help.. (5 Replies)
Discussion started by: gini
5 Replies

2. Shell Programming and Scripting

Client-server script

Hi all, I am referring to this website . What I'm trying to do is to have a server script which will receive data from GPS in one line and store it in some file. Now from what I can see in this server file, server is sending the data to client but I don't need that .. I need only server script... (3 Replies)
Discussion started by: c0mrade
3 Replies

3. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

4. Shell Programming and Scripting

Script to check if Port is Active

is there a better way to check if a port is active on linux and sunos systems? this is currently what I'm using in my script: netstat -an | egrep -i "$PORT" i know this isn't the best way as there could be numbers in that output that has my port number in it but isn't necessarily a... (0 Replies)
Discussion started by: SkySmart
0 Replies

5. HP-UX

how to check remote server port listening from application.

Hi, I have an application running on HP-UX, from this application I need to findout if the port number. lets say 7890,7891, 7892 are listening on the remote server running on HP-UX. Is there any way of doing it using "system()" function or any other? I noticed that nmap, netcat are not... (0 Replies)
Discussion started by: einsteinBrain
0 Replies

6. Shell Programming and Scripting

Sftp script for dev server to client server

hi, i am new to unix, cuold u send some sftp acripts to send files to dev server to clint server, (1 Reply)
Discussion started by: Koti.annam
1 Replies

7. Shell Programming and Scripting

Return output from shell script

Hi All, There are 2 scripts A and B. A --> It will invoke script B B --> It will generate below output. 100 - connected 105 - Not Connected 210 - Connected I want to return this value to script A. Please advice. (4 Replies)
Discussion started by: Girish19
4 Replies

8. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

9. Shell Programming and Scripting

Need output of script on screen and file with correct return status of the called script.

Hi, I am trying to capture logs of the script in the file as well as on the screen. I have used exec and tee command for this. While using exec command I am getting the correct output in the file but, script output is not getting displayed on the screen as it get executed. Below is my sample... (14 Replies)
Discussion started by: Prathmesh
14 Replies

10. UNIX for Beginners Questions & Answers

Check telnet port multiple server

Dear Team, I want to check multiple linux server to check port open. eg. 192.168.1.12 80,192.168.1.12 443 Please provide script for that? (8 Replies)
Discussion started by: pradeep1807
8 Replies
LLOGIN(1)						      General Commands Manual							 LLOGIN(1)

NAME
llogin - Connect to a LAT service SYNOPSIS
llogin [options] service Options: [-dvcpblhQ] [-H node] [-R port] [-n name] [-w password | -W] [-q quit char] DESCRIPTION
llogin connects your terminal to a LAT service via latd, the service name must be known to latd for this to work. OPTIONS
-d Shows learned services. This is the same as latcp -d -l -d -v Verbose form of -d. -v without -d is ignored. -H <node> Remote nodename. If the service is advertised by more than one node and you want to connect to a particular node then use this switch. By default you will be connected to the node with the highest rating. -R <port> Connect to a specific port on (usually) a terminal server. This is the port NAME on the server and not the port number. -c Do not convert typed LF to CR. By default the enter key generates LF and llogin converts it CR as it is the most generically useful translation. This switch will cause the enter key to send LF instead. Occasionally useful for connecting to Unix consoles. -b Convert typed DEL to BS. By default the DEL key (keyboard, top right usually) send DEL (ASCII 0x7f) to the remote system. This switch will cause the DEL key to send BS (ASCII 8) instead. Useful for some Unix systems connected via terminal servers. -l Convert output LF to VT. By default LF output is sent as CRLF which can cause output formatting problems. Changing this to VT should preserve the output formatting on most devices or terminal emulators. -q <char> Change the quit character. By default CTRL-] will quit the terminal session. Entering a character after -q will cause CTRL-<char> to be the quit character for that session. -q0 will disable the quit character. If you use the latter, make sure you are connecting to a service that will disconnect you when you log out or you will have to kill llogin from another session to get out of it! -Q Tells latd that the service you are connecting to is queued service and not a normal login service or port service. Unfortunately latd cannot tell whether a remote service needs to be queued or not so the onus is on the user to specify this switch when connect- ing to a queued service. -n <name> Sets the local connection name. By default this will be your local TTY name. In most cases this simply affects the display of the terminal on the remote end so you shouldn't need to change it. -w <password> Sends the password for the service. Only needed for services that require a password for access. If the password given is "-" then you will be prompted for a password and it will not be echoed. This avoids having passwords visible on the screen. -W Prompts for the service password. This is the same as -w- (see above). -p Tells llogin to connect to the device named instead of a LAT service. This would usually be a /dev/lat pseudo-terminal but could be any other device you like really. This switch does not make the program useful as a terminal program because there is no way to set any serial parameters, nor am I going to add them. This is just a convenient way to use the /dev/lat ports without the overhead of programs such as minicom. -h Displays a brief usage description. This is the same as invoking llogin without any parameters at all. SEE ALSO latcp(8), latd(8) LAT utilities January 3 2002 LLOGIN(1)
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy