The availability of the following predefined string constants depends on their initialization by asset management.
Specifies the domain name.
Holds the local unit directory depending on the unit type (<unittype>).
Specifies the operating system.
Holds the OS version.
Holds the version of the script interpreter.
Holds the Sector name.
Holds the path to the sector database.
Holds the Network Service on which the sector database resides.
Holds the name of the directory in which the asset management agent software resides.
Holds the name of area server to which the unit is attached.
Holds the computer or user file ID depending on the unit type (<unittype>).
Holds the unit name depending on the unit type (<unit-type>).
Holds the name of the area server to which user is attached.
Holds the user file ID.
Holds the name of user on which script is running.
Holds the local user directory (for example, n:\clientus or "%ProgramFiles%\CA\DSM\Agent\units\00000003\uam")
Contains the computer, user, or engine depending on the unit type.
Holds the path to the Windows directory. Holds an empty string when Windows is not installed on the computer.
Holds the name of area server to which the computer is attached.
Holds the computer file ID.
Holds the name of computer on which the script is running.
Holds the local computer directory (for example, c:\clientws\ or "%ProgramFiles%\CA\DSM\Agent\units\00000001\uam").
Holds a string representation of the current system time.
hh:mm:ss
Holds a string representation of the current system date.
mm/dd/yyyy
Holds a string representation of the current system date and time.
mm/dd/yyyy hh:mm:ss
Holds a SysTime structure containing the system time.
Type SysTime Hour as Integer Minute as Integer Second as Integer End Type
Holds a SysDate structure containing the system date.
Type SysDate Year as Integer Month as Integer. Day as Integer DayOfWeek as Integer End Type
Holds a DateTime structure containing the system date and time.
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 (\).
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|