Symantec Management Platform (SMP) Community

 View Only
  • 1.  Custom Token on SMP 7.1

    Posted Nov 25, 2010 10:07 AM

    Hi All,

    I am using Script task (command script type for example) on SMP 7.1 and i need to put some custom token to generate dynamicaly data when the script runs on target machine. I've tried to put some custom token into my Script task to check if it works well. But  I am always get empty value. Here is my script with custom token defenition.

    REM Test command script

    REM %"select [_ResourceGuid] from [dbo].[Inv_AeX_AC_Identification] where [Name] = '%COMPNAME%'"%

    As i know based on forum articles this works fine on DS 6.9 but DS 7.1 seems does not support the custom tokens. Is it true or i have to change the format of custom token definiton in my script to get an ability retrieve data?

    Please let me know how or what i have to do in this case?

     

    Thanks,

    Alexey



  • 2.  RE: Custom Token on SMP 7.1
    Best Answer

    Posted Nov 25, 2010 12:00 PM

    Hello, Alexey,

    below is a link to an article that answers your question.

    Just check the section "DS 7.1" at the end of the article.

    https://www-secure.symantec.com/connect/articles/how-pre-defined-computers-work-deployment-solution-6x-and-71

    And one more hint:

    In DS 7.1 you can only use tokens on client-side scripts, not on server-side scripts.



  • 3.  RE: Custom Token on SMP 7.1

    Posted Nov 25, 2010 02:30 PM

    Hi Carsten,

    Thank you for you answer and the article. I know that the SMP has an ability to create the custom tokens via specific window. But the question is can i use the custom token definition on my command script task like this for example %#*"SELECT @@servername"% or i have to create the custom token using Token page on SMP console and put the SELECT @@servername in it and then use my token in my script? 

    Below the link there was described the syntax for a custom token, but i suppose that this is truly only for DS 6.X!

    https://www-secure.symantec.com/connect/blogs/power-custom-tokens

     

    Thanks,

    Alexey