1
vote
2answers
67 views

How to automate GPG file decryption over SSH?

I would like to use GnuPG to decrypt short messages that are stored on a remote host (running Linux), i.e.: ssh [<user>@]<host> gpg -d <file-to-decrypt> interact with gpg-agent ...
1
vote
1answer
368 views

Automatically assign elastic IP to ec2 spot instance with user data script

Is it possible to automatically assign an Elastic IP address to a spot instance that has a persistent spot request using the 'Advanced' 'User Data' script box? I'm thinking that I could craft a ...
0
votes
1answer
47 views

Reboot a server and sign into a program

I have a client who is a medical clinic and their main server, running server 2008 r2, has a program that shuttles labs from their lab vendor to their EMR/EHR. I am currently automatically rebooting ...
28
votes
5answers
2k 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 ...
2
votes
2answers
357 views

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 ...
4
votes
1answer
347 views

Run specific script after every Windows Update

Is there a way to run a specific script each time Windows update completes (i.e., after reboot or after an update that doesn't require a reboot)? My application is suffering from MSCOMCTL.OCX ...
0
votes
1answer
86 views

Auto-restart “screen” script not working

I'm looking over a script that would actually be restarting game-servers in case they crash. The game-servers are actually started in a screen session through a control panel. They have to be ...
0
votes
1answer
286 views

What tools can run scripts on multiple windows servers? [closed]

I'm looking for a tool that can schedule a job (shell script, vbs, powershell) on 100+ standalone Windows servers. I know Altiris can do that, but I think it needs an agent on every server. I prefer ...
0
votes
1answer
167 views

Hyper-V and Windows Server with Powershell/Automated?

So my work is looking into Automating Hyper-V Servers for Test Environments, Basically in the end we want to have a sort of Web/Form interface for selecting a server spin up. Right now it's done ...
1
vote
1answer
116 views

Automation Methods - Templates or Scripting

Background We setup very large systems which consist of many different types of servers, switches, and routers. These systems are then shipped out to different locations and are turned on ready to ...
1
vote
1answer
118 views

Generic script to print files of various types in Windows

Is there a command or script in Windows to print a file (various file types such as .doc .xls .txt .pdf) to the default printer? As far as I know one usually has to execute the relevant application ...
-2
votes
1answer
59 views

Automatic Site Creation [closed]

I have created a platform that i want users to sign up and a new site is created for them instantly. Users will register and afterwards they will receive a username and password for their personal ...
2
votes
3answers
130 views

Control scheduled tasks execution

We are a small shop. I am mainly a programmer, but due to being the only one that risks to manage our servers, the task has fallen on me (yet I it is still a secondary function so I cannot give it too ...
1
vote
1answer
1k views

Is it possible to change a Windows hostname (NetBIOS name) using a script?

How can I change the hostname of a Windows server using a script? Doing this on a Linux server is very straightforward (change a couple file entries, and run the hostname command), but I don't know ...
1
vote
0answers
67 views

Adding a user to BES via Script?

I am looking for a way to add users to BES using a script to help automate new user creation process. Is this possible with using any of the resource kits from BlackBerry, or other methods than using ...
2
votes
3answers
7k views

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 ...
0
votes
2answers
255 views

How to write robust automation scripts for large scale data management?

I have been needing to automate the moving of quite large amounts of data (possibly around 1TB/day+ in average. 60TB so far, and counting) to a separate, remote storage system. I have so far been ...
2
votes
1answer
409 views

What to put in startup / login / logoff scripts?

I certainly hope this question is deemed acceptable, and doesn't violate the Chatty, open-ended questions diminish the usefulness of our site and push other questions off the front page. portion of ...
0
votes
2answers
117 views

Windows Service Based Software to Run Script Everytime a file arrives

Does anyone know of a tool were that is service based which I would be able to run a script every time a file arrives in a directory? I would write the script all I want is the tool to be a service ...
1
vote
2answers
1k views

How can I script an HKCU setting for a handful of users on a specific server who don't have profiles?

Here's what I would do manually: Log onto a server with Account1 to create its Windows profile. Start Internet Explorer. Click Tools > Internet Options > Advanced > Uncheck "Check for publisher's ...
5
votes
4answers
6k 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 ...
0
votes
3answers
75 views

Running a cronjob

've been puzzling over cronjobs for the last few hours. I've read documentation and examples. I understand the basics and concepts, but haven't gotten anything to work. So I would appreciate some ...
1
vote
2answers
1k views

Can I automatically create a passworded user with pw adduser on freebsd?

Can I automatically create a passworded user with pw adduser on freebsd? pw useradd [name] [switches] -V etcdir alternate /etc location -C config configuration file ...
0
votes
3answers
524 views

execute script when a hardware is plugged in

How can I tell my Ubuntu installation to execute some scripts when I connect a specific hardware? For example: I have an external eSATA disk. When this (and only this) disk is plugged in, my notebook ...
2
votes
3answers
2k views

How to load Scripts into Cisco Routers

I would like to load scripts automatically based on certain triggers/conditions into cisco routers. Can anyone provide me a link or tell me how to do it? what does the scripts does? 1. Once the user ...
2
votes
1answer
129 views

I was just curious how far system admins go in setting up the workflows for the developers

Question: I am looking for links or personal accounts of lessons & experiences on setting up sets of servers\systems for developers. In particular I am interested in the amount of automation and ...
2
votes
1answer
66 views

Is it possible to tell what machines I'm logged in to (but disconnected from)?

I infrequently work on about 20 Windows servers via remote desktop. There are times when it'd be really convenient to know if and where I have disconnected sessions open. Is there a powershell script ...
2
votes
1answer
851 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, ...
4
votes
2answers
434 views

Scripted forwarding for Outlook 2003

We have a staff member in sales who has gone onto a 4 day week (getting ready for retirement), so each Thursday afternoon her email needs to be forwarded to another user and each Friday afternoon it ...
1
vote
3answers
205 views

How Do I Automatically Update My Database Nightly

Currently, every day before I start work, I complete the following procedure: ssh to the production server gzip our daily database dump file scp the gzipped dump file over to my computer gunzip the ...
4
votes
3answers
586 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 ...
3
votes
6answers
171 views

Replace Whole Site by FTP

I've got a set of tools which periodically (about once a day) generate a complete set of static HTML pages for a site with associated folder structure etc. I then need to put those file onto the ...
3
votes
5answers
3k 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 ...
4
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 ...
3
votes
8answers
591 views

Portable scripting language for a multi-server admin?

Please Note: Portable as in portableapps.com, not the traditional definition. Originally posted on stackoverflow.com, asking here at another user's suggestion. I'm a DBA and sysadmin, mostly for ...
4
votes
12answers
8k 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 ...
0
votes
2answers
459 views

Post-startup & Pre-Login shutdown

Is there a way [using a batch file] that I can set a system to shutdown PRE-login but POST-startup? I've tried a scheduled task to run this batch file with the "/SC ONSTART" flag .. That didn't work. ...
0
votes
3answers
227 views

Basic Automation

I'm a newbie server administrator having recently purchased an account from Slicehost.com and using it to host a few personal sites, so I can learn more (I'm primarily a web developer). Years ago I ...
3
votes
8answers
499 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 ...
3
votes
7answers
1k 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 ...
0
votes
2answers
282 views

Script that can generate a listing of recently modified files

Is there a script (PHP?) that I can install (via FTP) and run that will give me a listing of the files that are modified AFTER a particular date on the entire domain?