Quantcast
Channel: Symantec Connect - Endpoint Management - Articles
Viewing all articles
Browse latest Browse all 706

How can tokens be deleted in DS 7.x?

$
0
0

The “Settings > Deployment > Tokens” page allows tokens to be created, but it unfortunately does not allow them to be deleted.  How can this be achieved?

 

The following process of running queries against the Symantec_CMDB database and then running a scheduled task will allow tokens to be deleted:

Step 1: 
--/ List tokens found in the Item table
SELECT i.[Guid],i.[Name] AS Token,i.[Description],c.[Type] FROM Item i
JOIN ItemClass ic ON ic.[Guid] = i.[Guid]
JOIN Class c ON c.[Guid] = ic.ClassGuid
WHERE c.[Guid] IN
(
'269133D6-EAB3-4656-AB55-8EBD97849813', --Altiris.TaskManagement.Tokens.SimpleToken
'0E60F498-3A46-45D2-A80A-181B44A06366', --Altiris.TaskManagement.Tokens.TokenTreeItem
'2B9D75DC-A754-4D97-A573-2FA963EE88DD', --Altiris.TaskManagement.Tokens.FormatToken
'A9A0100C-F15A-4F0D-A1C0-F8E7B34732A4' --Altiris.TaskManagement.UI.XmlCallback.TokenViewCallbackHandler
)

Step 2: 
--/ Target a Guid to be deleted by the "NS.Hidden Purging Maintenance.{16290a7d-3cee-451e-b4d8-96c5784f12ec}" schedule task
INSERT INTO ItemToDelete ([Guid]) VALUES ('Guid of token')

Step 3:
Either wait for the relevant scheduled task to run as per its schedule, or run it manually.  Depending upon the SMP version you are using, one of the following scheduled tasks will initiate the delete process:

7.1.2 MP1:-  NS.Daily.{8e6c708e-18bc-4ef9-acea-2de826c4f3b9} - 0210 hrs
7.1.1:-  "NS.Hidden Purging Maintenance.{16290a7d-3cee-451e-b4d8-96c5784f12ec}" - 0230 hrs
Post 7.1.2 MP1.1:-  NS.Quarter-Hour.{5834ae07-1160-4037-8a25-67aebf6a254e} - 0200

--/ Confirmation of deletion
SELECT * FROM ItemToDelete --No results should be returned
SELECT * FROM ItemDeleted WHERE ItemGuid = 'Guid of token' --One row should be returned

The “Settings > Deployment > Tokens” page will no longer list this token.

WARNING:  ALWAYS BACKUP THE DATABASE BEFORE MODIFYING ANY OF ITS OBJECTS DIRECTLY VIA SQL


Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>