A form of computer programming that — in the context of system administration — lends it self well to automating tasks.

learn more… | top users | synonyms (2)

3
votes
2answers
1k views

Remove all recurring meetings scheduled by terminated user

I am looking for a way to efficiently and effectively remove all meetings that a terminated user may have created during their tenure. Currently, our group has to grant admin access to the user's ...
0
votes
0answers
51 views

Get unused Nagios both services and commands

I have a monitoring server, based on Nagios 3.2.3, installed via source code, and using GroundWork Monitor Architect for managing Nagios configurations. My question is if possible (and how to) get a ...
0
votes
0answers
642 views

samba4 add user script not working

I installed Samba 4 and I need to execute a bash script after a user is created from a Windows machine. With Samba 3 I used the add user script = /usr/sbin/adduser %u -s /bin/false -m -g users So, I ...
0
votes
1answer
144 views

Kamailio to accept anonymous registrations/custom registration authorization? [closed]

As a minimum requirement, I need Kamailio to accept any login with an empty password. Ideally, I need to perform some simple validation of the login in a script (Lua/Python), and save the given login ...
0
votes
1answer
44 views

Parenthesis around value with Augeas lens?

How can I create an Augeas lens that will allow me to extract a value field from within a parenthesis? Background: I'm starting an Augeas lens for managing NASL files for OpenVAS. I need to be able ...
0
votes
1answer
152 views

How to access min/max/avg value in munin plugins?

I'm writing a munin plugin and display a GAUGE which displays a value which constantly increases. What I want to add to that plugin is a day/week/etc. average. I simply have to substract the day's ...
2
votes
2answers
530 views

Query Nagios status programmatically

I recently acquired a nice 7×11 LED display, and I want (among other stuff) display my nagios status on it. For that I need to query the status of my Nagios installation. What is the appropriate way ...
-1
votes
2answers
70 views

Trying to bind a port on a completely different IP yet says it is in use

My host has given me a range of usable IP's for example (10.1.2.100 - 10.1.2.105). These did not come pre-bound to the OS, so I manually had to bind them. The only problem I am having is that when I ...
1
vote
1answer
85 views

iptables arp compare and execute

EXAMPLE: iptables :internet - [0:0] -A internet -m mac --mac-source 48:5D:60:FC:29:B0 -j RETURN COMMIT [root@localhost:~ ] $ arp Address HWtype HWaddress Flags Mask ...
1
vote
2answers
177 views

How to set ip address permanently

This might sound a little strange, but I try to achieve to set up an ip address permanently in Ubuntu using the command line, but not an editor. My idea is to provision servers and just type in the ...
2
votes
0answers
65 views

vmware thin disk usage powercli

I want to ask a question about thin provisioning. get-vm commandlet can easly give us real space used by a vm totally. Assume that you have a virtual machine which has more than one thin disk. If ...
2
votes
2answers
147 views

Router config export via expect script - username in enable?

I'm working on an Expect script for pulling configuration information from my hosts. The problem is that some of my hosts (when the enable command is entered) will prompt for both a login and ...
0
votes
2answers
59 views

Complex retention policy

I have daily database backups scp'd to a directory on a local linux machine for multiple databases. The naming format is [dbname].backup; there is no timestamp and currently the latest backup ...
-1
votes
2answers
85 views

Python script to log name, date, and command of every command users have entered

I want to create a script, possibly in python, open to suggestions, it logs every command typed on the server. so it would log, user, timestamp and command. Is this possible?
1
vote
1answer
370 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
0answers
60 views

OVF/OVA extra files

Can anyone suggest a method to do the following: We need to include an extra file (probably just a small text file with a serial) in an OVF file before we wrap it up into an OVA for deployment. Here ...
1
vote
2answers
213 views

Terminal Server logon script on first logon only?

I'm currently building up a Windows Server 2008 R2 for use as a terminal server, and I'm looking for options on scripting. I know how I can attach logon scripts to the user in Active Directory, or to ...
0
votes
1answer
105 views

Executing CScript scripts from an ASP script fails

Context: Windows Server 2003; IIS 5 I'm trying to launch a JScript file from within an IIS application. I keep getting Permission denied 70 0 Microsoft VBScript runtime error Just in case you're ...
1
vote
1answer
56 views

cp/rsync command with destination as symlink to a directory

I am working on a cPanel backup solution at the moment. We are now informed about this exploit. Exploit : Full ROOT ACCESS to server 1.) create malicious file from, normal user account: mkdir root ...
0
votes
0answers
18 views

Add contact to SBS 2003 active directory remotely

Masters, We need to often add or remove contacts in active directory. It is possible to delegate access to a user (with or without administrative rights) to do this remotely (without log in via ...
1
vote
1answer
170 views

How to supply custom init script to Azure instance

Is it possible to create an instance specific init script and pass it to a virtual machine that is created via the API of Microsoft Azure? I know this from AWS, but could not find a way to do this on ...
0
votes
0answers
91 views

Detect reuse of deleted AD account's email addresses

One company I have something to do with has the - in my eye not optimal - policy of recycling email addresses. If a user leaves, they just delete the Active Directory account. So they don't even know ...
0
votes
0answers
55 views

AppleScript to enable Find My Mac on multiple Macs?

I am looking for a way to enable Find My Mac on multiple Macs within our organisation. It seems like this might be possible with AppleScript. The workflow I had in mind is: Load System Preferences ...
0
votes
1answer
321 views

Disable “Windows Firewall with Advanced Security” for all profiles(Domain,Public,Standard) in local GP using script help! Windows 7 Clients

We need Windows7 with windows firewall to be turned off , so the GOLD image has windows firewall turned off for all profiles(Domain,Public,Standard) and Windows Service disabled No the same GOLD ...
0
votes
1answer
385 views

Is it possible to auto update php.ini via a bash script? [closed]

I'm trying to write an install script and i need to change the sendmail line in php.ini but I want to do this automatically at the moment I'm doing this manually: sudo nano ...
0
votes
1answer
75 views

postfix smtp relay script

I have a Postfix server and using it with Outlook (POP/SMTP). I have different sender addresses for an account. Now I want to configure a relay for a specific sender address. For example I have ...
-1
votes
1answer
51 views

How to loop specific powershell script

I need to uninstall Java from several computers in my network. After almost all day of Googling it seems the best way to do this is with a Powershell script. I found one that I have tested on a few ...
0
votes
0answers
323 views

Packet drop monitoring on vmnic objects

I'm trying to create a script via PowerCLI that can monitor packet drops for vmnic objects. I was able to find online a version of the script that does exactly what I want for host servers, however ...
-1
votes
1answer
251 views

Cacti Export Tool Script [duplicate]

I'm looking for any script that possible to export graph of Cacti into CSV/text format. I have several interfaces in different devices, so I want to export those graph by using cron's job for sending ...
1
vote
3answers
163 views

Override path to binary for particular user

My question seems to be trivial but I didn't manage to find anything helpful in internet. I have a binary in /urs/bin/binary but it is outdated and newer version is available on some mount for ...
-1
votes
1answer
76 views

Script to check the TIME on all servers listed in %FILENAME%

I would like to check the time on a bunch of windows 2003 and 2008 servers listed in an excel file, i.e. (serverlist.txt) and output to another file. Is this possible.
-1
votes
1answer
32 views

need help scripting website reboot

I have a small website that crashes once or twice a week. I have spoken to both the websites original designers, who has now retired and its host and both blame the other. The website can be ...
0
votes
1answer
137 views

Is there any script to do accounting for the proftpd's xferlog?

I would like to convert from the xferlog format that proftpd uses into per user in/out bytes, to have a summary on how much traffic does each user use per month. The exact format of xferlog is this: ...
1
vote
3answers
3k views

How do I turn off Windows 7 Firewall via script or through automation?

This is in regards to working on machines before joining the machine to a domain and although I would love to rely on GPO, that isn't an option at this time. In the environment I'm working in, the ...
-1
votes
3answers
919 views

Script to log internet connectivity outage [closed]

What is the best approach to setting up a script to monitor and report a server's connection to the Internet? I'm not referring to connection to the local network, but rather a server's (or the whole ...
0
votes
1answer
538 views

Tracking down dovecot IMAP user bandwidth usage

One of my customers is using massive amounts of bandwidth, it appears to be related to IMAP and not their actual website. There is a logfile /var/log/maillog which logs each IMAP connection and the ...
-1
votes
2answers
116 views

Monitor port status in Linux [closed]

I want to monitor the list of used ports in linux system. I want to make a script that can run an alert when a new port is up or down. For example when the port 8080 is up , i get an alert: this port ...
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 ...
1
vote
2answers
178 views

powershell script to create exchange report

I have some script write on PowerShell and I have some problem. When I run this script I have some error in output: You cannot call a method on a null-valued expression. At ...
0
votes
0answers
55 views

Automated Logon with Macro backup script

I'm having some issues with an automated backup macro script I've written using Autohotkeys. My specific issue is that I need the script to run on a Windows based server at a given time during the ...
1
vote
2answers
205 views

find: how to not have errors (stderr) when no files exists

I have a custom script which gzip log files when they are one day old. In my script all errors (stderr) are logged to a file and at the end of the script I use this file to know if its execution was ...
-1
votes
1answer
736 views

Vbscript proxy settings

I'm trying to create a script that allows the user to choose which proxy settings want to use among several possible. The changes are applied correctly but takes about 20 or 30 seconds to appear at ...
2
votes
1answer
336 views

Powershell - Select-object keeping same columns throughout script

OK. I'm just drawing a blank here or I'm missing something obvious. In a Powershell (V3) script, I'm calling Get-ADUser -Filter 'SAMAccoutnName -like $ADUserName' -Properties ...
1
vote
1answer
90 views

Schedule Task 2008 R2 - cmd line requires unix utc time - how to get it dynamically?

These forums are great, and I'm hoping to get some help with a headache I have on doing a process manually that should be easier to automate than I've found it to be. I have a command line tool from ...
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
3answers
3k views

Add user account to local Administrator group on multiple Windows Server 2008 machines

I have a number of servers to which I need to grant administrative access to 1 particular user, i.e. add him to local admins. I guess it can be scripted with PowerShell or somehow else.. Can somebody ...
1
vote
1answer
225 views

Automatic Saving of Windows Event Logs [closed]

I'm looking for a way to automatically save off Windows security event logs from several servers to one central location (connected on the network and domain). I want to be able to do this on a ...
0
votes
1answer
1k views

Postfix: Pass a copy of an email to a script but deliver the original one to mailbox

It's actually quite simple: I want to pass all incoming emails to a PHP-script, but only as a copy, the original email shall still be delivered to the mailbox as usual. I just can't seem to get it ...
0
votes
2answers
288 views

Command line adding a printer with duplex and fax enabled

We have an OCE Imagistics cm2520 unit, a big copier that does fax and duplex printing. Currently I'm trying to have our XP workstations print without using a Windows print server, but just using the ...
2
votes
2answers
359 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 ...