I explained how to get a list of hosts using nmap -- using-nmap-to-generate-host-lists.html , but here is another look at the subject. The question is, how do I ping multiple hosts to find out which ones are down? Sure this could be considered a topic of system monitoring, but maybe you just want to reboot a bunch of machines, and make sure they all come back online. This quick check will tell you whether there is a problem or not. Here are three methods for pinging a list of hosts: 1.) for host in `cat all.txt `;do ping -c 1 $host; done 2.) nmap -sP -R -iL all.txt 3.) sudo fping -u < xyz/all.txt First, we assume that you have a text file named all.txt that contains a list of hostnames, one per line. Obviously, the examples here contain fake hostnames, domain names and IPs, as described in another article about vi: vim-tips-search-and-replace.html . --- all.txt --- xyz-1 xyz-2 xyz-3 xyz-4 xyz-5 xyz-6 xyz-7 xyz-8 --- end all.txt --- 1.) Use a for loop in ...
How to Buy, Accept, or Mine Bitcoin and Other Cryptocurrencies - Quick Intro Buy Bitcoin on an Exchange One easy way to get started with owning bitcoin is to buy some on an exchange, such as Coinbase. I offer this link because I think it is helpful, not just because I could get $10. Sometimes you can't tell why people recommend things. I figure, if you plan to sign up anyway, why not save a little money? With this referral link, we each get $10 in bitcoin after the new account is opened, and a trade of $100 or more is completed: https://www.coinbase.com/join/592f371c2ae3540ae4a4eb70 Note that it is not necessary to buy a full coin, but there are commissions for buying and selling, and mining fees for transfers. To minimize commissions, try entering different amounts to see how much makes sense, before completing the transaction. For example, buying $100 of bitcoin may cost as much in commissions as buying $200 worth, or around $3.00. In 2...
An Automatic Investment Plan (AIP) is offered by most brokerage firms. This do it yourself strategy uses a few simple principles which are ideal for beginning investors. It may also be possible to avoid brokerage fees entirely. The plan is to use Dollar Cost Averaging with automation, and look for the lowest possible fees. The idea of Dollar Cost Averaging is to select an amount to invest regularly, and something to invest in while ignoring the price fluctuations of the market. Since it is difficult to consistently time the market, or beat the market, a low cost index fund is an easy way to get started. Get Started Decide how much you want to invest each month, and then get started right away. You can always make adjustments later, but try to set it up as a "set it and forget it" type of investment. 1.) Open brokerage account(s) (Roth IRA, brokerage, Traditional IRA). Optional: Also open a free cash management, or checking account with the brokerage ...
Comments