the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"

learn more… | top users | synonyms

147
votes
7answers
344k views

How to automate SSH login with password?

How to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration. ex) echo password | ssh ...
30
votes
6answers
6k views

Automatically Configure New Computers

My company is in the process of upgrading all of our users from old Windows XP computers to newer quad-core Win7 computers. This is a good thing - it's long overdue that we upgrade our workstations - ...
30
votes
5answers
3k views

How can a Linux Administrator improve their shell scripting and automation skills?

In my organization, I work with a group of NOC staff, budding junior engineers and a handful of senior engineers; all with a focus on Linux. One interesting step in the way the company grows talent is ...
27
votes
2answers
10k views

Automate the installation of postfix on Ubuntu

My system configuration script does an "apt-get install -y postfix". Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix ...
26
votes
7answers
4k views

Automating server deployment

I find i am constantly settings up pretty much nearly identical servers and VPSs for a number of my clients and it can be very time consuming. Often the only thing that changes between each deployment ...
21
votes
5answers
23k views

Ssh, run a command on login, and then Stay Logged In?

I tried this with expect, but it didn't work: it closed the connection at the end. Can we run a script via ssh which will log into remote machines, run a command, and not disconnect? So ssh in a ...
17
votes
6answers
21k views

Cygwin SSHd Autoblock Failed Logins

I'm running Cygwin with an SSH deamon on a Windows Server 2008 machine. I was looking at the Event Viewer and noticed as much as 5 to 6 failed login attempts per second (brute force) for the last week ...
16
votes
8answers
7k views

Method to integrate Powershell scripts with non-Windows workflow?

I love the smell of new machines in the morning. I'm automating a machine creation workflow that involves several separate systems across my infrastructure, some of which involve 15 year old perl ...
14
votes
4answers
14k views

Alter charset and collation in all columns in all tables in MySQL

I need to execute these statements in all tables for all columns. alter table table_name charset=utf8; alter table table_name alter column column_name charset=utf8; Is it possible to automate this ...
14
votes
8answers
21k views

How to set ulimits for a service starting at boot?

I need, for mysql to use large-pages, to set a ulimit - I've done this in limits.conf. However, limits.conf (pam_limits.so), doesn't get read in for init, only for "real" shells. I solved this before ...
12
votes
1answer
15k views

How do I run my PowerShell scripts in parallel without using Jobs?

If I have a script that I need to run against multiple computers, or with multiple different arguments, how can I execute it in parallel, without having to incur the overhead of spawning a new PSJob ...
10
votes
1answer
7k views

How can I prepend to PATH while running Ansible's pip module?

I'm attempting to install psycopg2 into a Python virtualenv with Ansible's pip module, but I need to prepend an entry to PATH for it to build correctly (it needs to know the path to the directory ...
9
votes
3answers
8k views

Remotely renaming a domained Win 7 computer

I'm having a hard time figuring out how to rename a Windows 7 computer remotely. This is for automating Win 7 builds in a vSphere 5 environment, and I'm trying to get it as hands-off as I can. So far ...
8
votes
5answers
3k views

How to automate slipstream?

Since years I use slipstreamed Windows installations. This works very well, but preparing them is tedious : 1 - install a Windows with the last slipstreamed version we have (automated install) 2 - ...
8
votes
5answers
9k views

How do I install a yum package group with puppet?

Does puppet have a way to install a yum package group (e.g. 'Development Tools'), besides exec?
8
votes
1answer
568 views

FreeBSD `freebsd-update` automation?

freebsd-update command prints updating entries after it downloaded. But it shows them with more. So I have to press some spaces to continue. Is there a way to avoid this behavior? I want to execute ...
8
votes
3answers
4k views

Deploy our own software using Puppet?

(Apologies in advance for the stupidity in this question. I'm normally a programmer, not a sysadmin, but I've taken it upon myself to automate some things, and clean up some other things which are ...
8
votes
3answers
2k views

Automatic rollout of VLAN (and other) configs to Procurve switches

I've got a pile of switches connecting everything together at our DC, 50 racks or so worth of kit. It's starting to be a problem to login to every single one of them to make configuration changes -- ...
8
votes
4answers
752 views

Configuration management: Cross-machine dependencies

I've used tools like puppet to manage individual systems, with generally a high level of success. Where puppet falls down is that it isn't good at managing dependencies outside of an individual ...
7
votes
5answers
4k views

Send message to IRC channel from bash

I have installed ircd-hybrid on my Ubuntu Server (192.168.1.2, example.com). We use #teamchannel to communicate inside the team. The question is: how can I send some short message from example.com to ...
7
votes
7answers
3k views

How can I automate clearing and resetting a Linux user's home directory to a default?

I'm helping to teach two Unix courses next week. Users will be granted an account on a RHEL 5 machine, during which time they'll add files to their /home folder, update their .bashrc and other ...
7
votes
3answers
26k views

Adding a user to the local Administrator group using powershell

I would like to use PowerShell to add a specific user to the local administrator group on a machine. I would be running the PowerShell script in the context of a user that has Administration rights ...
7
votes
2answers
801 views

How to change assigned letter for Ephemeral drives automatically?

I have an AWS Windows box (Windows 2008 R2) with the following disks: C:\ 60 Gb (EBS) D:\ 200 Gb (EBS) Y:\ 40 Gb (Ephemeral SSD) Z:\ 40 Gb (Ephemeral SSD) Every time it boots I change ephemeral ...
7
votes
2answers
940 views

How to set only specific nginx server block into maintenance mode programmatically

I am looking for a solution to automate one of our application's deployment process. In the beginning of deployment, I would like to programmatically set the specified server into maintenance mode and ...
7
votes
3answers
436 views

Creating a script to install a Perl application and its dependencies automatically

I have a Perl application that needs a lot of dependencies that i need to deploy on numerous servers I would like to make a script that installs that Perl application automatically and quickly. To ...
6
votes
3answers
564 views

Is it possible to create a generalized configuration file for installing Windows features using PowerShell?

I'm currently trying to automate the build of a VM running Windows Server 2012 R2. At the moment the challenge is automating the addition of roles and features. Within the roles and features wizard ...
6
votes
4answers
8k views

Perl or Python, better suited for Unix system automation?

I have been using bash for most of my system administration tasks. I also know a bit of perl. Should I learn Python or Perl is better for system automation. So far from my experience learning perl ...
6
votes
3answers
371 views

too many crons - too many machines !

I have the following problem: too many machines. some groups of machines share the same cron configuration, some not. sometimes, I need to add a crontab entry manually in hundreds of machines. I'm ...
6
votes
5answers
5k views

Secure method of changing a user's password via Python script/non-interactively

Questions Is there a more secure/better way for setting a user's password non-interactively via a Python script? My current solution uses chpasswd from a Fabric script. Another option would be to ...
6
votes
3answers
217 views

Protocol choice for Machine-to-Machine communication - level:n00b

I am building a monitoring system for an irrigation pump and the connected pipeline. So far I have completed the sensor network. Everything connects to a micro-controller board (actually 4 Teensy 3.0 ...
6
votes
2answers
216 views

Software for automating Windows GUI applications [closed]

I am looking for software that will allow me to automate some GUI tasks, including clicking on buttons and sending keystrokes to a GUI application running in the foreground. Are there any ...
6
votes
2answers
2k views

How to copy many Scheduled Tasks between Windows Server 2008 machines?

I have several standalone Win2008 (R1+R2) servers (no domain) and each of them has dozens of scheduled tasks. Each time we set up a new server, all these tasks have to be created on it. The tasks are ...
6
votes
1answer
1k views

How can I modify an existing scheduled task using Powershell?

I am working on some release automation scripts that use Powershell to update existing scheduled tasks which execute various applications. In my script, I can set the Path and Working Directory of the ...
5
votes
2answers
2k views

How To Shutdown Ubuntu Automatically X Minutes After Starting Up?

How would one automatically shutdown an ubuntu OS 30 minutes after it was turned on? Or 15 minutes after it was turned on? Etc? I tried creating an init.d script like so: shutdown -h +5 But my box ...
5
votes
5answers
9k views

How can I disable a scheduled task using Powershell?

I have a web application that runs on Windows Server 2008 R2, which has a large number of scheduled tasks which take care of all the backend stuff. When I do a software deployment which touches the ...
5
votes
1answer
3k views

Shared files/templates between cookbooks

We have multiple cookbooks which reference the same files and templates and were wondering if there is a reasonable way to ensure all of these are the same file to ensure that none go out of date. Is ...
5
votes
2answers
373 views

Post-install steps for a new Linux instance, and how to automate them

What post-install steps do you find yourself taking every time you install a new Linux server or VM ? I'm interested in things that could apply regardless of what use the server is to be put to, ...
5
votes
7answers
2k views

Automating Administration Tasks on Windows

What tools do you use and recommend for automating administration tasks for Windows-based computers? Examples of such tasks include: Installing/upgrading software Standarizing application settings ...
5
votes
1answer
16k views

What does /v/qn parameter do for windows silent installers?

This page says to do a silent install you pass in the parameters /s /v/qn. It mentions what /s does - silent install - but not what /v/qn does. So what does it do? Why the weird format? (on one ...
5
votes
2answers
3k views

Ubuntu Kickstart installation using LVM waits for input

I have a PXE Boot Setup for installing CentOS 5 and Ubuntu 10.04 via Kickstart. I use LVM and installing CentOS without any user interaction works but Ubuntu always asks to "confirm to write changes ...
5
votes
2answers
128 views

Windows Update for numerous powered-down Virtual Machines [closed]

Before I dive into the question asking, let me give some background on the question. I have a VM project I am working on. Sales reps at my company need to have VMs of different configurations to demo ...
5
votes
2answers
3k 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 ...
5
votes
3answers
247 views

How automatically download current versions of popular software? (like Acrobat, Firefox, Opera)

I'd like to provide LAN users access to set of useful and popular applications (like Acrobat, Firefox, Foobar, putty) but there is one problem - such software is released every few weeks or even ...
5
votes
2answers
5k views

Why can't “knife data bag from file” find existing json file on chef server?

Summary: I'm running into a problem with "knife data bag from file", where knife doesn't recognize the .json data bag file pulled down from a remote git repo. Background: I'm currently trying to ...
5
votes
3answers
614 views

Moving to an outside Exchange provider - How to create new Outlook profile on multiple PCs?

Following an acquisition we are switching from our local Exchange to an outside provider. I need to change account settings / create new profile so that users are able to access their new mailbox, and ...
5
votes
3answers
186 views

cron task problem

I have a cron task as 6,36 * * * * python /usr/local/news.py >> /var/log/newlog it is supposed to run at every 6th and 36th minute of each hour. But for some how the system runs this task 4 ...
5
votes
3answers
707 views

git clone - fail instead of prompting for credentials

When cloning git repositories in automated tools - web front ends, CI systems, sometimes the git clone invocation opens up a prompt asking for the username and password (for example, when cloning a ...
5
votes
0answers
309 views

Puppet Error: undefined method 'captures'

I posted this question on the networkengineering SE site, but it was determined to be off topic.... blah. I'm toying with the idea of using puppet for core network device configuration to increase ...
4
votes
12answers
13k views

Cisco Guy looking for best language to automate tasks and pull info from routers & switches [closed]

I am a cisco engineer and am wanting to learn ways to automate tasks for router and switches and pull info, etc... I am unix/linux challenged. So I deal with windows. Perl or Ruby keep coming up ...
4
votes
8answers
625 views

What have you used Makefiles for (besides build automation)

Makefiles are great for automating builds, installs and tests. But, that is not the end of Make. I have used makefiles to do many tasks like cleaning up logs, keeping mirrored web pages and ...