[OPEN-ILS-DEV] How to verify what version of OpenSRF is running?

Dan Scott dan at coffeecode.net
Fri Jul 22 16:19:25 EDT 2011


On Fri, Jul 22, 2011 at 3:35 PM, Jonathon Scott
<mr.jonathon.scott at gmail.com> wrote:
> Does the version number being reported in OpenSRF.pm (the @INC'd one for the
> version of perl that the opensrf user is running) always report the current
> OpenSRF version?
>
> like :
>
> grep Version `perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find {
> wanted => sub { print canonpath $_ if /OpenSRF\.pm\z/ },no_chdir => 1 },
> @INC' 2>/dev/null`
>
> = best guess magic spell

You could check the version number of the Perl module directly:

 perl -MOpenSRF -e 'print $OpenSRF::VERSION . "\n"'

But that's not an absolute guarantee that that's the version of
OpenSRF that is currently running, which is what June was looking for.
You might have an ancient version in /openils/lib/perl5 or some other
non-standard PERL5LIB directory.

Long story short: there appears to be no OpenSRF method paralleling
Evergreen's opensrf.open-ils.system.ils_version method that enables
you to check the OpenSRF version of a running system. I think we could
use a feature request to have an opensrf.version method added for that
purpose.

> On Fri, Jul 22, 2011 at 8:19 AM, Rayner, June <raynerj at einetwork.net> wrote:
>>
>> Hi Folks
>>
>>
>>
>> I just upgraded OpenSRF from 1.6 to 2.0.    I followed the instructions
>> and everything went as expected, but I want to verify that it’s 2.0 that’s
>> running now.    I see a random magic spell to verify the version of
>> Evergreen, but I can’t find anything for OpenSRF.     Is there a way to do
>> that?
>>
>>
>>
>> Thanks!
>>
>>
>>
>> June Rayner
>>
>> ILS Application Team
>>
>> (412) 622-1941
>>
>> raynerj at einetwork.net
>>
>>
>


More information about the Open-ils-dev mailing list