/connectwise-automate:computersfrom connectwise-automate
Lists, searches, and manages ConnectWise Automate endpoints. Covers computer identifiers, status, OS types, hardware/software inventory, disk, patch, and antivirus status, plus remote operations like reboot and command execution.
Ships in connectwise-automate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Computers are the core managed entities in ConnectWise Automate. Each computer represents an endpoint with the Automate agent installed - workstations, servers, or network devices. This skill covers computer identification, status monitoring, inventory, patch management, and antivirus status.
agents/*.md.ComputerID
is not a PSA configuration/id. Reach configurations through
connectwise-psa-api-patterns (/company/configurations).connectwise-automate-scripts.datto-rmm-devices,
ninjaone-devices or atera-devices.| Tool | Tier | Purpose |
|---|---|---|
cwautomate_computers_list | read | List computers, filtered by client, location or online status |
cwautomate_computers_get | read | One computer's detail |
cwautomate_computers_search | read | Find computers by (partial) name |
cwautomate_commands_list | read | Automate's fixed command catalog; find a command_id here |
cwautomate_computers_command_status | read | Read a queued command by computer_id and execution_id |
cwautomate_computers_reboot | write | Queue a reboot (catalog reboot command, or command_id) |
cwautomate_computers_run_command | admin | Queue a catalog command with positional parameters |
Commands are queued, not run synchronously. cwautomate_computers_reboot and cwautomate_computers_run_command return an execution_id (by default without waiting). Poll cwautomate_computers_command_status; never re-issue on a timeout or a "Duplicate command" result, because the first one is still queued. If a timeout leaves no execution_id to poll, check the computer's command queue in the Automate console (or escalate for a manual check) before retrying. Free-text commands are not accepted, and the API user's command level silently caps which catalog commands may be issued.
Every computer has multiple identifiers:
| Identifier | Type | Description | Example |
|---|---|---|---|
ComputerID | integer | Primary key, auto-incrementing | 12345 |
Name | string | Computer hostname | ACME-DC01 |
ComputerGUID | string | Globally unique identifier | a1b2c3d4-e5f6-7890-abcd-ef1234567890 |
LastContact | datetime | Last agent check-in time | 2024-02-15T10:30:00Z |
MAC | string | Primary MAC address | 00:1A:2B:3C:4D:5E |
| Status | Description | Business Impact |
|---|---|---|
Online | Agent actively checking in | Normal operation |
Offline | No agent communication | May require attention |
Degraded | Agent checking in with issues | Performance concerns |
Unknown | Status undetermined | Check connectivity |
| OS Type | Examples |
|---|---|
Windows Server | 2016, 2019, 2022 |
Windows Workstation | Windows 10, Windows 11 |
macOS | Monterey, Ventura, Sonoma |
Linux | Ubuntu, CentOS, RHEL |
Computer objects expose roughly 30 fields covering identifiers, client/location
association, status, network, OS, hardware, agent, and timestamp data, plus an
ExtraData map for Extra Data Fields (EDFs). ComputerInventory objects cover drives,
software, memory, network adapters, printers, services, and monitors.
See references/fields.md for the complete Computer and
ComputerInventory field reference.
All endpoints require Authorization: Bearer {token} (see the API Patterns skill for
authentication and token management). Core calls:
GET /cwa/api/v1/Computers?pageSize=250GET /cwa/api/v1/Computers/{computerID}GET /cwa/api/v1/Computers?condition=ClientID = 100&pageSize=250 (or
Status = 'Online', OS contains 'Windows Server', etc. - see the API Patterns
skill for full OData filter syntax)/Computers/{id}/Drives, /Computers/{id}/Software,
/Computers/{id}/Patches, /Computers/{id}/AntivirusSee references/api.md for the complete endpoint catalog with example requests and responses.
async function findComputerByHostname(client, hostname) {
const computers = await client.request(
`/Computers?condition=Name contains '${hostname}'&pageSize=100`
);
if (computers.length === 0) {
return { found: false, suggestions: [] };
}
if (computers.length === 1) {
return { found: true, computer: computers[0] };
}
return {
found: false,
ambiguous: true,
suggestions: computers.map(c => ({
name: c.Name,
id: c.ComputerID,
client: c.Client?.Name,
status: c.Status
}))
};
}
async function findComputerByIP(client, ipAddress) {
const computers = await client.request(
`/Computers?condition=IPAddress = '${ipAddress}' or ExternalIP = '${ipAddress}'`
);
return computers[0] || null;
}
async function getOfflineComputers(client, options = {}) {
const { clientId, offlineMinutes = 30 } = options;
let condition = "Status = 'Offline'";
if (clientId) {
condition += ` and ClientID = ${clientId}`;
}
const computers = await client.request(
`/Computers?condition=${encodeURIComponent(condition)}&pageSize=500`
);
const now = new Date();
return computers.map(computer => ({
name: computer.Name,
id: computer.ComputerID,
client: computer.Client?.Name,
location: computer.Location?.Name,
lastContact: computer.LastContact,
offlineMinutes: Math.floor(
(now - new Date(computer.LastContact)) / 60000
)
}));
}
async function getLowDiskSpaceComputers(client, threshold = 10) {
// Get all computers
const computers = await client.request('/Computers?pageSize=500');
const lowDiskComputers = [];
for (const computer of computers) {
const drives = await client.request(
`/Computers/${computer.ComputerID}/Drives`
);
const lowDrives = drives.filter(d =>
d.Type === 'Fixed' && d.PercentFree < threshold
);
if (lowDrives.length > 0) {
lowDiskComputers.push({
computer: computer.Name,
client: computer.Client?.Name,
drives: lowDrives.map(d => ({
letter: d.Letter,
percentFree: d.PercentFree,
freeGB: Math.round(d.FreeSpace / 1024)
}))
});
}
// Respect rate limits
await sleep(100);
}
return lowDiskComputers;
}
async function getPatchComplianceReport(client, clientId) {
let condition = '';
if (clientId) {
condition = `?condition=ClientID = ${clientId}`;
}
const computers = await client.request(`/Computers${condition}&pageSize=500`);
const report = {
total: computers.length,
compliant: 0,
nonCompliant: 0,
computers: []
};
for (const computer of computers) {
const patches = await client.request(
`/Computers/${computer.ComputerID}/Patches`
);
const isCompliant = patches.Missing === 0 && patches.Failed === 0;
if (isCompliant) {
report.compliant++;
} else {
report.nonCompliant++;
report.computers.push({
name: computer.Name,
missing: patches.Missing,
failed: patches.Failed
});
}
await sleep(100);
}
return report;
}
| Error | Status | Cause | Resolution |
|---|---|---|---|
| Computer not found | 404 | Invalid ComputerID | Verify computer exists |
| Invalid filter | 400 | Malformed condition | Check OData syntax |
| Permission denied | 403 | Insufficient rights | Check user permissions |
| Rate limited | 429 | Too many requests | Wait and retry |
{
"error": {
"code": "NotFound",
"message": "Computer with ID 99999 not found"
}
}
function validateComputerQuery(params) {
const errors = [];
if (params.condition) {
// Validate OData operators
const validOperators = ['=', '!=', '<', '>', '<=', '>=', 'contains', 'startswith'];
const hasValidOperator = validOperators.some(op =>
params.condition.includes(op)
);
if (!hasValidOperator) {
errors.push('Invalid condition operator');
}
}
if (params.pageSize && (params.pageSize < 1 || params.pageSize > 1000)) {
errors.push('pageSize must be between 1 and 1000');
}
return {
valid: errors.length === 0,
errors
};
}
function assessComputerHealth(computer, patches, antivirus, drives) {
const issues = [];
// Check online status
if (computer.Status !== 'Online') {
issues.push({
severity: 'critical',
message: `Computer is ${computer.Status}`
});
}
// Check agent age
const lastContact = new Date(computer.LastContact);
const minutesSinceContact = (Date.now() - lastContact) / 60000;
if (minutesSinceContact > 60) {
issues.push({
severity: 'warning',
message: `No contact in ${Math.round(minutesSinceContact)} minutes`
});
}
// Check patch status
if (patches.Missing > 0) {
const severity = patches.Missing > 10 ? 'critical' : 'warning';
issues.push({
severity,
message: `${patches.Missing} missing patch(es)`
});
}
// Check antivirus
if (!antivirus.RealTimeProtection) {
issues.push({
severity: 'critical',
message: 'Real-time protection disabled'
});
}
const defAge = (Date.now() - new Date(antivirus.DefinitionDate)) / 86400000;
if (defAge > 7) {
issues.push({
severity: 'warning',
message: `AV definitions ${Math.round(defAge)} days old`
});
}
// Check disk space
for (const drive of drives) {
if (drive.Type === 'Fixed' && drive.PercentFree < 10) {
issues.push({
severity: drive.PercentFree < 5 ? 'critical' : 'warning',
message: `Drive ${drive.Letter} only ${drive.PercentFree}% free`
});
}
}
return {
healthy: issues.filter(i => i.severity === 'critical').length === 0,
issues
};
}
What SKILL.md sets; muted values are Claude Code's defaults
When listing, searching, managing, and monitoring devices. Use when: automate computer, automate endpoint, automate device, automate agent, computer status, computer lookup, managed computer, computer online, computer offline, computer inventory, computer patches, computer antivirus, or labtech computer.
6 skills in this plugin
/alertsConnectWise Automate AlertsConnectWise Automate alerts through Conduit: the read-only cwautomate_alerts_list and cwautomate_alerts_get tools, filtering by computer, client and severity, alert sources and severity levels, and triage workflows that hand follow-up to the PSA. Automate alerts cannot be acknowledged or closed through the API.
/api-patternsConnectWise Automate API PatternsConnectWise Automate REST API fundamentals: integrator and user+2FA authentication, token lifecycle, pagination, OData-style filtering, rate limiting, and error handling patterns for API integration.
/clientsnpx claudepluginhub wyre-ai/msp-claude-plugins --plugin connectwise-automateOther plugins' skills for the same job