⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cli.nroff

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 NROFF
📖 第 1 页 / 共 3 页
字号:
Set the CIMServer statistics to enabled by doing a modify instance of the CIM_ObjectManagerinstance that defines the server. This depends on the server having implemented statistics andhaving also implemented the functionality of enabling and disabling statistics through settingthis property in CIM_ObjectManager.  This should be considered a temporary operation in cimcli untila more permanent utility is provided with OpenPegasus to manage this type of functionality.  Thecorresponding operation soff will attempt to disable statistics on the server.  This works withOpenPegasus servers starting with version 2.5.1.The syntax of the operation is:.B	cimcli son.TP.B soffSee the operaiton son.  This is the corresponding operation to turn off statistics in the server.The syntax of the operation is:.B	cimcli soff.TP.B ns    enumeratenamespacesRequest an Enumeration of all the namespaces in the target CIM Server.  This command uses boththe CIM_Namespace class and if that fails, the __Namespace class to determine the list of namespaces.RETURN - It returns a list of the namespace names returned by the CIM Server.The format of the operation is:.B	cimcli ns [options]Note that since this operation enumerates namespaces, the namespace option (-n) is not valid..B Examples	cimcli ns.TP.B ?     Show Command OptionsThis operation simply shows the Command options.SH OPTIONS LISTThere are a significant number of options to this utility, some if which provide specific information for one or more commands and some of which are universal across all of the commands.   In general, theprogram does not check for spurious options so that if you input an option that is not used by a particularoperation, it is simply ignored. Note that some of the options require parameters. The following is an alphabetic list of the options..TP .B \-ac assocaton_class_nameThe Association Class parameter defines an assocClass string for Associator calls (associators and associatornames).Default(). Example:-ac CIM_ManagedElement.TP .B \-ar [association_role_name]Defines an association role for associator operations. Example: -ar dependent. This optional parameter is used onlywith the association CIM Operations..TP.B \-count [count]Expected count of objects returned if the summary set. Tests this count and display difference.Terminates the cimcli call nonzero if test fails  . Default(). This can be used in testing to confirm that a predefinednumber of objects is returned. Example: -count 100 will expect 100 objects or names to be returned.TP.B \-delay [time in seconds]Delay between connection and request . Default(0). example -delay 3 delays 3 seconds between the call and thetransmisson of the actual CIM operation.  This is used only in some testing environments..TP.B \-diSpecifies the boolean parameter deepInheritance parameter for selected commands. Setting this options causes the deepinheritance=tru to be transmitted for the operation.Note that this means different things to different commands and is used only with the enumerate commands..TP.B \-icBoolean to set include class origin operation parameter to true..TP.B \-iq(DEPRECATED}Specifies the includeQualifiers operation input paramter for selected commands.Since the server default for this parameter is normally true, This optionis deprecated in favor of the -niq parameters  .TP.B \-l [location]Define CIMServer host address for the operation.  This includes either name or IP address and optionalport number(HostName:port).  The default is localhost:5988.  If name is used without port, port 5988 is assumed.Examples include -l fred, -l fred:9999, -l 10.1.134.66 -l 10.1.134.123:5977.TP.B \-loSpecifies the localOnly operation parameter for selected commands if the option is set.See the commands for more information. This option is Deprecated in favor of the -nlo because thedefault for local only is on so that generally the -lo is simply the default.  We recommend using-nlo to turn off local only..TP.B \-n [Namespace]Defines the namespace for the operation.host name. The default is root/cimv2. exmple -n root/PG_Interop setsthe root/PG_Interop namespace as the namespace for the current operation. .TP .B \-p [password]Allows input of a password for server authentication of the command. ( ex. -p 12345678). The default isthat the command is submitted with no password..TP .B \-u [User]Defines nser ame for CIM Server authentication. Default is no user name and no authentication.( ex -u john) Default is no user name and no authentication..TP .B \-lo DEPRECATED. This was used to set LocalOnly. However, default should be true and we cannot use True as default. See !lo . Default(true)..TP .B \-!lo(DEPRECATED) When set, sets LocalOnly = false on operations. DEPRECATED,!confuses bash. Use -nlo . Default(false).  See also -nlo..TP .B \-nloWhen set, sets LocalOnly = false on the CIM operation . Default(false). See also -!lo..It is equivalent to -!lo and superceedes the -!lo form..TP .B \-niqSets includeQualifiers = false on operations. Default(false). See also -!iq.  This form was implemented because ofproblems with the -!iq form on some systems.  It is equivalent to -!iq which is deprecated..TP .B \-pl [propertyList]Defines a propertyName List which is an optional parmeter for some CIM Operations. Format is p1,p2,p3 (without spaces).Default is that the property list is set to NULL indicating normally that the operation should return all properties.The property list typically has 3 possibilities 1) empty which means return no properties, 2) list of properties tobe returned, 3) NULL which means return all properties.  Since the default is NULL, not applying the option means thatall properties are being requested.  To set this parameter to empty use the form -pl "". .TP.B \-r [role]Defines a role string for reference role parameter. Default().TP.B \-rc [resultClass]Defines a resultClass string for References and Associatiors. Default().TP.B \-rr [resultRole]Defines a role string for associators operation resultRole parameter. . Default().TP.B \-ip [inputParameterList]Defines an invokeMethod input parameter list. Format is p1=v1,p2=v2,..,pn=vn (without spaces) . Default().TP.B \-f [filter]Defines a filter to use for query. One String input . Default().TP .B \-o [ xml | mof ]Output in xml, mof, txt. Default(mof) if the -o options is not included..TP.B \-xOutput objects in xml instead of mof format. Default(false).TP/B \--vDisplays cimcli and Pegasus software Version..TP.B \-vVerbose Display. Includes Detailed Param Input display . Default(false). Outputs extra information about theparameters actually used in the request and the return from the operation.  This is primarily a debugging tool..TP.B \--sumDisplays only summary counts for enumerations, associators, etc.This option is used to with therepeat option to repeat an operation without getting the full return display.  It reduces the display to summaryinformation.  It is often used with the time option --t to generate time for execution information on many repetitionsof a command..TP. B \-hPrints help usage message..TP.B \--helpPrints full help message with commands, options, examples..TP. B \-hoPrints list of cimcli options..TP.B \-hcPrints cimcli Operation command list.  This list includes the CIM Operatons defined bythe CIM Operations specification and other operations that were felt to be useful intesting CIM environments..TP.B \--timeout [seconds]Set the connection timeout in seconds. If not set, the timeoutis the default Pegasus client timeout which for Pegasus is normally to about 30 seconds. This option executesthe client call to set timeout..TP.B \-dMore detailed debug messages from cimcli. This can be useful in the case where the user is debuggingCIM funtionality..TP.B \-trace [trace_level]Set Pegasus Common Components Trace. Sets the Trace level. 0 isoff. Default(0). The trace level can beset to 0 - 4..TP.B \--r [repeat_count]Number of times to repeat the function. Zero means one time. The option ca be used torepeate an operation within a single call to cimcli.  It simply repeats the operation defined thenumber of times defined by the repeate_count within the same connection.  Thus, it establishesthe connection executes the operation repeat_count times and then terminates.  It can be used withthe --time option to measure execution times for many repetitions of an operation..TP.B --tMeasure time for the operation and present results. When set the responsetime for the operation is presented with the command output. If the --r (repeat) option isset, minimum, maximum, and average times are presented.  Note that the time for the operation itselfis presented in addition to the overall time for connect, operation, and disconnect.  If statisticsare being gathered by the server, setting this option also presents the server time, and theclient round trip time which are calculated by the server and client infrastructure. .TP.B -sBoolean option thatpecifies that the Client should attempt to connnect over the secure connection using SSL. This optioncauses cimcli to modify the client connect call to set the SSLContext option to the certificate defined with the --cert and --key options.  If this option is set but neither the --cert or --key options are included,the SSLContext for the connect call is submitted with the Cert and key marked NULL..TP.B --certDefines a certificate to be used with the client connect if the -s option is set. This is optional and usedonly  with the -s and --key options..TP.B --keyDefines a Client private key. This is optional and only has an effect on connections made over HTTPS using -s.SH EXAMPLESExecute an enumerateinstancenames CIM operation for the pg_computersystem Class.brcimcli enumerateinstancenames pg_computersystem  -- enumerateinstances of class.br   or.br cimcli ei pg_computersystem    -- Same as aboveEnumerate the class names from the default namespace "root/cimv2".br cimcli enumerateclassnames -- Enumerate classnames from root/cimv2.Enumerate class names from the namespace "root".br cimcli ec /n root -- Enumerate classnames from namespace root..P cimcli ec -o xml   -- Enumerate classes with XML output starting at root cimcli enumerateclasses CIM_Computersystem -o xml    -- Enumerate classes in MOF starting with CIM_Computersystem cimcli getclass CIM_door -a -u guest -p guest    -- Get class with authentication set and user = guest, password = guest..P cimcli rn TST_Person.name=@MIKE@ -n root/sampleprovider -rc TST_Lineage. cimcli ec -o XML -- enumerate classes and output XML rather than MOF. cimcli getqualifiers -- Get the qualifiers in mof output format.SH BUGSCurrently at least some platforms and shells have problems with the double-quote whichis used extensively in object names within CIM. To get around this, thecharacter '@' has been mapped to the double-quote so that inputtinga command line with this character in place of quotes is acceptable.Thus, for example, cimcli rn TST_Person.name=@MIKE@ ...is equivalent tocimcli rn TST_Person.name-"MIKE" ...In this version there is no way to turn this character mapping off whichmeans that the @ character is lost..SH WARNINGS.SH "RETURN VALUE"cimcli returns the following codes:.B 0 - Successfull execution of the operation..B 1 - Execution error for the operation..SH AUTHOR Karl Schopmeyer k.schopmeyer@opengroup.org

⌨️ 快捷键说明

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