12-06-2012
Running commands on remote machines
so i want to monitor a variety of things on hundreds of servers. the old process was to have an agent running on each one of these servers.
but now i'm looking to see if its possible to have agentless monitoring. the only other straight forward option other than having an agent on the hosts, is to use ssh. but i dont know how to go about this.
I have 2 hosts that will serve as the monitoring servers. One will be Primary, the second will be Backup. the secondary will have the same exact setup as the primary.
what do i need to do on these two hosts to be able to log into all my servers and run the commands i need to run? vmstat, uptime, mpstat etc.
The number of servers i need to monitor is 600.
The OS running on these servers is a mixture of Sun Solaris and Linux Red Hat.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
To clear the web cache on my web server, I run this command:
find $APACHE_HOME/cache/plsql/plsql -type d -name "*" -exec rm -R {} \;
To clear the cache on all the web servers(we have 4), I log on to any one machine, clear its cache, ssh to another machine, clear cache etc;
Is there any way... (8 Replies)
Discussion started by: nattynatty
8 Replies
2. UNIX for Advanced & Expert Users
Hi ..
I want to check the date for one file which is present on the remote machine.
How do i do that??
Also if i'm only having the sudo rights .. can i do that with my login or do i need all the access rights??
Please let me know asap. (3 Replies)
Discussion started by: decci_7
3 Replies
3. Solaris
1. scp person1@10.10.10.1:file1 person2@10.10.10.2:file1
2. scp file1 person1@10.10.10.1:file1
For #1, I keep getting this error:
Password:
Host key verification failed.
lost connection
I have entered the correct password too!
#2 works fine. I suppose I cannot copy a file between two... (6 Replies)
Discussion started by: kungpow
6 Replies
4. Shell Programming and Scripting
Gurus/Experts
We have a centralized UNIX/Solaris server from where we can actually ssh to all other UNIX/Solaris servers...I need to write a script that reside on this centerlized server and do FileSystem monitoring (basically run df -h or -k) of other remote servers and then send an email to me... (6 Replies)
Discussion started by: anjum.suri
6 Replies
5. Shell Programming and Scripting
hello,
iam able to ssh to a linux server from a linux server called "machine1" using the private/public key method, so I dont need to enter any password when I run my script but iam not able to ssh from machine1 to a UNIX server, access is denied.
note that I am using an application id which is... (6 Replies)
Discussion started by: wydadi
6 Replies
6. Shell Programming and Scripting
Hi All, I have been a guest visitor from a long time and this forum is wonderful. I finally am a member of this forum too, so i am here stuck with a shell script that i was trying to write
My requirement is that i should be able to create a shell script which will check if a process is running on... (3 Replies)
Discussion started by: Rex0226
3 Replies
7. Shell Programming and Scripting
Platform :Oracle Linux 6.4
We are trying to automate the SAN level cloning from production RAC DB cluster to test.
From a shell script, I would like to run the below command Step1,2 and 3 from Node1 in a sequential order as root user . How can I do this ? passwordless for root user is not... (2 Replies)
Discussion started by: kraljic
2 Replies
8. Shell Programming and Scripting
Hi
Wishing to all.
I am very new joined in an organization as a unix system administrator.
I need a help in preparing a script for a report.
i have a file contains all of the linux/ubuntu servers line by line around 140 servers.
vi servers.txt
nh01
nh02
nh03
bh01
bh04
-
-
:wq (3 Replies)
Discussion started by: kumaraswamy
3 Replies
9. Shell Programming and Scripting
Hello,
I'm trying to create a ksh script to ssh to a remote server, enter the password and a couple commands. For security reasons I have changed the login, password and ip in my example.
#!/bin/ksh
ssh -t -t username@12.5.5.3 << EOF
password
cd bin
pwd
EOF
When I run it. It... (5 Replies)
Discussion started by: seekryts15
5 Replies
10. Shell Programming and Scripting
Hi,
I am trying to run commands on a list of servers that I can ssh to and just want to know if there is a 'cleaner' way of doing this.
At the moment, I am doing as below. Is there a way that I can escape the double quote differently? If a use a single quote to enclose the commands that I... (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT ULTRIX
yppush
yppush(8yp) yppush(8yp)
Name
yppush - force propagation of a changed yellow pages (YP) map
Syntax
yppush [ -d domain ] [ -v ] mapname
Description
The command copies a new version of a yellow pages (YP) map from the master YP server to the slave YP servers. It is normally run only on
the master YP server by the utility accessing the after the master YP databases have been changed. When invoked, first constructs a list
of YP server hosts by reading the YP map ypservers within the domain. Keys within the map ypservers are the ASCII names of the machines on
which the YP servers run.
A transfer map request is sent to the YP server at each host, along with the information needed by the transfer agent (the program which
actually moves the map) to call back the command. When the attempt has completed (successfully or not), and the transfer agent has sent a
status message, the results can be printed to stdout. Messages are also printed when a transfer is not possible, for instance when the
request message is undeliverable, or when the timeout period on responses has expired.
Refer to and for an overview of the yellow pages.
Options
-d Specify a domain.
-v Verbose. This causes messages to be printed when each server is called, and for each response. Without this flag, only error mes-
sages are printed.
Restrictions
In the current implementation (version 2 YP protocol), the transfer agent is which is started by the program. If detects that it is speak-
ing to a version 1 YP protocol server, it uses the older protocol, sending a version 1 YPPROC_GET request and issues a message to that
effect. Unfortunately, there is no way of knowing if or when the map transfer was performed for version 1 servers. The command prints a
message saying that an old-style message has been sent. The system administrator should later check to see that the transfer has actually
taken place.
Files
/etc/yp/domainname/ypservers.{dir, pag}
See Also
ypfiles(5yp), ypserv(8yp), ypxfr(8yp)
yppush(8yp)