10.2.4 Setup for displaying a Web GUI URL in emails sent by automated actions of JP1/IM
You can include the URL of the Monitor screen of Web GUI in emails sent by automated actions of JP1/IM. To change the settings for emails sent by automated actions, perform the following operations. For details, see the JP1/Integrated Management 2 - Manager Configuration Guide.
-
Setting up an execution environment for the automated action function
-
Setting the execution conditions and details of automated actions
For details about the IDs of JP1 events that can be specified in the definitions of automated actions, see 10.2.5 JP1 events supported by JP1/IM linkage.
-
Setting email transmissions
Specify the URL for opening the Monitor screen of Web GUI in the email body.
You can specify a URL in the following format:
communication-protocol://host-name-or-IP-address-of-Web-Console-server:port-number/ajs/login.html?manager=$EVHOST$URLENC#&type=monitor&unitName=$EV"OBJECT_NAME"$URLENC#&execID=$EV"A3"$URLENC#&eou=1
- #
-
The variables $EVHOST$URLENC, $EV"OBJECT_NAME"$URLENC, and $EV"A3"$URLENC can be specified only in the command line for automated actions. You need to specify these variables as arguments in a script when you call the script from the command line, and write an email sending command and email text in the script.
In the following part, specify values appropriate for your environment:
communication-protocol://host-name-or-IP-address-of-Web-Console-server:port-number
- communication-protocol
-
Specify http or https as the communication protocol.
- host-name-or-IP-address-of-Web-Console-server
-
Specify the host name or IP address of the Web Console server.
- port-number
-
Specify the port number to be used for communication with the Web Console server. The default is 22252.
The following shows an example of defining an action in the automated action definition file and an example of the batch file to run:
Example of specifying an action:
# Example of action definition in the automated action definition file cmd C:\launch_ajs_webcon.bat $EVHOST$URLENC $EV"OBJECT_NAME"$URLENC $EV"A3"$URLENC
Example of batch file:
rem Example of the batch file called by the automated action rem launch_ajs_webcon.bat "C:\Program Files (x86)\HITACHI\JP1Cons\bin\jimmail.exe" -s " Job error notification" -b "A job error was detected. Access the following URL, and check the details.\nhttp://hostA:22252/ajs/login.html?manager=%1&type=monitor&unitName=%2&execID=%3&eou=1"