tool for daily network tasks
link to download - https://www.dropbox.com/s/3l5mtrcxxb8co5h/nw_tool.exe?dl=0
~~~~~network admin tool, networkandcode.wordpress.com~~~~~
choose a task:
1. dns forward lookup: hostname to ip
2. dns reverse lookup: ip to hostname
3. ping test
4. inventory check(comware)
choice: 1
~~~~~~~~~
How would you like to provide the device CIs
1. direct input
2. file
choice: 1
~~~~~~~~~
Enter the CIs/IPs, one in each line:
networkandcode.wordpress.com
linux.org
javascript.com
('results are stored in', 'forwardlookup.xls')
~~~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~
wish to run another task(Y/N)?: y
~~~~~network admin tool, networkandcode.wordpress.com~~~~~
choose a task:
1. dns forward lookup: hostname to ip
2. dns reverse lookup: ip to hostname
3. ping test
4. inventory check(comware)
choice: 2
~~~~~~~~~
How would you like to provide the device CIs
1. direct input
2. file
choice: 2
~~~~~~~~~
please type the filename: input.txt
('results are stored in', 'reverselookup.xls')
~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~
wish to run another task(Y/N)?: y
~~~~~network admin tool, networkandcode.wordpress.com~~~~~
choose a task:
1. dns forward lookup: hostname to ip
2. dns reverse lookup: ip to hostname
3. ping test
4. inventory check(comware)
choice: 3
~~~~~~~~~
How would you like to provide the device CIs
1. direct input
2. file
choice: 1
~~~~~~~~~
Enter the CIs/IPs, one in each line:
8.8.8.8
4.4.4.4
17.172.224.47
checking 8.8.8.8
Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=10ms TTL=56
Reply from 8.8.8.8: bytes=32 time=10ms TTL=56
Reply from 8.8.8.8: bytes=32 time=8ms TTL=56
Reply from 8.8.8.8: bytes=32 time=8ms TTL=56
Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 8ms, Maximum = 10ms, Average = 9ms
~~~~~~~~~
checking 4.4.4.4
Pinging 4.4.4.4 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 4.4.4.4:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
~~~~~~~~~
checking 17.172.224.47
Pinging 17.172.224.47 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 17.172.224.47:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
~~~~~~~~~
results are stored in pingtest.xls
~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~
wish to run another task(Y/N)?: y
~~~~~network admin tool, networkandcode.wordpress.com~~~~~
choose a task:
1. dns forward lookup: hostname to ip
2. dns reverse lookup: ip to hostname
3. ping test
4. inventory check(comware)
choice: 4
~~~~~~~~~
How would you like to provide the device CIs
1. direct input
2. file
choice: 1
~~~~~~~~~
Enter the CIs/IPs, one in each line:
192.168.56.11
192.168.56.12
192.168.56.13
~~~~~~~~~
login: admin
password:
is there a super password (Y/N) :n
~~~~~~~~~
checking 192.168.56.11
checking 192.168.56.12
checking 192.168.56.13
results are stored in inventory.xls
~~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~~~
wish to run another task(Y/N)?: n
--end-of-document--