Skip to content

How to Check SCAN Host Name

  • by

SCAN Hostname

To know the hostname of a SCAN in the cluster, we have some ways to get it.

nslookup

Given a known SCAN IP, we may perform a reverse DNS lookup by nslookup.

[grid@primary01 ~]$ nslookup 10.10.10.81
81.10.10.10.in-addr.arpa      name = primary-cluster-scan.example.com.

The hostname should be returned.

/etc/hosts

If the above nslookup returned no result, SCAN IP could be setup without DNS. Without DNS, the cluster can only depend on /etc/hosts to do name resolution.

[grid@primary01 ~]$ grep "10.10.10.81" /etc/hosts
10.0.0.81    primary-cluster-scan

srvctl config scan

If any SCAN IP is even unknown, you may check all information about SCAN by issuing command srvctl config scan. [grid@primary01 ~]$ srvctl config scan
SCAN name: primary-cluster-scan, Network: 1
Subnet IPv4: 10.0.0.0/255.255.255.0/en0, static
Subnet IPv6:
SCAN 1 IPv4 VIP: 10.0.0.81
SCAN VIP is enabled.
SCAN 2 IPv4 VIP: 10.0.0.82
SCAN VIP is enabled.
SCAN 3 IPv4 VIP: 10.0.0.83
SCAN VIP is enabled.

It displays everything you need to know about SCAN.

To add more SCAN VIP to the cluster, we have a tutorial for readers.

Leave a Reply

Your email address will not be published. Required fields are marked *