Sponsored Content
Full Discussion: Status of remote servers
Top Forums Shell Programming and Scripting Status of remote servers Post 302396398 by panyam on Thursday 18th of February 2010 09:52:47 AM
Old 02-18-2010
I Dont think so , since

Code:
 
is there any other command to say specific details about when server came down and other information

If Server is down , obviosuly it can't giv you any feed back other than time out , how ever if it's up when you remotely login in or can do the remsh to get the "uptime" which will show from when the server is UP.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Connecting to remote servers

Please advise, The previous thread asked about the automated transfer of files between two servers. The question is - is there any way of encrypting the password within the script or is it a matter of setting the permissions settings on the script so that it can only be executed and possibly... (1 Reply)
Discussion started by: rdbooth
1 Replies

2. HP-UX

Verifying remote command status

hello Friends, I wanted to verify status of remote command executed on remote machine in hpux. remsh <hostname> -l root cd /sampldir i wanted to check weather the command executed on remote machine correctly or not by $?. Can you tell me how to execute multiple command on remote machine. ... (0 Replies)
Discussion started by: ravikiran
0 Replies

3. Shell Programming and Scripting

Getting the exit status of a remote command

Hi to everyone. How can I get the exit status from a remote command executed with rexec? :eek: machine A has RedHat Linux 9 and the remote machine B has SCO UNIX. Code: rexec -l user -p password host sh /u/files/scripts/seq_cal.sh 2006 08 I want the exit status returned by... (1 Reply)
Discussion started by: zoonalex
1 Replies

4. Shell Programming and Scripting

Need advices on scripting for remote servers

Hi guys, I need some advice and recommendations for a work project I am doing. Let me state that security is not a concern as this is a closed network and the data is not sensitive. Here's what I would like to do and how I was planning to accomplish it: I have an application on my remote... (1 Reply)
Discussion started by: blueicedrop2000
1 Replies

5. Shell Programming and Scripting

Copy a file on remote servers

Hey Unix Gurus, I'm having trouble in copying a file on 5 different servers, first how can you do it locally (i.e without the need to ssh to the server you want to copy the file) and if you need to ssh how do u run a command within that server. Please see my code below(it doesn't work somehow).... (10 Replies)
Discussion started by: sexyTrojan
10 Replies

6. AIX

Connect HMC to remote servers

I'm trying to connect a few servers in different remote locations to my HMC. I added static IPs to the Service Processor through ASM, and did all the necessary network configurations, then connected those servers to our switch. Now my questions are: - in our site, do I need to connect these... (4 Replies)
Discussion started by: Dardeer
4 Replies

7. Shell Programming and Scripting

Find the remote server status.

Hi All, I would like to connect from "Instance A" to "Instance B" with the help of sftp. Where as Instance B is having clustered servers ( 2 servers pointing same instance ). Now, my question is before connecting to "Instance B" from "Instance A" how do know whether server is running or not.... (3 Replies)
Discussion started by: Girish19
3 Replies

8. AIX

How to check the ethernet status for vlan and lhea adapter in client servers?

Hi Techies, I have a doubt. ent0 Available Logical Host Ethernet Port (lp-hea) ent1 Available Logical Host Ethernet Port (lp-hea) ent2 Available Logical Host Ethernet Port (lp-hea) ent3 Available Logical Host Ethernet Port (lp-hea) ent4 Available... (4 Replies)
Discussion started by: jayadeava
4 Replies

9. Shell Programming and Scripting

Check/get the exit status of a remote command executed on remote host through script

Geeks, Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s). Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies

10. Red Hat

Different connection status between 2 servers

Hello All, Actually, We have a problem in our server (RHEL 7.1), 1st server is used for payment apps like switch card payment (passthru only), and 2nd server is used for Database transaction. When high transaction there is different connection between Apps Server and DB server, Apps Server... (0 Replies)
Discussion started by: I Made Dwi
0 Replies
LATCP(8)						      System Manager's Manual							  LATCP(8)

NAME
latcp - LAT Control Program SYNOPSIS
latcp [options] DESCRIPTION
latcp is the control program for latd(8). OPTIONS -s Start the LAT daemon. This is the only way to start LAT, you should not attempt to run latd directly or you may get unexpected behviour. latcp -s runs the file /etc/latd.conf as a shell script (using /bin/sh). Any customisations you need to do to the LAT system should be put in this file as latcp commands. The latcp command should be invoked using the environment variable $LATCP. An example latd.conf file is shipped with the package and shown in the man page latd.conf(5). latcp -s passes any extra switches onto latd itself so you can customise latd this way, however latd.conf is recommended. -h Halts latd. This will kill any active sessions without warning. -A Create a local LAT service or reverse LAT port. The syntax for creating a login service is: latcp -A -a service [-i description] [-r rating] [-s] [-C command] [-u user] The -s flag indicates that the service rating is static. Without this the service rating is regarded as a maximum and will be reduced according the the load average of the machine. The -C flag indicates a command to run when a user connects to the service - by default this is /bin/login. The -u flag specifies a user to run the above command as. By default this will be root. The syntax for creating a reverse LAT port is: latcp -A -p tty -V learned_service [-R rem_port] [-H rem_node] [-Q] [-8] The tty name should start /dev/lat and must not exist. The -Q flag indicates that connections to the service is queued. If you con- nect to a queued service and it is busy then your connection will be forced to wait until it is available. You must use this flag for printer services on DECserver 90L terminal servers, and in this case the service name must also be empty. NOTE that the -Q flag is the opposite way round to that on Tru64 Unix(r). The -8 flag tells latd not to muck about with the data. Normally latd will transmit a BREAK if a NUL character is typed, -8 disables this behaviour for ports with (eg) printers or modems attached. -D Delete a service or port. latcp -D -a <service> deletes an advertised service created with latcp -A -a. latcp -D -p <tty> deletes a reverse LAT port created with latcp -A -p -i Change the description of an advertised service latcp -i <description> -a <service> If the description contains spaces or shell metacharacters you should enclose it in quotes. -j Enables the service responder. This feature is needed for small terminal servers that do not collect their own service lists. I currently don't have a list of servers that need this feature. can anyone help?? -J Disables service responder. -Y Purges the list of known services from latd's internal tables. -x Change the rating of an advertised service latcp -x <rating> [-s] -a <service> If the -s flag is present the rating is static, otherwise it is treated as the maximum value and will be decreased according to the system load average. -n Change the system's current node name (Note this affects latd only, not DECnet nor TCP/IP) latcp -n <nodename> -r Change the retransmit limit. This is the maximum number of times latd will transmit a packet without an acknowlegement. If this num- ber is exceeded then the connection is closed as it is assumed that the remote end has gone away. This value must be between 4 and 120 inclusive, the default is 20. -m Sets the multicast timer (in seconds). This timer determines how often services are advertised on the LAN. The default is 60 sec- onds. This value must be between 10 and 180 inclusive. -k Sets the keepalive timer (in seconds). This is the maximum amount of time that a connection can be inactive. When this timer expires an empty message is sent to the remote end. If it does not respond after <retransmit limit> then the connection is closed. This timer is reset every time a packet is sent out. This value must be between 10 and 180 inclusive. -d Displays latd configuration or the learned service table. -d on it's own will display the latd configuration and the services that are advertised by this node. -d -l will display the learned service table. Adding -v will show the learned service table in a ver- bose manner. -n will show the nodes (with MAC addresses) that are associated with serviceless ports (eg reverse LAT ports to DS90L+ servers). -? Displays help for using the command. -G Add groups to the services advertised. The groups can be numbers seperated by commas or a range. eg latcp -G 1,2,3,10-20 Enables groups 1 2 3 and 10 to 20 inclusive. -g Disable groups using syntax as above. -U Add to the list of groups that the server will accept when listening for services. this affects the services that are available using the "reverse LAT" feature. See -G for the syntax. If you are using the "responder" feature it's best make sure that this group list contains all the groups that are likely to be used on the LAN. -u Remove groups from the user groups list. SEE ALSO latd(8), latd.conf(5), moprc(8), llogin(1) LAT Server September 10 2002 LATCP(8)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy