Page 1 of 1

How to determine vicidial and build version

PostPosted: Tue Sep 18, 2012 8:38 pm
by omar
Hi

On a cluster enviroment 1DB, 2ASTERISK, 1WWW, 1FILESER i need to know if all the servers have the same vicidial and build version.

So, How can i determine the vicidial and build version on each server individually?

Thanks

Re: How to determine vicidial and build version

PostPosted: Tue Sep 18, 2012 10:01 pm
by williamconley
Method 1)

Code: Select all
grep "build = '" /srv/www/htdocs/vicidial/admin.php -n -R


Method 2)

Code: Select all
cd /usr/src/astguiclient/VERSION
svn info

Re: How to determine vicidial and build version

PostPosted: Wed Sep 19, 2012 11:37 am
by omar
Thanks williamconley

But I think in both methods the output should be the same information. For example in one of my asterisk servers the outputs are:

williamconley wrote:Method 1)

Code: Select all
grep "build = '" /srv/www/htdocs/vicidial/admin.php -n -R



Code: Select all
 # grep "build = '" /srv/www/htdocs/vicidial/admin.php -n -R
3150:$build = '120831-1523';


williamconley wrote:Method 2)

Code: Select all
cd /usr/src/astguiclient/VERSION
svn info

Code: Select all
 # cd /usr/src/astguiclient/trunk/
 # svn info
Path: .
URL: svn://svn.eflo.net:3690/agc_2-X/trunk
Repository Root: svn://svn.eflo.net:3690
Repository UUID: 3d104415-ff17-0410-8863-d5cf3c621b8a
Revision: 1859
Node Kind: directory
Schedule: normal
Last Changed Author: mattf
Last Changed Rev: 1859
Last Changed Date: 2012-09-14 13:59:31 -0400 (Fri, 14 Sep 2012)


If I am not wrong, I don't see the same information in Method 1 and Method 2

Thanks

Re: How to determine vicidial and build version

PostPosted: Thu Mar 14, 2013 6:25 pm
by williamconley
That is because they are not the same. Both are versions from different perspective. SVN info is more accurate as it refers to a snapshot of the entire codebase, all files. Grep in admin.php merely shows the version of that file. However, Matt prefers the grep version as that is primarily where problems are seen and tracked. Personally, I think it would be very useful to use the svn instead, but this raises an issue if you are NOT using SVN! LOL