Questions tagged [scripting]
A form of computer programming that — in the context of system administration — lends it self well to automating tasks.
1,846 questions
Score of 0
0 answers
25 views
crontab script is not running in other server. In the server we copied, it's running fine [duplicate]
see below details
eccdbpvm02:/mnt/HANA/E1P/backup/data/DB_F1P # crontab -l
05 00 * * * /usr/sys_scripts/clear_log >> /usr/sys_scripts/log.txt 2>&1
eccdbpvm02:/mnt/HANA/E1P/backup/data/...
Score of 1
5 answers
618 views
Remove commas in double quotes from CSV
I have a comma separated line I am using awk to extract fields from.
Server1,poweredOn,10.0.18.70,"Blue, Green",POC,Vsphere
However, when it comes to the text in double quotes ("Blue, ...
Score of 0
0 answers
193 views
Find out whether an IP address is within a subnet in Mikrotik address list
In a script I use following line to find out whether some address is already in a list:
/ip fire addr find where list=$listName address=$logIp
The block looks as follows:
:if ([:len [/ip fire addr ...
Score of 0
1 answer
292 views
Unable to run BCDEDIT script with GPO
Unable to run BCDEDIT script with GPO
This is more or less identical to the following post:
Stumped on why my Startup GPO Script isn't executing BCDEdit correctly
However, I am unable to respond ...
Score of 0
0 answers
74 views
Cannot find login script
I inherited a quite simple network; 6 Windows servers (an FSMO, 2 DCs, Terminal server, File Share, SQL Server). Over the past Several months, I have resolved issues on the network, AD, FSMO, DNS ...
Score of 0
1 answer
254 views
Starting Network Script in Task Scheduler as System with FQDN not working
i have a strange Problem and i hope someone can help me.
What I’m doing:
I am creating a Scheduled Task via GPO, which starts a Powershell script which is located on a network share. The Script should ...
Score of 1
2 answers
1052 views
How to get global IPv6 address of the current machine?
I a bash script, I want to obtain the global IPv6 address of my machine for a given network adapter (on my case 'ens18').
To get started, I issued the following command:
ip -6 addr
This gives me the ...
Score of 1
2 answers
11815 views
Script to upgrade Windows 10 to Windows 11
I want to create a script to unattended upgrade my Windows 10 machines to Windows 11, but I don't want to install in the process all unnecessary applications like xbox.
I'm trying to upgrade my ...
Score of 1
0 answers
1379 views
How to utilize client certificates now that cURL has removed support for NSS
We recently upgraded from RHEL7 to RHEL8 and one of this issues that wasn't straight forward to handle is how to utilize cURL with client certificates after cURL removed support for NSS?
Previously, ...
Score of 0
1 answer
125 views
Using destination file name vs destination directory when moving a file creates auditd logging dilemma
I am trying to log file operations using auditd (audit 4.0.1) and came across an issue with moving files. If I include the filename in the destination:
mv /mnt/user/home/file.txt /mnt/user/home/...
Score of 0
1 answer
102 views
.htaccess exposed to www since upgrade from apache 2.2 to 2.4
I just upgraded apache on my very old WHM server from 2.2 to 2.4, and now .htaccess files are being treated like text files instead of apache scripts.
I also installed mod_ruid2 0.98
These three lines ...
Score of 1
1 answer
1021 views
Set service Startup Type to "Automatic (DelayedStart)" with PowerShell
I'm trying to script changing specific services to have Startup Type "Automatic (DelayedStart)". When I pipe the services into Set-CimInstance, I get an error that it "could not modify ...
Score of 1
1 answer
726 views
Query Windows RDP monitor positions via command line
I am using Windows RDP (remote desktop) with a multi-monitor setup and I want my script to automatically detect the position of the monitors. Additionally, I only use some of my monitors for RPD with ...
Score of 0
0 answers
217 views
Stop minikube on Ubuntu shutdown
I'm new to Kubernetes, I have internal instruction on how to setup the app locally using minikube. The problem is that I sometimes forget to stop the Cluster, if I do when shutdown the system it will ...
Score of 0
1 answer
148 views
script to print dhcpd.leases info to syslog/file
So i'm running dhcpd on a server and to my knowledge the logs from dhcpd are not adjustable, if they are i'm dying to know how...
Anyways, i need something to check the dhcpd.leases-file which is ...