Select to view content in your preferred language

ArcGIS Server 10.2 Linux Change Hostname

2502
2
09-18-2013 08:52 AM
CurtisRuck
Occasional Contributor
How do you change the hostname of an ArcGIS Server 10.2 on Linux?

I see all of the certificates and machines's hostnames in config-store.  I can easily stop the service, change all of the hostnames and start, but the certificate and keystore has the old hostname in it, and the keystore password is unknown so i can't regenerate it.
Tags (2)
0 Kudos
2 Replies
HildegardGerlach1
Deactivated User
I have the same problem.
I have installed ArcGIS Server (version 10.2) for the first time on Linux. In the meantime the machine name has been changed. How can I change it for ArcGIS Server ? Is there nothing like post-install as in Windows ?

Thanks

Hilde
0 Kudos
CurtisRuck
Occasional Contributor
I believe the init scripts are supposed to automatically handle it for you based on this snippet from $AGS_HOME/framework/etc/scripts/agsserver.sh

ConfigureServer() {
    #check if server is configured on this machine
    postinstallfile=$installDir/framework/etc/postinstall.dat
    if [ -f $postinstallfile ]; then
        hostname=`cat $postinstallfile`
        if [ "$hostname" = "`hostname`" ]; then
            return
        fi
    fi
    #New machine, should run configurations
    if [ -f $postinstallfile ]; then
        rm -rf $postinstallfile
    fi

    ConfigureWine

    #create flag file to ensure this step is not run again
    hostname > $postinstallfile
}
0 Kudos