/build/static/layout/Breadcrumb_cap_w.png

Identifying machines that belong to more than 1 replication label

When using replication with the K1000 it is important to assign computers to only 1 replication label at a time.  If a machine belongs to more than 1 replication label the replication share used will most likely be the one you did not want.

The SQL below and be copy/pasted into a K1000 SQL report or into your favorite reporting tool like MySQL workbench.

/* MACHINES BELONGING TO MORE THAN 1 REPLICATION LABEL */
SELECT MACHINE.NAME AS MACHINE, COUNT(*) AS REPLICATION_COUNT,
GROUP_CONCAT((M2.NAME)) AS REPLICATION_SHARES_LINKED
FROM MACHINE
INNER JOIN MACHINE_LABEL_JT MLJ ON
MACHINE.ID = MLJ.MACHINE_ID
INNER JOIN LABEL L ON
L.ID = MLJ.LABEL_ID
INNER JOIN REPLICATION_SHARE RS ON
RS.LABEL_ID = MLJ.LABEL_ID AND
ENABLED = 1
LEFT JOIN MACHINE M2 ON
M2.ID = RS.MACHINE_ID
group by MACHINE.KUID
HAVING COUNT(*) >1

Comments

This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ