srvctl export gns

The srvctl export gns command exports Grid Naming Service (GNS) instance data to a file that you can use when you are either moving GNS from one server cluster to another or when you are creating a client cluster

SRVCTL extracts the data from OCR. Exported data includes:

  • The credentials used to authorize users, which includes the VIP address on which the server listens

  • The names and DNS records kept in GNS

Note:

This command is only available with Oracle Clusterware.

Syntax and Parameters

Use the srvctl export gns command with the following syntax:

srvctl export gns {-instance path_to_file | -clientdata path_to_file}

Table A-65 srvctl export gns Parameters

Parameter Description
-instance path_to_file

Use this parameter to specify the file to which GNS instance data is written.

Use this parameter when you are moving GNS from one server cluster to another.

-clientdata path_to_file

Use this parameter to specify the file to which GNS credentials data is written.

Use this parameter when you are adding a client cluster to create a file that contains credentials that the client cluster accesses to perform name management operations on the server cluster.

Usage Notes

  • You must run this command as root user on Linux and UNIX platforms, or as an Administrator user on Windows platforms

  • You must run this command on any node in the server cluster

  • GNS does not need to be running during export

  • The data must be locked during the procedure to ensure consistency

Example

The following command exports the GNS credentials data to a file named gns.txt:

# srvctl export gns -clientdata /temp/gnsdata/gns.txt