Execute commands on remote computers using tools like SSH and PowerShell.

learn more… | top users | synonyms

1
vote
0answers
58 views

Powershell-Script is not exectued correctly

I have a power-shell-script which is called by a batch-file. The batch calls the script after it has set the execution policy to unrestricted. Currently the script does nothing more than writing a ...
0
votes
1answer
108 views

Saltstack: is it possible to forbid certain commands when using cmd.run?

Let's say I have a salt-master and decide to run some arbitrary command in all my minions. But because I had a bad night, I was robbed on my way to work, my boss yelled at me for being late and my ...
1
vote
1answer
2k views

Ansible playbook to upload and execute a python script

My playbook is as below: - hosts : mygroup user : user sudo : yes tasks : - name : Copy script copy : 'src=/home/user/Scripts/logchecker.py dest=/opt/root2/logchecker.py owner=root ...
0
votes
1answer
381 views

Rundesk cannot execute local command

I'm trying to interact with the nodejs Azure sdk from a CentOS installation of Rundeck. If I try from the "run" adhoc virtual shell, I am able to after running azure account import <mykey> and ...
2
votes
5answers
3k views

Executing script remotely with “curl | bash” feedback

I'm working on a platform that uses a lot such commands: ssh login@server.com 'curl http://some_server/script.sh | bash' This is really clean and handy to execute scripts remotely, however, I don't ...
4
votes
2answers
1k views

Why can a Domain Admin run a powershell cmd locally, but connecting over WinRM with the same account, command returns an UnauthorizedAccessException?

I'm trying to administer a Windows 7 machine remotely. I've enabled WinRM and can use Enter-PsSession to connect to the remote machine. However, I'm noticing a difference between running a particular ...
4
votes
1answer
113 views

Possible to run a program on my desktop whereas it is located on remote server?

I know that it is possible to run programs on terminal with ssh programs but is it also viable to run a program on my desktop with its GUI. For example suppose I installed Matlab on a remote machine ...
2
votes
6answers
4k views

alternative to Clusterssh for managing multiple SSH server

Is there any alternative to Clusterssh,pssh etc? to manage multiple ssh based servers through one interface? one weakness in Clusterssh is that my servers use key based authentication, with ...
5
votes
4answers
3k views

How to “yum update” / “aptitude safe-upgrade” many hosts?

I have two books about Puppet and none of them mentions how to push yum update or aptitude safe-upgrade. So I am getting the impression that Puppet can't, which I find hard to believe. Question How ...
5
votes
4answers
6k views

How can I run a PowerShell function remotely?

Using powershell, I plan to run many functions on a remote host to gather information. Here is an example to retrieve the content of file remotely just by running a function called getcontentfile ...
1
vote
3answers
123 views

Looking for a package that aliases commands on multiple remote hosts using ssh

i would like to find a program that maintains a list of commands that can be aliased for different hosts. for example, we have a database server, and four web servers. a common task is to login to ...
1
vote
3answers
462 views

distributed monitoring with process control

I am searching a tool for monitoring my web apps, which are deployed accross several machines in the same VPN. However, besides the monitoring service, I would like to control my services ...
2
votes
3answers
402 views

Powershell authentication over VLAN

Problem I'd like to enable remote powershell scripting for all workstation hosts on a VLAN. There's no Active Directory or Directory services whatsoever. So HOST A on subnet 192.168.1.x would like ...
10
votes
11answers
2k views

System updates for many servers

We have many servers and still want to update them all. The actual way is that any of the sysadmins go from server to server and make a aptitude update && aptitude upgrade - it's still not ...
4
votes
4answers
587 views

Upgrading multiple Debian servers at once

I'm currently working at a SaaS company, and at the moment we have multiple Debian servers running in our data centre to support our application. In the past, when a security update was released, we ...
5
votes
3answers
5k views

Enabling Powershell Remoting, Access is denied?

I am trying to enable Powershell remoting on a Windows 2008 R2 Server, running in workgroup mode. I ran the command Enable-PSRemoting in the PowerShell Console. PS C:\Windows\system32> ...
3
votes
3answers
676 views

One-To-Many Powershell Scripts

I'm trying to create a script to run as a scheduled task, which will run against multiple servers and retrieve some information. To start with, I populate the list of servers by querying AD for all ...
2
votes
1answer
92 views

Most secure way to issue commands on ubuntu cluster with sudo'ing user?

This is sort of a follow-up question to an unanswered question I have regarding administration of Cloudera cluster, but I figure generalizing the question to all of Ubuntu may help me get an answer. ...
2
votes
2answers
257 views

Program to manage process workflow across machines?

I have an in-house Perl script that is in great need of refactoring. In the interest of not reinventing the wheel, I'm looking to see if an open-source equivalent to it exists, and I'm having trouble ...
7
votes
2answers
1k views

Test for Localhost in Powershell?

I have a powershell script that calls Get-WmiObject with -Credential. However, this errors out if I am running it against the local machine: Get-WmiObject : User credentials cannot be used for local ...
2
votes
1answer
200 views

Implementing Powershell .20 (WinRM Invoke-Item) in the secure Datacenter environment

How do you secure your Windows domain environment while still enabling the Powershell 2.0 remoting capabilities (WinRM invoke-item) ? Because at the moment my company datacenter would like to ...
1
vote
1answer
266 views

Remotely firing off adplus.exe on Win2k3

I've built a nice little widget that lets our Command Center people launch ADPlus.exe to capture crash dumps on failing IIS 6 App Pools. It's doing a bang-up job for us. They capture the forensics ...
5
votes
2answers
2k views

MCollective alternative?

I really want to run MCollective on my fleet of servers however there are a large number of untrusted users on each machine which makes using MCollective not ideal in my eyes. I'm aware that there is ...
2
votes
4answers
675 views

Distributed grep

Is there a solution for a distributed grep? here's the story: I have a bunch of web servers and want to query their application logs (I'm using tomcat, if it matters). I don't want to have to copy ...
1
vote
6answers
931 views

Managing servers over ssh with PermitRootLogin=no

If I can't ssh as root to each of my servers how can I make modifications in an efficient way? I am not allowed to setup ssh keys or open the sudoers file with NOPASSWD. I can't install puppet or ...
1
vote
6answers
189 views

Remotely running a program

I have Windows Server 2008 and more computers in the domain. I need to run a program from the server on all the other computers, for example to install Kaspersky on the target computers. How can I ...
4
votes
3answers
8k views

Why does my PowerShell script hang when called in PSEXEC via a batch (.cmd) file?

I'm trying to remotely execute a PowerShell script using PSEXEC. The PowerShell script is called via a .cmd batch file. The reason we do this is to change the execution policy, run the powershell ...
0
votes
2answers
455 views

Terminating ssh remote command execution on SIGPIPE

ssh remotehost "remote_command" | more This executes remote_command on remotehost, and paginates the output of remote_command. If the user is unwilling to scroll through all the pages, he might ...
1
vote
1answer
2k views

powershell v2 remoting - How do you enable unecrypted traffic

I'm writing a powershell v2 script that I'd like to run against a remote server. When I run it, I get the error : Connecting to remote server failed with the following error message : The ...
1
vote
2answers
141 views

How to get a Windows Server to tell a LINUX server to Run a Script?

How can I get a Windows server to tell a LINUX server to run a script?
29
votes
14answers
13k views

Linux - Running The Same Command on Many Machines at Once

I have about a dozen Linux boxes that I occasionally need to run the same command(s) on. Is there an easier way (or automated way) to do this asides from logging on to each machine and running the ...