Questions tagged [automation]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
48 views

How do I install an app from Windows Store using Powershell

I know if I have .appx package file, I can install it via powershell with the Add-AppxPackage cmdlet. However, I simply want to download & install Microsoft Store packages by name. I don't want ...
0
votes
0answers
38 views

Powershell script for automating performance center test execution and fetching result post execution

I want to achieve the below using either Powershell scripting(preferred) or javascript(Cannot install node.js to install any npm package) Execute test from Performance center Post run fetch the ...
0
votes
0answers
23 views

scripting download of teradata files

I'm trying to automate the build of a server and am having troubles scripting out the download of the teradata tools and utilities for linux from this site https://downloads.teradata.com/download/...
0
votes
0answers
12 views

Start/Stop An Azure SQL Data Warehouse

I'm trying to connect the AzureRmAccount to start/stop the Azure DWH. I tried in PowerShell Runbook with following command. 1. method 1 $Connection = Get-AutomationConnection -Name "...
0
votes
0answers
10 views

What is the URL to be used to enable Auto-Sync with Repos(Git) in Azure Automation Account

I'm trying to enable Auto-Sync with Azure Repos for my Azure Automation runbooks. I'm not sure what URL should I use in while enable Service Hook in my Azure DevOps project. If I'm using a runbook ...
0
votes
0answers
13 views

How can I run a script triggered by a file written to a specific directory?

I have written a c program that receives a parameter from stdin in the form. The tool is compiled using gcc and I have relocated the binary to a location in my home directory, and modified the PATH ...
1
vote
1answer
33 views

Trust gpg key via script

When performing an automated server deployment, I can upload and import gpg keys via script. But I cannot trust keys. I tried gpg --batch --yes --edit-key keyname trust 5 and echo 5 | gpg --batch -...
0
votes
0answers
11 views

SimpleDNS Plus command line for updating DKIM TXT records

Is anyone using SimpleDNS Plus command lines to update their DNS records? (Is it at all possible?) I would like to automate the DKIM record keeping; coding a batch file that would: update ...
0
votes
0answers
51 views

Best Practice to Apply Windows Updates to the Web Servers Behind a Load Balancer?

I have started managing 4 Windows 2012 R2 web servers which are behind a Citrix NetScaler Load Balancer. These servers have IIS and we use app_offline scheduled tasks to take the web application ...
0
votes
1answer
36 views

Execute a script while boot up in RHEL7, not working

I have created below script in RHEL 7.6, but unfortunately getting EXEC format error. When i execute the command from working directory it's working fine. below is the service file which was created ...
0
votes
0answers
11 views

How to exclude particular directory in Urban code Deploy with “Replace Token” function

I am using Urban Code Deploy to deploy the binaries and changing environment[DEV|UAT|PROD] specific variable using "Replace Token" functionality.In my include section "**/*" is found by default. This ...
0
votes
0answers
118 views

How to run selenium web test cases in aws codepipeline

How to run selenium web test cases in aws codepipeline, my current setup is like, we have an ECS cluster in AWS, we have automated the code movement to docker containers with AWS Codebuild,...
0
votes
1answer
46 views

How to use ansible to assign multiple existing users to a new group

I created a new group in OS. Now I want to assign 5 or more existing users to that group using ansible. I believe I could do this for single user. --- - name: add user to a group become: 'yes' ...
0
votes
0answers
36 views

What is the simplest way to run half a dozen short lived docker containers all of which do the same thing?

I must update firmware on a bunch of servers, six servers at a time. If all goes well, we may end up doing 30 or 50 at a time. The firmware updater (Intel sdptool) sends commands and binary firmware ...
1
vote
0answers
28 views

What is the best way to stream 24/7 content from a server, which can be exported as an m3u file?

I have 24 Lectures for my students, and I teach online to many people. I am trying to setup a server with IPTV software, so they can view the lectures going 24/7 and have VOD for other content related ...
0
votes
0answers
27 views

How can I delete photos which have been backed up to Google Photos?

On Android, this is easy as the Google Photos app gives the option to delete photos which have been uploaded to the cloud. However, this does not appear to be an option on the Desktop Version of ...
0
votes
0answers
49 views

Azure- Adding user to group

We have a azure lab portal for our users in which new azure user gets created whenever a user logs into the lab portal. We are able to create new users using : echo $ssh->exec('az ad user create --...
0
votes
1answer
27 views

Edit screensaver location in GPO with script

Unfortunately our company still changes its screensaver every 15 days. Someone from HR makes the new screensaver, drops it on a share and we IT copy it to SYSVOL and change the path to the new ...
0
votes
0answers
17 views

How would you deploy a static website to the server via a webhook call?

I finished my blog with gridsome. It's like gatsby, generating static sites. I tested it manually on my server, by moving the compiled files to the server via FTP. Everything works fine, I just ...
0
votes
0answers
37 views

CloudwatchEventRule Target run commands on instances in different regions?

Amazon Web Services CloudWatch Event Rules allow you to respond to an autoscaling event by initiating an Amazon SSM Run-Command against an instance by instance-id or tag:Type. This is a good mechanism ...
1
vote
0answers
22 views

Child application doesn't start when run from windows scheduled task

I'm trying to schedule an automation script. The 1. .bat file starts monitor script (python) 2. monitor script (python) does network request for jobs from other system 3. if job, monitor script (...
-1
votes
1answer
33 views

How can I automatically re-run a command after it's finished?

I have a server that I set up to process a lot of data stored on a database, and I had intended for it to run automatically. Because the data is quite varied and goes back many years the time it takes ...
0
votes
0answers
32 views

IIS6 Adding Rewrite URL for globalRule X-FORWARDED-PROTO

Basically I need to find out how to put this into an appcmd command(s) <rewrite> <globalRules> <rule name="X-FORWADED-PROTO"> <match ...
1
vote
2answers
85 views

how to attach snapshot policy by label to all the vms in my project?

I have created the snapshot schedule policy with label daily,weekly,hourly.But I want an automate way so whenever i create the vm label based policy should be assigned to vm. or automatically attach ...
0
votes
2answers
34 views

Bash run a program and repeatedly pass it data

I need to write a bash script to run a program and then every 5 seconds pass data to this program. The program accepts command line input and then will return some data. I currently have ./a & ...
2
votes
2answers
240 views

How to detect timeouts in an expect script

Consider an expect script that spawns a command and waits for a sequence of events. We use this to test software. I'm trying to always get a failure return value from the script when there is a ...
0
votes
0answers
12 views

How do continuous deplyment services handle running processes / tasks

Am trying to plan out continuous deployment for my rest api's and would like to know if anyone has an understanding of the following scenario; API Server is handling a request and performs the ...
0
votes
1answer
2k views

Unsupported parameters for the copy module in Ansible

I am trying to copy couple of files from my local to remote server and getting this error: "ansible_loop_var": "item", "changed": false, "checksum": "...
0
votes
0answers
113 views

Fails to set_fact variable from Ansible Getent module via a vars_prompt input key value

Playbook that asks the user for input using the vars_prompt. The input is a variable passed to the getent group database as the key (e.g. wheel). It runs the getent task to collect the values and ...
0
votes
1answer
185 views

random_pet in Terraform: Error: Cycle:

I am trying to generate random hostnames for a couple of servers. However when running terraform apply I get an error message "Error: Cycle: random_pet.swm01_managers, hcloud_server.swm01_managers" ...
1
vote
3answers
129 views

How to run a shell script on a server farm periodically

I have a requirement to collect custom metrics (a shell script) from a logical server cluster every five minutes. This server cluster consists of 10 virtual machines. Once option i am familiar with is ...
1
vote
1answer
24 views

Configuration management nodes in azure

Viewing the pricing information for Azure automation under Configuration management is lists nodes? What are these? In partciualr Non-Azure nodes I can't work it out from the context https://azure....
0
votes
0answers
84 views

Incremental variable in ansible azure

Any ideas on how to make the variable increment every time I play my playbook so I can reuse my playbook for multiple projects? For example, I want my resource group name to be called "rg1". The next ...
0
votes
0answers
33 views

How to get status of a RAID volume on AMD (A55) RAID controller in Windows?

We have a PC used as a Windows server. There's a RAID 1 volume set up using built-in controller (AMD A55 chipset). How can we get volume status data (to use with zabbix)? My research found rcadm ...
1
vote
0answers
295 views

Using Chef for setting Windows Active Directory GPO policies on domain controller

I am looking to use Chef to automate the setting of active directory controlled group policy settings (typically on the primary PDC per forest). I cant find any specific AD GPO functions, on the ...
2
votes
1answer
2k views

How to access the Ansible getent module values & put into variable?

I'm attempting to develop an Ansible playbook that uses the getent module to help manage various user accounts. I would like to be able to access the various values like UID, GID, password, etc. (...
1
vote
2answers
62 views

How can I bulk update CloudFormation stacks while keeping the parameters unchanged?

Let's say I have a number of CloudFormation stacks created from the same template. After making changes to the template, I want all stacks to be updated to the new version of the template. I have ...
0
votes
1answer
696 views

Azure Update Management for Windows VMs - Agent Not Configured

I am trying to manage Windows updates via Azure Update Management. I have successfully (or at least that is what the wizard told me) onboarded my VMs. From the Update Management section on the VMs you ...
1
vote
1answer
641 views

Unsupported parameters for (expect) module error Ansible?

I am writing a playbook for automating anaconda installation . I am using Ansible expect module to answer the installation prompts. Here is my code. --- - hosts: all become: yes ...
1
vote
2answers
48 views

How to automate local Outlook to Exchange migration of 40 users

I am currently dealing with a site which has about 40 users, each with his/her own local Outlook setup on their PCs (currently connecting via POP/IMAP to the mail server). They have asked me to ...
0
votes
1answer
248 views

Azure - automating events based on new blob storage file triggers

I'm looking into automating some stuff in Azure and wanted to ask for tips. The invironment: a VM that creates some local db backups, then sends them via azcopy to Blob Storage. The goal: each time ...
0
votes
1answer
260 views

Azure Automation watcher task pass data to action task

I have configured a watcher task to monitor a group in AD. If a new user is found, select the samaccountname and convert to JSON, then send to the action task using Invoke-AutomationWatcherAction -...
0
votes
0answers
320 views

Attach security groups to multiple EC2 instances

Is it possible to attach a new security group to all the EC2 instances in a specific region and keeping the old ones in place?
0
votes
1answer
133 views

SCOM maintenance mode trigger based on PowerShell script on client

Appreciate any suggestions with this, I am looking to make a scom configuration in such a way that it monitors for a PowerShell script deployed onto a server and puts that server to maintenance mode ...
0
votes
1answer
42 views

Ansible Digital Ocean APIv2 multidroplet deployment conceptual misunderstanding

I am having some conceptual trouble getting Ansible to work with the Digital Ocean APIv2 to deploy multiple droplets. Normally I would define a list of hosts in the Ansible hosts file and that's how ...
9
votes
4answers
4k views

Execute command when a file changes

I have a scenario where I am uploading .csv files to a specific folder, /tmp/data_upload, every day, and the old files are replaced by the new one. I need to run a Python script once the data is ...
0
votes
1answer
1k views

How do I use Get-PhysicalExtent on Get-PhysicalDisk?

No matter which server I try the PowerShell docs for Get-PhysicalExtent on, nothing works. I've documented this as a bug on GitHub: https://github.com/MicrosoftDocs/windows-powershell-docs/issues/514 ...
2
votes
1answer
133 views

Totally automating Apache on whatever distro

The problem I'm having seems to be true to all distors but let's assume I use an all-default debian-stable (server), and ran apt update -y. Installing, upgrading, restarting as well as enabling or ...
0
votes
1answer
129 views

Haproxy healthcheck and backend section generation

I have a lot of sites and I want to do a http healthcheck for each one. Does it mean that I need to make a backend section for each site? If so, I need to generate it somehow. Can I achieve it with ...
0
votes
1answer
650 views

lineinfile module creating a file if it doesn't exist even I use “create=no”

--- - hosts: testhost become: yes tasks: - name: change user profile copy: src=/tmp/profile dest=/home/test/.bash_profile force=no owner=test group=test - name: update bashrc ...

1
2 3 4 5
12