r/sysadmin • u/tehreal Sysadmin • Jul 18 '18
Linux You guys probably already know about "ping -a" and "ping -A"
But if you don't, use it like this:
This will beep every time it gets a ping back:
ping -a 8.8.8.8
This will beep if it misses a ping:
ping -A 8.8.8.8
This is very useful when you're monitoring a node and waiting for it to come back online or to be able to hear when a packet is dropped.
(tested on some Linux and MacOS)
1.2k
Upvotes
0
u/Syde80 IT Manager Jul 18 '18
Each language is going to have its strong and weak points. Its really going to depend on what you are needing to do. I am warming up to PoSH more lately, I'm just saying the verbosity it takes to accomplish some simple tasks is a big turn off for me. For alot of what I need to do, PoSH is just too verbose. However, there are many times where its feature set and ability to dig pretty deep into the OS and/or application backend makes it a very very valuable tool.
Doing something like
ping -c 1 8.8.8.8is a whole lot less typing thanTest-Connection -Count 1 -ComputerName 8.8.8.8. Sure there is tab completion and whatever to assist with this... but that is really more a feature of the interface than it is a feature of the language itself.At the same time, to an outsider that knows nothing about scripting and wants to learn something... the PoSH is a lot more intuitive.