display object-group
Use display object-group to display information about object groups.
Syntax
display object-group [ { { ip | ipv6 } address | port } [ default ] [ name object-group-name ] | name object-group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ip address: Specifies the IPv4 address object groups.
ipv6 address: Specifies the IPv6 address object groups.
port: Specifies the port object groups.
default: Specifies the default object groups.
name object-group-name: Specifies an object group by its name, a case-insensitive string of 1 to 31 characters.
Examples
# Display information about all object groups.
<Sysname> display object-group IP address object group obj1: 0 object(in use) IP address object group obj2: 4 objects(out of use) 0 network host address 1.1.1.1 10 network host name host 20 network subnet 1.1.1.1 255.255.255.0 30 network group-object obj1 IPv6 address object-group obj3: 0 object(in use) IPv6 address object-group obj4: 4 objects(out of use) 0 network host address 1::1:1 10 network host name host 20 network subnet 1::1:0 112 30 network group-object obj3 Port object-group obj7: 0 object(in use) Port object-group obj8: 3 objects(out of use) 0 port lt 20 10 port range 20 30 20 port group-object obj7
# Display information about object group obj2.
<Sysname> display object-group name obj2 IP address object-group obj2: 4 objects(out of use) 0 network host address 1.1.1.1 10 network host name host 20 network subnet 1.1.1.1 255.255.255.0 30 network group-object obj1
# Display information about all IPv4 address object groups.
<Sysname> display object-group ip address IP address object-group obj1: 0 object(in use) IP address object-group obj2: 4 objects(out of use) 0 network host address 1.1.1.1 10 network host name host 20 network subnet 1.1.1.1 255.255.255.0 30 network group-object obj1
# Display information about IPv6 address object group obj4.
<Sysname> display object-group ipv6 address name obj4 IPv6 address object-group obj4: 4 objects(out of use) 0 network host address 1::1:1 10 network host name host 20 network subnet 1::1:0 112 30 network group-object obj3
Table 68: Command output
Field | Description |
---|---|
in use | The object group is used by an ACL or object group. |
out of use | The object group is not used. |