Access official resources from Carbon Black experts
Version
6.0.x, 7.0.x; 7.2.x.
Topic
This document describes how to update multiple computer tags using a SQL script.
Steps
You can use the "Computer Tag" field in the properties of Computer objects to help organize and manage your Bit9 agent installation. In this example, we will map the IP address of a given computer to the Computer Tag for that computer:
use das;
update
dbo.hostmain
set
dbo.hostmain.comment = source.comment
from
OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Text;Database=C:\;','SELECT * FROM [ip_to_name_mappings.txt]')
as
source,
dbo.hostmain
where
dbo.hostmain.host_id in (
select Computer_Id
from bit9_public.ExComputers
where bit9_public.ExComputers.Ip_Address = source.ip_address
)
;
Important Note(s)
The SQL query requires your DBA to enable "Ad Hoc Distributed Queries." Check with your SQL Server administrator about setting these permissions before you run the script.
Copyright © 2005-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.