Printer FriendlyEmail Article Link

How can I force a user off, and reserve the ports myself, using Spirent TestCenter API?

Answer

If you need to force a user off and reserve a port(s) that is already reserved by that user, follow the steps below (TCL example).

Warning - Always notify the user before you take this action.

1. Revoke the current user from the port
        stc::perform ReservePort -location //ChassisIp/Slot/Port  -RevokeOwner True
2. Release the port
        stc::release "ChassisIp/Slot/Port"
3. Reserve the port 
  stc::reserve "ChassisIp/Slot/Port"

.
 


Product : Spirent TestCenter,Automation,API