Using the JUNOS SDK, developers 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. And 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. The traceoptions flag option has several flags for selectively turning the debugging of trace messages on or off:
- [edit]
- system {
-
- processes {
-
-
resource-cleanup {
-
- traceoptions {
- flag (all | events | gencfg | sysvsem | sysvshm | ui);
- level level;
- }
- }
- }
- }
The available flags for the traceoptions statement include: