Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var ga = new GlideAggregate('cmdb_ci_appl');
ga.addQuery('operational_status', 2); // Non-operational
ga.addQuery('install_status', 1); // Installed
ga.addAggregate('COUNT');
ga.query();
var total = 0;
if (ga.next()) {
total = ga.getAggregate('COUNT');
}
gs.info('Application CIs installed but not in operational count: ' + total);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Counts all application CIs where operational_status = 2 (non-operational) and install_status = 1 (installed). Outputs the total count to system logs for quick health and compliance checks.
Loading