Removing Stale Sessions
This section describes how to remove stale sessions for an SMF instance.
When the SMF issuing the sessions is unavailable, the sessions become stale after a period of inactivity. These sessions expire based on the duration that you defined in the Stale Session Timer configuration. In the case of a large number of sessions, the system takes longer to delete the session.
Important | We recommend removing the stale sessions only when SMF is unavailable. If SMF is active and has active sessions on PCF, then executing the cdl clear sessions command may remove the active sessions. |
To delete the sessions in bulk, use the following command:
cdl clear sessions filter { key smfInstanceIdKey:SMF_instance_ip_address condition match }
NOTES:
-
The cdl clear sessions command performs a hard delete of the sessions without generating termination request for the child sessions such as Rx and N28 sessions.
-
SMF_instance_ip_address —Specify the instance ID of SMF, which is derived from the notification URL sent by the SMF.