# dnf install tog-pegasus # dnf install openlmi-{storage,networking,service,account,hardware,powermanagement} # ipa service-add CIMOM/`hostname` # ipa-getcert request -f /etc/Pegasus/server.pem -k /etc/Pegasus/file.pem -N # semanage permissive -a certmonger_t # systemctl start tog-pegasus.service # systemctl enable tog-pegasus.service # dnf install openlmi-tools "openlmi-scripts-*" # lmi --user pegasus -h ibm-x3455-2.example.comm lmi> system lmi> service show httpd # lmishell > c = connect("ibm-x3455-2.example.com", "pegasus", "redhat") > isinstance(c, LMIConnection) > ns = c.root.cimv2 #!/usr/bin/lmishell c = connect("ibm-x3455-2.example.com", "pegasus", "redhat") ns = c.root.cimv2 srv = c.root.cimv2.LMI_Service for service in srv.instances(): print "Name:\t %s" % (service.Name) for service in c.root.cimv2.LMI_Service.instances(): print "Name:\t %s" % (service.Name) for service in srv.instances(): if service.EnabledDefault == srv.EnabledDefaultValues.Enabled: print "Name:\t %s" % (service.Name) c = connect("ibm-x3455-2.example.com", "pegasus", "redhat") realm = c.root.cimv2.LMI_RealmdService.first_instance() realm.JoinDomain( Domain="example.com", User="admin", Password="password")