Sun Ray Enterprise Server Software 1.0 管理マニュアル

第 9 章 Sun Ray ソフトウェアの削除

この章では、サーバーから Sun Ray ソフトウェアを削除する方法について説明します。スクリプトベースおよび手動のアンインストール手続きについて説明します。この章は、以下の 2 つの節で構成されています。

スクリプトによるソフトウェアのアンインストール

システム管理者は構成解除スクリプトとアンインストールスクリプトを使用して、Sun Ray server softwareを削除することができます。

この節では、Sun Ray server softwareの構成解除およびアンインストールの方法について説明します。


注 -

server software を削除するには、uninstall -u を使用する前に、Sun Ray server software を構成解除する必要があります。


以下の説明では、ワークシートで選択した値を取得し、適切な位置に代入する必要があります。たとえば、@(WEBSERVER_NAME) に utadmin を取得したと仮定して、以下のコマンドに実際の値を代入する例を示します。

# htserver stop @(WEBSERVER_NAME)

結果は、以下のようになります。

# htserver stop utadmin

Sun Ray server software を構成解除する
  1. root で、以下のコマンドを入力します。

    # cd /etc/init.d

  2. サーバーを停止します。

    # ./utsvc stop

    サーバーが終了します。

  3. 以下のコマンドを入力します。

    # htserver stop @(WEBSERVER_NAME)

    Sun WebServer のインスタンスが終了します。@(WEBSERVER_NAME) は、管理アプリケーションをサポートする WebServer インスタンスの名前です。ワークシート上で選択した値を参照してください (「構成ワークシート」 を参照)。

  4. SunDS を終了します。

    # ./dsserv stop

    Stopping SunDS daemon

    SunDS daemon stopped

  5. 以下のコマンドを入力します。

    # /opt/SUNWut/sbin/utadm -r

    すべての Sun Ray インタフェースに関連するエントリと構造がすべて削除されます。Sun Ray server softwareを削除できる状態になりました。

    ### Removing interface "<interface>"

  6. 構成解除プロセスを開始します。

    # /opt/SUNut/sbin/utconfig -u

    Un-configuration of Sun Ray enterprise server Software

  7. 次のメッセージに応答します。 Unconfigure Sun Web Server 2.1 ([y]/n)?

    このスクリプトにより、Sun Web Server 2.1 を構成解除するかどうかを確認されます。デフォルト値は y です。

    Unconfigure Sun Web Server 2.1([y]/n)y

  8. 以下のようにメッセージに応答します。


    注 -

    この例では、Web サーバーインスタンス名の @(WEBSERVER_NAME)、および CGI ユーザー名の @(CGI_USER) は、デフォルト値である utadmin および www) を使用しています。異なる値を入力した場合は、ここで入れてください。元の値については、構成ワークシートを参照してください (「構成ワークシート」を参照)。


    Enter UT admin web server instance name [utadmin]:

    Delete CGI username account ([y]/n) y

    # Enter CGI username [www)]:www

    About to un-configure the following software products:

    Sun Directory Services 3.1

    Sun Web Server 2.1

    Sun Ray enterprise server 1.0

    Continue ([y]/n)y

    Sun Ray サーバーの構成解除プロセスが開始します。以下のメッセージが表示されます。

    Removing Sun Ray enterprise server Configuration ...

    Removing Sun Web Server 'utadmin' instance ...

    utadmin : Not running.

    utadmin : Deleted.

    Deleting user account for 'www' ...

    www:x:130001:10:ut admin web server cgi user:/tmp:/bin/sh

    Unloading Sun Directory Services Datastore ...

    Removing Sun Directory Services Datastore ...

    Downdating Sun Directory Services ACL's ...

    Downdating Sun Directory Services schema ...

    Starting SunDS daemon .

    Tue Apr 20 16:58 : dsservd starting

    Un-configuration of Sun Ray enterprise server has completed. Please check the log file, /var/tmp/utconfig.xxxxx.log, for errors.

  9. スクリプトが完了したら、エラーが発生していないかどうかを確認するために、/var/tmp/utconfig.xxx.log をチェックします。xxx はスクリプトのプロセス id です。

Sun Ray ソフトウェアをアンインストールする

この節では、utinstall -u を使用して、Sun Ray server softwareを削除する方法について説明します。


注 -

現在の作業用ディレクトリは、削除するディレクトリの配下にあってはなりません。作業用ディレクトリに対して cd / を実行して確認してください。


  1. 以下のコマンドを入力します。

    # cd /

  2. 削除プロセスを開始します。

    # /opt/SUNWut/sbin/utinstall -u

    # Removal of Sun Ray enterprise server Software

  3. 以下のようにメッセージに応答します。

    #Remove Sun Web Server 2.1 ([y]/n)? y

    #Remove Sun Directory Services 3.1 ([y]/n)? y

    About to remove the following software products:

    Sun Ray enterprise server 1.0

    Sun Web Server 2.1

    Sun Directory Services 3.1

    # Continue ([y]/n)y

    パッケージが削除されました。以下のメッセージが表示されます。

    Removing Sun Ray enterprise server version 1.0 ...

    Removal of <SUNWuta> was successful.

    Removal of <SUNWutj> was successful.

    Removal of <SUNWutm> was successful.

    Removal of <SUNWuto> was successful.

    Removal of <SUNWutr> was successful.

    ### successfully removed Sun Ray audio pseudo driver (utadem)

    ### successfully removed Sun Ray pseudo driver

    Removal of <SUNWutk> was successful.

    Removal of <SUNWutu> was successful.

    Removing Sun Web Server version 2.1 ...

    No running servers found.

    Removing SWS does not remove your websites or configurations.

    Server instances and websites are typically found in /var/http,

    although they may be placed anywhere you choose. See "/etc/http/httpd-instances.conf" for the master list of server configurations.

    Checking installed packages and patches...

    ...Removal of <SUNWsds> was successful.

    Removal of <SUNWsdsc> was successful.

    Removal of Sun Ray enterprise server has completed, see /var/tmp/utinstall.xxxxx.log

    #

  4. スクリプトが完了したら、エラーが発生していないかどうかを確認するために、/var/tmp/utconfig.xxx.logをチェックします。xxx はスクリプトのプロセス id です。

手動によるソフトウェアのインストール解除

pkgrm を使用して Sun Ray server softwareをアンインストールするには、以下の手続きで行います。スクリプトを使用したソフトウェアの削除の手続きについては、「スクリプトによるソフトウェアのアンインストール」を参照してください。

Sun Ray server software を削除する
  1. root でサーバーを終了します。

    # /etc/init.d/utsvc stop

  2. ネットワーク接続をすべて削除します。

    # /opt/SUNWut/sbin/utadm -r

  3. ソフトウェアパッケージを削除します。

    # pkgrm SUNWuta SUNWutm SUNWuto SUNWutr SUNWutux SUNWutu SUNWutkx SUNWutk SUNutj

    各パッケージの削除の確認に対して、y で応答します。以下のメッセージが表示されます。

    The following package is currently installed:

    SUNWuto Sun Ray enterprise server Core Software

    (sun4m,sun4u,sun4d) Alpha4

    Do you want to remove this package? y

    ## Removing installed package instance <SUNWuto>

    ## Verifying package dependencies.

    ## Processing package information.

    ## Removing pathnames in class <none>

    /tftpboot/view

    /tftpboot/tftpboot

    /tftpboot <non-empty directory not removed>

    /opt/SUNWut/lib/tftpboot

    /opt/SUNWut/lib <shared pathname not removed>

    /opt/SUNWut/bin/utfwupgrade

    /opt/SUNWut/bin/esdl

    /opt/SUNWut/bin <shared pathname not removed>

    /opt/SUNWut <shared pathname not removed>

    ## Updating system information.

    Removal of <SUNWuto> was successful.

SunDS 3.1 と Sun WebServer 2.1

アンインストールと構成解除については、サポートしているソフトウェアのマニュアルを参照してください (Sun Ray enterprise server Software 1.0 CD-ROM に格納されています)。