Configure GCEMS and Start Linux Services - IMG 1004

Before You Begin:

 

Procedure:

Follow these steps to setup the GCEMS Server.

  1. Connect to the GCEMS Server.

  2. Login as:

    user: excelsw
    password: excelsw
     

  3. If a DNS server will be needed in your network you will need to configure a DNS server. To configure DNS server on GCEMS server follow next few steps.

  4. In the RedHat GUI select System Settings > Network and the following screen below will appear.

  5. Select the DNS tab and enter a hostname for the DNS server in the Hostname field.

  6. Enter Primary and Secondary IP addresses for the primary and secondary DNS servers.

  7. Close the network configuration screen.

    sc-redhat-config-network-dns.png
     

  8. The first step is to create a link for the dhcpd.conf file in /etc. There are two ways to create this link. There is a manual way where the command is entered manually into a terminal, and there is a script written to make the process easier. The next few steps below explain both processes.

 

Create link using lnimg (link img) script

  1. Go to the following directory. See Below.

    /opt/dialogic/common/osconfig (Software 10.5.1 +)

  2. Transfer the script lnimg to /home/excelsw/ftpBuilds.

  3. From the /home/excelsw/ftpBuilds directory, run the lnimg script

    $./ lnimg
     

  4. Follow the prompts and enter the version of software to be loaded.

  5. Script will create a link between a common name img1004_id0106.bin and the name of the software you would like to load.

  6. Execute an ls -la command to verify the link gets created. See Link below. To confirm the link has been created, type:

    $ls -la

    Response:
    lrwxrwxrwx   1 root    root   27 Jun 21 09:27 img1004_id0106.bin -> img1004_ver1050123_id0106.bin
     
     

Create link using ln -sf command. (Manually)

  1. From the  /home/excelsw/ftpBuilds directory, enter the command below:

    ln - sf img1004_ver1050123_id0106.bin img1004_id0106.bin
     

  2. To confirm the link has been created, type:

    ls -la

    Response:
    lrwxrwxrwx   1 root    root   27 Jun 21 09:27 img1004_id0106.bin -> img1004_ver1050123_id0106.bin
     

  3. Verify that the link created points to the correct bin file.

 

Create dhcpd.conf file

  1. As Super User, create the dhcpd.conf file. Run the dhcpd file creation script located in the following directory:

    /opt/dialogic/common/osconfig (Software 10.5.1 + )
    #./xldhcp
     

Note: You can also create the Linux default dhcpd.conf file manually. See Sample dhcpd.conf File.

  1. Enter values when prompted as appropriate for your configuration. You will be prompted for the following information: [factory defaults shown in bold]

    Router/Default Gateway IP Address: [192.168.0.1]
    Router/Default Gateway Subnet Mask: [255.255.255.0]
    Subnet IP Address: (Router/Default Gateway IP Address - 1) [192.168.0.0]
    FTP Server IP Address: (This PC IP Address) [192.168.0.100]
    How many IMG systems are being configured? [1]

    T1 or E1 IMG ( t/ e)? [ t]
    CODEC Profile Selection
    1 = LBR
    2 = LBR + iLBC
    3 = LBR + iLBC + wireless

    [NOTE: You must have a license for wireless codecs. You must also set host flags accordingly (see Vocoder Information)]

    Enter CODEC profile? [2]
    IMG(CTRL0)[1] IP Address: [192.168.0.102]
    IMG(CTRL0)[1] MAC Address:  (MAC shown on IMG Label) [00:20:1C:xx:xx:xx]
    IMG(CTRL1)[1] MAC Address: (MAC shown on IMG Label +1) [00:20:1C:xx:xx:xx+1]

     

Note: Assign an IP address to the IMG that is on the same subnet as the GCEMS server. Once this IP address is set, the GCEMS will be able to connect to and configure the IMG.

 

  1. The following is the response after all prompts are complete:  

     dhcpd.conf created with 1 IMG's configured...
     

  2. The file will be created in the /opt/dialogic/common/osconfig directory.

  3. Move the file to the /etc directory ( mv dhcpd.conf /etc)

 

Create the ntp.conf file.

  1. As a Super User Create the ntp.conf file. Go to:

    /opt/dialogic/common/osconfig (Software 10.5.1 +)

  2. Run the ntp configuration script:

    #./xlntp
     

  3. Enter IP Address and Subnet mask when prompted as appropriate for your configuration.

  4. Move the ntp file to the /etc directory. ( mv ntp.conf /etc). See Sample ntp.conf File.

 

Start the services nfs, vsftpd, dhcpd, and ntp

  1. As a Super User, start all the services and configure them to restart when GCEMS server is rebooted. Enter the following commands to start the nfs server

    #/sbin/service nfs start    (Start the nfs service)
    #/sbin/service nfs status (Verify whether nfs is running)
    #/sbin/chkconfig nfs on    (Configure nfs service to restart after a reboot of GCEMS)
    #/sbin/chkconfig nfs --list (Verify that runlevels 3,4 and 5 are all on.)

    Example:  nfs                0:off     1:off     2:on     3:on     4:on     5:on     6:off
     

  2. Enter the following commands to start vsftpd service

    #/sbin/service vsftpd start    (Start the vsftpd service)
    #/sbin/service vsftpd status  (Verify whether vsftpd is running)
    #/sbin/chkconfig vsftpd on    (Configure vsftpd service to restart after a reboot of GCEMS)
    #/sbin/chkconfig vsftpd --list (Verify that runlevels 3,4, and 5 are all on.)
     

  1. Enter the following commands to start dhcpd service

    #/sbin/service dhcpd start    (Start the dhcpd service)
    #/sbin/service dhcpd status  (Verify whether dhcpd is running)
    #/sbin/chkconfig dhcpd on    (Configure dhcpd service to restart after a reboot of GCEMS)
    #/sbin/chkconfig dhcpd --list (Verify that runlevels 3,4, and 5 are all on.)
     

  2. Enter the following commands to start ntp service

    #/sbin/service ntpd start     (Start the ntpd service)
    #/sbin/service ntpd status   (Verify whether ntpd is running)
    #/sbin/chkconfig ntpd on     (Configure ntpd service to restart after a reboot of GCEMS)
    #/sbin/chkconfig ntpd --list  (Verify that runlevels 3,4, and 5 are all on.)
     

  3. Once these services are running and the IMG software build is available the software can be downloaded. See IMG 1004-Downloading System Software

 

CRON Jobs

The IMG includes a crontab that manages GCEMS processes. This crontab runs automatically when the GCEMS is started (StartGCEMS), and stopped when the GCEMS is stopped (StopGCEMS). This file should not be edited. There is a user crontab where you can add your own cron jobs for such tasks as file management or CDR management. The file is located at:

/opt/dialogic/common/cron/usercron (Software 10.5.1 +)

 

This crontab runs automatically when the GCEMS is started, and stopped when the GCEMS is stopped. To stop a service, comment it out or delete it from the file and then start the GCEMS again (StartGCEMS).