Installing the PSM Server
This procedure describes how to install the PSM server from an installation DVD or ISO image.
Obtain the PSM DVD or ISO image.
Before starting this procedure, consult the proNX Service Manager Release Notes for this release. The proNX Service Manager Release Notes contains important information relating to installing and upgrading software for this release, and might require you to take additional steps prior to or after executing this procedure.
- Log in to the PSM server.
- Insert the PSM DVD into the DVD drive of the server or copy the PSM ISO image onto the server.
- Mount the DVD or the ISO. The mount directory (
/media
) in the following commands can be changed.To mount the DVD:
mount -t iso9660 /dev/cdrom /media
To mount the ISO:
mount -t iso9660 -o loop PSM-xxx.iso /media
where
PSM-xxx.iso
is the name of the ISO file (for example,PSM-7.8.0.iso
). - Copy the RPM file from the mounted DVD or ISO to any location
on the server workstation. For example:
cp /media/ems9001-7.8-0.x86_64.rpm /usr/local
- Install the new PSM server.
To reduce the risk of database corruption while installing, execute the installation within the Linux screen terminal. Commands launched within the screen terminal continue to run even if your connection to the server is lost.
screen
The screen terminal is launched.
In the screen terminal, navigate to the location where the RPM file was copied, and start the installation. For example:
cd /usr/local rpm -ivh ems9001-7.8-0.x86_64.rpm
Note If your connection to the server is lost during this step, log back in from any machine and type screen -r to reattach the screen.
The following is an example of the installation output. Your output might differ depending on release and configuration:
# rpm -ivh ems9001-7.8-0.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:ems9001-7.8.0 ################################# [100%] Configuring iptables rules Removing databases Synchronising database schema Checking database schema Initialising database Configuring radius Configuring existing radius account Configuring crontab entries Configuring performance monitoring/graphing Configuring process supervision Configuring scripts >>> Install Successful <<<
The output indicates that the following main events occurred:
The new RPM package is expanded.
The operating system firewall is updated with new rules for PSM.
MySQL starts and the database is dropped and reinitialized with new schemas. As part of the installation, the MySQL database is configured with a default user and password. Contact Juniper Networks Support if you do not know the default user and password.
The local RADIUS server is configured.
The performance monitoring and graphing infrastructure is set up.
The process manager is re-initialized to start managing PSM
The following directory is created:
/usr/local/ems9001-7.8
Note The proNX Service Manager files are installed in the above directory. A softlink is created to this directory at:
/usr/local/ems9001
Exit the screen terminal.
exit
This closes the Linux screen terminal and returns you to the original shell.
- Unmount the DVD or ISO. Enter:
umount /media
- Reboot the server.
reboot
- After the server machine has rebooted, log back in and
confirm that the PSM server is up and running.
[user ~]# psm-status Every 2.0s: monit summary Tue Jun 21 15:51:22 2016 The Monit daemon 5.14 uptime: 14d 2h 57m Process 'SSH' Running Process 'radiusd' Running Process 'SNMPD' Running Process 'MySQL' Running Process 'proftpd' Running Filesystem 'rootfs' Accessible Filesystem 'logfs' Accessible Filesystem 'varfs' Accessible Filesystem 'pmsfs' Accessible Process 'Ems-Server-Masters' Running Process 'Ems-Server-Workers' Running Process 'Ems-Server-Discovery' Running Process 'Ems-Dashboard' Running Process 'CROND' Running Process 'carbon' Running System 'psm.example.com' Running
The 'Ems-' processes should all be in the running state. You might need to wait a few minutes before the 'Ems-' processes all change to the running state. Type <ctrl> c to exit the Linux watch command window.
- To confirm that the new version of the server is installed,
check the version information:
[user ~]# rpm -q ems9001 ems9001-7.8-0.x86_64
Look for the 'ems9001-' entry and confirm that the version is indeed the correct release.
You have successfully installed the PSM server.