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!

How to move Sensors in bulk to specific Sensor Groups in Carbon Black Enterprise Response

How to move Sensors in bulk to specific Sensor Groups in Carbon Black Enterprise Response

Version

This solution applies to any version of Carbon Black Enterprise Response.

Topic

This document answers a commonly asked question regarding how to move Sensors by computer name or Sensor ID into a specific group without UI interaction.

Steps

You will need root access

1) Log into Postgres database on server

psql -d cb -p 5002

2) Check the group id's

select id,name from sensor_groups;

3) Display the sensors and current groups assigned

select id,group_id,computer_name from sensor_registrations;

4) Update the sensors with the new group based upon partial computer name

update sensor_registrations set group_id=<newgroup_id> where computer_name like '%<partial computername>%';

Example

update sensor_registrations set group_id=3 where computer_name like '%HostsPrefix-%';

One can also use sensor id range:

update sensor_registrations set group_id=<newgroup_id> where id between # and #;

update sensor_registrations set group_id=3 where id between 1 and 20;

5) Confirm sensors have changed by running step 3 and selecting the sensor group in the

Was this article helpful? Yes No
0% helpful (0/1)
Article Information
Author:
Creation Date:
‎03-30-2016
Views:
1444