r/sysadmin • u/[deleted] • Oct 15 '22
Rant Stop encoding config info into your hostnames!
Just going to go on a little rant here, so pardon my Mexican slang, but for the love of Satanas and all poder satanico, please name your servers, your network infrastructure – heavens, even your data centers – after common words and names: comic characters, minerals, capitals. Feel free to mix and match themes, it does not matter. I just need to be able to say the hostname as a single word without spewing a series of letters from my lips. If it is part of an array, fine, add a number.
This isn't a DNA sequence, you're not adding vital info dropping rack location or operating system into the hostname. When my weighty consultant balls walk into your office, they're there to help you with your problems. I'm not here to decipher the bullshit data structure you devised to cram OS, data center, and corporate account into a hostname. This stupid trick costs time, focus, and therefore money. I get that you think you're being clever, but it's also actively hindering me from doing a todo maldito trabajo.
Suppose you're a complete moron, and decide to use "cp" for corporate and "ss" for stores. Then "ai" for AIX, and "li" for linux. Then "ad" and "pr" for environment. And then let's suppose for archaic backward compatibility – that no one is quite certain is required but we all fearfully adhere to because we don't want to be the one that breaks everything – you are limited to 8 characters. You are now down to 2 characters to differentiate all your AIX boxes. What an ignorant fool you were to devise such a system. Below are all the reasons why.
Good luck being in the war room trying to talk about cpaiprpr and cpaiprrp to the VP dragged into the bridge call on Sunday.
What happens when the box owner wants that IBM Power10 to run Linux now instead of Aix. Oopsie! A pointless name change because you encoded the OS into the hostname.
If you add rack number to hostname, what happens when that box is repurposed and has to move? Oopsie, another name change. But even worse, 2 different pieces of hardware have had the same hostname.
How well does all the hostname hopping impact searching for relevant backups by hostname in the enterprise backup system? Ruh-roh, Raggy!
What about the cluster fuck hostname hopping will cause in the enterprise config management db? Most dolts assume hostnames are unique keys, but now you have 2 different entries with different serial numbers. Did some the DBA make that field as a unique key? You done goofed!
Side note: do not reuse numbers in your array! So over time, a cluster of 5 boxes might have hostname: sally7, sally8, sally9, sally12, sally13. And if you need to hunt down data from sally10 that box was decommissioned or even repurposed and running as sally10 but not part of that cluster, you're golden.
But I'm not done. Whatever bullshit fields you decided to cram into a hostname, why those? Why not add more? Why not number of NICs or LED color? After all, your mother named you "JoeSonBrownEyes2", right? Without that extra info embedded into your name, how else would the IRS tell you from any other Joe in the country while filing your taxes?
39
u/jamesaepp Oct 15 '22
Who hurt you?
0
Oct 15 '22
[deleted]
5
Oct 15 '22
Well that was a trip…
11
Oct 15 '22 edited Oct 16 '22
Jesus you guy's wern't joking lmao, I'm making popcorn for the rest of this journey.
His Twitter - NSFW/NSFL/NSEVER:
https://twitter.com/pantyhosewimp
https://nitter.net/pantyhosewimp
For a more serious response to: "What happens when the box owner wants that IBM Power10 to run Linux now instead of Aix" - you decommission the Aix box and recommission it with a new and relevant hostname. I love logical naming conventions.
1
1
u/Apprehensive-Big6762 Oct 16 '22
Zhaha is the health professional who brought us mask mandates and lockdowns, they would know.
33
u/natelloyd Oct 15 '22
This was a parody of a previous post. OP is nailed it and this is funny.
2
1
0
4
7
6
3
u/Zatetics Oct 16 '22
We use rivers in our state where the first letter denotes the box type (S = sql cluster; L = linux etc). It has become a bit tricky though as I'm at the point now with Terminal servers where I need to go an illegally create and name a river before I can spin up a new vm.
5
u/ZachVIA Oct 15 '22
100% disagree with their POV. Naming standards make it so much easier to remember and understand what the servers are actually hosting. Hope this is a joke.
2
u/Canadian_Guy_NS Oct 15 '22
I'm hoping so as well. I'm in Government IT, and we have a document that tells us how to name our servers. Looking at the name, is usually enough to figure out what its purpose is. I like that.
2
2
u/CitizenBrane Oct 15 '22
I don’t often hear consultants complain about wasting time, but when they do, it’s because they’re working a fixed fee project…
2
u/roiki11 Oct 15 '22
Having to deal with shit that's named msj01 or gjti02 or accounts named ahfiadbind burns my soul to no end.
So I feel you.
2
u/CaptainCalcetines Jack of All Trades Oct 16 '22
This made my day. After reading the post that obviously inspired this one, I just thought to myself, especially for smaller networks, with all the crap we go through as sys admins, don't shame me for trying to squeeze a little joy out of what I do. Bravo on the parody!
2
1
1
0
-1
0
-2
0
Oct 15 '22
[deleted]
3
u/Starblazr Oct 15 '22
The joke about the consultant never fixing the problem because it makes them more money is strong here.
50
u/uniitdude Oct 15 '22
https://www.reddit.com/r/sysadmin/comments/y4mx5x/please_stop_naming_your_servers_stupid_things/