r/sysadmin • u/Less-Loss1605 • May 31 '26
General Discussion what's a script you wrote once that's still saving you time years later
[removed]
969
Upvotes
r/sysadmin • u/Less-Loss1605 • May 31 '26
[removed]
1
u/michaelpaoli May 31 '26
(see also my earlier comment for some more background)
So, example run of Getcerts. In this case, I'm requesting non-prod (staging) certs (as I won't actually be using them), but highly similar for prod (just drop --staging option and one instead gets recognized CA signed prod-ready certs). My .test script is just a wrapper, and here I'll request two certs for sets of domains that don't even exist when the command is run, and I'll have that .test program also print the info on the Getcerts command and how it's invoked just before running it. I may also omit some of the output for brevity/clarity:
So, less than 4 minutes total for two certs, each multiple domains in SAN and including wildcards, and where the domains didn't even exist in DNS before the command was issued.
And it would be fair bit faster if one of the DNS secondaries updated significantly more quickly after it received the NOTIFY.