feat: ping through agent — send ICMP ping from workstation via agent
Adds a ping tool in the Equipment page workstation card (visible when agent is online). User enters an IP/hostname, the request goes through the PMS backend → WebSocket → agent → executes ping -n 4, returns raw output displayed in a monospace block. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -361,6 +361,8 @@ export const api = {
|
||||
req<{ ports: { port: string; description?: string }[] }>('GET', `/api/hotels/${slug}/workstations/${wsId}/ports`),
|
||||
listPrinters: (slug: string, wsId: string) =>
|
||||
req<{ printers: { name: string; isDefault: boolean }[] }>('GET', `/api/hotels/${slug}/workstations/${wsId}/printers`),
|
||||
ping: (slug: string, wsId: string, host: string) =>
|
||||
req<{ ok: boolean; output?: string; error?: string }>('POST', `/api/hotels/${slug}/workstations/${wsId}/ping`, { host }),
|
||||
},
|
||||
|
||||
// ── Agents ────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user