17.45 deletepackage (deleting packages)
Functionality
This command deletes unnecessary packages registered in management servers.
By periodically executing this command, you can prevent increase in the number of unnecessary packages.
Packages that matches all of the following conditions is determined as not in use, and is deleted. If there are no packages to be deleted, the command terminates normally.
-
Update packages added in the support information file (update program information)
The update packages added by the user are not included.
-
Update packages that are excluded in the support information file (update information)
-
There are no tasks associated with the package.
Format
deletepackage
Arguments
None.
Storage location
JP1/IT Desktop Management 2-installation-destination-folder\mgr\bin\
You can execute this command without specifying the storage location for the executable file, by using the command prompt provided byJP1/IT Desktop Management 2.
Notes
-
Execute this command when the management server setup is completed.
-
This command cannot be simultaneously executed by multiple users.
-
This command cannot be executed simultaneously with any of the following commands:
-
exportdb
-
importdb
-
ioassetsfieldutil export
-
ioassetsfieldutil import
-
ioutils exportasset
-
ioutils exportassetassoc
-
ioutils exportdevice
-
ioutils exportdevicedetail
-
ioutils exportfield
-
ioutils exportfilter
-
ioutils exportoplog
-
ioutils exportpolicy
-
ioutils exporttemplate
-
ioutils exportupdategroup
-
ioutils exportupdatelist
-
ioutils importasset
-
ioutils importassetassoc
-
ioutils importexlog
-
ioutils importfield
-
ioutils importfilter
-
ioutils importpolicy
-
ioutils importtemplate
-
ioutils importupdategroup
-
ioutils importupdatelist
-
startservice
-
stopservice
-
updatesupportinfo
-
deletenwgroup
-
distributelicense
-
-
When executing this command at first, the large number of network groups to delete is expected, so please execute according to the following procedure:
1. Stop the following services:
-
JP1_ITDM2_Agent Control
-
JP1_ITDM2_Service
-
JP1_ITDM2_Web Container
-
JP1_ITDM2_Web Server
-
JP1_ITDM2_Relay Manager Service#
2. Execute the deletepackage command.
3. After command execution completed, start the following services:
-
JP1_ITDM2_Agent Control
-
JP1_ITDM2_Service
-
JP1_ITDM2_Web Container
-
JP1_ITDM2_Web Server
-
JP1_ITDM2_Relay Manager Service#
#: In case of the management server in a single-server configuration, stopping or starting of this service is not required.
-
Return values
The following table lists the return values of the deletepackage command.
Return value |
Description |
---|---|
0 |
The command finished normally. |
11 |
The format for specifying the command arguments is invalid. |
31 |
Another command is being executed. |
51 |
You do not have the permissions to execute this command. |
53 |
Services on the management server have not started. |
54 |
The management server has not been set up. |
150 |
The command execution was interrupted due to some other error. |
Example
The following example shows use of this command to delete unnecessary packages. deletepackage.
deletepackage
Related Topics: