Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 860022b91f267ebff1019f58c1dabc60ca65b4cf Author: Peter Hatina phatina@redhat.com Date: Thu Dec 13 13:28:53 2012 +0100
update README to meet current namespace layout
README | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/README b/README index 64b572b..f1a5bd6 100644 --- a/README +++ b/README @@ -115,7 +115,7 @@ Following examples show, how to use command-line tools: - example how to stop a service: $ lmi-shell.py > c = connect("hostname", "username", "password") - > service = c.cimv2.LMI_Service.first_instance("service") + > service = c.root.cimv2.LMI_Service.first_instance("service") > service.Status OK > service.StopService() @@ -128,17 +128,17 @@ Following examples show, how to use command-line tools: - example how to show a class documentation: $ lmi-shell.py > c = connect("hostname", "username", "password") - > lmi_service = c.cimv2.LMI_Service + > lmi_service = c.root.cimv2.LMI_Service > lmi_service.doc() ... class documentation ... - q + <q> > <ctrl+d> $
-example how to show an instance documentation with properties: $ lmi-shell.py > c = connect("hostname", "username", "password") - > service = c.cimv2.LMI_Service.first_instance() + > service = c.root.cimv2.LMI_Service.first_instance() > service.doc() ... instance documentation with properties ... > <ctrl+d> @@ -149,11 +149,14 @@ Following examples show, how to use command-line tools: > c = connect("hostname", "username", "password") > c.print_namespaces() root + > c.root.print_namespaces() cimv2 interop - > c.cimv2.print_classes() + PG_InterOp + PG_Internal + > c.root.cimv2.print_classes() ... available classes ... - > service = c.cimv2.LMI_Service.first_instance() + > service = c.root.cimv2.LMI_Service.first_instance() > service.print_methods() ... instance methods ... > service.print_properties() @@ -164,15 +167,24 @@ Following examples show, how to use command-line tools: - example how to get associated objects with an instance $ lmi-shell.py > c = connect("hostname", "username", "password") - > instance = c.cimv2.LMI_Group.first_instance() + > instance = c.root.cimv2.LMI_Group.first_instance() > associated_objects = instance.associators() > <ctrl+d> $
+ - example how to update an object property value + $ lmi-shell.py + > c = connect("hostname", "username", "password") + > user = c.root.cimv2.LMI_Account.first_instance() + > user.LoginShell = "/usr/bin/zsh" + > user.push() + > <ctrl+d> + $ + - example how to delete an instance from CIM broker $ lmi-shell.py > c = connect("hostname", "username", "password") - > instance = c.cimv2.LMI_Account.first_instance() + > instance = c.root.cimv2.LMI_Account.first_instance() > instance.delete() > <ctrl+d> $
cura-tools-devel@lists.fedorahosted.org