openpegasus 관계 나타내는 클래스 DMTF2012. 6. 29. 01:39
$./src/Providers/TestProviders/Load/TestAggregationOutputProvider.mof
[Association, Version("1.0.0"), Description(" Marriage defines the "
"relationship between husband and wife.") ]
class TEST_Marriage
{
[key] TEST_Person ref husband;
[key] TEST_Person ref wife;
};
mof 파일에
객체를 나타내는 클래스
관계를 나타내는 클래스
뿐만 아니라
인스턴스까지 생성가능하다.
객체 인스턴스 : instance of TEST_Person { name = "Francis"; };
관계 인스턴스 :
instance of TEST_Teaches
{
teacher = "TEST_Person.name=\"John\"";
student = "TEST_Person.name=\"Nazerath\"";
};
cimcli 명령어로 어케 추가하는지 알아야할듯
mi
ti
gi
ci
dc
gp
참고 : file://D:/KETI/Citrix&Pegasus/pegasus-2.10.1/pegasus/src/Clients/cimcli/doc/cimcli.html
Thus, as an example, the input for a getInstance might be:
cimcli gi TennisPlayer.first="Patrick",last="Rafter"
or
cimcli gi TennisPlayer first=Patrick last=Rafter
'DMTF' 카테고리의 다른 글
CIMOF 등록하기 (0) | 2012.07.10 |
---|---|
cimcli (0) | 2012.06.29 |
openpegasus sdk make (0) | 2012.06.29 |
openpegasus sdk client (0) | 2012.06.29 |
diff & patch (0) | 2012.06.28 |