Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Ave_Joe
Contributor

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.

ActiveDevices-GUI.png

If not, what would be the best way to grab this information from the appliance without having to use a web browser?

 

0 Kudos
4 Replies
PhoneBoy
Admin
Admin

"arp" is probably the closest thing.

Ave_Joe
Contributor

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.

PhoneBoy
Admin
Admin

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 🙂

0 Kudos
nmelay
Collaborator

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;'

 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events