Questions tagged [automation]

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

Automation is a wide-ranging term, covering topics from cron to "push-button provisioning and deployment" or system and application stacks. The ultimate goal of some automation projects is the so-called "Zero-Latency Data Center", while for others it may just be sending alerts based on certain events. More information can be found here.

638 questions
4
votes
4 answers

Add extra module to ansible

I have installed ansible to make automation deploy my system and i need some extra module to work with it. I downloaded module yumrepo.py on ansible github and add it to my library directory. But when i run, it show error ERROR: yumrepo is not a…
Ha Phuoc
  • 53
  • 2
  • 5
4
votes
5 answers

Use Script To Edit Local Group Policy Windows Server 2012

I'm hardening a Windows Server 2012 R2 machine for serving secure web pages and following a guide that lays out multiple Local Group Policy Settings and Registry Settings. When researching how to automate this process I only find ways to export and…
4
votes
1 answer

Procurve script/automation

This may be a stupid question, but I'm normally not a network admin, but circumstances have me there. I'm trying to disable down ports on a switch, but have a boatload of them, I'd like to configure them as disabled, and with the guest vlan(in case…
Steve Butler
  • 1,016
  • 9
  • 19
4
votes
3 answers

Configuring Pfsense via ssh

I want to know how i can completely configure and add add tables to pfsense via ssh. my goal is to have a web installer that configured multiple system and based on the output it will configure the pfsense firewall. via the ssh, configure wan, lan…
Royce
  • 43
  • 1
  • 1
  • 4
4
votes
1 answer

Automate Byobu window creation

I use Byobu on a Vagrant dev machine to run multiple things in one screen and to be able to suspend/restore the machine and continue where I left off the other day. There are times when I have to recreate the machine and setting up 8+ Byobu windows…
Ikon
  • 145
  • 1
  • 7
4
votes
2 answers

How can I run a delegated task for an offline host using Ansible?

I have Ansible tasks for enabling and disabling Nagios checking for some hosts. They use "delegate_to" the Nagios server. However, I can't use them when the host in question is offline, because Ansible tries to SSH in and marks the task failed when…
Joshua Swink
  • 162
  • 1
  • 8
4
votes
8 answers

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 current date as file name?) under the same folder…
Hellnar
4
votes
1 answer

sniff mobile traffic data

I'm now preparing an automation testing lab for our mobile department consisting of mainly android devices. For first phase i need HTTP device sniffing, i can't do it on the device as they are not all rooted and it's not all devices are 4.0 and…
codeScriber
  • 157
  • 4
4
votes
2 answers

Add time stamp to script log entries

Currently I have my bash script using exec 22>&2 21>&1 1>$log 2>&1 to write stderr and stdout to a log file. I would like to add a time stamp for each entry, but I haven't found an easy way to do that. Ideally it would be a simple change to the…
Ironlenny
  • 203
  • 1
  • 3
  • 8
4
votes
1 answer

How to handle many daily emails from cron efficiently?

With each new server comes at least one more daily crontab email. The FreeBSD servers even send two: a daily and a security run output. Thanks to my obsession with virtualisation the number of emails I need to read (and then often discard without…
drumfire
  • 1,699
  • 3
  • 14
  • 21
4
votes
9 answers

Is there a way to SSH / SCP to another server as a different user, via a script?

I need to automate a way to distribute files to many servers. The problem of course is I need to use a secure protocol (SSH or SCP) and the username / password on each server is different. The scenario is we have a master server a, with user a_prod…
Kevin K
  • 833
  • 1
  • 6
  • 8
4
votes
2 answers

How to detect APC UPS battery usage and run a script when on battery

I have a couple APC UPS - Smart-UPS RT 6000 RM XL Smart-UPS RT 5000 RM XL Unfortunately the power in my office likes to go out (out of my control) and hence the equipment powered by these UPS shuts down. They power a VMware infrastructure…
Andy Arismendi
  • 1,188
  • 5
  • 16
  • 27
4
votes
1 answer

Modifying the number of VCPUs in a VMware VM

In ESXi, what is the automation/script (I expect it would be using PowerCLI somehow) approach to modify the number of VCPUs in a VM? In context, when using our kickstarts, RHEL won't install the SMP kernel unless there is more than one CPU on the…
warren
  • 18,369
  • 23
  • 84
  • 135
4
votes
2 answers

Execute a command when a device is connected via USB

I currently have a system that backs up my Linux server onto a USB storage device on /media/usb. This all works correctly. However, I actually have 2 drives which we try to swap on a daily basis. Is there anyway of logging when a USB device was…
Schodemeiss
  • 230
  • 1
  • 2
  • 7
4
votes
3 answers

How to automate DNS server reconfiguration for TCP/IPv4 and TCP/IPv6 in Windows 7?

I need to switch Internet Protocol Version 4 (TCP/IPv4) and Internet Protocol Version 6 (TCP/IPv6) settings for DNS server configuration from "Obtain DNS server address automatically" to hard coded values (for Google's DNS servers) and back. It's…
Alek Davis
  • 153
  • 1
  • 1
  • 7