Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

Uninstalling the Steel-Belted Radius Carrier Server Software

The software uninstall procedure is essentially the same for a standalone server or cluster node, the only difference being how the processes are stopped.

To uninstall the Steel-Belted Radius Carrier server software from its default location (/opt/JNPRsbr) on Solaris server:

  1. Log in to the server or node as root.
  2. Stop the RADIUS process. The exact syntax for this step depends on the server type:

    For a standalone server, execute:
    cd /opt/JNPRsbr/radius
    ./sbrd stop

    In a cluster environment, stopping the SSR and RADIUS processes on the various node types, must be done in a specific order. Follow the procedures described in When and How to Restart Session State Register Nodes, Hosts, and Clusters, and then proceed to the next step.

  3. (Optional) Back up your Steel-Belted Radius Carrier server directory.

    Create a new archive directory to ensure that you do not overwrite an existing backup.

    cd /opt/JNPRsbr
    mkdir /opt/backups
    tar cf - radius | ( cd /opt/backups; tar xfBp - )

  4. Navigate to the directory where you unpacked the Steel-Belted Radius Carrier package, usually /opt/JNPRsbr/radius/install.

    Execute:
    cd /opt/JNPRsbr/radius/install/

  5. Execute the unconfigure script:

    Execute:
    ./unconfigure

  6. A warning message is displayed. Enter y to proceed.
    ---------------------------------------------------------------------------
    SBR 8.40.50006 temporary cluster cambridge
    on SunOS 5.10 Generic_141444-09 node sbrha-4(smdt)
    is configured and processes are down, may be reconfigured if desired
    ---------------------------------------------------------------------------
    Unconfiguring Cluster Node...
    WARNING: You are about to make irreversible changes to this node.
    Are you sure that you wish to continue? (y,n): y
    
  7. Clean up the user accounts.

    A prompt is displayed to delete or preserve and clean up the hadm user account and associated directories.

    • If you are going to reconfigure this server to serve as a standalone SBR Carrier server or become a node host in a cluster, enter n.
    • If the server will be used for other purposes, enter y.
    Locating OS user account and home directory...
    hadm:x:16666:65536::/opt/JNPRhadm:/bin/bash
    hadmg::65536:
    drwxrwx---   2 hadm     hadmg       1536 Mar 28 10:59 /opt/JNPRhadm
    WARNING: If you remove the OS user account hadm you will have
    to recreate it, the associated OS group account hadmg, and
    the associated home directory /opt/JNPRhadm
    This is neither necessary nor recommended if you are updating
    an existing configuration.  Remove the OS user account? [n]: 
  8. The script removes the software from various directories in /opt:
    Cleaning directories
    /opt/JNPRhadm
    /opt/JNPRmysql
    /opt/JNPRmysqld
    /opt/JNPRndb_mgmd
    /opt/JNPRndbd
  9. Remove the software:
    1. Log in as root.
    2. Execute:
      cd/opt
      pkgrm JNPRsbr

    Example:

    root@life:/opt/JNPRsbr/radius/install> cd /opt
    root@life:/opt> pkgrm JNPRsbr
    
    The following package is currently installed:
       JNPRsbr  JNPRsbr - Juniper Networks Steel-Belted Radius (Carrier Edition)
                (sparc) 8.40.50006
    
    Do you want to remove this package? [y,n,?,q]  y
    ## Removing installed package instance <JNPRsbr>
    
    This package contains scripts which will be executed with super-user
    permission during the process of removing this package.
    
    Do you want to continue with the removal of this package [y,n,?,q]  y
    ## Verifying package <JNPRsbr> dependencies in global zone
    ## Processing package information.
    ## Executing preremove script.
    Existing server directory will be backed up as:
    /opt/JNPRsbr/radius/install/backups/2009:03:31-00:12:03
    ## Removing pathnames in class <none>
    /opt/JNPRsbr/radius/install <non-empty directory not removed>
    /opt/JNPRsbr/radius <non-empty directory not removed>
    ## Executing postremove script.
    ## Updating system information.
    
    Removal of <JNPRsbr> was successful.
    root@life:/opt> rm -rf /opt/JNPRsbr

To uninstall the Steel-Belted Radius Carrier server software from its default location (/opt/JNPRsbr) on Linux server:

  1. Log in to the server or node as root.
  2. Stop the RADIUS process. The exact syntax for this step depends on the server type:

    For a standalone server, execute:
    cd /opt/JNPRsbr/radius
    ./sbrd stop

    In a cluster environment, you need to stop the SSR and RADIUS processes on the various node types in a specific. Follow the procedures described in When and How to Restart Session State Register Nodes, Hosts, and Clusters, and then proceed to the next step.

  3. (Optional) Back up your Steel-Belted Radius Carrier server directory.

    Create a new archive directory to ensure that you do not overwrite an existing backup.

  4. Navigate to the directory where you unpacked the Steel-Belted Radius Carrier package, usually /opt/JNPRsbr/radius/install.

    Execute:
    cd /opt/JNPRsbr/radius/install/

  5. Execute the unconfigure script:

    Execute:
    ./unconfigure

  6. A warning message is displayed. Enter y to proceed.
    ---------------------------------------------------------------------------
    SBR 7.40.20430 temporary cluster cambridge
    on Linux 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 node Cambridge
    is configured and processes are down, may be reconfigured if desired
    ---------------------------------------------------------------------------
    Unconfiguring Cluster Node...
    WARNING: You are about to make irreversible changes to this node.
    Are you sure that you wish to continue? (y,n): y
    
  7. The script removes the software from various directories in /opt:
    Cleaning directories
    /opt/JNPRhadm
    /opt/JNPRmysql
    /opt/JNPRmysqld
    /opt/JNPRndb_mgmd
    /opt/JNPRndbd
  8. Clean up the user accounts.

    A prompt is displayed to delete or preserve and clean up the hadm user account and associated directories.

    • If you are going to reconfigure this server so that it serves as a standalone SBR Carrier server or becomes a node host in a cluster, enter n.
    • If the server will be used for other purposes, enter y.
    Locating OS user account and home directory...
    hadm:x:16666:65536::/opt/JNPRhadm:/bin/bash
    hadmg::65536:
    drwxrwx---   2 hadm     hadmg       1536 Mar 28 10:59 /opt/JNPRhadm
    WARNING: If you remove the OS user account hadm you will have
    to recreate it, the associated OS group account hadmg, and
    the associated home directory /opt/JNPRhadm
    This is neither necessary nor recommended if you are updating
    an existing configuration.  Remove the OS user account? [n]: 
    Unconfigured
  9. To remove the SBR software, execute:
    • yum remove sbr-cl for the cluster configuration.
    • yum remove sbr-sa for the standalone configuration.

    Note: While removing the 64-bit standalone or cluster version of SBR Carrier from a RHEL 7.0 machine, the script displays multiple warnings such as the following messages:

    warning: file /opt/JNPRsbr/radius/website/webserver/jetty.tar.gz: remove failed: No such file or directory  
    warning: file /opt/JNPRsbr/radius/website/webserver/ROOT.tar.gz: remove failed: No such file or directory 

    These warnings can be ignored.

  10. The script removes the SBR software from the server.

Modified: 2017-10-26