I wanted a way of listing connected devices that have been served an IP Address using the command line on my DG843GT ADSL2+ router with DGTeam Firmware. This firmware allows ssh login and the ability to change the noise margin amongst other things.
I began by looking at the link for attached devices on the admin webpage of the router. This URL http://192.168.1.1/setup.cgi?todo=nbtscan&next_file=devices.htm was examined and the command nbtscan was noticed.
This was tried on the command-line but it didn't seem to do anything , nbtscan --help didn't help either.
I thought it must be something to do with arguments so I tried nbtscan 192.168.1.1 (my routers IP Address) this listed the attached devices so it's a result.
I haven't written a script using expect to get and extract this info automatically yet but it's on my todo list.
Example of the command and its output xx added to anonymise my MAC addresses
# nbtscan 192.168.1.1
192.168.1.3;UNKNOWN;00:xx:83:2D:xx:BA
192.168.1.10;TORE;00:1F:xx:C8:xx:B5
192.168.1.12;UNKNOWN;00:1B:xx:07:xx:A3
192.168.1.13;DEB;D6:56:xx:FE:xx:57
192.168.1.22;DAD;00:30:xx:46:xx:2E
A place to where I can record my Technical stuff that should be accessible from anywhere. It is mainly technical stuff I find interesting and I suppose it can be looked on as a modern Lab-book.
Subscribe to:
Post Comments (Atom)
Defender 300tdi Lucas 10AS Alarm Immobiliser (Spider) Problems
We have a 1997 Landrover Defender 300tdi that has given immobiliser problems intermittently. I had initially fixed the fuel solenoid as we w...
-
Server failure This server failed with the error "E171F PCIE Fatal Err B0 D3 F0" during power up. Upon inspection it was found th...
-
I bricked my MR3220 router with an OpenWRT firmware upload. I did manage to get it back by soldering a 4 pin header on its pcb to allow conn...
-
I make no guarantees for the information contained herein, I also cannot be held responsible for data loss as a result of your actions, we m...
No comments:
Post a Comment