search
cancel
Search
EDR: How to Move Multiple Sensors into a New Sensor Group via Python API
book
Article ID: 284973
calendar_today
Updated On:
Products
Carbon Black EDR (formerly Cb Response)
Show More
Show Less
Issue/Introduction
A simple script that allows a user to provide a comma delimited csv or text file that includes the hostname and new group
Environment
EDR: All Versions
API
Resolution
Download the python file and place it on the host that has cbapi installed.
batch_sensor_group.py
Create a text or csv file that has hostname and the new group in comma delimited format
hostname1, My server group hostname2, Default Group
Run the script
batch_sensor_group.py -f <file_location>
Additional Information
This script provides a basic function of moving sensors into new groups. Additional features should be added by the user
Always make sure cbapi is up to date.
All Products: How to Update CbAPI
For more example scripts:
https://github.com/carbonblack/cbapi-python/tree/master/examples/response
https://github.com/cbcommunity/cbapi-examples
Attachments
batch_sensor_group.py
get_app
Feedback
thumb_up
Yes
thumb_down
No