node-port-group

Queries port group data downloaded to the Data Node through the policy synchronization module.

Command properties

PropertyDescription
Command typeDriver
Required permissionAdministrator
License usageNot counted
Parallel executionNot supported
Distributed executionNot supported

Syntax

node-port-group [guid=STR]

Options

guid=STR
Port group GUID. When specified, queries the port entries included in that port group. When omitted, lists a summary of all port groups.

Output fields

When the guid option is specified:

FieldTypeDescription
protocolstringProtocol (tcp, udp, etc.)
startintegerStart of port range
endintegerEnd of port range
descriptionstringPort entry description
app_codestringApp code
app_built_inbooleanWhether this is a built-in app

When the guid option is omitted:

FieldTypeDescription
idintegerPort group ID
guidstringPort group GUID
namestringPort group name
descriptionstringPort group description
port_countintegerNumber of port entries
user_namestringCreator name
user_guidstringCreator GUID

Error codes

Parse errors
Error codeMessageDescription
300310You do not have permission to run node-port-group.Administrator privileges are required.
300311The guid option for the node-port-group command is not in a valid format.The guid option value is not a valid GUID format.
300312The port group [guid] specified in node-port-group was not found.No port group exists for the specified GUID.
Runtime errors

None

Description

The node-port-group command queries port group data downloaded from the Control Node to the Data Node through the policy synchronization module.

When the guid option is specified, it returns the individual port entries (protocol, start port, end port, description) included in that port group. When the guid option is omitted, it returns a summary list of all synchronized port groups (name, GUID, port count, etc.).

Examples

  1. List all port groups

    node-port-group
    

    Queries the summary information of all port groups synchronized to the Data Node.

  2. Query port entries of a specific port group

    node-port-group guid=550e8400-e29b-41d4-a716-446655440000
    

    Queries the port entries included in the port group with the specified GUID.