Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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.

    Note: 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.

    1. Log in to the PSM server.
    2. Insert the PSM DVD into the DVD drive of the server or copy the PSM ISO image onto the server.
    3. 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.5.0.iso).

    4. Copy the RPM file from the mounted DVD or ISO to any location on the server workstation. For example:
      cp /media/ems9001-7.5-0.x86_64.rpm /usr/local
    5. Install the new PSM server.
      1. 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.

      2. 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.5-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.5-0.x86_64.rpm
        Preparing...                          ################################# [100%]
        Updating / installing...
           1:ems9001-7.5.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.5

        Note: The proNX Service Manager files are installed in the above directory. A softlink is created to this directory at:

        /usr/local/ems9001
      3. Exit the screen terminal.
        exit

        This closes the Linux screen terminal and returns you to the original shell.

    6. Unmount the DVD or ISO. Enter:
      umount /media
    7. Reboot the server.
      reboot
    8. 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.

    9. To confirm that the new version of the server is installed, check the version information:
      [user ~]# rpm -q ems9001
      ems9001-7.5-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.

    Modified: 2017-11-07