EDR: How to Move Multiple Sensors into a New Sensor Group via Python API
search cancel

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)

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

  1. Download the python file and place it on the host that has cbapi installed. batch_sensor_group.py
  2. Create a text or csv file that has hostname and the new group in comma delimited format
    hostname1, My server group
    hostname2, Default Group
  3. Run the script
    batch_sensor_group.py -f <file_location>

Additional Information

Attachments

batch_sensor_group.py get_app