欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

monsrv.script

Software Testing Automation Framework (STAF)的开发代码
SCRIPT
第 1 页 / 共 2 页
字号:
the machine nicknames for which monitor messages have been logged.:p.:li.If the :xph.MACHINE:exph. option is specified (and the :xph.NAMES:exph.option is not specified), the result buffer will contain a marshalled:xph.<List> of <Map&colon.STAF/Service/Monitor/HandleInfo>:exph., whichrepresents the handles for the specified machine that have logged monitormessages.  The map is defined as follows:  :table cols='* * * *'.:tcap.Definition of map class STAF/Service/Monitor/HandleInfo:tnote text='Description'.This map class represents the handle that generatedthe monitor message on the specified machine.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.handle:c.Handle:c.&stringObj.:c.:row.:c.timestamp:c.Date-Time:c.&stringObj.:c.&timestampFormat.:row.:c.size:c.Size:c.&stringObj.:c.:tnote text='Notes'.The "Date-Time" is the date/time at which the last monitormessage was logged.The "Size" is the size of the last monitor message logged.:etnote.:etable.:p.:li.If the :xph.MACHINE:exph. option is specified with the :xph.NAMES:exph.option, the result buffer will contain a marshalled :xph.<List> of<Map&colon.STAF/Service/Monitor/NameInfo>:exph., whichrepresents the named monitors for the specified machine.  The map is definedas follows::table cols='* * * *'.:tcap.Definition of map class STAF/Service/Monitor/NameInfo:tnote text='Description'.This map class represents the named monitorson the specified machine.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.name:c.Name:c.&stringObj.:c.:row.:c.timestamp:c.Date-Time:c.&stringObj.:c.&timestampFormat.:row.:c.size:c.Size:c.&stringObj.:c.:tnote text='Notes'.The "Date-Time" is the date/time at which the last monitormessage was logged.The "Size" is the size of the last monitor message logged.:etnote.:etable.:p.:li.If the :xph.SETTINGS:exph. option is specified, the result buffer willcontain a marshalled :xph.<Map&colon.STAF/Service/Monitor/Settings>:exph. definedas follows::table cols='* * * *'.:tcap.Definition of map class STAF/Service/Monitor/Settings:tnote text='Description'.This map class represents the settings forthe Monitor service.:thd.:c.Key Name:c.Display Name:c.Type:c.Value:ethd.:row.:c.maxRecordSize:c.Max Record Size:c.&stringObj.:c.:row.:c.resolveMessage:c.Resolve Message:c.&stringObj.:c.:xph.Enabled | Disabled:exph.:row.:c.resolveMessageVar:c.Resolve Message Var:c.&stringObj.:c.:xph.Enabled | Disabled:exph.:etable.:eul.:h4.Examples:ul.:li.:hp2.Goal::ehp2. Show me all the machines that have written monitor data.:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST MACHINES:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in default format, could look like::xmp.automate.austin.ibm.comtestmachine1:exmp.:p.:li.:hp2.Goal::ehp2. Show me all the monitor information (Handle) for machine automate.austin.ibm.com.:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST MACHINE automate.austin.ibm.com:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Handle Date-Time         Size------ ----------------- ----34     20040910-16:29:03 3036     20040910-16:29:13 14837     20040910-16:29:19 9768     20040911-16:00:32 43:exmp.:p.:li.:hp2.Goal::ehp2. Show me all the monitor information (Handle) for machine testmachine1.:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST MACHINE testmachine1:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Handle Date-Time         Size------ ----------------- ----20     20041022-17:43:05 25:exmp.:p.:li.:hp2.Goal::ehp2. Show me all the named monitors for machine automate.austin.ibm.com.:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST MACHINE automate.austin.ibm.com NAMES:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Name              Date-Time         Size----------------- ----------------- ----ActiveXYZRequests 20061205-13:50:06 39test1             20061205-13:54:14 25:exmp.:p.:li.:hp2.Goal::ehp2. Show me all the Monitor settings.:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST SETTINGS:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in default format, could look like::xmp.Max Record Size    : 512Resolve Message    : EnabledResolve Message Var: Disabled:exmp.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.DELETE:i3.monitor service:h3.DELETEThe DELETE command will delete monitor files and directories.:h4.Syntax:xmp.DELETE &lbrk.BEFORE <Timestamp>&rbrk. CONFIRM:exmp.:p.:xph.BEFORE:exph. specifies that you only want to delete monitor datarecorded prior to the specified timestamp.  If :xph.BEFORE:exph. is notspecified, all monitor data will be removed. The keyword :hp3.TODAY:ehp3.can be used for :xph.<Timestamp>:exph. to delete all data prior to thecurrent system date.:p.:xph.CONFIRM:exph. confirms you really want to delete the monitordata.:h4.Security:p.&seclvl. 4.:h4.Return Codes:p.All return codes from DELETE are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain no data on return from a DELETE command..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.SET:i3.monitor service:h3.SETSets monitor service options.:h4.Syntax:xmp.SET  &lbrk.RESOLVEMESSAGE | NORESOLVEMESSAGE&rbrk.     &lbrk.MAXRECORDSIZE <Size>&rbrk.     &lbrk.ENABLERESOLVEMESSAGEVAR | DISABLERESOLVEMESSAGEVAR&rbrk.:exmp.:p.:xph.RESOLVEMESSAGE:exph. causes the MONITOR service to call the STAFvariable service to resolve any variables in Monitor Log messages before being written.:p.:xph.NORESOLVEMESSAGE:exph. causes the MONITOR service to not call the STAFvariable service to resolve any variables in Monitor Log messages before beingwritten.  This is the default.:p.:xph.MAXRECORDSIZE <Size>:exph. sets the Maximum record size for Monitordata.  The default is 1024 bytes.:p.:xph.ENABLERESOLVEMESSAGEVAR:exph. causes STAF/Service/<Name>/ResolveMessagevariable to be queried for every Monitor Log command, to determine if variablesin the Monitor Log command should be resolved.:p.:xph.DISABLERESOLVEMESSAGEVAR:exph. causes STAF/Service/<Name>/ResolveMessagevariable to not be queried for every Monitor Log command.  This is the default.:p.The highest priority in defining whether variables in a Monitor Log commandare to be resolved will be the:xph.RESOLVEMESSAGE/NORESOLVEMESSAGE:exph. specified directly in theLog command.  If the Monitor Log command contains neither option, then if :xph.ENABLERESOLVEMESSAGEVAR:exph. is set, the variableSTAF/Service/<Name>/ResolveMessage will be examined to determine whether toresolve the message.  If :xph.DISABLERESOLVEMESSAGEVAR:exph. is set, then the:xph.RESOLVEMESSAGE/NORESOLVEMESSAGE:exph. option (set via the PARMS options orby use of the :xph.SET RESOLVEMESSAGE/NORESOLVEMESSAGE:exph. Monitor command)will be honored.:h4.Security:p.&seclvl. 5.:h4.Return Codes:p.All return codes from SET are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain no data on return from a successul :xph.SET:exph.command.:h4.Examples:ul.:li.:hp2.Goal::ehp2.&nbsp; Enable the resolve message setting for the Monitor service.:p.:hp2.Syntax::ehp2.&nbsp; :xph.SET RESOLVEMESSAGE:exph.:p.:li.:hp2.Goal::ehp2.&nbsp; Set two operational settings for the Monitor service.:p.:hp2.Syntax::ehp2.&nbsp; :xph.SET MAXRECORDSIZE 512 ENABLERESOLVEMESSAGEVAR:exph.:eul..*.*---------------------------------------------------------------------.*:ih1.error codes:i2.monitor service:h3 id=monerr.Monitor Error Code Reference:p.No additional return codes are defined for the Monitor service.The Monitor service uses only the STAF return codes (see :hdref refid=retcode. foradditional information).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -