Sponsored Content
Top Forums Shell Programming and Scripting How to stop monitoring of servers at the time of reboot through shell scripting? Post 302400165 by subharai on Tuesday 2nd of March 2010 11:01:14 AM
Old 03-02-2010
How to stop monitoring of servers at the time of reboot through shell scripting?

We have number of servers which belongs to platforms Solaris, AIX,HP-UX and LINUX. Monitoring tool 'Patrol Agent' process run on the servers to check for the server health and communicate with the Patrol server through the port 5181. During scheduled reboot and maintenance of servers we do receive alarms/alerts due to the 'Connection Closed' for the nodes. Patrol agent Stop & Start process is automated through shell script during rebooting of the server. Hence we started receiving multiple requests from the users to bring the monitoring of servers into Maintenance mode which is a repeated process and very much time consuming.
So I am just thinking of trying to implement some automation process for keeping the servers in Maintenance mode throughout the time span while server is DOWN. Is there any process that we can implement on the servers through SHELL scripting so that the communication (through the TCP port) between the Patrol Server & Agent can be stopped just before executing the shutdown command and again resuming it as soon as the server is up and running? If so then we can consolidate and execute the new scripts which will stop FALSE alarming .
 

8 More Discussions You Might Find Interesting

1. Solaris

Reboot of Unix servers - recommended?

Hello, Please can anyone tell me - is it true that you should not re-boot Unix Sun Solaris servers on a regular basis, but onyl do it when really required? We want to schedule a reboot on a daily basis, to clear any rogue processes, but have been told this is not a good idea. Can anyone... (13 Replies)
Discussion started by: polly013
13 Replies

2. Shell Programming and Scripting

Servers Stop and Start

Hi, Every time i want to stop and start servers using PuTTY,i have to execute 6 to 10 commands every time ,i need shell script(program) for execute those commands in single command.Is it possible plz suggest me. (3 Replies)
Discussion started by: RG18173
3 Replies

3. Shell Programming and Scripting

Servers Start and Stop

HI I am using below code to start and stop servers but it is not working ,how to run the script please suggest me ,if any errors in the script please let me know. #!/bin/bash IMS_START="/Webserver/AppServer/bin/startServer.sh" IMS_STOP="/Webserver/AppServer/bin/stopServer.sh" case "$1" in ... (1 Reply)
Discussion started by: RG18173
1 Replies

4. Shell Programming and Scripting

C shell scripting, check if link exists on remote servers

Hi, I'm new to C Shell programming. I'm trying to check if a sym link exists on remote server if not send email. I'm not having much luck. Can anyone help? Here is what I have written but it doesn't work. It tells me that my variable was not defined. Here is part of the script, the second... (0 Replies)
Discussion started by: CDi
0 Replies

5. Shell Programming and Scripting

How to stop the process in shell scripting?

Hi all, I have tried the below code to execute. #! /bin/bash date1=`date -d "today 08:00:00" +%s` date2=`date -d "today 08:01:00" +%s` path=/home/user01/red/IDC/sample cd $path java Cspsamp 111.19.5.172 7025 rd1 rd1 "5022=Query|5026=109378|4=627|5=E:VD|5042=$date1|5049=$date2"... (5 Replies)
Discussion started by: aish11
5 Replies

6. UNIX for Dummies Questions & Answers

Shell Scripting Stop/Start Application

I did a search of these forums but couldnt find a suitable resolution. I am attempting to script a stop and start of an application on AIX. Such as: However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Discussion started by: Soupy
2 Replies

7. UNIX for Advanced & Expert Users

How to stop a reboot after init 6 is given by mistake?

Hi, I recently had an issue and by mistake a script of mine has initiated init 6 command, Is there a way to stop the reboot manually after init 6 is given, Your response is highly appreciated. Thanks in advance !! (9 Replies)
Discussion started by: nanz143
9 Replies

8. Shell Programming and Scripting

Run a shell script on all 15 servers at the same time?

We have 15 servers. Hostnames for these 15 servers are stored in a text files and loop through each server to connect to the remote server and run a command, but this loop process runs the command one after another. However, the requirement is to run the same command on all 15 servers at the same... (10 Replies)
Discussion started by: laknar
10 Replies
bprelay(8)						      System Manager's Manual							bprelay(8)

NAME
bprelay - BOOTP relay agent SYNOPSIS
/usr/sbin/bprelay [-f] [-d n] [-h hopcount] [-i interface,interface...] [-t minutes] [-w seconds] server... OPTIONS
Foreground mode. In this mode, bprelay does not run as a daemon. All messages are written to stdout and stderr, although warnings and errors are still sent to syslog(3). Without this option, bprelay listens on all interfaces on which the underlying protocol supports broadcasting. With this option, bprelay listens only to those interfaces specified. Any non-existent or invalid interface name are ignored. Sets debug level to the numeric value n. Larger values of n provides more debugging information. Instructs bprelay to not for- ward packets if the value of the hops field in the BOOTP packet exceeds hopcount. Instructs bprelay to terminate if minutes have passed without any packets being received. This option is only honored if bprelay was started from inetd(8). Instructs bprelay to not forward packets until the secs field in the BOOTP packet header exceeds this value. DESCRIPTION
The bprelay daemon forwards DHCP or BOOTP packets to the specified list of servers (server). Servers may be identified either by their IP addresses or by their names. The bprelay agent normally runs as a daemon process, and may be started either from the shell command line interface or by inetd(8). The purpose of bprelay is to provide the same service as that found in router hardware, but to run on UNIX workstations. The bprelay agent listens for DHCP/BOOTP packets on each of the interfaces specified in the command line, and relays each packet to the servers specified. As a rule, bprelay forwards each and every packet to every server specified, but it omits servers whose IP address is found to be on the same IP network as the receiving interface since those servers will presumably hear the original broadcast. RESTRICTIONS
Non-standard subnet masks for all networks administered by bprelay, must be available either through /etc/netmasks or NIS. SEE ALSO
Commands: inetd(8), joinc(8) System calls: syslog(3) RFC1497, RFC1542, RFC1534 bprelay(8)
All times are GMT -4. The time now is 12:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy