Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$GETSESSION (get session information)

$GETSESSION acquires the value specified with the -s option of the jamscript command. The syntax of the -s option is -s session-variable-name=value.

Organization of this page

Syntax

return-value=$GETSESSION(session-variable-name)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

The specified session variable does not exist.

ERROR

—

Script execution interrupted

An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

Remarks

If no information exists for the specified session variable name, a 0-byte character string is returned.

Example

The following example specifies the -s option of the jamscript command to acquire information (aaaa):

[SET_VALUE]
  VAL = $GETSESSION('OPTION')
  MSG = 'OPTION = ' + VAL
  $ECHO(MSG)
Execution command:

jamscript -f C:\Test.txt -s OPTION=aaaa

Execution result:

OPTION = aaaa