myReduHostNum()

Returns 1 or 2 (host number) in a redundant system depending on the connection to the Event Manager (manager 1 or 2) (for example, eventHost = "host1$host2"). In a non-redundant configuration it always returns 1.

Do not use this function on remote UI's. Use the function only on redundant computers.

Synopsis

int myReduHostNum();

Parameter

Parameter Meaning
None -

Return value

Host number

Error

Description

Returns the host number.

Example

main()

{

DebugN(myReduHostNum());

}

Assignment

Administration of managers

Availability

CTRL

See also