< Home

user-manage security-group-import

Function

The user-manage security-group-import command imports security groups in a batch from a CSV file.

Format

user-manage security-group-import csv-file [ override ]

Parameters

Parameter Description Value
csv-file Specifies the name of an imported CSV file. The value is a case-sensitive string of 5 to 31 characters. Spaces are not supported. The file is in the [ file-path ] file-name.csv format.
override When a security group name already exists on the device, the device updates the attributes of this security group. If the parameter is not specified, the security group is not imported. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Before you import a CSV file, log in to the Web UI of the device, choose Object > User > User Import > Local Import to download a CSV template in Security Group Import, and edit the CSV file based on the requirements described in the CSV template.

The user-manage security-group-import command imports security groups from the specified CSV file on the storage device.

  • When the file path on the device is specified in csv-file, the imported CSV file is the file in the specified path.
  • When only the file name is specified in csv-file, the imported CSV file is the file in the default path.

When a security group name already exists on the device, the security group is not imported by default. When the parent security group of a security group in the CSV file does not exist on the device, the device automatically creates the parent security group by default.

If the number of security groups reaches the upper limit when you import security group information, the import is terminated. If a security group entry in a CSV file is invalid, the invalid security group entry and subsequent entries cannot be imported. However, in the two scenarios, the imported security group information still takes effect.

After the import succeeds, the security group information is saved in the memory of the device, but cannot survive a device restart. To avoid the data loss, run the save command to save the security group information to a storage device such as a CF card.

During the import process, you cannot perform any operation on the user management database, for example, creating, deleting, modifying, or querying a user or user group.

Importing a CSV file is not allowed when another administrator is exporting the security group information into the CSV file.

Example

# Import security group information from file abc.csv.

<sysname> system-view
[sysname] user-manage security-group-import abc.csv
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >