JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle VM Server for SPARC 2.1 Administration Guide     Oracle VM Server for SPARC
search filter icon
search icon

Document Information

Preface

Part I Oracle VM Server for SPARC 2.1 Software

1.  Overview of the Oracle VM Server for SPARC Software

2.  Installing and Enabling Software

3.  Security

4.  Setting Up Services and the Control Domain

5.  Setting Up Guest Domains

6.  Setting Up I/O Domains

7.  Using Virtual Disks

8.  Using Virtual Networks

9.  Migrating Domains

10.  Managing Resources

11.  Managing Configurations

12.  Performing Other Administration Tasks

Part II Optional Oracle VM Server for SPARC Software

13.  Oracle VM Server for SPARC Physical-to-Virtual Conversion Tool

14.  Oracle VM Server for SPARC Configuration Assistant

15.  Using the Oracle VM Server for SPARC Management Information Base Software

Oracle VM Server for SPARC Management Information Base Overview

Software Components

System Management Agent

Logical Domains Manager and the Oracle VM Server for SPARC MIB

Parsing the XML-Based Control Interface

Providing SNMP Traps

Providing Fault and Recovery Information

Oracle VM Server for SPARC MIB Object Tree

Installing and Configuring the Oracle VM Server for SPARC MIB Software

Installing and Configuring the Oracle VM Server for SPARC MIB Software (Task Map)

Install the Oracle VM Server for SPARC MIB Software Package

Load the Oracle VM Server for SPARC MIB Module Into the SMA

Remove the Oracle VM Server for SPARC MIB Software Package

Managing Security

Create the Initial snmpv3 User

Monitoring Domains

Setting Environment Variables

Set Environment Variables

Querying the Oracle VM Server for SPARC MIB

Retrieve Oracle VM Server for SPARC MIB Objects

Retrieving Oracle VM Server for SPARC MIB Information

Domain Table (ldomTable)

Environment Variables Table (ldomEnvVarsTable)

Domain Policy Table (ldomPolicyTable)

Service Processor Configuration Table (ldomSPConfigTable)

Domain Resource Pool and Scalar Variables

Virtual CPU Table (ldomVcpuTable)

Virtual Memory Tables

Virtual Disk Tables

Virtual Network Tables

Virtual Console Tables

Cryptographic Units Table (ldomCryptoTable)

I/O Bus Table (ldomIOBusTable)

Core Table (ldomCoreTable)

Scalar Variables for Logical Domains Version Information

Using SNMP Traps

Using Oracle VM Server for SPARC MIB Module Traps

Sending and Receiving Traps

Oracle VM Server for SPARC MIB Trap Descriptions

Domain Creation (ldomCreate)

Domain Destroy (ldomDestroy)

Domain State Change (ldomStateChange)

Virtual CPU Change (ldomVCpuChange)

Virtual Memory Change (ldomVMemChange)

Virtual Disk Service Change (ldomVdsChange)

Virtual Disk Change (ldomVdiskChange)

Virtual Switch Change (ldomVswChange)

Virtual Network Change (ldomVnetChange)

Virtual Console Concentrator Change (ldomVccChange)

Virtual Console Group Change (ldomVconsChange)

Starting and Stopping Domains

Starting and Stopping a Domain

Start a Domain

Stop a Domain

16.  Logical Domains Manager Discovery

17.  Using the XML Interface With the Logical Domains Manager

Glossary

Index

Starting and Stopping Domains

This section describes the active management operations that you use to stop and start domains. You can control these active management operations by setting a value for the ldomAdminState property of the Domain Table, ldomTable. See Table 15-1.

Starting and Stopping a Domain

Start a Domain

This procedure describes how to start an existing bound domain. If a domain with the specified domain name does not exist or is not already bound, this operation fails.

  1. Verify that the domain-name domain exists and is bound.
    # ldm list domain-name
  2. Identify domain-name in ldomTable.
    # snmpwalk -v1 -c public localhost SUN-LDOM-MIB::ldomTable
    SUN-LDOM-MIB::ldomName.1 = STRING: primary
    SUN-LDOM-MIB::ldomName.2 = STRING: LdomMibTest_1 
    SUN-LDOM-MIB::ldomAdminState.1 = INTEGER: 0
    SUN-LDOM-MIB::ldomAdminState.2 = INTEGER: 0
    SUN-LDOM-MIB::ldomOperState.1 = INTEGER: active(1)
    SUN-LDOM-MIB::ldomOperState.2 = INTEGER: bound(6)
    SUN-LDOM-MIB::ldomNumVCpu.1 = INTEGER: 32 
    SUN-LDOM-MIB::ldomNumVCpu.2 = INTEGER: 2 
    SUN-LDOM-MIB::ldomMemSize.1 = INTEGER: 3968 
    SUN-LDOM-MIB::ldomMemSize.2 = INTEGER: 256 
    SUN-LDOM-MIB::ldomMemUnit.1 = INTEGER: megabytes(2)
    SUN-LDOM-MIB::ldomMemUnit.2 = INTEGER: megabytes(2)
    SUN-LDOM-MIB::ldomNumCrypto.1 = INTEGER: 8 
    SUN-LDOM-MIB::ldomNumCrypto.2 = INTEGER: 0
    SUN-LDOM-MIB::ldomNumIOBus.1 = INTEGER: 2 
    SUN-LDOM-MIB::ldomNumIOBus.2 = INTEGER: 0
    SUN-LDOM-MIB::ldomUUID.1 = STRING: c2c3d93b-a3f9-60f6-a45e-f35d55c05fb6
    SUN-LDOM-MIB::ldomUUID.2 = STRING: af0b05f0-d262-e633-af32-a6c4e81fb81c
    SUN-LDOM-MIB::ldomMacAddress.1 = STRING: 00:14:4f:86:63:2a
    SUN-LDOM-MIB::ldomMacAddress.2 = STRING: 00:14:4f:fa:78:b9
    SUN-LDOM-MIB::ldomHostID.1 = STRING: 0x8486632a
    SUN-LDOM-MIB::ldomHostID.2 = STRING: 0x84fa78b9
    SUN-LDOM-MIB::ldomFailurePolicy.1 = STRING: ignore
    SUN-LDOM-MIB::ldomFailurePolicy.2 = STRING: ignore
    SUN-LDOM-MIB::ldomMaster.1 = STRING:
    SUN-LDOM-MIB::ldomMaster.2 = STRING:
  3. Start the domain-name domain.

    Use the snmpset command to start the domain by setting a value of 1 to the ldomAdminState property. n specifies the domain to start.

    # snmpset -v version -c community-string hostname \ SUN-LDOM-MIB::ldomTable.1.ldomAdminState.n = 1
  4. Verify that the domain-name domain is active.
    • Use the ldm list command.
      # ldm list domain-name
    • Use the snmpget command.
      # snmpget -v version -c community-string hostname SUN-LDOM-MIB::ldomOperState.n

Example 15-5 Starting a Guest Domain

This example verifies that the LdomMibTest_1 domain exists and is bound before setting the ldomAdminState property to 1. Finally, the ldm list LdomMibTest_1 command verifies that the LdomMibTest_1 domain is active.

# ldm list LdomMibTest_1
# snmpset -v1 -c private localhost SUN-LDOM-MIB::ldomTable.1.ldomAdminState.2 = 1
# ldm list LdomMibTest_1

Instead of using the ldm list command to retrieve the LdomMibTest_1 domain's state, you can use the snmpget command.

# snmpget -v1 -c public localhost SUN-LDOM-MIB::ldomOperState.2

Note that if the domain is inactive when you use snmpset to start the domain, the domain is first bound and then started.

Stop a Domain

This procedure describes how to stop a started domain. Any operating system instances that are hosted by the domain are stopped.

  1. Identify domain-name in ldomTable.
    # snmpwalk -v1 -c public localhost SUN-LDOM-MIB::ldomTable
    SUN-LDOM-MIB::ldomName.1 = STRING: primary
    SUN-LDOM-MIB::ldomName.2 = STRING: LdomMibTest_1 
    SUN-LDOM-MIB::ldomAdminState.1 = INTEGER: 0
    SUN-LDOM-MIB::ldomAdminState.2 = INTEGER: 0
    SUN-LDOM-MIB::ldomOperState.1 = INTEGER: active(1)
    SUN-LDOM-MIB::ldomOperState.2 = INTEGER: bound(6)
    SUN-LDOM-MIB::ldomNumVCpu.1 = INTEGER: 32 
    SUN-LDOM-MIB::ldomNumVCpu.2 = INTEGER: 2 
    SUN-LDOM-MIB::ldomMemSize.1 = INTEGER: 3968 
    SUN-LDOM-MIB::ldomMemSize.2 = INTEGER: 256 
    SUN-LDOM-MIB::ldomMemUnit.1 = INTEGER: megabytes(2)
    SUN-LDOM-MIB::ldomMemUnit.2 = INTEGER: megabytes(2)
    SUN-LDOM-MIB::ldomNumCrypto.1 = INTEGER: 8 
    SUN-LDOM-MIB::ldomNumCrypto.2 = INTEGER: 0
    SUN-LDOM-MIB::ldomNumIOBus.1 = INTEGER: 2 
    SUN-LDOM-MIB::ldomNumIOBus.2 = INTEGER: 0
    SUN-LDOM-MIB::ldomUUID.1 = STRING: c2c3d93b-a3f9-60f6-a45e-f35d55c05fb6
    SUN-LDOM-MIB::ldomUUID.2 = STRING: af0b05f0-d262-e633-af32-a6c4e81fb81c
    SUN-LDOM-MIB::ldomMacAddress.1 = STRING: 00:14:4f:86:63:2a
    SUN-LDOM-MIB::ldomMacAddress.2 = STRING: 00:14:4f:fa:78:b9
    SUN-LDOM-MIB::ldomHostID.1 = STRING: 0x8486632a
    SUN-LDOM-MIB::ldomHostID.2 = STRING: 0x84fa78b9
    SUN-LDOM-MIB::ldomFailurePolicy.1 = STRING: ignore
    SUN-LDOM-MIB::ldomFailurePolicy.2 = STRING: ignore
    SUN-LDOM-MIB::ldomMaster.1 = STRING:
    SUN-LDOM-MIB::ldomMaster.2 = STRING:
  2. Stop the domain-name domain.

    Use the snmpset command to stop the domain by setting a value of 2 to the ldomAdminState property. n specifies the domain to stop.

    # snmpset -v version -c community-string hostname \ SUN-LDOM-MIB::ldomTable.1.ldomAdminState.n = 2
  3. Verify that the domain-name domain is bound.
    • Use the ldm list command.
      # ldm list domain-name
    • Use the snmpget command.
      # snmpget -v version -c community-string hostname SUN-LDOM-MIB::ldomOperState.n

Example 15-6 Stopping a Guest Domain

This example sets the ldomAdminState property to 2 to stop the guest domain and then uses the ldm list LdomMibTest_1 command to verify that the LdomMibTest_1 domain is bound.

# snmpset -v1 -c private localhost SUN-LDOM-MIB::ldomTable.1.ldomAdminState.2 = 2
# ldm list LdomMibTest_1