Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Booj2 Absent Member.
Absent Member.
888 views

determine the po software version



Hello,




I want to determine the po-software version before I login with soap into the mailbox with the correct schema version.

I want to know if po is at least version 14.2.1 so I can add/mod/delete vacation rules.

Want to hide/show this option in my program before an operator tries to do this.



I know I can see it after login with soap, but then I have to login twice, is there a better solution.



Hans
Labels (1)
0 Likes
6 Replies
Anonymous_User Absent Member.
Absent Member.

Re: determine the po software version


You would need to login once to the post office.

You could cache that information per post office on your side.

Then you look up the information before you login as a user on the post office.



The only other way that I could think of is to use the Admin Rest API to query the system.



Preston




>>> Hans Boone<booj@no-mx.forums.microfocus.com> 7/26/2016 5:51 AM >>>



Hello,




I want to determine the po-software version before I login with soap into the mailbox with the correct schema version.

I want to know if po is at least version 14.2.1 so I can add/mod/delete vacation rules.

Want to hide/show this option in my program before an operator tries to do this.




I know I can see it after login with soap, but then I have to login twice, is there a better solution.




Hans
0 Likes
Booj2 Absent Member.
Absent Member.

Betr.: Re: determine the po software version


Thank you,



There is also no option in the Admin rest api.

I'll do a login and cache the information for later.



Hans




>>> Preston Stephenson<PStephenson@gw.novell.com> Dinsdag 26 Juli 2016 17:14 >>>


You would need to login once to the post office.

You could cache that information per post office on your side.

Then you look up the information before you login as a user on the post office.




The only other way that I could think of is to use the Admin Rest API to query the system.




Preston




>>> Hans Boone<booj@no-mx.forums.microfocus.com> 7/26/2016 5:51 AM >>>



Hello,




I want to determine the po-software version before I login with soap into the mailbox with the correct schema version.

I want to know if po is at least version 14.2.1 so I can add/mod/delete vacation rules.

Want to hide/show this option in my program before an operator tries to do this.




I know I can see it after login with soap, but then I have to login twice, is there a better solution.




Hans
0 Likes
Anonymous_User Absent Member.
Absent Member.

Betr.: Re: determine the po software version

If you know the httpuser and http password of the POA, you can query the POA
for the information.
Here is a simple curl script:
curl -k -v --dump-header c:\temp\header.txt --header "Accept: text/xml"
--output "server.xml" --user xxxx:xxxx https://137.65.67.204:7281/server

Here is the output:

<?xml version="1.0"?>
<GROUPWISE>
<AGENT name="GroupWise Post Office Agent" version="2014 R2 " >
<SERVER>
<SERVER_MODEL_NAME value="Intel(R) Xeon(R) CPU E5630 @
2.53GHz" />
<SERVER_NUMBER_OF_PROCESSOR value="8" />
<SERVER_OS_VERSION value="Windows 10 Pro" major="6" minor="3"
build="10586" />
<SERVER_PHYSICAL_MEMORY value="12286" unit="MB"/>
<SERVER_FREE_PHYSICAL_MEMORY value="5472" unit="MB"/>
<TOTAL_AVAILABLE_DISK_SPACE value="476937.1" unit="MB"/>
<TOTAL_FREE_DISK_SPACE value="403365" unit="MB"/>
<AGENT_BUILD_VERSION value="14.2.1 -124196" />
<DATE_AGENT year="2016" month="7" day="19" hour="15" minute="6"
second="32" />
<DATE_ENGINE year="2016" month="7" day="19" hour="14" minute="38"
second="14" />
<DATE_RESOURCE year="2016" month="7" day="6" hour="11" minute="32"
second="34" />
</SERVER>
</AGENT>
</GROUPWISE>

You could do the same programmatically.
Let me know if you have questions.
Preston


>>>


> Thank you,
>
>
>
> There is also no option in the Admin rest api.
>
> I'll do a login and cache the information for later.
>
>
>
> Hans
>
>
>
>>>> Preston Stephenson<PStephenson@gw.novell.com> Dinsdag 26 Juli 2016

17:14 >>>
>
> You would need to login once to the post office.
>
> You could cache that information per post office on your side.
>
> Then you look up the information before you login as a user on the post
> office.
>
>
>
>
> The only other way that I could think of is to use the Admin Rest API to
> query the system.
>
>
>
>
> Preston
>
>
>
>>>> Hans Boone<booj@no‑mx.forums.microfocus.com> 7/26/2016 5:51 AM >>>

>
>
> Hello,
>
>
>
>
> I want to determine the po‑software version before I login with soap

into
> the mailbox with the correct schema version.
>
> I want to know if po is at least version 14.2.1 so I can add/mod/delete
> vacation rules.
>
> Want to hide/show this option in my program before an operator tries to
> do this.
>
>
>
>
> I know I can see it after login with soap, but then I have to login
> twice, is there a better solution.
>
>
>
>
> Hans


0 Likes
Booj2 Absent Member.
Absent Member.

Betr.: Re: determine the po software version


Thank you,



I have it working, just had a problem on one po, it had another port configured.


Hans




>>> Preston Stephenson<PStephenson@gw.novell.com> Woensdag 27 Juli 2016 16:14 >>>



If you know the httpuser and http password of the POA, you can query the POA

for the information.

Here is a simple curl script:

curl -k -v --dump-header c:\temp\header.txt --header "Accept: text/xml"
--output "server.xml" --user xxxx:xxxx https://137.65.67.204:7281/server






Here is the output:




<?xml version="1.0"?>

<GROUPWISE>

<AGENT name="GroupWise Post Office Agent" version="2014 R2 " >

<SERVER>

<SERVER_MODEL_NAME value="Intel(R) Xeon(R) CPU E5630 @

2.53GHz" />

<SERVER_NUMBER_OF_PROCESSOR value="8" />

<SERVER_OS_VERSION value="Windows 10 Pro" major="6" minor="3"

build="10586" />

<SERVER_PHYSICAL_MEMORY value="12286" unit="MB"/>

<SERVER_FREE_PHYSICAL_MEMORY value="5472" unit="MB"/>

<TOTAL_AVAILABLE_DISK_SPACE value="476937.1" unit="MB"/>

<TOTAL_FREE_DISK_SPACE value="403365" unit="MB"/>

<AGENT_BUILD_VERSION value="14.2.1 -124196" />

<DATE_AGENT year="2016" month="7" day="19" hour="15" minute="6"

second="32" />

<DATE_ENGINE year="2016" month="7" day="19" hour="14" minute="38"

second="14" />

<DATE_RESOURCE year="2016" month="7" day="6" hour="11" minute="32"

second="34" />

</SERVER>

</AGENT>

</GROUPWISE>




You could do the same programmatically.

Let me know if you have questions.

Preston








>>>






> Thank you,



>



>



>



> There is also no option in the Admin rest api.



>



> I'll do a login and cache the information for later.



>



>



>



> Hans



>



>



>



>>>> Preston Stephenson<PStephenson@gw.novell.com> Dinsdag 26 Juli 2016


17:14 >>>


>



> You would need to login once to the post office.



>



> You could cache that information per post office on your side.



>



> Then you look up the information before you login as a user on the post



> office.



>



>



>



>



> The only other way that I could think of is to use the Admin Rest API to



> query the system.



>



>



>



>



> Preston



>



>



>



>>>> Hans Boone<booj@no‑mx.forums.microfocus.com> 7/26/2016 5:51 AM >>>



>



>



> Hello,



>



>



>



>



> I want to determine the po‑software version before I login with soap


into


> the mailbox with the correct schema version.



>



> I want to know if po is at least version 14.2.1 so I can add/mod/delete



> vacation rules.



>



> Want to hide/show this option in my program before an operator tries to



> do this.



>



>



>



>



> I know I can see it after login with soap, but then I have to login



> twice, is there a better solution.



>



>



>



>



> Hans
0 Likes
Highlighted
Booj2 Absent Member.
Absent Member.

Betr.: Re: determine the po software version


FYI:

The XML information returned before GW2014 R2 SP1 is incorrect.

A parser will fail, so just do a string lookup.



Hans
0 Likes
Anonymous_User Absent Member.
Absent Member.

Betr.: Re: determine the po software version

The XML parser used to read the data is a hand written parser that was
written a long time ago.
The data returned was never meant for third-path consumption.
The data is warrantied as-is.

Preston


>>>


> FYI:
>
> The XML information returned before GW2014 R2 SP1 is incorrect.
>
> A parser will fail, so just do a string lookup.
>
>
>
> Hans


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.