Sponsored Content
Top Forums Shell Programming and Scripting script to restart a service in secondary server. Post 302548166 by chinuku on Wednesday 17th of August 2011 03:48:05 PM
Old 08-17-2011
script to restart a service in secondary server.

Can any one help me with a script to restart secondary server and sync data in it..
Code:
smsc101-0:ssh smsc101-1 "invoke-rc.d smsc restart"
pwd:***

smsc101-0:rsync -avz /usr/local/smsc/data smsc101-1:/usr/local/npac/data


Last edited by vbe; 08-18-2011 at 05:11 AM.. Reason: use code tags please
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Service Restart Netbackup

For vertitas netbackup 6.0 I have media server :Solaris Client server: Windows I want to restart the netbackup service on the media server . plz suggest ASAP. (1 Reply)
Discussion started by: saurabh84g
1 Replies

2. Shell Programming and Scripting

Restart a Service!!

Hello, I am trying to write a script which will monitor few processes(winbind) for cpu utilization, If the process consumes more than say 99% cpu for 3 minutes, I want to run a script to restart the service which forks the process. ---------- Post updated at 11:21 AM ---------- Previous update... (5 Replies)
Discussion started by: linuxaddict7
5 Replies

3. Solaris

NFS client service restart

Can any one please tell me the command for NFS client service restart.This is to resolve, NFS mount slowness issue.Mount is very slow for both read and write operations.The below commands are not helping out in this situation. ---------- Post updated at 08:59 AM ---------- Previous update was... (1 Reply)
Discussion started by: ksvaisakh
1 Replies

4. HP-UX

Script to auto restart a service

Hi All, May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped. Appreciate your suggestions. Thanks in advance. regards, Eajaz (2 Replies)
Discussion started by: ajazshariff
2 Replies

5. Shell Programming and Scripting

Need to Restart Service with Password

Hi All, Requirement : I need to check for some services in my environment and restart the service if its not running. I have written script to check the script if its running or not. While if its not running i need to restart it using ./start command. But it will ask for password prompt and i... (4 Replies)
Discussion started by: pradeepbaliga
4 Replies

6. Shell Programming and Scripting

Restart IDSM service in WASSERVER

Hello, Currently i am handling admin activity of wasserver, its parts of teamcenter, wasserver is used to maintain IDSM service which is involved in data transfer activity. due to some reason IDSM service gets down and have to restart this service manually. ... (0 Replies)
Discussion started by: chetan0412
0 Replies

7. SuSE

Service restart daily

Hi, Beside using crontab, what is other application we can set it? Normally I check using command crontab -l. Any other path I need to check? Please guide me. Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

8. Red Hat

Service restart and check if running

Hello, I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart. Thanks (2 Replies)
Discussion started by: bazzola
2 Replies

9. Red Hat

Restart service xinit.d or init.d ?

Hello How do I restart init.d ?? (centos 6.5) Thanks (2 Replies)
Discussion started by: mnnn
2 Replies

10. Red Hat

Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors : # service httpd restart Stopping httpd: rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory Starting httpd: ... (0 Replies)
Discussion started by: anaigini45
0 Replies
NETDUMP-CLIENT(8)						  System Programs						 NETDUMP-CLIENT(8)

NAME
netdump - send oops data and memory dumps over the network SYNOPSIS
/etc/init.d/netdump (start|stop|status|restart|propagate) DESCRIPTION
Loads and configures the netdump kernel modules. Once these are loaded, when the kernel crashes it will send the oops message and a dump of physical memory to the machine that runs the netdump-server. This can then be used to debug the problem using gdb and a kernel image. OPTIONS
start Starts the netdump client service. Loads the kernel modules with the right options. stop Unloads the kernel modules. status Shows the status of the netdump client restart Restarts the netclient modules with new configurations. propagate Sends the ssh public key needed to update the random key for each netdump session to the netdump server. FILES
/etc/sysconfig/netdump Configuration for the netdump client. You need to at least specify the address of the machine running the netdump server here. /etc/sysconfig/netdump_id_dsa.pub Public key for this machine. Used by the server to authenticate the client. This must be installed on the server, possibly by using the the propagate capability of the netdump init script, which does: cat /etc/sysconfig/netdump_id_dsa.pu | ssh netdump@$NETDUMPADDR cat '>>' /var/crash/.ssh/authorized_keys2 Where $NETDUMPADDR is the ip or name of the machine running the netdump server. SEE ALSO
netdump-server(8), init(8) BUGS
Report any bugs you find to http://bugzilla.redhat.com/bugzilla AUTHOR
Alexander Larsson <alexl@redhat.com> Linux 14 Feb 2002 NETDUMP-CLIENT(8)
All times are GMT -4. The time now is 10:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy