jpc_service_autostart
- Organization of this page
Function
This command setups the automatic startup and shutdown of JP1/IM - Agent.
The service of imagent, imagentproxy, imagentaction and the service of add-on program on which the respective service is add are covered.
For Windows, the service's startup type is setup as follows:
-on: Auto
-off: Manual
In a clustered environment, Logical host does not allow setup for auto-start and auto-stop because startup and shutdown are controlled by the cluster software.
Format
jpc_service_autostart {-on | -off}
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 Linuix:
-
/opt/jp1ima/tools/
Arguments
- -on
-
Enable the auto start of add-on program.
- -off
-
Disable the auto start of add-on program.
Notes
-
If the string that you specify in the argument contains spaces or special characters, you must enclose them in " " and escape them. In addition, the following characters cannot be used:
-
" (double quotation mark)
-
! (exclamation)
-
% (percent)
-
^ (circumflex)
-
-
Auto start/stop cannot be set in OracleDB exporter.
Return values
|
0 |
Successfully Enable or disable service-auto-start (all succeeded or already Enable or disabled) |
|
10 |
Invalid argument |
|
11 |
You do not have Execution permissions. |
|
13 |
Other commands are executing |
|
255 |
Failed to activate/deactivate Enable for service auto start |
Log output
-
Output destination
- In Windows:
Agent-path\logs\tools\
- In Linux:
/opt/jp1ima/logs/tools/
Example
jpc_service_autostart -on