Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Running commands on remote machines Post 302740683 by joeyg on Thursday 6th of December 2012 03:00:03 PM
Old 12-06-2012
You may want to reconsider

Since you did not specify what you are trying to monitor, I wanted to think of this differently...
There are 600 computers you want to analyze. So, if it take 60 seconds to connect, execute remote commands, transmit results file back, do something (on master computer), and then go to next remote computer.
That would mean ten hours, start to finish, if done sequentially. I suppose you could write something to do some in parallel?

Which brings me back to my initial premise...that this may not be possible based on the number of remote computers to analyze.

In human terms...
(a) you call 600 people to find out if they are coming for dinner
(b) receive emails of those who cannot attend

Probably easier to process the (b) list. Likewise, easier to process error files from remote computers.
This User Gave Thanks to joeyg For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Running a script on multiple machines

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

How do I check file dates on remote machines

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

scp - copy between two remote machines?

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

running commands to remote host from centralized host

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

how to ssh to remote unix machines using private/public key

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

Shell Script to find out if a process is running on any all machines

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

Running commands in remote node as root user

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

Running set of commands in remote servers in shell script

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

Running Commands on a Remote Linux Server over SSH

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

Ssh - running commands on remote server

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
SYSTEMSETUP(8)						    BSD System Manager's Manual 					    SYSTEMSETUP(8)

NAME
systemsetup -- configuration tool for certain machine settings in System Preferences. SYNOPSIS
systemsetup [-getdate] [-setdate mm:dd:yy] [-gettime] [-settime hh:mm:ss] [-gettimezone] [-listtimezones] [-settimezone timezone] [-getusingnetworktime] [-setusingnetworktime on | off] [-getnetworktimeserver] [-setnetworktimeserver timeserver] [-getsleep] [-setsleep minutes] [-getcomputersleep] [-setcomputersleep minutes] [-getdisplaysleep] [-setdisplaysleep minutes] [-getharddisksleep] [-setharddisksleep minutes] [-getwakeonmodem] [-setwakeonmodem on | off] [-getwakeonnetworkaccess] [-setwakeonnetworkaccess on | off] [-getrestartpowerfailure] [-setrestartpowerfailure on | off] [-getrestartfreeze] [-setrestartfreeze on | off] [-getallowpowerbuttontosleepcomputer] [-setallowpowerbuttontosleepcomputer on | off] [-getremotelogin] [-setremotelogin on | off] [-getremoteappleevents] [-setremoteappleevents on | off] [-getcomputername] [-setcomputername computername] [-getstartupdisk] [-liststartupdisks] [-setstartupdisk path] [-getwaitforstartupafterpowerfailure] [-setwaitforstartupafterpowerfailure value] [-getdisablekeyboardwhenenclosurelockisengaged] [-setdisablekeyboardwhenenclosurelockisengaged yes | no] [-getkernelbootarchitecturesetting] [-setkernelbootarchitecture i386 | x86_64 | default] [-version] [-help] [-printCommands] DESCRIPTION
The systemsetup command is used to configure certain per-machine settings typically configured in the System Preferences application. The systemsetup command requires at least "admin" privileges to run. A list of flags and their descriptions: -getdate Displays the current date. -setdate mm:dd:yy Use this command to set the current month, day, and year. -gettime Displays the current time in 24-hour format. -settime hh:mm:ss Sets the current time. The provided time argument should be in 24-hour format. -gettimezone Displays current time zone. -listtimezones Lists all time zones supported by this machine. -settimezone timezone Use this command to set the local time zone. Use "-listtimezones" to list valid timezone arguments. -getusingnetworktime Displays whether network time is on or off. -setusingnetworktime on | off Sets whether using network time is on or off. -getnetworktimeserver Displays the currently set network time server. -setnetworktimeserver timeserver Use this command to designate a network time server. Enter the IP address or DNS name for the network time server. -getsleep Displays amount of idle time until machine sleeps. -setsleep minutes Sets amount of idle time until computer sleeps. Specify "Never" or "Off" for computers that should never sleep. Important: if you set the system to sleep, you will not be able to administer the server remotely while it is sleeping. -getcomputersleep Display amount of idle time until computer sleeps. -setcomputersleep minutes Set amount of idle time until computer sleeps. Specify "Never" or "Off" for never. -getdisplaysleep Display amount of idle time until display sleeps. -setdisplaysleep minutes Set amount of idle time until display sleeps. Specify "Never" or "Off" for never. -getharddisksleep Display amount of idle time until hard disk sleeps. Specify "Never" or "Off" for never. -setharddisksleep minutes Set amount of idle time until hard disk sleeps. Specify "Never" or "Off" for never. -getwakeonmodem Displays whether wake on modem is on or off. -setwakeonmodem on | off Use this command to specify whether or not the server will wake from sleep when modem activity is detected. -getwakeonnetworkaccess Displays whether wake on network access is on or off. -setwakeonnetworkaccess on | off Use this command to specify whether the server wakes from sleep when a network admin packet is sent to it. -getrestartpowerfailure Displays whether restart on power failure is on or off. -setrestartpowerfailure on | off Use this command to specify whether the server automatically restarts after a power failure. -getrestartfreeze Displays whether restart on freeze is on or off. -setrestartfreeze on | off Use this command to specify whether the server restarts automatically after the system freezes. -getallowpowerbuttontosleepcomputer Enable or disable whether the power button can sleep the computer. -setallowpowerbuttontosleepcomputer on | off Enable or disable whether the power button can sleep the computer. -getremotelogin Displays whether remote login (SSH) is on or off. -setremotelogin [-f] on | off Sets remote login (SSH) to either on or off. Important If you turn off remote login, you won't be able to administer the server using remote command line tools and SSH. To turn remote login back on, you'll need to connect a monitor and keyboard to the server to administer it locally. Use "setremotelogin -f off" to suppress prompting when turning remote login off. -getremoteappleevents Displays whether remote apple events are on or off. -setremoteappleevents on | off Use this command to set whether the server responds to events sent by other computers (such as AppleScripts). -getcomputername Displays computer name. -setcomputername computername Sets computer name to <computername>. This name is used by AFP. -getlocalsubnetname Display local subnet name. -setlocalsubnetname name Set local subnet name to <name>. -getstartupdisk Displays current startup disk. -liststartupdisks Lists all valid startup disks on this computer. -setstartupdisk path Sets current startup disk to the indicated path. Valid arguments can be listed using "-liststartupdisks." -getwaitforstartupafterpowerfailure Get the number of seconds after which the computer will start up after a power failure. -setwaitforstartupafterpowerfailure seconds Set the number of seconds after which the computer will start up after a power failure. The <seconds> value must be a multiple of 30 seconds. -getdisablekeyboardwhenenclosurelockisengaged Get whether or not the keyboard should be disabled when the X Serve enclosure lock is engaged. -setdisablekeyboardwhenenclosurelockisengaged yes | no Set whether or not the keyboard should be disabled when the X Serve enclosure lock is engaged. -getkernelbootarchitecturesetting Gets the Kernel Architecture setting from the com.apple.Boot.plist. -setkernelbootarchitecture i386 | x86_64 | default Set the kernel to boot in 32 or 64 bit mode on next boot. default removes the setting. -version Displays version of systemsetup tool. -help Displays a list of all the commands available in the System Setup Tool, with explanatory information. -printCommands Displays a list of commands with no detail. EXAMPLES
systemsetup -setdate 04:15:02 systemsetup -settime 16:20:00 systemsetup -settimezone US/Pacific systemsetup -setnetworktimeserver time.apple.com FILES
/usr/sbin/systemsetup SEE ALSO
networksetup(8) Mac OS X April 15, 2002 Mac OS X
All times are GMT -4. The time now is 07:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy