Knowledgebase
Create & enable Customer Folder on vGate
Posted by Account Administrator on 28 April 2020 08:10 AM

Sometimes new customer partition are not properly completed on vGate server (hvg-linux-xx VM in Google) and you may have missing vGate Folder from Extra menu.

Following process is under root user, you may use sudo command if required.

Here is the process to follow to create the folder (example on hvg-linux-01, customer ID 9999):

  1. From SUPER SIMBERRY check which Customer ID and which HSS hvg-linux-xx server belongs to customer

  2. SSH to customer's hvg-linux-xx

  3. From prompt go to folder /opt/upm/cellxpro/.wine/drive_f/vGATE
    root@hvg-linux-01:/# cd /opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory/

  4. Create customer ID folder with proper owner and rights

    example with customer ID = 9999
    sudo -u cellxpro  mkdir -p -m=00755 "9999"

    Result:
    root@hvg-linux-01:/opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory# ls -la
    total XX
    drwxr-xr-x  5 cellxpro cellxpro 4096 Apr 28 07:47 9999


  5. Goto Customer ID folder and create SAMPLE_SCRIPTS, CYCLIC and SMS folders following same process as previous step:
    root@hvg-linux-01:/opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory# cd 9999
    sudo -u cellxpro  mkdir -p -m=00755 "SMS"
    sudo -u cellxpro  mkdir -p -m=00755 "CYCLIC"
    sudo -u cellxpro  mkdir -p -m=00755 "SAMPLE_SCRIPTS"

    Result:
    root@hvg-linux-01:/opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory/9999# ls -la

    total 20
    drwxr-xr-x 5 cellxpro cellxpro 4096 Apr 28 07:47 .
    drwxr-xr-x 12 cellxpro cellxpro 4096 Apr 28 07:40 ..
    drwxr-xr-x 2 cellxpro cellxpro 4096 Apr 28 07:47 CYCLIC
    drwxr-xr-x 2 cellxpro cellxpro 4096 Apr 28 07:47 SAMPLE_SCRIPTS
    drwxr-xr-x 2 cellxpro cellxpro 4096 Apr 28 07:47 SMS
  6. Copy with proper owner any of existing SAMPLE_SCRIPTS content from any exsiting Customer ID (here as an example 1158) to new Customer ID (9999) SAMPLE_SCRIPTS folder

    example with content from customer ID 1158 present on hvg-linux-XX
    root@hvg-linux-01:/opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory/9999/SAMPLE_SCRIPTS# cp ../../1158/SAMPLE_SCRIPTS/*.* ./ ; chown cellxpro:cellxpro *.*

    Result:
    root@hvg-linux-01:/opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory/9999/SAMPLE_SCRIPTS# ls -la
    total 84
    drwxr-xr-x 2 cellxpro cellxpro 4096 Apr 28 08:04 .
    drwxr-xr-x 5 cellxpro cellxpro 4096 Apr 28 07:47 ..
    -rw-r--r-- 1 cellxpro cellxpro 243 Apr 28 08:04 ACTIVATE_PLAN.ini
    -rwxr-xr-x 1 cellxpro cellxpro 219 Apr 28 08:04 BALANCE_CHECK.ini
    -rwxr-xr-x 1 cellxpro cellxpro 235 Apr 28 08:04 BALANCE_CHECK_MINUTES.ini
    -rw-r--r-- 1 cellxpro cellxpro 128 Apr 28 08:04 BALANCE_INFO.ini
    -rwxr-xr-x 1 cellxpro cellxpro 1092 Apr 28 08:04 CHANGE_SCRIPTS_SETTINGS.ini
    -rwxr-xr-x 1 cellxpro cellxpro 283 Apr 28 08:04 CHANGE_SETTINGS.ini
    -rw-r--r-- 1 cellxpro cellxpro 225 Apr 28 08:04 DTMF_Call.ini
    -rw-r--r-- 1 cellxpro cellxpro 165 Apr 28 08:04 GET_SIM_NUMBER.ini
    -rwxr-xr-x 1 cellxpro cellxpro 649 Apr 28 08:04 NUMBER_RECHARGE_PLAN.ini
    -rwxr-xr-x 1 cellxpro cellxpro 77 Apr 28 08:04 PARSE_OWNNUMBER.ini
    -rwxr-xr-x 1 cellxpro cellxpro 282 Apr 28 08:04 PLAN_USSD_MENU.ini
    -rw-r--r-- 1 cellxpro cellxpro 347 Apr 28 08:04 RECHARGE_PLAN.ini
    -rw-r--r-- 1 cellxpro cellxpro 126 Apr 28 08:04 SAVE_TEXT_UINFO.ini
    -rw-r--r-- 1 cellxpro cellxpro 90 Apr 28 08:04 SEND_SMS.ini
    -rw-r--r-- 1 cellxpro cellxpro 91 Apr 28 08:04 SEND_SMS_POSITION.ini
    -rwxr-xr-x 1 cellxpro cellxpro 250 Apr 28 08:04 SEND_SMS_WAIT.ini
    -rw-r--r-- 1 cellxpro cellxpro 79 Apr 28 08:04 SEND_USSD.ini
    -rw-r--r-- 1 cellxpro cellxpro 89 Apr 28 08:04 SET_PASSWORD.ini
    -rw-r--r-- 1 cellxpro cellxpro 97 Apr 28 08:04 SIM_Blocked.ini

  7. Restart vGateCtrl
    root@hvg-linux-01:/opt/upm/cellxpro/.wine/drive_f/vGATE/CustomerDirectory/9999/SAMPLE_SCRIPTS# service upm-vgatectrl restart

    Check with TOP command if service has restarted properly then quit else restart again service until it is correct

 

(1 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: