PDA

View Full Version : Would love to hear your thoughts on Broadband and PC scanner tool?



adslgeek
25-05-2012, 10:48 AM
Hey guys,

I have been wanting to finish this for a year or more, and chipped away at some of the various scripts that make it up but finally got a coder to help me out, so we have got a working beta functional.
Also checked with ChillingSilence that it was cool to do a cross post, cause I wanted to be a good netizen!

The goal was a simple script you can email to your mum / helpdesk customer / noob to help someone to remotely get them to run all the common commands.

What it does is a simple download which allows you to scan your local PC and Network for all the typical tests that a helpdesk person needs a person to run, and the output log can be read out, or emailed through to a tech so that it saves you having to ask the customer to read through the cryptic commands etc.

I would love to hear feedback of how you have found it / any bugs / layout suggestions etc :-)

NOTE: The submit function is yet to be built, but that will upload the test results (PC and network details) to the site, but I have not yet finished that page, which will ultimately flow into my ADSL troubleshooter, but that part might be a while, as I bneed to build processing functionality etc.

I was thinking that the submitted results can then be viewed by a helpdesk from say www.adslgeek.com/troubleshooter/210.55.54.15 so that the results can stay uploaded for 10 minutes for a helpdesk person to read, until being wiped (keeps tables small, and also from a security perspective).

Any VB6 coders or RegEx fans that want to help out, will be greatly appreciated :-)

Also if anyone can think of any other scripts or DOS commands that I could use to get relevant information about the customers PC / Net connection, would love to hear your tips :-)

File can be downloaded here: >> http://www.adslgeek.com/BroadbandGeekScannerSetup_v1.0.EXE

Installation
The executable just copies itself to the Desktop where you can run the program which produces the log file, if you click submit then that displays the results in an HTML page ready for submitting.

Output / log file looks like this:


################################################## ###################################
******** TEST 1: Pinging localhost to test TCP stack ... - OK! *******


Pinging 127.0.0.1 with 32 bytes of data:



Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128



Ping statistics for 127.0.0.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms


################################################## ###################################
******** TEST 2: Testing dns resolution ... - OK! *******


Pinging www.l.google.com (http://www.l.google.com) [74.125.237.112] with 32 bytes of data:



Reply from 74.125.237.112: bytes=32 time=52ms TTL=56

Reply from 74.125.237.112: bytes=32 time=51ms TTL=56

Reply from 74.125.237.112: bytes=32 time=52ms TTL=56

Reply from 74.125.237.112: bytes=32 time=53ms TTL=56



Ping statistics for 74.125.237.112:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 51ms, Maximum = 53ms, Average = 52ms


################################################## ###################################
******** TEST 3: Testing ping to open DNS ... - OK! *******


Pinging 8.8.4.4 with 32 bytes of data:



Reply from 8.8.4.4: bytes=32 time=195ms TTL=53

Reply from 8.8.4.4: bytes=32 time=194ms TTL=53

Reply from 8.8.4.4: bytes=32 time=194ms TTL=53

Reply from 8.8.4.4: bytes=32 time=193ms TTL=53



Ping statistics for 8.8.4.4:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 193ms, Maximum = 195ms, Average = 194ms


################################################## ###################################
******** TEST 4: Testing ping to google open DNS via IPV6 ... - Failed! *******
Ping request could not find host 2001:4860:4860::8888. Please check the name and try again.


################################################## ###################################
******** TEST 5: Testing ping to google open DNS via IPV6 ... - Failed! *******
Ping request could not find host 2001:4860:4860::8844. Please check the name and try again.


################################################## ###################################
******** TEST 6: Checking Route ... - OK! *******


Tracing route to www.l.google.com (http://www.l.google.com) [74.125.237.112]

over a maximum of 30 hops:



1 <1 ms <1 ms <1 ms 192.168.1.1

2 108 ms 324 ms 28 ms lo1.ras1.nct.orcon.net.nz [60.234.8.201]

3 28 ms 28 ms 27 ms xe-1-0-0.cre1.nct.orcon.net.nz [121.98.9.13]

4 29 ms 28 ms 28 ms 121.99.12.0

5 52 ms 52 ms 52 ms 72.14.214.5

6 53 ms 52 ms 52 ms 72.14.214.6

7 53 ms 52 ms 52 ms 66.249.95.232

8 53 ms 53 ms 52 ms 72.14.237.135

9 52 ms 52 ms 52 ms syd01s12-in-f16.1e100.net [74.125.237.112]



Trace complete.


################################################## ###################################
******** TEST 7: Collecting all network stats ... - OK! *******
================================================== =========================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...e0 cb 4e 4f 43 3b ...... Atheros AR8131 PCI-E Gigabit Ethernet Controller - Packet Scheduler Miniport
0x3 ...00 ff 61 75 d2 da ...... Anchorfree HSS Adapter - Packet Scheduler Miniport
0x4 ...08 00 27 00 b0 11 ...... VirtualBox Host-Only Ethernet Adapter - Packet Scheduler Miniport
================================================== =========================
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.253 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.1.253 192.168.1.253 20
192.168.1.0 255.255.255.0 192.168.1.253 192.168.1.253 20
192.168.1.253 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.253 192.168.1.253 20
192.168.56.0 255.255.255.0 192.168.56.1 192.168.56.1 20
192.168.56.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.56.255 255.255.255.255 192.168.56.1 192.168.56.1 20
224.0.0.0 240.0.0.0 192.168.1.253 192.168.1.253 20
224.0.0.0 240.0.0.0 192.168.56.1 192.168.56.1 20
255.255.255.255 255.255.255.255 192.168.1.253 192.168.1.253 1
255.255.255.255 255.255.255.255 192.168.56.1 192.168.56.1 1
255.255.255.255 255.255.255.255 192.168.56.1 3 1
Default Gateway: 192.168.1.1
================================================== =========================
Persistent Routes:
None
Interface Statistics

Received Sent

Bytes 72521410 42784592
Unicast packets 234699 224622
Non-unicast packets 2164 344
Discards 0 0
Errors 0 0
Unknown protocols 0

IPv4 Statistics

Packets Received = 235061
Received Header Errors = 0
Received Address Errors = 91
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 90
Received Packets Delivered = 234971
Output Requests = 224514
Routing Discards = 0
Discarded Output Packets = 4
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0

ICMPv4 Statistics

Received Sent
Messages 51 45
Errors 0 0
Destination Unreachable 8 2
Time Exceeded 24 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 0 0
Echos 4 39
Echo Replies 15 4
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0

TCP Statistics for IPv4

Active Opens = 1704
Passive Opens = 830
Failed Connection Attempts = 2
Reset Connections = 733
Current Connections = 49
Segments Received = 233618
Segments Sent = 220744
Segments Retransmitted = 2712

UDP Statistics for IPv4

Datagrams Received = 1303
No Ports = 51
Receive Errors = 0
Datagrams Sent = 1256

Route Table

################################################## ###################################
******** TEST 8: Collecting summary of network stats for local workstation ... - OK! *******
Workstation Statistics for \\THUNDER


Statistics since 12/31/2011 9:16 AM


Bytes received 0
Server Message Blocks (SMBs) received 2
Bytes transmitted 0
Server Message Blocks (SMBs) transmitted 0
Read operations 0
Write operations 0
Raw reads denied 0
Raw writes denied 0

Network errors 0
Connections made 0
Reconnections made 0
Server disconnects 0

Sessions started 0
Hung sessions 0
Failed sessions 0
Failed operations 0
Use count 0
Failed use count 0

The command completed successfully.


################################################## ###################################
******** TEST 9: Collecting summary of network stats for server ... - OK! *******
Server Statistics for \\THUNDER


Statistics since 12/31/2011 9:17 AM


Sessions accepted 1
Sessions timed-out 0
Sessions errored-out 0

Kilobytes sent 0
Kilobytes received 0

Mean response time (msec) 0

System errors 0
Permission violations 0
Password violations 0

Files accessed 0
Communication devices accessed 0
Print jobs spooled 0

Times buffers exhausted

Big buffers 0
Request buffers 0

The command completed successfully.


################################################## ###################################
******** TEST 10: Listing the route table ... - OK! *******
================================================== =========================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...e0 cb 4e 4f 43 3b ...... Atheros AR8131 PCI-E Gigabit Ethernet Controller - Packet Scheduler Miniport
0x3 ...00 ff 61 75 d2 da ...... Anchorfree HSS Adapter - Packet Scheduler Miniport
0x4 ...08 00 27 00 b0 11 ...... VirtualBox Host-Only Ethernet Adapter - Packet Scheduler Miniport
================================================== =========================
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.253 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.1.253 192.168.1.253 20
192.168.1.0 255.255.255.0 192.168.1.253 192.168.1.253 20
192.168.1.253 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.253 192.168.1.253 20
192.168.56.0 255.255.255.0 192.168.56.1 192.168.56.1 20
192.168.56.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.56.255 255.255.255.255 192.168.56.1 192.168.56.1 20
224.0.0.0 240.0.0.0 192.168.1.253 192.168.1.253 20
224.0.0.0 240.0.0.0 192.168.56.1 192.168.56.1 20
255.255.255.255 255.255.255.255 192.168.1.253 192.168.1.253 1
255.255.255.255 255.255.255.255 192.168.56.1 192.168.56.1 1
255.255.255.255 255.255.255.255 192.168.56.1 3 1
Default Gateway: 192.168.1.1
================================================== =========================
Persistent Routes:
None

################################################## ###################################
******** TEST 11: Getting the Internet Environment ... - OK! *******


Windows IP Configuration



Host Name . . . . . . . . . . . . : THUNDER

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

DNS Suffix Search List. . . . . . : dummy.porta.siemens.net



Ethernet adapter Local Area Connection:



Connection-specific DNS Suffix . : dummy.porta.siemens.net

Description . . . . . . . . . . . : Atheros AR8131 PCI-E Gigabit Ethernet Controller

Physical Address. . . . . . . . . : E0-CB-4E-4F-43-3B

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.1.253

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.1.1

DHCP Server . . . . . . . . . . . : 192.168.1.1

DNS Servers . . . . . . . . . . . : 8.8.8.8

210.55.12.1

Lease Obtained. . . . . . . . . . : Saturday, 31 December 2011 10:16:42 a.m.

Lease Expires . . . . . . . . . . : Saturday, 31 December 2011 10:46:42 a.m.



Ethernet adapter {6175D2DA-EE67-4E8B-ADFC-1C25939AF28D}:



Media State . . . . . . . . . . . : Media disconnected

Description . . . . . . . . . . . : Anchorfree HSS Adapter - Packet Scheduler Miniport

Physical Address. . . . . . . . . : 00-FF-61-75-D2-DA



Ethernet adapter VirtualBox Host-Only Network:



Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter

Physical Address. . . . . . . . . : 08-00-27-00-B0-11

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.56.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :


################################################## ###################################
******** TEST 12: Checking ARP ... - Label2 *******

Interface: 192.168.1.253 --- 0x2
Internet Address Physical Address Type
192.168.1.1 00-21-04-4c-9b-49 dynamic


But I am not going to then list all the installed programs I have but you get the idea..

http://www.adslgeek.com/dslforum/index.php?topic=2026.0

Peter H
25-05-2012, 11:02 AM
Worked very well on my computer. Good job

Chilling_Silence
25-05-2012, 11:30 AM
Battle plan for tonight: Test and provide feedback while my wife is out .... in between beers... Yeah not sure how good this plan is on second thought ;)

Fifthdawn
25-05-2012, 02:08 PM
Battle plan for tonight: Test and provide feedback while my wife is out .... in between beers... Yeah not sure how good this plan is on second thought ;)

Sounds like a solid plan. Once you have finished providing feedback you can start some beer assisted gaming which is always fun!

O/T:

I have a script written in vb script around here somewhere which does some things you might be interested in, I'll see if I can find it now.

Ok, the script I wrote collects the computer name, the serial number and the MAC addresses the computer has, I thought it did more but clearly not. If you are interested I can post it up.

stormdragon
25-05-2012, 02:57 PM
Correct me if I'm wrong but isn't the whole point to check network connectivity if the end user is having a problem. Therefore isn't it quite likely they won't be able to receive an email with the script to run the tests....

Other then that it does look good and quite handy though!

mikebartnz
25-05-2012, 04:17 PM
Battle plan for tonight: Test and provide feedback while my wife is out .... in between beers... Yeah not sure how good this plan is on second thought ;)
When the cats away.........:p

decibel
26-05-2012, 06:16 PM
Runtime error 53 here.

Using W7 Home Premium SP1
Pentium E5400
2GB RAM 64 bit

Alex B
26-05-2012, 06:24 PM
Very nice, my boss built one very similar that checks the status of internet, if so it then goes about checking VPN status back to work.

Whenu
26-05-2012, 06:44 PM
Tried it, Avast was reluctant to let it operate and when got it going, the taskbar. Start button and desktop icons disappeared and can't kill it in taskbar manager

adslgeek
26-05-2012, 10:14 PM
Peter - Thanks heaps! Peter what operating system do you have?
ChillingSilence - You and I have always been shockers for waiting till our partners asleep then coding!

Fifthdawn - That would be awesome - one thing I have been trying to get is the MAC address of the default gateway (I was thinking maybe ARP or something, but didnt get that part done) from that then I can identify either the Router or Switch.

Stormdragon - Absolutely though from memory something like 60-80% of ISP helpdesk calls are people with a connection. Also if the customer just scrolls down to say "Test number 4 and 5" and they read out the result, you could detect it was not IPV6 compatible as an example - it is what helpdesks do today, it is just that this would allow the tests to be easier to identify - I was thinking of parsing the results to the HTML page, in different colored tabs, so it would be easy for the customer to read out the result.

Whenu - er crap, that's no good at all. Sorry about that mate! I had issues with Avast trusting the program (as it is unsigned etc) what operating system is it?
I have just ran that myself in the sandbox, and it seems to not like that. I am going to put that down to Avast spazzing out.
I have run it in the sandbox and it complained, and then outside of the sandbox it ran perfectly. Something I will have to fix tho.

I am thinking from feedback from other people that this is not Win 7 compatible. :-/

Do any desktop support people have any input for other things that you guys need for this sort of tool? I strip the currently running as well as startup items installed, and I can run that through a program identifier.

To all - thanks so much for being awesome, and helping a geek out!

Cheers,
Jay

Whenu
27-05-2012, 10:42 AM
XP SP3

b....
27-05-2012, 11:12 AM
Works well on XP SP3.
Fail on Tests 4 and 5 for IPV6.
Would like option to select install destination rather than desktop.
Cheers.

adslgeek
27-05-2012, 12:04 PM
Thanks heaps guys!
I am going to say that Avast is having an issue with it for some reason to, after a bit more testing here.

adslgeek
27-05-2012, 12:27 PM
Thanks heaps guys!
I am going to say that Avast is having an issue with it for some reason to, after a bit more testing here.