Opswise Unix Agent Install
2. Installation Prerequisites
-
On Fedora, install the cryptography libcrypt.so.1 library
Fedorasudo dnf install -y libxcrypt-compat-
Confirm with
ls -l /usr/lib64/libcrypt.so.1
-
-
Even though Stonebranch has added support for starting the agent via systemctl as of v7.4, the legacy startup script
/etc/init.d/ubrokerdstill exists; it is not a native systemd unit. -
In order to allow the ubrokerd.service to start at boot time:
-
Check for the existence of
/usr/lib/systemd/systemd-sysv-installWhich is a link to /usr/sbin/chkconfig -
If it doesn’t exist, then it needs to be installed via:
sudo dnf install chkconfig -y
-
3. Prep
-
Log on to the
Software Downloadssection of the StoneBranch Portal. -
Find the
Universal Agentdownloads link:-
Download the latest tarball image file from here.
The file will be named like the following:
RedHat/CentOS: sb-7.8.2.0-linux-3.10-x86_64.tar.Z Ubuntu: sb-7.8.2.0-linux-4-x86_64-deb.tar.Z
-
-
Prep the installation script:
-
Download the installation script as:
install-on-unix.bash -
Copy or SFTP this script to the
/tmpdirectory. -
Edit the script with updated values for the embedded variables. The comments in the script will point out variables that should be updated.
-
Make the script executable
sudo chmod u+x ./install-on-unix.bash
-
4. Install
-
Copy Tar Ball:
-
Copy or SFTP the tarball image file to the
/tmpdirectory.
-
-
Run the installer:
As per the previous step our install script should already be in the
/tmpdirectory as well.-
As root, run the
install-on-unix.bashinstall script.cd /tmpsudo ./install-on-unix.bash
-
5. Post Installation
5.1. Open port 7887 Inbound
|
This is only required when an |
-
Execute
sudo firewall-cmd --permanent --zone=public --add-port=7887/tcp (1) sudo systemctl reload firewalld (2)1 Open port 7887for inbound traffic.2 Restart the FW daemon. -
Confirm
ubrokerdis listening on port7887:Commandsudo ss -tulpn | less | grep :7887Result
tcp LISTEN 0 100 0.0.0.0:7887 0.0.0.0:* users:(("ubrokerd",pid=265030,fd=13)) (1)1 The result indicates that the ubrokerdprocess is listening on port7887.
5.2. Create the PAM file
-
Copy the following contents as /etc/pam.d/ucmd.
More info about PAM files can be found here. Commandsudo vi /etc/pam.d/ucmdExpand for
ucmdContentsUbuntuauth sufficient pam_rootok.so auth include common-auth auth required pam_nologin.so account include common-accountNon Ubuntuauth include system-auth auth required pam_nologin.so account include system-auth -
Confirm that /etc/pam.d/system-auth exists.
-
If not, copy the system-auth file from this archive as /etc/pam.d/system-auth.
-
7. Uninstall
| These steps may be incomplete |
-
Stop Agent via one of the following:
-
Via init.d
sudo /etc/init.d/ubrokerd stop -
Via sysctl
sudo systemctl stop ubrokerd.service
-
-
Uninstall Agent
RHEL instructions
sudo rpm -e unv-opscli sudo rpm -e unv sudo rm -rf /etc/rc3.d/S50ubrokerd sudo rm -rf /etc/universal sudo rm -rf /opt/universal sudo rm -rf /var/opt/universalUbuntu instructions
sudo dpkg -r unv sudo dpkg -r unv-opscli sudo rm -rf /etc/rc3.d/S50ubrokerd /etc/universal /opt/universal /var/opt/universal