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

Document Information

Preface

Part I Oracle VM Server for SPARC 3.0 Software

1.  Overview of the Oracle VM Server for SPARC Software

2.  Installing and Enabling Software

3.  Oracle VM Server for SPARC 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 Domain 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 (Oracle Solaris 10)

15.  Using Power Management

16.  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)

How to Install the Oracle VM Server for SPARC MIB Software Package

How to Load the Oracle VM Server for SPARC MIB Module Into the Oracle Solaris SNMP Agent

How to Remove the Oracle VM Server for SPARC MIB Software Package

Managing Security

How to Create the Initial snmpv3 User

Monitoring Domains

Setting Environment Variables

How to Set Environment Variables

Querying the Oracle VM Server for SPARC MIB

How to 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

How to Start a Domain

How to Stop a Domain

17.  Logical Domains Manager Discovery

18.  Using the XML Interface With the Logical Domains Manager

Glossary

Index

Using SNMP Traps

This section describes how to set up your system to send and receive traps. It also describes the traps that you can use to receive change notification for logical domains (domains), as well as other traps that you can use.

The Oracle VM Server for SPARC MIB provides the same SNMP traps for both Oracle Solaris 10 and Oracle Solaris 11.

However, the snmptrapd daemon no longer automatically accepts all incoming traps for Oracle Solaris 11. Instead, the daemon must be configured with authorized SNMP v1 and v2c community strings, with SNMPv3 users, or both. Unauthorized traps or notifications are dropped. See the snmptrapd.conf(4) or snmptrapd.conf(5) man page.

Using Oracle VM Server for SPARC MIB Module Traps

Sending and Receiving Traps

The Oracle Solaris 11 MIB provides the same SNMP traps as are provided by the Oracle Solaris 10 MIB. However, the net-snmp versions are different and they must be configured in different ways. In Oracle Solaris 10 MIB, snmptrapd accepts all incoming notifications and automatically logs them. In Oracle Solaris 11 MIB, access control checks are applied to incoming notifications. If snmptrapd runs without a suitable configuration file, or with equivalent access control settings, such traps are not processed. See the snmptrapd.conf(4) or snmptrapd.conf(5) man page.

How to Send Traps

  1. Configure the trap.
    • Configure the trap on an Oracle Solaris 10 system.

      Edit the /etc/sma/snmp/snmpd.conf file to add the directives to define the trap, inform version, and destination.

      trapcommunity string --> define community string to be used when sending traps
      trapsink host[community [port]] --> to send v1 traps
      trap2sink host[community [port]] --> to send v2c traps
      informsink host[community [port]] --> to send informs

      For more information, see the snmpd.conf(4) or snmpd.conf(5) man page.

    • Configure the trap on an Oracle Solaris 11 system.

      Edit the /etc/net-snmp/snmp/snmpd.conf SNMP configuration file to add the directives to define the trap, inform version, and destination.

      trapcommunity string --> define community string to be used when sending traps
      trapsink host[community [port]] --> to send v1 traps
      trap2sink host[community [port]] --> to send v2c traps
      informsink host[community [port]] --> to send informs

      For more information, see the snmpd.conf(4) or snmpd.conf(5) man page.

      For example, the following directives use the public string as the community string when sending traps and that the v1 traps are sent to the localhost destination:

      trapcommunity public
      trapsink localhost
  2. Configure access control settings by creating or editing the /usr/etc/snmp/snmptrapd.conf SNMP trapd configuration file.

    The following example shows who is authorized to send traps (public) and how incoming traps should be processed (log,execute,net). See the snmptrapd.conf(4) or snmptrapd.conf(5) man page.

    authCommunity log,execute,net public
  3. To receive SNMP trap messages, start the SNMP trap daemon utility, snmptrapd.

Example 16-4 Sending SNMP v1 and v2c Traps

This example sends send both v1 and v2c traps to the SNMP trap daemon that runs on the same host. Update the Oracle Solaris 10 /etc/sma/snmp/snmpd.conf file or the Oracle Solaris 11 /etc/net-snmp/snmp/snmpd.conf file with the following directives:

trapcommunity public
trapsink localhost
trap2sink localhost

How to Receive Traps

Oracle VM Server for SPARC MIB Trap Descriptions

This section describes the Oracle VM Server for SPARC MIB traps that you can use.

Domain Creation (ldomCreate)

This trap notifies you when any domains are created.

Table 16-24 Domain Creation Trap (ldomCreate)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain
ldomTrapDesc
Display string
Description of the trap

Domain Destroy (ldomDestroy)

This trap notifies you when any domains are destroyed.

Table 16-25 Domain Destroy Trap (ldomDestroy)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain
ldomTrapDesc
Display string
Description of the trap

Domain State Change (ldomStateChange)

This trap notifies you of any domain operating state changes.

Table 16-26 Domain State Change Trap (ldomStateChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain
ldomOperState
Integer
New state of the domain
ldomStatePrev
Integer
Previous state of the domain
ldomTrapDesc
Display string
Description of the trap

Virtual CPU Change (ldomVCpuChange)

This trap notifies you when the number of virtual CPUs in a domain changes.

Table 16-27 Domain Virtual CPU Change Trap (ldomVCpuChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual CPU
ldomNumVCPU
Integer
New number of virtual CPUs for the domain
ldomNumVCPUPrev
Integer
Previous number of virtual CPUs for the domain
ldomTrapDesc
Display string
Description of the trap

Virtual Memory Change (ldomVMemChange)

This trap notifies you when the amount of virtual memory in a domain changes.

Table 16-28 Domain Virtual Memory Change Trap (ldomVMemChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual memory
ldomMemSize
Integer
Amount of virtual memory for the domain
ldomMemSizePrev
Integer
Previous amount of virtual memory for the domain
ldomMemUnit
Integer
Memory unit for virtual memory, which is one of the following:
  • 1 is KB

  • 2 is MB

  • 3 is GB

  • 4 is bytes

If not specified, the unit value is bytes.

ldomMemUnitPrev
Integer
Memory unit for previous virtual memory, which is one of the following:
  • 1 is KB

  • 2 is MB

  • 3 is GB

  • 4 is bytes

If not specified, the unit value is bytes.

ldomTrapDesc
Display string
Description of the trap

Virtual Disk Service Change (ldomVdsChange)

This trap notifies you when a domain's virtual disk service changes.

Table 16-29 Domain Virtual Disk Service Change Trap (ldomVdsChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual disk service
ldomVdsServiceName
Display string
Name of the virtual disk service that has changed
ldomChangeFlag
Integer

Indicates one of the following changes that occurred to the virtual disk service:

  • 1 is Added
  • 2 is Modified

  • 3 is Removed

ldomTrapDesc
Display string
Description of the trap

Virtual Disk Change (ldomVdiskChange)

This trap notifies you when a domain's virtual disk changes.

Table 16-30 Virtual Disk Change Trap (ldomVdiskChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual disk device
ldomVdiskName
Display string
Name of the virtual disk device that has changed
ldomChangeFlag
Integer

Indicates one of the following changes that occurred to the virtual disk service:

  • 1 is Added
  • 2 is Modified

  • 3 is Removed

ldomTrapDesc
Display string
Description of the trap

Virtual Switch Change (ldomVswChange)

This trap notifies you when a domain's virtual switch changes.

Table 16-31 Virtual Switch Change Trap (ldomVswChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual switch service
ldomVswServiceName
Display string
Name of the virtual switch service that has changed
ldomChangeFlag
Integer

Indicates one of the following changes that occurred to the virtual switch service:

  • 1 is Added
  • 2 is Modified

  • 3 is Removed

ldomTrapDesc
Display string
Description of the trap

Virtual Network Change (ldomVnetChange)

This trap notifies you when a domain's virtual network changes.

Table 16-32 Virtual Network Change Trap (ldomVnetChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual network device
ldomVnetDevName
Display string
Name of the virtual network device for the domain
ldomChangeFlag
Integer

Indicates one of the following changes that occurred to the virtual disk service:

  • 1 is Added
  • 2 is Modified

  • 3 is Removed

ldomTrapDesc
Display string
Description of the trap

Virtual Console Concentrator Change (ldomVccChange)

This trap notifies you when a domain's virtual console concentrator changes.

Table 16-33 Virtual Console Concentrator Change Trap (ldomVccChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual console concentrator
ldomVccName
Display string
Name of the virtual console concentrator service that has changed
ldomChangeFlag
Integer

Indicates one of the following changes that occurred to the virtual console concentrator:

  • 1 is Added
  • 2 is Modified

  • 3 is Removed

ldomTrapDesc
Display string
Description of the trap

Virtual Console Group Change (ldomVconsChange)

This trap notifies you when a domain's virtual console group changes.

Table 16-34 Virtual Console Group Change Trap (ldomVconsChange)

Name
Data Type
Description
ldomIndexNotif
Integer
Index into ldomTable
ldomName
Display string
Name of the domain that contains the virtual console group
ldomVconsGroupName
Display string
Name of the virtual console group that has changed
ldomChangeFlag
Integer

Indicates one of the following changes that occurred to the virtual console group:

  • 1 is Added
  • 2 is Modified

  • 3 is Removed

ldomTrapDesc
Display string
Description of the trap