You can use the udb.sv commands to manage session variables.
Table 15–17 Summary of udb.sv Commands
Command Name |
Description |
---|---|
udb.sv.add |
Adds a new session variable. |
udb.sv.del |
Deletes a session variable. |
udb.sv.la |
Lists all session variables. |
udb.sv.lo |
Retrieves information about the session variable. |
udb.sv.mod |
Modifies the specified session value. |
This command adds a new session variable.
If you are logged in to the HTML user interface and you add a session variable through the CLI, the session variable name will display without the value when you refresh the list of variables. To display the new session variable's value, log out of the HTML user interface and log back in.
Argument |
Syntax |
Description |
|
---|---|---|---|
name |
[R] |
String |
The new session variable name |
secure |
[O] |
Boolean |
Whether or not the value should be displayed; true means no; default false |
desc |
[O] |
String |
The new session variable value description |
value |
[R] |
String |
The new session variable value for this user. If the value for the variable is an empty string, enter: - value "" |
result |
SessionVariable |
The new session variable |
This command deletes a session variable.
Table 15–19 Arguments for the udb.sv.del Command
Argument |
Syntax |
Description |
|
---|---|---|---|
name |
[R] |
String |
The name of the session variable to delete |
This command lists all session variables.
Table 15–20 Argument and Result for the udb.sv.la Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
result |
SessionVariable |
The session variable |
This command retrieves the specified session variable
Table 15–21 Argument and Result for the udb.sv.lo Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
name |
[R] |
String |
The name of the session variable to show |
result |
SessionVariable |
The session variable |
This command modifies a session variable; a password must be set using the -p parameter if variables are to be persisted.
Table 15–22 Argument/Result for the udb.sv.mod Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
name |
[R] |
String |
The name of the session variable to modify |
secure |
[O] |
String |
Whether or not the value should be displayed; true means no; default false |
desc |
[O] |
String |
The new session variable description |
value |
[O] |
String |
The new session variable value for this user |
result |
SessionVariable |
The new session variable |