jimasetup
- Organization of this page
Function
This command performs the default Setup of JP1/IM - Agent.
Format
jimasetup { phost | container }
Execution permission
In Windows: Administrator permissions (if the Windows UAC feature is enabled, the command is executed from the administrator console)
In Linux: Superuser permissions
Storage directory
- In Windows:
-
Agent-path\tools\
- In Linux:
-
/opt/jp1ima/tools/
Arguments
- phost
-
If this option is specified when operating in physical host, it performs the initial Setup for operating in Physical host.
If you installed JP1/IM - Agent in a normal host deployment, the installer Execute jimasetup phost command.
If you created an AWS/EC2 virtual machine image, ensure that you Execute this command with phost optional specification from Auto Scaling scripting of AWS/EC2 before starting the service.
Cannot be specified together with container option.
- container
-
If you created a container image, make sure that you execute this command with container optional specification from the scripts that the container execute before you start the service.
Cannot be specified together with phost option.
Return values
|
0 |
Normal termination |
|
1 |
Abnormal termination |
Log output
-
Output destination
- In Windows:
Agent-path\logs\tools\
- In Linux:
/opt/jp1ima/logs/tools/
Example
-
Sample scripting specifications for AWS/EC2's Auto Scaling
- In Windows:
<script> Agent-path\tools\jimasetup phost Agent-path\tools\jpc_service_start -s all </script>
- In Linux:
#!/bin/sh /opt/jp1ima/tools/jimasetup phost /opt/jp1ima/tools/jpc_service_start -s all
-
Sample specifications in scripts container executes
- In Linux:
#!/bin/bash /opt/jp1ima/tools/jimasetup container#1 exec /usr/local/bin/supervisord -c /opt/supervisord.conf#2
#1: Execute of initial setting command with container option.
#2: Execute the service management tools.
Notes
-
Do not execute this command multiple times at the same time. If you execute multiple times at the same time, even if the command terminates with normal, the result may be incorrect.
-
This command must be executed on status where all JP1/IM - Agent services are down. If you execute the command in a status JP1/IM - Agent services are running, File that you are updating might become locked and fail to update.
-
Be sure to execute this command with a status that does not have a defined file open, such as in a text editor. Updating file may fail if you execute the command when definition File is open, such as with a text editor.