Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 3.45 KB

sys-dm-hadr-cluster-networks-transact-sql.md

File metadata and controls

58 lines (46 loc) · 3.45 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sys.dm_hadr_cluster_networks (Transact-SQL)
Returns a row for every WSFC cluster member that is participating in an availability group's subnet configuration.
rwestMSFT
randolphwest
10/17/2023
sql
system-objects
reference
dm_hadr_cluster_networks
sys.dm_hadr_cluster_networks_TSQL
sys.dm_hadr_cluster_networks
dm_hadr_cluster_networks_TSQL
Availability Groups [SQL Server], monitoring
Availability Groups [SQL Server], WSFC clusters
sys.dm_hadr_cluster_networks dynamic management view
TSQL

sys.dm_hadr_cluster_networks (Transact-SQL)

[!INCLUDE SQL Server]

Returns a row for every WSFC cluster member that is participating in an availability group's subnet configuration. You can use this dynamic management view to validate the network virtual IP that is configured for each availability replica.

Primary key: member_name + network_subnet_ip + network_subnet_prefix_length

Tip

Beginning in [!INCLUDE ssSQL14], this dynamic management view supports Always On failover cluster instances (FCIs) in addition to availability groups (AGs).

Column name Data type Description
member_name nvarchar(128) A computer name of a node in the WSFC cluster.
network_subnet_ip nvarchar(48) Network IP address of the subnet to which the computer belongs. This can be an IPv4 or IPv6 address.
network_subnet_ipv4_mask nvarchar(45) Network subnet mask that specifies the subnet to which the IP address belongs. network_subnet_ipv4_mask to specify the DHCP <network_subnet_option> options in a WITH DHCP clause of the CREATE AVAILABILITY GROUP or ALTER AVAILABILITY GROUP[!INCLUDE tsql] statement.

NULL = IPv6 subnet.
network_subnet_prefix_length int Network IP prefix length that specifies the subnet to which the computer belongs.
is_public bit Whether the network is private or public on the WSFC cluster, one of:

0 = Private
1 = Public
is_ipv4 bit Type of the subnet, one of:

1 = IPv4
0 = IPv6

Remarks

[!INCLUDE dmv-cluster-column-display]

Permissions

For [!INCLUDE sssql19-md] and previous versions, requires VIEW SERVER STATE permission on the server.

For [!INCLUDE sssql22-md] and later versions, requires VIEW SERVER PERFORMANCE STATE permission on the server.

Related content