Video Screencast Help

What are the System Variable Tokens Used by the Deployment Solution and Can be Inserted in SQL Scripts?

Created: 19 Feb 2010 • Updated: 01 Nov 2010 | 2 comments
Language Translations
blairthomas's picture
+11 11 Votes
Login to vote

System Tokens

An Altiris system token is a type of variable that can be replaced with unique data from the Deployment database. These are variable tokens that can be inserted in scripts or answer files to extract information from the Deployment Database.

Each computer being managed can have its own unique value for each token. For example, the %COMPNAME% token stores the NetBios computer name while the %DOMAIN% token stores the Microsoft Domain or Workgroup a computer is a member.

Depending on the individual computer, there may not be a value stored in the Deployment database for every possible token. The names for the Altiris system tokens are case sensitive and must have a percent sign at the beginning and end of the token name. The following table lists the currently available system tokens:

These are variable tokens that can be inserted in scripts or answer files to extract information from the Deployment Database.

Token Description
%ASSETTAG% Asset tag from SMBIOS
%BWIPADDR% The IP address of the computer where the Deployment Server is installed
%CALLINGJOBNAME% The name of the job that called this job or the name of this job if not called by another job
%COMPNAME% Actual computer name used by the OS
%CONTACT% Contact name defined in the properties
%DATE% Date string in the form of mm/dd/yyyy
%DEPT% Department description defined in the Location properties
%DOMAIN% MS Workgroup or domain name
%DOMAINOU% Domain organization units. For example: MyCompany.com/MyParentOU/MyOU
%DSSERVER% The NetBios name of the computer where the Deployment Server is installed
%EMAIL% Email from the Location properties
%ID% Unique Computer ID Generated by Deployment Server
%IPNAME% Full DNS name of the computer
%JOBNAME% The name of the current job
%JOBUSER% The name of the user logged in to the Deployment console.
%LDAPDOMAINOU% The LDAP format for AD domains. For example: dc=MyCompany, dc=com, OU=MyParentOU, OU=MyOU
%MAILSTOP% Mail stop from the Location properties
%MANUF% Computer manufacturer from SMBIOS
%NAME% Complete computer name as displayed in the console
%NETBIOSDOMAIN% The NetBios name for the Microsoft Domain
%NICyIPADDR% IP Address for NIC y (y = 1-8). For example: the first NIC would be %NIC1IPADDR% I , second %NIC2IPADDR% ...
%NICyIPDNSx% DNS entry x for NIC y, for example: the second NIC fourth DNS entry would be %NIC2IPDNS4%.
%NICyIPGATEWAY% Default gateway for NIC y (y = 1-8). For example: the first NIC would be %NIC1IPGATEWAY%, second %NIC2IPGATEWAY% ...
%NICyIPHOST% IP HOst for NIC y (y = 1-8). For example, the first NIC would be %NIC1IPHOST%; the second would be %NIC2IPHOST%
%NICyIPNETMASK% Netmask for NIC y. For example: the first NIC would be %NIC1IPNETMASK%, second %NIC2IPNETMASK% ...
%NICyIPWINSx% WINS entry x for NIC y. For example: the third NIC first WINS entry would be %NIC3IPDNS1%
%NICyMACADDR% MAC for NIC y (y = 1-8). For example: the first NIC would be %NIC1MACADDR%, second%NIC2MACADDR% ...
%NODEFULL% Complete computer name
%NODENAME% First 8 characters of actual computer name
%NWCONTEXT% NetWare context name
%NWSERVER% NetWare preferred server
%NWTREE% NetWare preferred tree
%OS% Specific operating system (Win98, Win2K, WinXP)
%OSTYPE% Operating system type (Win9x, WinNT, Linux)
%PHONE% Phone defined in the Location properties
%PROCDESC% Description of the processor
%PROCSPEED% Processor speed
%PROCCOUNT% The number of processors installed (not the number of processor slots)
%PROD_LIC% Product License Key
%RAMTOTAL% Total Random Access Memory
%SERIALNUM% Serial number from SMBIOS
%SITE% Site description defined in the Location properties
%TIME% Time string in the form of hour:minutes
%USER_NAME% User name
%UUID% The Universally Unique Identifier (UUID) of the computer, if supported by hardware

Comments 2 CommentsJump to latest comment

rene.piuk's picture

it is also possible to use any column in any table by using:

%#!TABLE_NAME@COLUMN_NAME%

for example:

%#!computer_display@group_name%

0
Login to vote
Pascal KOTTE's picture

Not valid table for DS 7.1 I suppose!

All the same we can create all the missing one.

Except the hardware inventory is not included with DS 7. So you do not have the "hardware" information in the base for initial deployment, as we have using DS 6.9 :(

~Pascal @ Kotte.net~ Do you speak French? Et utilisez Altiris: venez nous rejoindre sur le GUASF

0
Login to vote