Reset Search
 

 

Article

KB43789 - How to use the delete-active-sessions Device Management Interface (DMI) RPC

« Go Back

Information

 
Last Modified Date7/13/2018 10:12 PM
Synopsis
This article provides details on the delete-active-sessions DMI RPC.
Problem or Goal
In the 8.2R3 PCS Device Management Interface (DMI) Solutions Guide which contains the schema for the RPC and the RPC-REPLY it shows as an example for the delete-active-sessions RPC:

<rpc message-id='101'>
  xmlns='urn:ietf:params:xml:ns:netconf:base:1.0'>\
    <delete-active-sessions>
      <session-records>
        <session-record>
           <name>newadmin</name>
           <authentication-realm>Admin Users</authentication-realm>
           <session-id>useruid5c142fc2be8e15de7e4015257f1f14af386d6a1e</session-id>
        </session-record>
      </session-records>
    </delete-active-sessions>
</rpc>


If a useruid is used as the session-id the delete request will fail.
Cause
Each user has a user record entry created when they first connect to the PCS, associated with that useruid are unique session IDs (sids) which are created for each session for that specific user.  To delete a session of a user the sid should be entered for the session-id.
Solution
To obtain the sid for a users session, first use the <get-active-user> RPC which will contain their correct session-id.


NoteWhile the Realm and username are passed in the RPC they are not processed and validated, only the session-id is used to determine which session to delete.
Related Links
Attachment 1 
Created ByMatthew Spiers

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255