osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: Multiple logfile adapters on a host - msg#00306

List: sysutils.tivoli.tme10

Date: Prev Next Index Thread: Prev Next Index

Is there anything special I should take into consideration if I want multiple logfile adapters on a host?  I've created two logfile adapters and distributed to a test W2K server.  When I distributed the first logfile adapter it worked fine.  When I distributed the second logfile adapter it looks like it over-wrote the previous adapter instead of appending to it.  The files I checked were "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\tecad_win.conf", "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\tecad_win.cds", "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\C\tecad_win.fmt".
**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************								
Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

RE: Antwort: Re: Custom Resource Model Problem

The "var OldScriptResult;" just declares the variables. Unless you instantiate the variable to a value it's value will be undefined. You really need to do a little cleanup on your resource model. 1) Take prev_value, value, and relation_delta out of your PortFailed event definition. 2) Comment out or get rid of the following statements: Svc.SetMapNumElement(hPropTable, "OldScriptResult", OldScriptResult); Svc.SetMapStrElement(hPropTable, "prev_value", OldScriptResult); Svc.SetMapStrElement(hPropTable, "value", curScriptResult); Svc.SetMapStrElement(hPropTable, "relation_delta", OldScriptResult - curScriptResult); All those items are generated by the wizard to emulate DM classic monitors. If you don't care about the prev values then those attributes are useless. I use a template and don't use the wizard to generate script based resource models. I wind up having to spend to much time stripping all of that junk out of the RM and inevitably wind up forgetting something. Also, you might want to get your hands on the RMDebugger from the IBM site. It allows you test your Unix based resource models in the Rhino JS script debugger. It's a lot easier than doing SVC.Trace calls. John Willis Gulf Breeze Software www.gulfsoft.com OpenESM Project www.sourceforge.net/projects/gulfsoft -----Original Message----- From: owner-tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx [mailto:owner-tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx] On Behalf Of lars.kleiner-QGvAMEw2u1+ELgA04lAiVw@xxxxxxxxxxxxxxxx Sent: Wednesday, January 19, 2005 1:05 PM To: tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx Subject: Antwort: Re: [tme10] Custom Resource Model Problem sorry, I am a beginner in buildung own resource models and java script .... The variable is already set as "var OldScriptResult;" in the VisitTree ! Where should I set the variable exactly ? (position) Yes, the model works perfectly under windows os !! Thanks Lars john_willis@gulfs oft.com Gesendet von: An owner-tme10@lists tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx .us.ibm.com Kopie Thema 19.01.2005 18:56 Re: [tme10] Custom Resource Model Problem Bitte antworten an tme10-XtjxT7Vmt5b2/ifjfJUUEg@xxxxxxxxxxxxxxxx m.com Your are setting an undefined variable in the hPropTable. Svc.SetMapNumElement(hPropTable, "OldScriptResult", OldScriptResult); I am suprised that this code works on Windows. John Willis Gulf Breeze Software www.gulfsoft.com OpenESM Project www.sourceforge.net/projects/gulfsoft Quoting lars.kleiner-QGvAMEw2u1+ELgA04lAiVw@xxxxxxxxxxxxxxxx: > Hi list, > > I have created a custom resource model (checkes a remote port) , which > works fine on windows hosts. > > On AIX or Solaris the rm shows "error" and the trace shows: > > <F>1106145039684<F>2005-01-19 15:30:39 > +01:00<F>AMW<F>Engine<F>tivtest01<F>22444<F>MIN<F>ResModel > profile=portcheck_tivtest01#tivtest01-region > model=Checkport<F><F>Thread[TmrSrvAction_RMTimer for ResModel > profile=portcheck_tivtest01#tivtest01-region model=Checkport,5,main]<F>DEC > error: Can't find method > com.tivoli.dmunix.ep.resmod.ResModelService.SetMapNumElement(number,stri ng,undefined).<F>Thread[TmrSrvAction_RMTimer > for ResModel profile=portcheck_tivtest01#tivtest01-region > model=Checkport,5,main] Can't find method > com.tivoli.dmunix.ep.resmod.ResModelService.SetMapNumElement(number,stri ng,undefined). > org.mozilla.javascript.EvaluatorException: Can't find method > com.tivoli.dmunix.ep.resmod.ResModelService.SetMapNumElement(number,stri ng,undefined). > at > org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorRep orter.java(Compiled > Code)) > at > org.mozilla.javascript.Context.reportRuntimeError(Context.java(Compiled > Code)) > at > org.mozilla.javascript.Context.reportRuntimeError(Context.java(Inlined > Compiled Code)) > at > org.mozilla.javascript.Context.reportRuntimeError1(Context.java(Inlined > Compiled Code)) > at > org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java(Compi led > Code)) > at > org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java(Compiled > Code)) > at org.mozilla.javascript.gen.c3.call(<cmd>(Compiled Code)) > at > com.tivoli.dmunix.ep.resmod.JSInterpreter.callFunction(JSInterpreter.jav a:70) > at > com.tivoli.dmunix.ep.resmod.JSInterpreter.invoke(JSInterpreter.java:30) > at > com.tivoli.dmunix.ep.resmod.ResModel.decVisitTree(ResModel.java:534) > at com.tivoli.dmunix.ep.resmod.ResModel.evaluate(ResModel.java:486) > at com.tivoli.dmunix.ep.resmod.ResModel.run(ResModel.java:306) > at com.tivoli.dmunix.ep.utils.TmrSrv.launch(TmrSrv.java:131) > at com.tivoli.dmunix.ep.utils.TmrSrv.access$300(TmrSrv.java:24) > at com.tivoli.dmunix.ep.utils.TmrSrv$Launcher.run(TmrSrv.java:217) > at java.lang.Thread.run(Thread.java:513) > > My script: > //'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''' > // Decision Tree script > // > // This file was generated by the IBM Tivoli Resource Model Builder. > // > // 01/19/2005 15:56:36 > // > //'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''' > > // Trace constants to be used by Svc.Trace calls. > > var TRACE_ERROR = 0; > var TRACE_FINE = 1; > var TRACE_FINER = 2; > var TRACE_FINEST = 3; > > // This variable can be used in your Svc.Trace calls to make it easier to > // search through the log file and find calls made by the resource models. > > var TRACE_SOURCE = "RM TRACE: "; > > // Return code constants for various error conditions. > > var RC_COLLECTION_ERROR = 407; > var RC_INVALID_METRIC = 406; > var RC_INVALID_RESOURCE_TYPE = 801; > var RC_INVALID_VERSION = 802; > var RC_RESOURCE_UNAVAILABLE = 405; > > var flagNotFirstRun = 0; > var hTableScriptResult; > var allHosts = new Array(); > var allPorts = new Array(); > var paramInstances; > > // This function defines the default settings of the resource model. > // It is called only once, when the resource model is started. > // Don't modify remarks containing tags like <<....>> ... <<\...>> > // You can write additional initializing code in this function if required. > > function SetDefaultConfiguration(Svc) > { > Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "Start > SetDefaultConfiguration"); > > // General info section > //<<GENERAL_INFO>> > Svc.SetModelName ("Checkport"); > Svc.SetProfileName ("1106146975110"); > Svc.SetCycleTime (60); > //<<\GENERAL_INFO>> > > // Thresholds section > //<<THRESHOLDS_INFO>> > Svc.DefineThreshold ("thr_result", 0.0); > //<<\THRESHOLDS_INFO>> > > // Parameters section > //<<PARAMETERS_INFO>> > Svc.DefineStrParameter ("param_host_port", "ogtivadmin01;9495"); > //<<\PARAMETERS_INFO>> > > // Dynamic model section > //<<DATA_INFO>> > //<<\DATA_INFO>> > > // Event definition section > //<<EVENTS_INFO>> > Svc.DefineEvent ("PortFailed" , "MatchingValue,ScriptResult", > "prev_value,value,relation_delta,port,host"); > //<<\EVENTS_INFO>> > > // Logging definition section > //<<LOGGING_INFO>> > Svc.DefineLogInst ("PortAvailable", "ScriptResult", "host", > "ScriptResult", "host"); > //<<\LOGGING_INFO>> > > // Place your additional intializing code below. > > Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "End > SetDefaultConfiguration"); > return (0); > } > > > // This function is called by the monitoring engine after the resource > // model default settings have been overridden. It is called only once, > // when the resource model is started. You can write additional > // initialization code in this function if required. > > function Init(Svc) > { > > var k; > var words = new Array(2); > > Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "Start Init"); > > hTableScriptResult = Svc.CreateMap(); > hTableParameters = Svc.CreateMap(); > > paramInstances = Svc.GetStrParameterCount("param_host_port"); > > if (paramInstances > 0) > { > for (k = 0; k < paramInstances; k++) > { > var line = new > String(Svc.GetStrParameter("param_host_port",k)); > words = line.split(/;/); > allHosts[k] = words[0]; > allPorts[k] = words[1]; > } > > } > return (0); > > } > > > // This function contains the monitoring algorithm. It is called > // once per cycle. Implement the monitoring code here. > > function VisitTree(Svc) > { > Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "Start VisitTree"); > > //vars for data source: perl chkport.pl oginnb50 9495 > var curScriptResult; > var hashKey; > var found; > > var OldScriptResult; > > var hPropTable; > var hTableScriptResult; > var ParamCount; > var ParamIdx; > var Different; > > //Zusätzliche Variablen > > var k; > var host; > var port; > > if (paramInstances > 0) > { > > for (k = 0; k < paramInstances; k++) > { > hPropTable = Svc.CreateMap(); > hTableScriptResult = Svc.CreateMap(); > host = allHosts[k]; > port = allPorts[k]; > Svc.RemoveMapAll(hPropTable); > curScriptResult = Svc.Shell("perl chkport.pl "+host+" > "+port); > Svc.SetMapNumElement(hPropTable, "ScriptResult", > curScriptResult); > //found = Svc.ExistsMapElement(hTableScriptResult, > hashKey); > //if (found) > // OldScriptResult = > Svc.GetMapNumValue(hTableScriptResult, hashKey); > //else > // OldScriptResult = 0; > > Svc.SetMapNumElement(hPropTable, "OldScriptResult", > OldScriptResult); > Svc.SetMapStrElement(hPropTable, "prev_value", > OldScriptResult); > Svc.SetMapStrElement(hPropTable, "value", > curScriptResult); > Svc.SetMapStrElement(hPropTable, "relation_delta", > OldScriptResult - curScriptResult); > > if (curScriptResult == Svc.GetThreshold("thr_result")) { > Svc.SetMapNumElement(hPropTable, "MatchingValue", > Svc.GetThreshold("thr_result")); > Svc.SetMapStrElement(hPropTable, "host", host); > Svc.SetMapStrElement(hPropTable, "port", port); > Svc.SendEventEx ("PortFailed", hPropTable); > } > > //Svc.SetMapStrElement(hPropTable,"host", host); > //Svc.LogInstEx ("PortAvailable","ScriptResult", > hPropTable); > > Svc.SetMapNumElement(hTableScriptResult, hashKey, > curScriptResult); > > flagNotFirstRun = true; > > } > > Svc.DestroyMap(hPropTable); > > } > > return (0); > > } > > > ================================================ > > Does anyone have an idea ?? > > Thanks a lot !! > > Lars > > > > > ------------------- L E G A L D I S C L A I M E R > ----------------------- > Die Informationen in dieser Nachricht sind vertraulich und ausschliesslich > fuer den Adressaten bestimmt. > Kenntnisnahme durch Dritte ist unzulaessig. Die Erstellung > von Kopien oder das Weiterleiten an weitere, nicht originaere > und benannte Adressaten ist nicht vorgesehen und kann > ungesetzlich sein. > Die Meinungen in dieser Nachricht stellen lediglich die > Meinungen des Senders dar. Falls Sie vermuten, dass diese > Nachricht veraendert wurde, setzen Sie sich mit dem > Absender in Verbindung. > Die Markant Handels und Service GmbH uebernimmt ohne > weitere Ueberpruefung keine Verantwortung fuer die > Richtigkeit und Vollstaendigkeit des Inhalts. > Unbefugte Empfaenger werden gebeten, die Vertraulichkeit > der Nachricht zu wahren und den Absender sofort ueber > einen Uebertragungsfehler zu informieren. > > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

Next Message by Date: click to view message preview

RE: Multiple logfile adapters on a host

Jeff,   I have found that you need to create a unique identifier for each additional log file adapter (LFA).   For example, for the second and later LFAs you need to to go into the "Edit Adapter Profile" window and select the radio button labeled "General" and then check in the checkbox labeled "Identifier" and add a text string in the textbox labeled "Identifier Name:"   Also, do not use the underscore character in the Identifier Name !!!!   You will also need to go into the "Edit Adapter Profile" window and select the radio button labeled "Distribution" and provide the location of your new .err and .fmt files that are to be distributed for your second LFA.   After you distribute the LFA profile to your endpoints the first, or default LFA will have its configuration files in the following directory.       C:\Program Files\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\C   If you named your second LFA with the identifier TEST01, its configuration files will be in the in the following directory.       C:\Program Files\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\TEST01\etc\C   There will also be two LFA services on your endpoint.   One will be named "TEC Windows Event Log Adapter" and the other will be "TEC Windows Event Log Adapter id=TEST01".   Don't forget, do not use the underscore character in the Identifier Name !!!!     John Mannix -----Original Message-----From: owner-tme10@xxxxxxxxxxxxxxxx [mailto:owner-tme10@xxxxxxxxxxxxxxxx] On Behalf Of Jeff.Richards@xxxxxxxxxxxSent: Wednesday, January 19, 2005 10:59 AMTo: tme10@xxxxxxxxxxxxxxxxSubject: [tme10] Multiple logfile adapters on a hostIs there anything special I should take into consideration if I want multiple logfile adapters on a host?  I've created two logfile adapters and distributed to a test W2K server.  When I distributed the first logfile adapter it worked fine.  When I distributed the second logfile adapter it looks like it over-wrote the previous adapter instead of appending to it.  The files I checked were "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\tecad_win.conf", "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\tecad_win.cds", "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\C\tecad_win.fmt". ********************************************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. **********************************************************

Previous Message by Thread: click to view message preview

Custom Resource Model Problem

Hi list, I have created a custom resource model (checkes a remote port) , which works fine on windows hosts. On AIX or Solaris the rm shows "error" and the trace shows: <F>1106145039684<F>2005-01-19 15:30:39 +01:00<F>AMW<F>Engine<F>tivtest01<F>22444<F>MIN<F>ResModel profile=portcheck_tivtest01#tivtest01-region model=Checkport<F><F>Thread[TmrSrvAction_RMTimer for ResModel profile=portcheck_tivtest01#tivtest01-region model=Checkport,5,main]<F>DEC error: Can't find method com.tivoli.dmunix.ep.resmod.ResModelService.SetMapNumElement(number,string,undefined).<F>Thread[TmrSrvAction_RMTimer for ResModel profile=portcheck_tivtest01#tivtest01-region model=Checkport,5,main] Can't find method com.tivoli.dmunix.ep.resmod.ResModelService.SetMapNumElement(number,string,undefined). org.mozilla.javascript.EvaluatorException: Can't find method com.tivoli.dmunix.ep.resmod.ResModelService.SetMapNumElement(number,string,undefined). at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java(Compiled Code)) at org.mozilla.javascript.Context.reportRuntimeError(Context.java(Compiled Code)) at org.mozilla.javascript.Context.reportRuntimeError(Context.java(Inlined Compiled Code)) at org.mozilla.javascript.Context.reportRuntimeError1(Context.java(Inlined Compiled Code)) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java(Compiled Code)) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java(Compiled Code)) at org.mozilla.javascript.gen.c3.call(<cmd>(Compiled Code)) at com.tivoli.dmunix.ep.resmod.JSInterpreter.callFunction(JSInterpreter.java:70) at com.tivoli.dmunix.ep.resmod.JSInterpreter.invoke(JSInterpreter.java:30) at com.tivoli.dmunix.ep.resmod.ResModel.decVisitTree(ResModel.java:534) at com.tivoli.dmunix.ep.resmod.ResModel.evaluate(ResModel.java:486) at com.tivoli.dmunix.ep.resmod.ResModel.run(ResModel.java:306) at com.tivoli.dmunix.ep.utils.TmrSrv.launch(TmrSrv.java:131) at com.tivoli.dmunix.ep.utils.TmrSrv.access$300(TmrSrv.java:24) at com.tivoli.dmunix.ep.utils.TmrSrv$Launcher.run(TmrSrv.java:217) at java.lang.Thread.run(Thread.java:513) My script: //'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' // Decision Tree script // // This file was generated by the IBM Tivoli Resource Model Builder. // // 01/19/2005 15:56:36 // //'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' // Trace constants to be used by Svc.Trace calls. var TRACE_ERROR = 0; var TRACE_FINE = 1; var TRACE_FINER = 2; var TRACE_FINEST = 3; // This variable can be used in your Svc.Trace calls to make it easier to // search through the log file and find calls made by the resource models. var TRACE_SOURCE = "RM TRACE: "; // Return code constants for various error conditions. var RC_COLLECTION_ERROR = 407; var RC_INVALID_METRIC = 406; var RC_INVALID_RESOURCE_TYPE = 801; var RC_INVALID_VERSION = 802; var RC_RESOURCE_UNAVAILABLE = 405; var flagNotFirstRun = 0; var hTableScriptResult; var allHosts = new Array(); var allPorts = new Array(); var paramInstances; // This function defines the default settings of the resource model. // It is called only once, when the resource model is started. // Don't modify remarks containing tags like <<....>> ... <<\...>> // You can write additional initializing code in this function if required. function SetDefaultConfiguration(Svc) { Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "Start SetDefaultConfiguration"); // General info section //<<GENERAL_INFO>> Svc.SetModelName ("Checkport"); Svc.SetProfileName ("1106146975110"); Svc.SetCycleTime (60); //<<\GENERAL_INFO>> // Thresholds section //<<THRESHOLDS_INFO>> Svc.DefineThreshold ("thr_result", 0.0); //<<\THRESHOLDS_INFO>> // Parameters section //<<PARAMETERS_INFO>> Svc.DefineStrParameter ("param_host_port", "ogtivadmin01;9495"); //<<\PARAMETERS_INFO>> // Dynamic model section //<<DATA_INFO>> //<<\DATA_INFO>> // Event definition section //<<EVENTS_INFO>> Svc.DefineEvent ("PortFailed" , "MatchingValue,ScriptResult", "prev_value,value,relation_delta,port,host"); //<<\EVENTS_INFO>> // Logging definition section //<<LOGGING_INFO>> Svc.DefineLogInst ("PortAvailable", "ScriptResult", "host", "ScriptResult", "host"); //<<\LOGGING_INFO>> // Place your additional intializing code below. Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "End SetDefaultConfiguration"); return (0); } // This function is called by the monitoring engine after the resource // model default settings have been overridden. It is called only once, // when the resource model is started. You can write additional // initialization code in this function if required. function Init(Svc) { var k; var words = new Array(2); Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "Start Init"); hTableScriptResult = Svc.CreateMap(); hTableParameters = Svc.CreateMap(); paramInstances = Svc.GetStrParameterCount("param_host_port"); if (paramInstances > 0) { for (k = 0; k < paramInstances; k++) { var line = new String(Svc.GetStrParameter("param_host_port",k)); words = line.split(/;/); allHosts[k] = words[0]; allPorts[k] = words[1]; } } return (0); } // This function contains the monitoring algorithm. It is called // once per cycle. Implement the monitoring code here. function VisitTree(Svc) { Svc.Trace(TRACE_FINEST, TRACE_SOURCE + "Start VisitTree"); //vars for data source: perl chkport.pl oginnb50 9495 var curScriptResult; var hashKey; var found; var OldScriptResult; var hPropTable; var hTableScriptResult; var ParamCount; var ParamIdx; var Different; //Zusätzliche Variablen var k; var host; var port; if (paramInstances > 0) { for (k = 0; k < paramInstances; k++) { hPropTable = Svc.CreateMap(); hTableScriptResult = Svc.CreateMap(); host = allHosts[k]; port = allPorts[k]; Svc.RemoveMapAll(hPropTable); curScriptResult = Svc.Shell("perl chkport.pl "+host+" "+port); Svc.SetMapNumElement(hPropTable, "ScriptResult", curScriptResult); //found = Svc.ExistsMapElement(hTableScriptResult, hashKey); //if (found) // OldScriptResult = Svc.GetMapNumValue(hTableScriptResult, hashKey); //else // OldScriptResult = 0; Svc.SetMapNumElement(hPropTable, "OldScriptResult", OldScriptResult); Svc.SetMapStrElement(hPropTable, "prev_value", OldScriptResult); Svc.SetMapStrElement(hPropTable, "value", curScriptResult); Svc.SetMapStrElement(hPropTable, "relation_delta", OldScriptResult - curScriptResult); if (curScriptResult == Svc.GetThreshold("thr_result")) { Svc.SetMapNumElement(hPropTable, "MatchingValue", Svc.GetThreshold("thr_result")); Svc.SetMapStrElement(hPropTable, "host", host); Svc.SetMapStrElement(hPropTable, "port", port); Svc.SendEventEx ("PortFailed", hPropTable); } //Svc.SetMapStrElement(hPropTable,"host", host); //Svc.LogInstEx ("PortAvailable","ScriptResult", hPropTable); Svc.SetMapNumElement(hTableScriptResult, hashKey, curScriptResult); flagNotFirstRun = true; } Svc.DestroyMap(hPropTable); } return (0); } ================================================ Does anyone have an idea ?? Thanks a lot !! Lars ------------------- L E G A L D I S C L A I M E R ----------------------- Die Informationen in dieser Nachricht sind vertraulich und ausschliesslich fuer den Adressaten bestimmt. Kenntnisnahme durch Dritte ist unzulaessig. Die Erstellung von Kopien oder das Weiterleiten an weitere, nicht originaere und benannte Adressaten ist nicht vorgesehen und kann ungesetzlich sein. Die Meinungen in dieser Nachricht stellen lediglich die Meinungen des Senders dar. Falls Sie vermuten, dass diese Nachricht veraendert wurde, setzen Sie sich mit dem Absender in Verbindung. Die Markant Handels und Service GmbH uebernimmt ohne weitere Ueberpruefung keine Verantwortung fuer die Richtigkeit und Vollstaendigkeit des Inhalts. Unbefugte Empfaenger werden gebeten, die Vertraulichkeit der Nachricht zu wahren und den Absender sofort ueber einen Uebertragungsfehler zu informieren.

Next Message by Thread: click to view message preview

RE: Multiple logfile adapters on a host

Jeff,   I have found that you need to create a unique identifier for each additional log file adapter (LFA).   For example, for the second and later LFAs you need to to go into the "Edit Adapter Profile" window and select the radio button labeled "General" and then check in the checkbox labeled "Identifier" and add a text string in the textbox labeled "Identifier Name:"   Also, do not use the underscore character in the Identifier Name !!!!   You will also need to go into the "Edit Adapter Profile" window and select the radio button labeled "Distribution" and provide the location of your new .err and .fmt files that are to be distributed for your second LFA.   After you distribute the LFA profile to your endpoints the first, or default LFA will have its configuration files in the following directory.       C:\Program Files\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\C   If you named your second LFA with the identifier TEST01, its configuration files will be in the in the following directory.       C:\Program Files\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\TEST01\etc\C   There will also be two LFA services on your endpoint.   One will be named "TEC Windows Event Log Adapter" and the other will be "TEC Windows Event Log Adapter id=TEST01".   Don't forget, do not use the underscore character in the Identifier Name !!!!     John Mannix -----Original Message-----From: owner-tme10@xxxxxxxxxxxxxxxx [mailto:owner-tme10@xxxxxxxxxxxxxxxx] On Behalf Of Jeff.Richards@xxxxxxxxxxxSent: Wednesday, January 19, 2005 10:59 AMTo: tme10@xxxxxxxxxxxxxxxxSubject: [tme10] Multiple logfile adapters on a hostIs there anything special I should take into consideration if I want multiple logfile adapters on a host?  I've created two logfile adapters and distributed to a test W2K server.  When I distributed the first logfile adapter it worked fine.  When I distributed the second logfile adapter it looks like it over-wrote the previous adapter instead of appending to it.  The files I checked were "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\tecad_win.conf", "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\tecad_win.cds", "C:\Tivoli\lcf\bin\w32-ix86\TME\TEC\adapters\etc\C\tecad_win.fmt". ********************************************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. **********************************************************
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by