@usex/mikrotik-mcp 4.15.0 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -1
- package/package.json +1 -1
- package/schemas/tool-catalog.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1184,10 +1184,17 @@ async function sampleClients(store, device, ts) {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
store.recordClientSamples(device, ts, samples);
|
|
1186
1186
|
}
|
|
1187
|
+
var noUserManager = new Set;
|
|
1187
1188
|
async function ingestSessions(store, device) {
|
|
1189
|
+
if (noUserManager.has(device))
|
|
1190
|
+
return;
|
|
1188
1191
|
const ctx = createContext(undefined, device);
|
|
1189
1192
|
const out = await executeMikrotikCommand("/user-manager session print detail", ctx);
|
|
1190
|
-
if (
|
|
1193
|
+
if (commandUnsupported(out)) {
|
|
1194
|
+
noUserManager.add(device);
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
if (isEmpty(out) || looksLikeError(out))
|
|
1191
1198
|
return;
|
|
1192
1199
|
const sessions = [];
|
|
1193
1200
|
for (const row of parseRecords(out).rows) {
|
package/package.json
CHANGED