< Home

import

Function

The import command imports the asset information from the CSV file into the FW.

Format

import from filename [ auto-create-group | override ] *

Parameters

Parameter Description Value
filename Specifies the name of the CSV file. The value must be the name of an existing CSV file.
auto-create-group Indicates that the FW automatically creates an asset group in the scenario where the owning group of an asset in the CSV file does not exist on the FW. If this parameter is not specified, the import fails in this scenario. -
override Indicates that the asset information in the CSV file overrides that on the FW in the scenario where the information about the same assets exists on the FW. If this parameter is not specified, the same assets are skipped over during the import. -

Views

Security situation awareness view

Default Level

2: Configuration level

Usage Guidelines

You can determine whether to specify the storage path in filename or not. If you specify the storage path, the FW searches the CSV file in the path; otherwise, the FW searches it in the root directory on the CF card.

Example

# Import all asset information from asset.csv into the FW and enable the auto-create-group option.

<sysname> system-view
[sysname] ssa
[sysname-ssa] import fromasset.csv auto-create-group
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >