registerdatastore
This utility is used with all ArcGIS Data Store types.
The data store retains information about the machine names of the hosting GIS Server site. If you move the hosting GIS Server site to new machines (for example, if you got new hardware or if the existing GIS Server machines failed), you must unregister the data store from the GIS Server site to remove this information. After you configure GIS Server on a new machine (or machines), register the data store with the GIS Server site using the registerdatastore utility.
Note:
The registerdatastore utility is used to register the data store to the same GIS Server site it was registered to previously. The data store contains the data for the hosted layers on the existing GIS Server site. Registering it to a different GIS Server site does not re-create the hosted layers.
The registerdatastore utility can be run on the primary relational store machine. It can be run on any machine in an object store running in cluster mode or any spatiotemporal big data store machine. For a graph store running in cluster mode, you must run the registerdatastore utility from every machine in the cluster to reregister it with the hosting server.
Syntax
registerdatastore <ArcGIS Server URL> <ArcGIS Server site administrator username> <ArcGIS Server site administrator password> --stores {relational | spatiotemporal | graph | object}
Example
In this example, a relational store is reregistered to a GIS Server site with the URL https://gisserver.example.com:6443. The ArcGIS Server primary site administrator username is agsadmin with the password Tan$p0n.
./registerdatastore.sh https://gisserver.example.com:6443 agsadmin Tan$p0n --stores relational
registerdatastore https://gisserver.example.com:6443 agsadmin Tan$p0n --stores relational