Skip Navigation Links | |
Exit Print View | |
Oracle VM Server for SPARC 3.0 Administration Guide Oracle VM Server for SPARC |
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
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)
16. Using the Oracle VM Server for SPARC Management Information Base Software
Oracle VM Server for SPARC Management Information Base Overview
Logical Domains Manager and the Oracle VM Server for SPARC MIB
Parsing the XML-Based Control Interface
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
How to Create the Initial snmpv3 User
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
Environment Variables Table (ldomEnvVarsTable)
Domain Policy Table (ldomPolicyTable)
Service Processor Configuration Table (ldomSPConfigTable)
Domain Resource Pool and Scalar Variables
Virtual CPU Table (ldomVcpuTable)
Cryptographic Units Table (ldomCryptoTable)
I/O Bus Table (ldomIOBusTable)
Scalar Variables for Logical Domains Version Information
Using Oracle VM Server for SPARC MIB Module Traps
Oracle VM Server for SPARC MIB Trap Descriptions
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)
Starting and Stopping a Domain
17. Logical Domains Manager Discovery
18. Using the XML Interface With the Logical Domains Manager
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.
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.
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.
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
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
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
For information about the output format options, see the snmptrapd(1M) man page.
The snmptrapd utility is an SNMP application that receives and logs SNMP TRAP messages. For example, the following snmptrapd command shows that a new domain was created (ldomTrapDesc = Ldom Created) with a name of ldg2 (ldomName = ldg2).
# /usr/sfw/sbin/snmptrapd -P -F \ "TRAP from %B on %m/%l/%y at %h:%j:%k Enterprise=%N Type=%w SubType=%q\n with Varbinds: %v\nSecurity info:%P\n\n" localhost:162 TRAP from localhost on 5/18/2007 at 16:30:10 Enterprise=. Type=0 SubType=0 with Varbinds: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (47105) 0:07:51.05 SNMPv2-MIB::snmpTrapOID.0 = OID: SUN-LDOM-MIB::ldomCreate SUN-LDOM-MIB::ldomIndexNotif = INTEGER: 3 SUN-LDOM-MIB::ldomName = STRING: ldg2 SUN-LDOM-MIB::ldomTrapDesc = STRING: Ldom Created Security info:TRAP2, SNMP v2c, community public
Note that the -F option argument string is broken on to two lines for readability purposes.
For information about the output format options, see the snmptrapd(1M) man page.
The snmptrapd utility is an SNMP application that receives and logs SNMP TRAP messages. For example, the following snmptrapd command shows that a new domain was created (ldomTrapDesc = Ldom Created) with a name of ldg2 (ldomName = ldg2).
# /usr/sbin/snmptrapd -f -Le -F \ "TRAP from %B on %m/%l/%y at %h:%j:%k Enterprise=%N Type=%w SubType=%q\n with Varbinds: %v\nSecurity info:%P\n\n" localhost:162 NET-SNMP version 5.4.1 TRAP from localhost on 6/27/2012 at 12:13:48 Enterprise=SUN-LDOM-MIB::ldomMIBTraps Type=6 SubType=SUN-LDOM-MIB::ldomCreate with Varbinds: SUN-LDOM-MIB::ldomIndexNotif = INTEGER: 3 SUN-LDOM-MIB::ldomName = STRING: ldg2 SUN-LDOM-MIB::ldomTrapDesc = STRING: Ldom Created Security info:TRAP, SNMP v1, community public
Note that the -F option argument string is broken on to two lines for readability purposes.
This section describes the Oracle VM Server for SPARC MIB traps that you can use.
This trap notifies you when any domains are created.
Table 16-24 Domain Creation Trap (ldomCreate)
|
This trap notifies you when any domains are destroyed.
Table 16-25 Domain Destroy Trap (ldomDestroy)
|
This trap notifies you of any domain operating state changes.
Table 16-26 Domain State Change Trap (ldomStateChange)
|
This trap notifies you when the number of virtual CPUs in a domain changes.
Table 16-27 Domain Virtual CPU Change Trap (ldomVCpuChange)
|
This trap notifies you when the amount of virtual memory in a domain changes.
Table 16-28 Domain Virtual Memory Change Trap (ldomVMemChange)
|
This trap notifies you when a domain's virtual disk service changes.
Table 16-29 Domain Virtual Disk Service Change Trap (ldomVdsChange)
|
This trap notifies you when a domain's virtual disk changes.
Table 16-30 Virtual Disk Change Trap (ldomVdiskChange)
|
This trap notifies you when a domain's virtual switch changes.
Table 16-31 Virtual Switch Change Trap (ldomVswChange)
|
This trap notifies you when a domain's virtual network changes.
Table 16-32 Virtual Network Change Trap (ldomVnetChange)
|
This trap notifies you when a domain's virtual console concentrator changes.
Table 16-33 Virtual Console Concentrator Change Trap (ldomVccChange)
|
This trap notifies you when a domain's virtual console group changes.
Table 16-34 Virtual Console Group Change Trap (ldomVconsChange)
|