Tracing System Resource Cleanup Operations for Junos SDK Applications

Using the Junos SDK, providers can have their SDK applications request and manage system resources. Some of this resource utilization is persistent across, for example, reboots or the restart of the application. Some system tasks such as deleting a package, disabling and application, or accessing shared resources require that resources be cleaned up by entities other than the application itself. Resources that are known to need cleaning up include the following:

Currently, the traceoptions statement is the only CLI statement available for configuring resource cleanup.

To configure tracing operations for resource cleanup operations, include the traceoptions flag option for selectively turning the debugging of trace messages on or off:

[edit]system {processes {resource-cleanup {traceoptions {file filename files number match regex size size (world-readable | no-world-readable);flag flag;level level;no-remote-trace;}}}}

The available flags for the traceoptions statement include: