17.37 deletenwgroup (deleting network groups)
Functionality
This command deletes unused network groups registered in management servers. By periodically executing this command, you can prevent increase in the number of unused network groups.
A network group that matches all of the following conditions is determined as not in use, and is deleted. If there is no network group to be deleted, the command terminates normally.
-
Network group to which no device belongs
-
Network group to which no security policy has been applied
-
Network group to which agent configurations have not been applied
-
Network group not managed by the network monitor
-
Network group that is not set in any user-defined group conditions
-
Network groups to which no management relay server device belongs
Format
deletenwgroup[∆-allseg]
Arguments
- -allseg
-
Specify this argument to delete all network groups to which no device belongs. If you omit this argument, network groups with subnet mask 255.255.255.255 to which no devices belong are deleted.
Storage location
JP1/IT Desktop Management 2-installation-destination-folder\mgr\bin\
By using the command prompt provided by JP1/IT Desktop Management 2, you can execute this command without specifying the storage location for the executable file.
Notes
-
Execute this command when the management server setup is completed and the services on the management server are running.
-
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 exportdevice
-
ioutils exportdevicedetail
-
ioutils exportfield
-
ioutils exportfilter
-
ioutils exportoplog
-
ioutils exportpolicy
-
ioutils exporttemplate
-
ioutils exportupdategroup
-
ioutils exportupdatelist
-
ioutils importasset
-
ioutils importexlog
-
ioutils importfield
-
ioutils importfilter
-
ioutils importpolicy
-
ioutils importtemplate
-
ioutils importupdategroup
-
ioutils importupdatelist
-
startservice
-
stopservice
-
updatesupportinfo
-
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.
-
Stop the following services.
- JP1_ITDM2_Agent Control
- JP1_ITDM2_Service
- JP1_ITDM2_Web Container
- JP1_ITDM2_Web Server
- JP1_ITDM2_Relay Manager Service#
-
Execute the deletenwgroup command.
-
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 value
The following table lists the return values of the deletenwgroupcommand.
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 primary management server has not been set up. |
150 |
Command execution was interrupted due to some other error. |
Example
The following example shows use of this command to delete all unused network groups.
deletenwgroup -allseg
Related Topics: