Scripts
Script to Ping a list of IPs
There are times when you need to ping a list of IPs to determine which ones are up and which ones are down. Below is a powershell script that will do just that: #Below is a script used to identify if hosts are up or down # The following line read a plain list of [...]
Resolve a list of IPs to their DNS names
Below is a powershell script that will resolve a list of IPs to their respective DNS names: # The following line read a plain list of IPs from files. $listofIPs = Get-Content “C:\IPList.txt” #create a blank array for the resolved names $ResultList = @() #resolve each of these addresses foreach ($ip in $listofIPs) { [...]
Php Script to Append String Into Text File
Use a simple PHP script to append string into text file:
Query Multiple IPs in DNS
Here is a simple bash script to query multiple IPs and get the DNS names:
Expect Script for Cisco Devices
Expect script for Cisco devices.
Spacing Issues in Bash
If you are having whitespace issues in bash, review the information provided here

