Get server host name

336 views
Skip to first unread message

Willem Alberda

unread,
Jun 26, 2009, 11:56:12 AM6/26/09
to intersystems...@info2.kinich.com
Hi

I have seen that I can get the server's host name with $ZUtil(67,12,pid)

As this is a legacy function, is there a better way ?

Thanks
Willem

Willem Alberda

unread,
Jun 29, 2009, 6:07:09 AM6/29/09
to intersystems...@info2.kinich.com
Hi Sukesh,

This used to work in Caché 5, but in Caché 2008 I am getting

>w $SYSTEM.Server.HostName()

W $SYSTEM.Server.HostName()
^
<CLASS DOES NOT EXIST> *%SYSTEM.Server

So it appears that this has become obsolete.

Regards
Willem

"Sukesh Hoogan" <sukesh...@yahoo.co.in> wrote in message
news:h252l7$scq$1...@news.intersystems.com...
> Willem
>
> http://mycomputer:1972/apps/documatic/_CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25CACHELIB&CLASSNAME=%25SYSTEM.Server
>
> w $SYSTEM.Server.HostName()
>
> w $SYSTEM.Server.IPAddresses(HostName* As %String)
>
> * HostName is optional.
>
>
> Regards
> Sukesh Hoogan
> Bombay, India
> - Enterprise Resource Planning
> - Business Intelligence
> - Financial Accounting
> - Offshore Development

Willem Alberda

unread,
Jun 30, 2009, 2:46:38 AM6/30/09
to intersystems...@info2.kinich.com
Thank you Markus - that is what I was after.

Regards
Willem

"Markus DF" <nospam...@nospamths.nospamco.nospamnz> wrote in message
news:h2bj1u$q1f$1...@news.intersystems.com...
Try

w ##class(%Library.Function).HostName()

This works on cache 2008

Sukesh Hoogan

unread,
Jun 27, 2009, 8:22:56 AM6/27/09
to intersystems...@info2.kinich.com
Willem

http://mycomputer:1972/apps/documatic/_CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25CACHELIB&CLASSNAME=%25SYSTEM.Server

w $SYSTEM.Server.HostName()

w $SYSTEM.Server.IPAddresses(HostName* As %String)

* HostName is optional.


Regards
Sukesh Hoogan
Bombay, India
- Enterprise Resource Planning
- Business Intelligence
- Financial Accounting
- Offshore Development

Markus DF

unread,
Jun 29, 2009, 7:34:25 PM6/29/09
to intersystems...@info2.kinich.com
Try

w ##class(%Library.Function).HostName()

This works on cache 2008

Reply all
Reply to author
Forward
0 new messages