You are not logged in.

Dear visitor, welcome to Palo Community Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

ChristianS

Professional

  • "ChristianS" started this thread

Posts: 20

Date of registration: Dec 20th 2007

  • Send private message

1

Thursday, October 30th 2008, 5:47pm

Get Palo Version (VBA)

Hi,

does a possiblity exist to obtain the version of the palo addin (1.5/2.0/2.5) by using VBA?

I'm looking for something like this:

version = application.run("PALO.VERSION...")

Any ideas?

Thanks a lot...

Christian

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

2

Thursday, October 30th 2008, 5:52pm

RE: Get Palo Version (VBA)

Hi,
maybe by fireing a shell command. You can get server version by using

palo -V in commandshell. (change the directory to palo dir first)
(capital v)


Holger

This post has been edited 1 times, last edit by "h_decker" (Oct 30th 2008, 5:54pm)


ChristianS

Professional

  • "ChristianS" started this thread

Posts: 20

Date of registration: Dec 20th 2007

  • Send private message

3

Thursday, October 30th 2008, 6:09pm

RE: Get Palo Version (VBA)

Hi Holger,

thanks for your suggestion. The only problem is to get back the result to Excel ;)

I need to know the version of Palo within Excel...

Any other ideas?

Thanks
Christian

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

4

Thursday, October 30th 2008, 6:59pm

RE: Get Palo Version (VBA)

I thought piping it to a file and reading this would work but somehow it doesn't.

You can use a PALO http api function

like

http://localhost:7778/server/info?sid=0000&

enter http://localhost:7778/ for http api documentaion

To see that in the browser add line
admin "127.0.0.1" 7778 to ini file and restart PALO service.


By declaring and using some API functions (wininet.dll) you can read it and put it into a variable. But a PALO.xxx command for use in excel would be better :-) Maybe something for the wishlist.

Or use this one but thats pretty dirty:

Sub dumpVersion()

Dim ver As String
Dim wb As Workbook

Application.ScreenUpdating = False

Set wb = Workbooks.Open("http://localhost:7778/server/info?sid=0000&")
ver = wb.Sheets(1).Cells(1, 1)
wb.Close
ThisWorkbook.Activate
Application.ScreenUpdating = True
MsgBox ver


End Sub

Its returns the result of the PALO API call mentioned above like:

2;5;0;3625;0;0

First value is major version second is minor version .... see details in http API documentation.



Or maybe some more ideas?


Holger

This post has been edited 3 times, last edit by "h_decker" (Oct 30th 2008, 7:11pm)


ChristianS

Professional

  • "ChristianS" started this thread

Posts: 20

Date of registration: Dec 20th 2007

  • Send private message

5

Friday, October 31st 2008, 9:26am

RE: Get Palo Version (VBA)

Hi Holger,

thanks again for your suggestions. But unfortunately I need to know the version of the ADDIN not of the Palo Server. In my scenario I have a Palo 2.5 Server and clients of version 2.0 and 2.5.

I need to know the version, because unfortunately the addins behave in some little, but essential points differently... :(

Any other ideas ;) ?

Christian

Rate this thread