I've recently started playing with Automation Scripts in Maximo 18.104.22.168 with the help of this IBM document:
It lists a number of explicit variables like app, user, mbo, scriptName...
When trying these, a few are not recognised. For example, the line:
causes error message "name 'scriptName' is not defined in <script>"
properly puts the username in the Maximo log.
The same error happens for variables scriptHome and mboname.
Does anyone have experience with using these variables ?
Pinned topic Automation Scripts: explicit variables
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-12-14T06:44:02Z at 2012-12-14T06:44:02Z by Sujita
PJ3B_Venkata_Reddy 270004PJ3B3 Posts
Re: Automation Scripts: explicit variables2012-09-04T08:34:57ZThis is the accepted answer. This is the accepted answer.Hi ,
You need to write like below statements :
print " script name = ", scriptName
print " MBO Name = ",mboname
Bowser 2700006MWE90 Posts
Re: Automation Scripts: explicit variables2012-09-04T14:36:41ZThis is the accepted answer. This is the accepted answer.These are "implicit" variables... they are always defined as documented when your script starts to execute. "Explicit" variables are the ones you define for your script and then bind when you configure Launch Points.
Never use the implicit variables that have been included for backward compatibility. scriptHome was used in version 7.2.x of Tivoli Service Request Manager (TSRM), Tivoli Asset Management for IT (TAMIT) and the Tivoli Change and Configuration Management Database (CCMDB). The "scriptHome" implicit variable was replaced in Base Services 7.5 with "mbo".
Hope that helps,
Sujita 2700039CGF44 Posts
Re: Automation Scripts: explicit variables2012-12-14T06:44:02ZThis is the accepted answer. This is the accepted answer.Hi,
If i give, print " MBO Name = ",mbo like this in the source code of the script in Maximo v7.5, when i am executing this i am getting error "NameError: name 'mbo' is not defined"