Sponsored Content
Top Forums Shell Programming and Scripting check web server running on local and on remote machine Post 302394744 by Corona688 on Friday 12th of February 2010 11:23:09 AM
Old 02-12-2010
This should work on both:
Code:
wget --quiet --spider "http://my-website.com/" || echo "my-website.com down"

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to check running processes on remote server.

Hi, I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out. #!/bin/sh echo "select Address from Device where Cust =... (5 Replies)
Discussion started by: amitsayshii
5 Replies

2. Shell Programming and Scripting

How to stop a script running in remote server from local script

Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Discussion started by: mannepalli
1 Replies

3. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

4. Shell Programming and Scripting

Using local variable on a remote machine

Hi, I'm writing a korn shell script where the user enters a variable and I have to create a directory remotely which contains the name of that variable. Example. print 'Please enter variable:' read variable ssh user@host 'mkdir before_$variable;' Thank you. (4 Replies)
Discussion started by: jangozo
4 Replies

5. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

6. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

7. Shell Programming and Scripting

Help with fetching the data from remote machine from my jumpbox(local machine)

Team, Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 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. UNIX for Beginners Questions & Answers

Check processes running on remote server

Hello Guys, I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from remote server. Could you please suggest some that can be done without ssh or similar sort of... (8 Replies)
Discussion started by: UnknownGuy
8 Replies
hpsmh(1M)																 hpsmh(1M)

NAME
hpsmh - starts or stops the HP System Management Homepage server SYNOPSIS
DESCRIPTION
The HP System Management Homepage is the management server for web-based System Administration tools. In order to use HPSMH, start a web browser on your desktop or workstation, and type in the URL or Address of the server to be managed: By default, the HP SMH management server under HP-UX only starts on demand. It does not run continually. A daemon listens on port 2301 to start an instance of the management server. The above URL automatically starts the management server, then redirects your browser to the secure port from which to login: The command starts or stops the HPSMH server. If no options are specified, displays the possible options. Options The command supports the followings options: Starts the HPSMH Server if is not currently running Stops the HPSMH Server Access Control By default, only the root user can login to HPSMH. Within HPSMH you can configure additional user groups to have HPSMH access. You must be a superuser to run the command. Certificates Installing HPSMH will generate an SSL self signed certificate. Because this certificate is self signed, when connecting to HPSMH your web browser will prompt you with a warning that the certificate was issued by a web site, company or Certificate Authority you have not chosen to trust. It is possible to proceed by accepting this self signed certificate temporarily for each session. You can also view and install (accept permanently) this certificate to avoid this warning in the future. HPSMH also supports installation of certificates created by a Certifi- cate Authority. RETURN VALUES
The command returns: upon successful completion if the command failed EXAMPLES
Starts HPSMH Server: Stops HPSMH Server: Shows options: Using HPSMH, start a browser and enter the following URL: AUTHORS
was developed by Hewlett-Packard SEE ALSO
smhstartconfig(1M). hpsmh(1M)
All times are GMT -4. The time now is 01:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy