![](https://csdnimg.cn/release/download_crawler_static/12231955/bg13.jpg)
Server Management Command Line Protocol (SM CLP) Specification
Version 1.0.2 19
A session’s Current Default Target is only modified if set explicitly by a user. The rules for establishing 613
and maintaining a session’s Current Default Target are as follows: 614
• Implementations shall set the Current Default Target to the instance address of the root of the 615
address space of the MAP upon CLP session activation. Implementations shall use the same 616
initial value for the CDT for all users and shall not allow the initial value to be configurable by a 617
user. 618
– Therefore, Current Default Target is never <null> at CLP session start. 619
– If a user sets the CDT to another target address and then ends the session, on the next 620
login by the user to a CLP session of the same MAP, the implementation shall set the CDT 621
to the UFiP of the Managed Element that represents the root of address space of the MAP. 622
• The Command Processor shall not allow the user to explicitly set the Current Default Target to 623
an invalid target address during the session. 624
• If the user attempts to set the Current Default Target to a target address for a Managed Element 625
that is not responding or is not recognized as being in the scope of the MAP, then the attempt 626
fails, and the implementation shall not change the Current Default Target and shall return a 627
Command Status of COMMAND EXECUTION FAILED and a CIM Status of 628
CIM_ERR_NOT_FOUND. 629
• If a Managed Element becomes unresponsive at some point after it has been set as the Current 630
Default Target, then the implementation shall return an appropriate error code and shall keep 631
the Current Default Target address set to its current value until the user explicitly changes it to a 632
different, valid target address. This prevents spurious drops in communication with the Current 633
Default Target from causing an automatic change in the Current Default Target. Because 634
unpredictable, undesired results would occur if the Current Default Target is automatically 635
changed, the Command Processor shall not automatically change the value of the Current 636
Default Target, for any reason. 637
EXAMPLE
A user sets the CDT to "/system1/disk3". Some time later, /system1/disk3 becomes 638
unresponsive. As long as the user does not target the CDT with a command, there is no impact on the user’s 639
current session. If the user decides to target /system1/disk3 by omitting the target term of the current command, 640
the CLP implementation would discover that the target ME, /system1/disk3, is unresponsive and return an error 641
code. 642
5.1.3.3 Target Address Precedence 643
The implementation shall determine the Resultant Target of a command in the order that follows: 644
1) If the command verb has an Implicit Command Target, then the Implicit Command Target shall 645
be selected as the Resultant Target. 646
2) If a command target term is specified in the Command Line, the implementation shall apply the 647
Target Address Evaluation Rules to derive the Resultant Target. These rules are detailed in 648
130H5.2.1.3.6. 649
3) If the Command Line did not include a command target term, the implementation shall select 650
the CDT as the Resultant Target. 651
If the Resultant Target is determined by the implementation to be invalid, then the implementation shall 652
not execute the command and shall return a Command Status of COMMAND EXECUTION FAILED and 653
a CIM Status of CIM_ERR_NOT_FOUND in the Command Response data. CLP commands that have an 654
Implicit Command Target may still accept a command target term (for example, the cd command) or may 655
not accept a command target term (for example, the exit command). Each command’s use of the 656
command target term is documented in the subclause of Clause
131H6 devoted to the command. 657