- CheckMates
- :
- Products
- :
- Quantum
- :
- SMB Gateways (Spark)
- :
- Re: Active Devices via clish
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Active Devices via clish
Good day.
Is there an equivalent embedded GAIA clish command to display Active Devices as seen in the GAIA portal? See below.
If not, what would be the best way to grab this information from the appliance without having to use a web browser?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Detected devices are conveniently stored in a SQLite database.
You can get the list using the following command in expert mode:
sqlite3 -column /flash/devices.db 'select name,ipAddr,macAddr,deviceOS,typeName,brand,model,ifName from devicesDb;'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"arp" is probably the closest thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. I think we landed on just using the info in /var/dhcp.leases.XX file for this. No real sure what the GAIA webui is doing on the Active Devices screen but it's inline with what is in the dhcp.leases file.
We did find nmap in the /pfrm2.0/bin/ directory. After investigating using nmap it was decided that cat'ing the dhcp.leases.XX was a much simpler solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On the appliance I'm looking on, I'm not using DHCP because the appliance is running in bridge mode.
arp can also be run without going to expert mode 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Detected devices are conveniently stored in a SQLite database.
You can get the list using the following command in expert mode:
sqlite3 -column /flash/devices.db 'select name,ipAddr,macAddr,deviceOS,typeName,brand,model,ifName from devicesDb;'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how can i add a field that will show me the interface ? i want to recognize all wireless active devices via cli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shay,
you can run in expert mode: hosts -f
grep the result according to interface name you are looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the command does not work on smb device - 1570
i tries in clish and in expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shay,
The field for the firewall interface name is ifName; see the last column in the output from my command.
You can see all the available columns with :
sqlite3 -column -header /flash/devices.db 'select * from devicesDb;'
Also, with firmware R81.10.15, the database is now located in /flash/devices.db_persistent.
