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:
Log in to the server or node as root.
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 stopIn 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.
(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 - )Navigate to the directory where you unpacked the Steel-Belted Radius Carrier package, usually /opt/JNPRsbr/radius/install.
Execute:
cd /opt/JNPRsbr/radius/install/Execute the unconfigure script:
Execute:
./unconfigureA warning message is displayed. Enter y to proceed.
--------------------------------------------------------------------------- SBR 8.60.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
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]:
The script removes the software from various directories in /opt:
Cleaning directories /opt/JNPRhadm /opt/JNPRmysql /opt/JNPRmysqld /opt/JNPRndb_mgmd /opt/JNPRndbd
Remove the software:
Log in as root.
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.60.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:
Log in to the server or node as root.
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 stopIn 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.
(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.
Navigate to the directory where you unpacked the Steel-Belted Radius Carrier package, usually /opt/JNPRsbr/radius/install.
Execute:
cd /opt/JNPRsbr/radius/install/Execute the unconfigure script:
Execute:
./unconfigureA warning message is displayed. Enter y to proceed.
--------------------------------------------------------------------------- SBR 8.60.50006 temporary cluster cambridge on Linux 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 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
The script removes the software from various directories in /opt:
Cleaning directories /opt/JNPRhadm /opt/JNPRmysql /opt/JNPRmysqld /opt/JNPRndb_mgmd /opt/JNPRndbd
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
To remove the SBR software, execute:
yum remove sbr-cl for the cluster configuration.
yum remove sbr-sa for the standalone configuration.
The script removes the SBR software from the server.