Searching for a Connection (asg search)

This section describes how to search for a connection in the Connections Table.

Description

Use the "asg search" command in Gaia gClish or the Expert mode to:

  • Search for a connection or a filtered list of connections.

  • See which Security Group Member handles the connection, actively or as backup, and on which Site.

You can run this command directly or in Interactive Mode. In the Interactive Mode, you can enter the parameters in the correct sequence.

The "asg search" command also runs a consistency test between Security Group Members.

This command supports both IPv4 and IPv6 connections.

Searching in the Non-Interactive Mode

Syntax

asg search -help

asg search [-v] [-vs <VS IDs>] [<Source IP Address> <Source Port> <Destination IP Address> <Destination Port> <Protocol>]

Parameters

Parameter

Description

No Parameters

Runs in the interactive mode.

-help

Shows the built-in help.

-vs <VS IDs>

Applies to Virtual Systems as specified by the <VS IDs>.

<VS IDs> can be:

  • No <VS IDs> specified (default) - Applies to the context of the current Virtual System

  • One Virtual System

  • A comma-separated list of Virtual Systems (for example, 1,2,4,5)

  • A range of Virtual Systems (for example, 3-5)

  • all - Shows all Virtual Systems

This parameter is only applicable in a VSX environment.

<Source IP Address>

Specifies the source IPv4 or IPv6 address.

<Source Port>

Specifies the source port number.

See IANA Service Name and Port Number Registry.

<Destination IP Address>

Specifies the destination IPv4 or IPv6 address.

<Destination Port>

Specifies the destination port number.

See IANA Service Name and Port Number Registry.

<Protocol>

Specifies the IP Protocol name or number.

See IANA Protocol Numbers.

-v

Shows connection indicators for:

  • A - Active Security Group Member

  • B - Backup Security Group Member

  • F - Firewall Connections table

  • S - SecureXL Connections table

  • C - Correction Layer table

This is in addition to the indicators for Active and Backup Security Group Members.

Notes:

  • You must enter the all parameters in the sequence as appears in the above syntax.

  • You can enter "\*" as a wildcard parameter (meaning, any value).

  • The "-vs" parameter is only available for a Security Group in VSX mode.

Examples

Searching in the Interactive Mode

In the Interactive Mode, you enter the connection search parameters in the required sequence.

Step

Instructions

1

Connect to the command line on the Security Group.

2

Go to Gaia gClish: enter gclish and press Enter.

3

Run the command:

> asg search [-vs <VS IDs>] [-v]

4

Enter these parameters in the order below:

  1. Source IPv4 or IPv6 address.

  2. Destination IPv4 or IPv6 address.

  3. Destination port number.

    See IANA Service Name and Port Number Registry.

  4. IP protocol.

    See IANA Protocol Numbers.

  5. Source port number.

    See IANA Service Name and Port Number Registry.

Note - Press the Enter key to enter a wildcard value (meaning, any value).