Archive for VOS3000

How to install VOS3000 Server on CentOS 5.x

How to install VOS3000 Server on CentOS 5.x
Follow the below steps as tested on CentOS 5.x
Configure the Time Zone according to your Country Zone setup

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
# nano /etc/sysconfig/clock
ZONE=”Asia/Dhaka”
UTC=true
ARC=false
#  date –set=”02 SEP 2011 20:50:00″              (ddMMYYYY HH:MM:SS)

To disable security firewall
# nano /etc/sysconfig/selinux
==========================================================
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing – SELinux security policy is enforced.
#       permissive – SELinux prints warnings instead of enforcing.
#       disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted – Only targeted network daemons are protected.
#       strict – Full SELinux protection.
SELINUXTYPE=targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

Check the line      SELINUX=disabled
Desable the iptable firewall

# /etc/init.d/iptables status
# /etc/init.d/iptables save
#  /etc/init.d/iptables stop
#  chkconfig iptables off
#  /etc/init.d/ip6tables save
#  /etc/init.d/ip6tables stop
# chkconfig ip6tables off

Now reboot the server
# reboot

Check the Linux security status

12- sestatus   (should display as below )
[root@L122NGNRS01 ~]# sestatus
SELinux status:                 disabled

Copy the  apache-tomcat-5.5.15.tar.gz  file in to /usr/ folder

#cd  /usr
#  tar -xvf apache-tomcat-5.5.15.tar.gz
#    rpm -ivh perl-DBI-1.40-5.i386.rpm
#    rpm -ivh MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
#    rpm -ivh MySQL-client-community-5.0.51a-0.rhel4.i386.rpm
#    rpm -ivh jdk-1_5_0_08-linux-i586.rpm
#    rpm -ivh emp-2.1.1-5.noarch.rpm
#    rpm -ivh mbx3000-2.1.1-5.i586.rpm
#    rpm -ivh vos3000-2.1.1-5.i586.rpm
#    rpm -ivh ivr-2.1.1-5.i586.rpm
#    /etc/init.d/vos3000d restart
#    /etc/init.d/vos3000dall restart
#    service mysql restart
#   cd /usr/kunshi
#    mkdir /usr/kunshi/license
#    cd /usr/kunshi/license
Now for Licence Registration  get the IP address and MAC address , Company Name , number of CC

To get the ip address and MAC address

#  ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:2C:B5:FE
inet addr:192.168.1.67  Bcast:192.168.1.255  Mask:255.255.255.0

obtain the Licence FIle   as license.dat   and copy to /usr/kunshi/license/license.dat

Make licence file active

# chmod 755 /usr/kunshi/license/license.dat

Now restart all the required services
# service mysql restart
#   /etc/init.d/vos3000d  restart
#   /etc/init.d/vos3000d  restart
#   /etc/init.d/vos3000dall  restart
#   /etc/init.dmbx3000d restart
#   /etc/init.d/mbx3000d restart
#   /etc/init.d/mbx3000d restart
#   /etc/init.d/vos3000dall  restart
Now change the MySQL root password

#   /usr/bin/mysqladmin  -u root password yourpassword     (to change the mysql password)
Reboot the server

 

How to transfer Vos3000 server database to new Vos3000 server

How to transfer Vos3000 server database  to new  Vos3000 server

VOS 3000 use MySQL database to for their database named  vos3000db

If you want to backup and restore VOS 3000 database or transfer Vos3000 server database to new VOS 3000 server  follow the below steps :-

Login as root on old server

[root@centos]# mysqldump -u root  -p  vos3000db > vos3000backup.sql

Enter password: (enter your MySQL root Password)

Now copy  vos3000backup.sql   file to new server  execute below command to restore

#scp vos3000backup.sql  root@newserverip:/var/

Now Login on New Server

cd /var

[root@centos]# mysqldump -u root  -p  vos3000db  < vos3000backup.sql

Enter password: (enter your MySQL root Password of new server)

if command execute successful then your database is restore.

How to retrive vos3000 admin password or reset password

How to retrive vos3000 admin password or reset password

If you forget Vos3000 admin password you don’t need to worry if you know your MySQL root password.Vos3000 store their password in clear text  so you can read the password.

This is how to retrive vos3000 admin password
Login as root on vos3000 server
login to MySQL

[root@vostest ~]# mysql -u root -p vos3000db
Enter password :-  (enter your MySql Password)l

Now you are able to see your forget admin password Now login V0s3000 client and change your password.

How to transfer VOS3000 database on remote server easly

Its very long process to transfer vos3000 or my sql database to remote server as you take backup and restore on remote server. This is how to transfer VOS3000 database on remote server easly

#mysqldump -u root -pPPPP  vos3000db | ssh root@x.x.x.x  mysql -u root -pKKKK  vos3000db

PPPP is local mysql root password  KKKK is  remote mysql root password x.x.x.x change with your vos3000 or mysql database server IP address

vos3000db is the database which will transfer from loacl server to remote server.

Hope it will help you .

 

VOS3000 IPtables for port changing vos 3000 client and security

VOS3000 IPtables for port changing :
Use below rule to change your vos3000 client to access server on different port as 7899 or change as per your requirement

iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 7899 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 7899 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 3306 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 2501 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1205 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 143 -j DROP
iptables -A POSTROUTING -t nat -p tcp -m tcp –dport 7899 -j MASQUERADE
iptables -A POSTROUTING -t nat -p tcp -m tcp –dport 7899 -j MASQUERADE

Download  IPtables list and modify as per your requirement
Download iptables
Edit and upload iptables.txt on your server and apply the iptables rule
#iptables-restore  <  /your upload path/iptables.txt

How to monitor vos3000 services and start if vos3000 services stop

If you want to monitor vos3000 services and start if vos3000 services stop .VOS3000 version 2.1.2.0 is stop after some time so you can monitor the vos3000 services  and start it . Here I am using three shell scripts to monitor to vos3000 service and start it. I am checking vos3000 service every 5 second and if stops I am starting with a script and send email alert.

1- I have created watchdog script to check mbx3000d service and send email alert

Linux# nano /etc/voscheck.sh

#!/bin/bash
#
# watchdog
NAME=mbx3000
START=/etc/mbx3000.sh
NOTIFY=your-email-address
NOTIFYCC=your-email-address
GREP=/bin/grep
PS=/bin/ps
NOP=/bin/true
DATE=/bin/date
MAIL=/bin/mail
RM=/bin/rm

$PS -ef|$GREP -v grep|$GREP $NAME >/dev/null 2>&1
case “$?” in
0)
# It is running in this case so we do nothing.
$NOP
;;
1)
echo “$NAME is NOT RUNNING. Starting $NAME and sending notices.”
$START 2>&1 >/dev/null &
NOTICE=/tmp/watchdog.txt
echo “$NAME was not running and was started on `$DATE`” > $NOTICE
$MAIL -n -s “watchdog notice” -c $NOTIFYCC $NOTIFY < $NOTICE
$RM -f $NOTICE
;;
esac

exit

2- create script for start mbx3000 service

Linux# nano /etc/mbx3000.sh

#!/bin/bash
service mbx3000d start

3- check service every 5 second

Linux# nano /etc/check5.sh

#!/bin/bash
while true
do
/etc/voscheck.sh
sleep 5
done

4-execute the script in background

 

 

How to check vos3000 MySQL Database size

Before transfer database to new server you want to know the vos3000db database size.For that you must login to the mysql and write below query or copy paste.

SELECT table_schema AS “Database name”, SUM(data_length + index_length) / 1024 / 1024 AS “Size (MB)” FROM information_schema.TABLES GROUP BY table_schema;

[root@www mysql]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.0.51a-community MySQL Community Edition (GPL)
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> SELECT table_schema AS “Database name”, SUM(data_length + index_length) / 1024 / 1024 AS “Size (MB)” FROM information_schema.TABLES GROUP BY table_schema;
+——————–+—————+
| Database name | Size (MB) |
+——————–+—————+
| information_schema | 0.00390625 |
| mysql | 0.49997520 |
| vos3000db | 8008.05074978 |
+——————–+—————+
3 rows in set (2.65 sec)

mysql> quit
Bye
[root@www mysql]#

 

 

How to transfer VOS3000 database on remote server easly

Its very long process to transfer vos3000 or my sql database to remote server as you take backup and restore on remote server. This is how to transfer VOS3000 database on remote server easly

#mysqldump -u root -pPPPP  vos3000db | ssh root@x.x.x.x  mysql -u root -pKKKK  vos3000db

PPPP is local mysql root password  KKKK is  remote mysql root password x.x.x.x change with your vos3000 or mysql database server IP address

vos3000db is the database which will transfer from loacl server to remote server.