HP Matrix Operating Environment Software manual 101

Page 101

serviceData.append([ipAddress.ipAddress, ipAddress.ipAssignmentType, ipAddress.allocationHours, str(locale.currency(val=ipAddress.allocationCost, symbol=False, grouping=True))])

return len(ipAddresses.ipAddressUsageDetail)

def get_servicetable(self, service):

serviceinfotable = [[]]

serviceinfotable[0] = ["Service", get_servicename(service)] serviceinfotable.append(["Organization", get_organization(service)]) serviceinfotable.append(["Billing code", get_billingcode(service)]) serviceinfotable.append(["Owner", get_owner(service)]) serviceinfotable.append(["Created on", get_startdate(service)]) serviceinfotable.append(["Deleted on", get_enddate(service)])

tService = Table(serviceinfotable, style=[('LINEABOVE', (0, 0), (-1, 0), 0.25, colors.black), ('LINEBELOW', (0, -1), (-1, -1), 0.25, colors.black), ('FONTSIZE', (0, 0), (-1, -1), 6),

('INNERGRID', (0, 0), (-1, -1), 0.25, colors.black), ('BOX', (0, 0), (-1, -1), 0.25, colors.black), ('BACKGROUND', (0, 0), (1, 0), colors.blue), ('TEXTCOLOR', (0, 0), (1, 0), colors.white)])

tService.hAlign = "LEFT" return tService

def get_servicedetailstable(self, service): tServiceData = [[]]

tServiceData[0] = ["Fixed Cost ($)", str(locale.currency(val=service.resourceUsageDetail.fixedCost, symbol=False, grouping=True)), "", ""]

s = 2 + self.addserversdetails(service.resourceUsageDetail.servers, tServiceData) d = s + self.adddisksdetails(service.resourceUsageDetail.disks, tServiceData) + 2 self.addipaddressesdetails(service.resourceUsageDetail.ipAddresses, tServiceData)

tService = Table(tServiceData, style = [('LINEBELOW', (0, 0), (-1, 0), 0.5, colors.black), ('SPAN',(1,0),(-1,0)),

('FONTSIZE', (0, 0), (-1, -1), 6),

('LINEBELOW', (0, 1), (-1, 1), 0.5, colors.black), ('LINEABOVE', (0, 1), (-1, 1), 0.5, colors.black), ('SPAN',(0,1),(-1,1)),

('LINEBELOW', (0, s+1), (-1, s+1), 0.5, colors.black), ('LINEABOVE', (0, s+1), (-1, s+1), 0.5, colors.black), ('SPAN',(0,s+1),(-1,s+1)),

('LINEBELOW', (0, d+1), (-1, d+1), 0.5, colors.black), ('LINEABOVE', (0, d+1), (-1, d+1), 0.5, colors.black), ('SPAN',(0,d+1),(-1,d+1)),

('BOX', (0, 0), (-1, -1), 0.25, colors.black), ('TEXTCOLOR', (0, 0), (-1, -1), colors.black)])

tService.hAlign = "LEFT" return tService

def format_data(self):

dataPeriod = self.period.getPeriodObj(self.chargebackservice) paging = self.chargebackservice.factory.create('paging') paging.pageIndex = PAGE_INDEX

paging.pageSize = PAGE_SIZE Elements = []

if self.chargebackservice : filters = []

if self.filters :

filters = self.filters.getFiltersObj(self.chargebackservice)

if len(filters) > 0:

print "[" + str(datetime.datetime.now()) + "]" + "getServiceUsageDetailPage: start"

result = self.chargebackservice.service.getServiceUsageDetailPage(dataPeriod, paging, filters)

print "[" + str(datetime.datetime.now()) + "]" + "getServiceUsageDetailPage: end" else:

result = self.chargebackservice.service.getServiceUsageDetailPage(dataPeriod, paging)

if (result.pagingInformation) and (result.serviceUsageDetail) and (len(result.serviceUsageDetail)

> 0) :

pages = result.pagingInformation services = result.serviceUsageDetail

Elements.extend(report_Summary(len(services), self.period))

Elements.append(Paragraph(''' ''', styleSheet["BodyText"]))

for service in services: Elements.append(self.get_servicetable(service)) Elements.append(Paragraph(''' ''', styleSheet["BodyText"])) Elements.append(self.get_servicedetailstable(service)) Elements.append(PageBreak())

else:

print "Result: " + result

return Elements

def generate (self, outputfile):

usageReport = root.reports.reports.Report(self.title, self.footer)

101

Image 101
Contents Abstract API and CLI Operations Reference Guide7.1 7.1 Update 1Contents CMS Data Model Contents Example Usage ExceptionsSample Java Client Accessing the Chargeback Web Service InterfacesRequiredParameterException Part I Matrix API Introduction Introduction New features in 7.1 UpdateIntegration interface overview New features in 7.1 New featuresPowerCycleLogicalServers QuiesceCms UnquiesceCms GetCmsQuiesceStatus EditLogicalServers RemoveLogicalServersLogicalServerGroupDetails LogicalServerInfoChargeback ServiceInfoRequestInfo TemplateInfoAccessing Wsdl Accessing the Web Service InterfacesCommand Line Interface SecurityImportTemplate OperationsExportTemplate List TemplateInfoListServices ServiceGetService CreateServiceDeactivateService DeleteServicePowerOffService ActivateServiceChangeServiceLease DeleteReplicaService PowerOnServiceRequest ListRequestsGetRequest GetRequestInfoSetRequestApprovalState ContinueRequestLogical Server Group CancelRequestGetLogicalServerGroup AddServersToLogicalServerGroupAddNewDiskToLogicalServerGroup AddDiskToLogicalServerGroupRawMappingTypeEnum SetLogicalServerGroupActiveServerCountDeactivateLogicalServers GetLogicalServerLogicalServerInfo LogicalServerDetailsPowerOnLogicalServers PowerOffLogicalServersActivateLogicalServers LogicalServerNotFound Exception Logical ServerEditLogicalServers PowerCycleLogicalServersRemoveLogicalServers ByteSizeEnumListServerPools Server PoolGetServerPool CreateServerPoolAssignUsersToServerPool DeleteServerPoolMoveServerToServerPool UnassignUsersFromServerPool ServerGetComputeServer GetVmHostSubnet SoftwareGetSanVolume ListSanVolumesListSanVolumeTemplates GetSanVolumeTemplateListOrganizations OrganizationGetOrganization AssignTemplateToOrganizationAssignServerToOrganization By a Service Provider AdministratorUnassignServerFromOrganization OrganizationName Returns None ExceptionsAssignSoftwareToOrganization AssignSubnetToOrganizationUnassignSubnetFromOrganization SyncOrganizations BeginCmsMaintenanceUnassignSoftwareFromOrganization CountRunningRequestsForCms EndCmsMaintenanceAddCms QuiesceCmsGetCmsQuiesceStatus LoadBalancerListLoadBalancers AddLoadBalancerRemoveLoadBalancer SetLoadBalancerPasswordAddLoadBalancerCertificate RemoveLoadBalancerCertificateLogicalLoadBalancer UnsetLoadBalancerPasswordCreateLogicalLoadBalancerGroup DeleteLogicalLoadBalancerGroupAddLogicalLoadBalancerGroupMember FirewallRuleGroupRemoveLogicalLoadBalancerGroupMember GetFirewallRuleGroupRemoveRuleFromFirewallRuleGroup AddRuleToFirewallRuleGroupSyncFirewallRuleGroups Name AddRuleToFirewallRuleAddFloatingIPAddress FloatingIPAddressMoveFloatingIPAddress RemoveFloatingIPAddressReleaseFloatingIPAddress ServerSnapshotListUnassociatedFloatingIPAddresses ListServerSnapshotsDeleteServerSnapshot CreateServerSnapshotRevertServerSnapshot Snapshot, recursively. Defaults to false Data Model Data ModelByteSizeEnum ByteSizeCidrIpRange CmsQuiesceStateCostFrequency CostCostFrequencyEnum CustomAddressAssignmentTypeAttributeCustomProcessorAttribute CustomStorageVolumeAttributeCustomSubnetBindingAttribute CustomTemplateAttributesDeploymentServiceType DeploymentServiceDeploymentServiceTypeEnum DrModeFirewallRuleGroupInfo FirewallRuleFirewallRuleGroupDetails ImageTypeIPTypeEnum IPTypeLeasePeriod LoadBalancerInfoLogicalIPAddress LogicalDiskLogicalFirewallRuleGroup LogicalLoadBalancerGroupDetails LogicalLoadBalancerDetailsLogicalLoadBalancerGroupInfo LogicalLoadBalancerGroupMemberLogicalLoadBalancerProtocolEnum LogicalLoadBalancerProtocolLogicalNetworkInterface LogicalServerDetailsLogicalServerInfo ServiceEntityStatus statusLogicalServerGroupInfo LogicalSubnet LogicalSoftwareMessageSeverityEnum MessageSeverityNatEntry NatTypePacketProtocolEnum PacketProtocolProcessorArchitecture ProcessorArchitectureEnumRequestHistoryItem RequestDetailsRequestHistoryItemLevel RequestHistoryItemLevelEnumRequestStatusEnum RequestStatusRequestType RequestTypeEnumSanVolumeStateEnum SanVolumeSanVolumeState ServerPool SanVolumeTemplateState cannot be determined IDs of the cloud capacity pools in the server poolServiceActionTrigger trigger ServiceActionServerPoolResourceNote ServerResourceServiceActionTriggerEnum ServiceActionTriggerServiceDetails ServiceEntityStatusSoftwareDiskDefinition ServiceInfoSoftwareType SoftwareTypeEnumStorageProvisioningTypeEnum StorageProvisioningTypeStorageType StorageTypeEnumVirtualizationTypeEnum TemplateInfoVirtualizationType VmHost VirtualSwitchVmHostDataStore WorkflowExceptions SanVolumeTemplateNotFoundException SanVolumeNotFoundExceptionServiceNotFoundException OrganizationNotFoundExceptionSubnetNotFoundException SoftwareNotFoundExceptionTemplateNotFoundException UserNotFoundExceptionExample Usage Physical Server Maintenance ExamplePhysical Server Maintenance Example Sample Java Client Sample Java ClientSample Code Sample Code Sample Java Client IOClientPasswordHandler.java Sample Java Client Add this code Sample VisualStudio/.NET/C# ClientString.Format0s, DateTime.Now Sample VisualStudio/.NET/C# ClientPage Part II Chargeback API Chargeback Soap API Chargeback Soap APIHttps//cms-ip-address55443/hpio/chargeback/soap/v1?wsdl Accessing the Chargeback Web Service InterfacesAccessing the Chargeback Web Service Interfaces Detailed Usage Report OperationsSummary Usage Report One entry with consolidated data for the entire period List ServiceFilterAggregated Usage Report ServiceUsagePage Data Model ServiceFilterAttribute enum ServiceFilterFilterConnector enum PeriodResourceUsageSummary ServiceInformationServerUsageSummary DiskUsageSummaryServiceUsageSummary ServiceUsagePageAggregateServiceUsage ServiceUsageDetailPageIpAddressUsageDetail DiskUsageDetailAuthorizationException AuthenticationExceptionChargebackDataBaseException ChargebackExceptionPeriodStartDateTooOldException PeriodStartDateGreaterThanEndDateExceptionRequiredParameterException PeriodStartDateGreaterThanEndDateExceptionSample Python Client Sample Python ClientPage Pageindex = Example 2 reports.pyPage Sample Python Client 101 Sample Python Client 103 Example 3 GUI.pySample Python Client 105 Example 4 reportsfile.py 107 Sample Chargeback Usage ReportReferences ReferencesSupport and other resources How to contact HPInformation to collect before contacting HP Information to collect before contacting HPHP authorized resellers Warranty informationDocumentation feedback Subscribing to security bulletinsRelated information Related informationDocumentation and support
Related manuals
Manual 79 pages 57.42 Kb Manual 12 pages 7.25 Kb

Matrix Operating Environment Software specifications

HP Matrix Operating Environment (MOE) is an innovative software platform designed to deliver efficient management and orchestration of IT resources across physical, virtual, and cloud infrastructures. It provides a comprehensive solution for organizations that require a robust and flexible environment to manage their IT operations seamlessly.

One of the main features of HP MOE is its ability to optimize resource utilization by automating the provisioning and management of infrastructure components. This includes the ability to rapidly deploy servers, storage, and networking resources in a manner that meets the dynamic needs of modern businesses. This automation significantly reduces the time and effort required for manual configurations, enabling IT teams to focus on strategic initiatives rather than routine tasks.

The software offers a unified management interface that provides visibility into the entire IT environment. Users can monitor performance metrics, track resource allocation, and manage workflows through a single dashboard. This centralized control not only simplifies operations but also enhances decision-making capabilities by providing real-time insights into system health and performance.

Another critical characteristic of HP MOE is its support for both physical and virtual resources. The platform is designed to seamlessly integrate with existing infrastructure, making it easier for organizations to adopt virtualization and hybrid cloud strategies. Its compatibility with industry-standard hypervisors allows businesses to leverage their current investments while taking advantage of the benefits of virtualization.

HP MOE incorporates advanced technologies such as automation scripts, APIs, and tools for workload balancing. This technological backbone enables organizations to implement elasticity in their environments, allowing them to scale resources up or down based on demand. The software also supports a service-oriented architecture, facilitating integration with other enterprise applications and systems.

Security is a top priority in the design of HP MOE. The software provides robust security features that ensure data integrity and protect against unauthorized access. This includes role-based access controls, encryption, and compliance reporting, all of which contribute to a secure operating environment.

In summary, HP Matrix Operating Environment Software is a powerful solution that addresses the complexities of managing modern IT resources. Its key features include automation, unified management, support for physical and virtual environments, and strong security measures. With its ability to enhance efficiency and streamline operations, HP MOE is an essential tool for organizations looking to stay competitive in an increasingly digital landscape.