< Home

target-port

Function

The target-port command configures the target port number for asset scanning.

Format

target-port { port-number } <1-80>

undo targe-port

Parameters

Parameter Description Value

port-number

Specifies the port number for asset scanning.

The value is an integer ranging from 1 to 65535.

You can specify multiple port numbers. A maximum of 80 port numbers can be configured, and each port number must be unique.

Views

Asset scanning view

Default Level

2: Configuration level

Usage Guidelines

By default, the device scans the following ports: UDP 137, TCP 23, TCP 80, TCP 443, TCP 631, TCP 7080, TCP 8080, TCP 8443, TCP 8088, TCP 5800, TCP 3872, TCP 8180, TCP 8000, TCP 139, TCP 445, TCP 3389, and TCP 554.

Example

# Configure the target port number for asset scanning.

<sysname> system-view
[sysname] network-scan
[sysname-network-scan] target-port 20 23
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >