IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

CB Response: How to get the current sensor count directly from the database using a query

CB Response: How to get the current sensor count directly from the database using a query

Environment

  • CB Response: All Versions

Objective

How to get the current sensor count directly from the database using a query. This is mainly required if you want to forward this information to an SIEM.

Resolution

Run the below query on CB Response Server's CLI for getting the current sensor count output.
psql -d cb -p 5002 -c "select count (*) from sensor_registrations where last_checkin_time > now() - interval '1 day';" 

Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎09-09-2020
Views:
344
Contributors