Previous Topic: UNIX File AttributesNext Topic: Desktop Management Scripting Language


Asset Management Scripting Language Predefined String Constants

The availability of the following predefined string constants depends on their initialization by asset management.

DomainName

Specifies the domain name.

LocalPath

Holds the local unit directory depending on the unit type (<unittype>).

Ossystem

Specifies the operating system.

Osversion

Holds the OS version.

ScriptVersion

Holds the version of the script interpreter.

SectorName

Holds the Sector name.

SectorPath

Holds the path to the sector database.

SectorService

Holds the Network Service on which the sector database resides.

SharedPath

Holds the name of the directory in which the asset management agent software resides.

UnitArea

Holds the name of area server to which the unit is attached.

UnitFileID

Holds the computer or user file ID depending on the unit type (<unittype>).

UnitName

Holds the unit name depending on the unit type (<unit-type>).

UserArea

Holds the name of the area server to which user is attached.

UserFileID

Holds the user file ID.

UserName

Holds the name of user on which script is running.

UserPath

Holds the local user directory (for example, n:\clientus or "%ProgramFiles%\CA\DSM\Agent\units\00000003\uam")

UnitTypeName

Contains the computer, user, or engine depending on the unit type.

WindowsDir

Holds the path to the Windows directory. Holds an empty string when Windows is not installed on the computer.

ComputerArea

Holds the name of area server to which the computer is attached.

ComputerFileID

Holds the computer file ID.

ComputerName

Holds the name of computer on which the script is running.

ComputerPath

Holds the local computer directory (for example, c:\clientws\ or "%ProgramFiles%\CA\DSM\Agent\units\00000001\uam").

Time$

Holds a string representation of the current system time.

Format
hh:mm:ss
Date$

Holds a string representation of the current system date.

Format
mm/dd/yyyy
Now$

Holds a string representation of the current system date and time.

Format
mm/dd/yyyy hh:mm:ss
Time

Holds a SysTime structure containing the system time.

Structure
Type SysTime
Hour as Integer
Minute as Integer
Second as Integer
End Type
Date

Holds a SysDate structure containing the system date.

Structure
Type SysDate
Year as Integer
Month as Integer. 
Day as Integer
DayOfWeek as Integer
End Type
Now

Holds a DateTime structure containing the system date and time.

Structure
Type DateTime
Year as Integer
Month as Integer
Day as Integer
DayOfWeek as Integer
Hour as Integer
Minute as Integer
Second as Integer
End Type

Constants - General Information

Although the identifiers listed previously are said to be constants, some of them have different values depending on the unit type running the script.

Example: Asset Management Scripting Language Predefined String Constants

The predefined string constant LocalPath points to c:\clientws (for example) when the script is being run as a computer job. When the script is being run as a user (group) job, LocalPath points instead to c:\clientus (for example).

WindowsDir Constant

When accessed for the first time, the Script Interpreter locates and stores the path of the Windows directory in the constant.

The path ends with a backslash (\).