Questions tagged [automation]
the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"
32
questions
20
votes
7
answers
38k
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 ...
750
votes
8
answers
2.4m
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 id@...
32
votes
6
answers
8k
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 - ...
33
votes
4
answers
62k
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 ...
84
votes
4
answers
46k
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 to ...
8
votes
5
answers
4k
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 - ...
5
votes
2
answers
6k
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 ...
4
votes
8
answers
4k
views
debian mysql auto daily backuping
I need to backup my Mysql database daily under a Debian server. I know there are plenty of scripts out there but my need is backing up daily as a sql file and putting each backup seperately(maybe the ...
3
votes
4
answers
1k
views
How do you handle updates on a server?
I have around 25 virtual machines running on Xen. I don't really feel like going through 25 VMs and running apt-get update && apt-get upgrade. I would much rather have it do that for me and in ...
2
votes
2
answers
18k
views
Automated extraction of email attachment on Exchange Server
An Exchange email account was created through which I will receive daily emails with three different Excel attachments.
Each Excel attachment has to be saved in one of three different folders.
Can ...
2
votes
1
answer
2k
views
Persistent Network Configuration using KVM and libvirt
Our environment will have a KVM host setup dynamically using kickstart (easy enough).
The hard part is dealing with network configuration and keeping VLAN configuration (and possibly bridge/host ...
38
votes
7
answers
53k
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 ...
27
votes
7
answers
5k
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 ...
22
votes
6
answers
43k
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 ...
19
votes
6
answers
97k
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 ...
18
votes
9
answers
44k
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
2
answers
11k
views
Limit SSH key to SCP only
Problem:
I don't have root access to the server (i.e, I can't/don't want to change any system-wide server configuration), and I want to use scp with an alternative Identity File (e.g, .ssh/...
8
votes
4
answers
17k
views
How to do mysql_secure_installation via ansible playbook?
I managed to install Apache Mysql/Mariadb and PHP using playbook. How can I do mysql_secure_installation using ansible?
I am a beginner in Ansible. I want to set a new password to MySQL server and ...
7
votes
2
answers
3k
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 ...
6
votes
2
answers
3k
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 ...
6
votes
5
answers
390
views
How do you optimize new user setup?
What's your top trick for getting a new employee set up quickly? Do you use images, scripts, something else?
5
votes
2
answers
3k
views
Keeping user's filesystem persistent across AWS EC2 spot instances
I noticed that, after a new Amazon AWS EC2 spot instance is auto-launched (I have that option turned on), the state of filesystem is not current (represent the last state before previous spot instance ...
5
votes
3
answers
5k
views
Unattended installations of Mac OS X
Is there a way to setup a networked automated OS deployment for Mac OS X?
Admins wanting to deploy RedHat can deploy over the network using Kickstart (with the install media on a shared network ...
5
votes
8
answers
5k
views
Debian preseed.cfg - Language not set
I'm trying to write a preseed.cfg which should be used for a full automated installation of Debian wheezy. For some reasons the installer is still asking to select a lanugage even if I set this in my ...
3
votes
1
answer
8k
views
Consistent Install Disk Selection in RHEL Kickstart
In my kickstart installation I specify that the operating system should be installed on /dev/sda.
We have some Dell machines in our environment with iDRAC. When virtual media is attached in iDRAC, it ...
2
votes
1
answer
2k
views
Script to do Windows Update on windows server 2003
Is there any batch script or command line command that can do Windows Update automatically on multiple remote servers (maybe via psexec)? Not prefer using a VB script, but if there's one available, ...
2
votes
1
answer
3k
views
Disable Network connection in Windows PE
I am generating a WindowsPE boot stick with the Microsoft Automation Installation Kit 10 (host is Windows 10) for a amd64 target platform.
Because i dont need network connections from within the ...
1
vote
3
answers
2k
views
Bot? check if a domain name is availible?
I am trying to get a 3 letter domain with .net or .org and it seems like EVERY combination is taken. Is there a way i can get a list of domains available? perhaps with a bot? (i'll write it if i need ...
1
vote
6
answers
13k
views
Azure : Script to start or shut down multiple VMs
Is it possible to write and save some kind of script that launches azure powershell, then authenticate azure subscription then start/shutdown multiple VMs in one step?
I have 5 VMs that I use ...
1
vote
2
answers
8k
views
Root crontab not executing script
I have a script listed in my roots crontab
07 9 * * * /opt/HLRSDATA_2010_OCT/HLRS_Scheduler_sp.sh > /opt/HLRSDATA_2010_OCT/logs/HLRTKJob.log
This script contains the following
#!/bin/bash
echo ...
-1
votes
1
answer
364
views
How to install WordPress without using the /wp-admin/install.php script?
I am trying to create a system that will install WordPress without any browser interaction like-
I will create a database
I will upload/create WordPress required database tables manually
(I have ...
-2
votes
1
answer
71
views
How to change IP address of azure NIC, as soon as azure load-balancer's health probe detect instance unhealthy?
I have two machines in backendpool of azure LB,
I would like to update network interface usign rest api as soon as health probe detects vm is unhealthy.
is there any way to to recoginse that event ...