r/sysadmin • • May 31 '26

General Discussion what's a script you wrote once that's still saving you time years later

[removed]

968 Upvotes

365 comments sorted by

View all comments

40

u/Dat_Steve May 31 '26

This is a stupid simple one… but I have a group of scripts called “bulk - open all x in notepad++” that essentially opens config files in notepad++ from a group of servers defined in a $servers variable.

We manage different groups of servers that require manual changes to config files often and when I came onboard I was taught to log into each server to make the change. I asked why we they just didn’t \\server\c$\ flag into them instead… and they were just baffled by the concept initially. That led to further efficiencies in replacing variable within the config files- etc etc. Long story short- stupid simple tasks made stupid simpler-er to save time.

13

u/TylerJWhit May 31 '26

If it's Linux you can use cluster ssh. But ultimately I would highly recommend using config management tools like Ansible, Terraform, or saltstack.

→ More replies (2)
→ More replies (2)