How To Restart An ITNM Process
Ezman 2700057PXD Visits (8184)
It is useful to be able to restart an ITNM process without bringing down the other processes and restarting them all over again. For instance, the event gateway, i.e. ncp_g_event, will have to be restarted if its configuration file is modified, or one or more of its stitchers are changed.
To inspect the ncp_g_event process being managed by ncp_ctrl, enter the following command:
ncp_oql -domain NCOMS -service Ctrl -username admin -password "" \ -query "select * from services.inTray where serv
The output should look similar to the following:
ncp_oql ( IBM Tivoli Network Manager OQL Interface ) Copyright (C) 1997 - 2010 By IBM Corporation. All Rights Reserved. See product license for details. IBM Tivoli Network Manager Version 3.9 (Build 49) created by ncpbuild at 22:06:25 Wed Feb 15 GMT 2012 Using no authentication Executing query: select * from services.inTray where serv
To stop the ncp_g_event process, enter the following command. The process will be stopped.
ncp_oql -domain NCOMS -service Ctrl -username admin -password "" \ -query "delete from services.inTray where serv
To start the ncp_g_event process again, create a file to contain the following lines, such as /tmp/query.oql:
insert into services.inTray ( serviceName, binaryName, servicePath, domainName, argList, dependsOn, retryCount ) values ( "ncp_g_event", "ncp_g_event", "$PR
The above lines are taken from the CtrlServices.cfg configuration file. Then enter the following command:
ncp_oql -domain NCOMS -service Ctrl -username admin -password "" -query "`cat /tmp/query.oql`"
The ncp_g_event process will be started.