Pinned topic 2 ServerLocations in TECPublisher.conf?
we use TEC Publisher to send events to our event console. Our event console admin asked:
Is it possible to define 2 ServerLocations? 1 Active, one as Backup which is used if the active one fails.
Is this supported? If yes, what is the correct syntax?
xf00657 120000ANXR102 PostsACCEPTED ANSWER
Re: 2 ServerLocations in TECPublisher.conf?2012-11-23T07:57:47Z in response to thomas.quadfliegHi Thomas,
nice question. This is the desription in the IHSAMTEC-File from the EAS feature in zOS (the TECPublisher.conf from zOS):
- The ServerLocation is required. It specifies the hostname
- or IP address of the IP host on which the event server is
- installed. The ServerLocation keyword may contain up to
- 16 values, separated by commas. If more than one value is
# established will be the location used. There is no default.
Here the first value that can be reached will be used. Perhaps the same behavior in TECPublisher-conf?
Re: 2 ServerLocations in TECPublisher.conf?2012-11-23T08:16:12Z in response to thomas.quadfliegHi,
the TECPublisher.conf configuration file ServerLocation keyword can contain up to eight values, separated by commas. The first location is the primary event server, while others are secondary servers to be used in the order specified when the primary server is down.
Re: 2 ServerLocations in TECPublisher.conf?2012-11-23T09:35:32Z in response to thomas.quadfliegHello,
I test it with the following entries:
The connection to the primary server (de000011sae62.de.top.com) works.
Then, we tested stopped the reciever task on the primary, so the backup system (de000011sae64.de.top.com) became primary. Now, we can see, that the events aren't sent, but cached:
-rw------- 1 root root 1285 Nov 23 10:37 TECPublisher.cache
Is the failover not done automatically? Where can I find troubleshooting docs for this topic?
Re: 2 ServerLocations in TECPublisher.conf?2012-11-23T13:20:53Z in response to thomas.quadfliegHi,
sorry, for what ever reason, the documented syntax with ServerLocation does not work.
But I found and tested the following alternate syntax:
Re: 2 ServerLocations in TECPublisher.conf?2012-11-23T13:32:10Z in response to SystemAdminHi,
and here the TEC documentation link:
Configuring backup servers to deliver events
nukite8d 060001JV1D98 PostsACCEPTED ANSWER
Re: 2 ServerLocations in TECPublisher.conf?2013-09-03T10:37:15Z in response to thomas.quadflieg
It is possible to send EIF events to two or more TEC servers in parallel.
To do this you have to define one publisher per server in /etc/Tivoli/tec/samPublisher.conf
with a different name and a different ConfigPath (eg TEC, TEC2)
(Here I noticed the EEZ Publisher is also a TEC publisher. ^-^)
Then copy the TECPublisher.conf for each additional TEC publisher (e.g TEC2Publisher.conf)
and change ServerLocation and BufEvtPath
After a (re-)start of the publishers (samctrl -d P ; samctrl -e P) all events are now sent to all defined receivers.