@node-net/netconf/operations/monitoring
RFC 6022 NETCONF monitoring: fetch schemas with <get-schema>, and read the server's schemas, sessions, datastore locks and statistics from /netconf-state.
ts
import { monitoring } from '@node-net/netconf/operations/monitoring';
const client = await connect({ transport, extensions: [monitoring] });
const yang = await client.ops.monitoring.getSchema({ identifier: 'ietf-interfaces', version: '2018-02-20' });
const holder = (await client.content.monitoring.datastores()).find((d) => d.name === 'running')?.globalLock?.sessionId;<get-schema> failures are ordinary RpcErrors: tag invalid-value when the server has no such schema, and tag operation-failed with app tag data-not-unique when the request matches several (give version).
Interfaces
- DatastoreInfo
- GetSchemaOptions
- LockInfo
- MonitoringContent
- MonitoringOps
- PartialLockInfo
- SchemaInfo
- SessionInfo
- Statistics
Type Aliases
Variables
Functions
References
MONITORING_NS
Re-exports MONITORING_NS