Thank you very much for your reply. Regarding to the server-based configs, I
think that this future is very useful and I will use it.
It would be nice if after I have modified server-based config, I could
schedule configuration file deployment to all servers (that match filtering
script).
As I have already installed agents on more than 10+ windows servers, the
only "easy" way for me to deploy configuration file to all agents at once is
to modify service definition on each of the windows server to include -M in
command line. To do this I have created simple NPI file:
-- nx_change_service-win32.npi --
NAME nx_change_service
PLATFORM windows-i386
VERSION 0.2.14
DESCRIPTION NetXMS Agent Adjustment Script
FILE nx_change_service.cmd
-- nx_change_service-win32.npi --
And cmd file:
-- nx_change_service-win32.cmd --
sc config "NetXMSAgentdW32" binPath= "C:\NetXMS\bin\nxagentd.exe -M
xx.xx.xx.xx -d -c C:\NetXMS\etc\nxagentd.conf" > nul
net stop "NetXMSAgentdW32"
net start "NetXMSAgentdW32"
-- nx_change_service-win32.cmd --
After I have deployed this file to Entire network, only Windows based
servers were updated and now to deploy "fresh" agent configuration file to
windows based servers I can simply restart agent.
I will do almost the same for linux based servers.
As you can see it would be very nice if user, after making changes to config
file, could deploy this file to agent from console. I don't think that it is
hard to implement, all the necessary framework is already implemented.
On 12/28/06, Victor Kirhenshtein <victor_at_opticom.lv> wrote:
>
> Hello!
>
> By default, agent uses it's local configuration file - which can be edited
> individually for each host from object menu in console. If you wish agent to
> use config stored on server, you should run it as follows:
>
> nxagentd -d -M mgmt_server_addr
>
> With -M option, agent on startup will connect to given management server
> and download configuration file, replacing any existing local config. Agent
> connects to port 4701 (netxms-mgmt) on server.
>
-- Best regards, Edgar Chupit callto://edgar.chupitReceived on Thu Dec 28 2006 - 20:21:36 EET
This archive was generated by hypermail 2.2.0 : Thu Dec 28 2006 - 20:29:54 EET