using the oc commandline by tim wort · this document is written for oracle enterprise manager ops...
TRANSCRIPT
Using the OC commandline
by Tim Wort
This document is written for Oracle Enterprise Manager Ops Center version 12c. The command line interface (CLI) documentation can be found at Command Line Interface.
The oc command is located in two places on the Enterprise Controller:
tim@opsc12c:~$ /var/opt/sun/xvm/OCDoctor/cli/oc -VOpsCenter Command Line Interface 12.1.1
tim@opsc12c:~$ /opt/SUNWoccli/bin/oc -VOpsCenter Command Line Interface 12.1.1
Connecting via the CLI requires a Ops Center user and password.The tab key can be used to print help messages.Man pages and environment variables can be used.
Connecting via the CLI:
tim@opsc12c:~$ /opt/SUNWoccli/bin/oc
Oracle Enterprise Manager Ops Center Copyright (c) 2007, 2012 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.
Use the -connect- command to get started The tab key will always show the available command set
xvmSh > connect -h opsc12c -u tim -p [clear_text_pw]
Or if values are not passed with the connect command or partial values are defined then oc will prompt for values and the password input is protected:
xvmSh > connectEnter hostname of xVM Ops Center server > opsc12cEnter username for authentication > rootEnter password for authentication > ********
xvmSh > connect-h opsc12c -u timEnter password for authentication > ********
Pressing the tab key displays commands or sub-commands depending on the current mode of the tool.
opsc12c > [tab]
connect credentials deploy disconnectdiscover fwimage fwprofile geargroups history incidents jobsman notifications osimage osprofileping printenv record setsetenv source stats unsetupdate user version virtualizationwait
Various environment variables can be set.
opsc12c > setenv pager=true
Setting the pager environment variable to true allows the use of the man command:
opsc12c > man oc
Oracle Enterprise Manager Ops Center Command Line Interface oc(5)
NAME oc - Command to invoke the Oracle Enterprise Manager Ops Center Command Line Interface.
SYNOPSIS oc exit
DESCRIPTION The Oracle Enterprise Manager Ops Center Command Line Inter- face provides a set of modes to manage the Oracle Enterprise Manager Ops Center environment. Each mode has a set of sub- commands to managed the objects controlled by the mode.
Type the oc command on a server's command line to invoke the command line interface. Type exit to stop the command line interface and to return to the server's command line. The first time that the CLI is started, files are compiled and cached, which causes a delay. Subsequent uses are not delayed.
--More--(8%)
The sub sections of the oc are called modes, you and get information about each mode through the man page facility or through the Command Line Interface documentation.
opsc12c > man discover
Oracle Enterprise Manager Ops Center Command Line Interface discover(1)
NAME discover - Command to initiate the Discover mode and to use its subcommands.
SYNOPSIS clear commit create execute -i profile_ID -t UFN[,UFN2,...UFNn [-n UUID] [-r UUID][-c credentialID] [-m credentialID] [-s credentialID] [-a]
list_credentials [-i credentialID] list_networks list_profiles [-i profile_ID] list_profile_credentials [-i profile_ID] list_profile_ranges -i profile_ID list_profiles list_ranges [-i ipaddress_spec] set ipaddrs=ipaddress_spec set ipmi_user=username set ipmi_password=password set jmx_user=username set jmx_password=password set snmp_user=username set snmp_community_string=string set snmpv3_user=username--More--(4%)
The following is an example of discovering a OS instance:
opsc12c > discover
opsc12c/discover > create
opsc12c/discover/create > set type=os
opsc12c/discover/create > set ssh_user=root
opsc12c/discover/create > set ssh_password=userpassword
opsc12c/discover/create > set ipaddrs=192.168.0.114
opsc12c/discover/create > showdiscovery type: Solaris,Linux OSuse_default=Falseipaddrs=192.168.0.114ssh_user=rootssh_password=userpasswordssh_root_user=ssh_root_password=ssh_port=
opsc12c/discover/create > commitDiscovery job submitted - Job ID = opsc12c.82
opsc12c/discover/create > end
opsc12c/discover > end
The job can be monitored.
opsc12c/jobs > list --id opsc12c.82Jobs list: Job ID | Status | Owner | Job Type |------------------------------------------------------------------------------------------------- opsc12c.82 | SUCCESS | root | Discovery-Customopsc12c/jobs >
The next example uses a existing profile and credential for discovery:
opsc12c/discover > list_credentials
Driver Credentials: ID | Name | Type |--------------------------------------------------------------- 5351 | OS-SSH | SSH 8952 | Solaris10Client | SSH 18802 | SollServer | SSH 21951 | root-@h | SSH
opsc12c/discover > list_profilesDiscovery Profiles: ID | Name | Type |--------------------------------------------------------------- 5352 | OSDiscovery | SolarisLinuxOS 8953 | Solaris10Discovery | SolarisLinuxOS 18803 | Solaris11server | SolarisLinuxOS
Examining the credentials associated with a profile:
opsc12c/discover > list_profile_credentials --id 8953Driver Credentials: ID | Name | Type |--------------------------------------------------------------- 8952 | Solaris10Client | SSH
Next the discovery is performed with the profile against a target IP address.
opsc12c/discover > execute --id 8953 -t 192.168.0.114Using Default Driver Credentials set: [8952]Management Mode: AgentJob: opsc12c.83 was created using Discovery Profile ID: 8953 for discovery.
opsc12c/discover > end
opsc12c > jobs.list --id opsc12c.83Jobs list: Job ID | Status | Owner | Job Type |----------------------------------------------------------------------------------------------- opsc12c.83 | RUNNING | root | Add-Assets
opsc12c >
Using the CLI with groups.
opsc12c > man groups
Oracle Enterprise Manager Ops Center Command Line Interface groups(1)
NAME groups - Command to initiate the Groups mode and to use its subcommands.
SYNOPSIS attach -g groupname-n assetname create -g groupname [-d string] -p parentgroup
delete -g groupname [-c] detach -g groupname -n assetname list [-l] list_members -g groupname list_membership -n assetname [-U|--UUID assetuuid] move -n assetname [-U|--UUID assetuuid] -f groupname_source -g groupname_destination poweroff -g groupname poweron -g groupname [-n] reset -g groupname [-f] [ -n ] update -g groupname [-n new_groupname] [-d text] [-p parentgroup]
DESCRIPTION The Groups mode is one of a set of modes provided by the Oracle Enterprise Manager Ops Center Command Line Interface. Use Groups subcommands to create sets and subsets of assets. You can power on and power off all the assets in a group.
opsc12c > groups
opsc12c/groups >
Examining a long (detailed) and short (brief) listing of groups:
psc12c/groups > list -hlist [-l] [-b]Options: -h, --help show this help message and exit -l, --detail Additional display about group's details -b, --brief Limits output to group names
Displaying the list of groups.
opsc12c/groups > listGroups list: Name | Type | Description | Category |-------------------------------------------------------------------------------------------------- RHEL 6 |OperatingSystem| Predefined Asset Group | PreDefined SPARC | Server | Predefined Asset Group | PreDefined Other Servers | Server | Predefined Asset Group | PreDefined Sun Blade 8000 Series |ServerContainer| Predefined Asset Group | PreDefined Other Chassis |ServerContainer| Predefined Asset Group | PreDefined RHEL 5 |OperatingSystem| Predefined Asset Group | PreDefined x86 32-bit | Server | Predefined Asset Group | PreDefined x64 | Server | Predefined Asset Group | PreDefinedSun Blade 6000 / Sun Netra 6000 Series|ServerContainer| Predefined Asset Group | PreDefined Chassis |ServerContainer| Predefined Asset Group | PreDefined Other Linux |OperatingSystem| Predefined Asset Group | PreDefined SUSE 9 |OperatingSystem| Predefined Asset Group |
PreDefined Other Solaris |OperatingSystem| Predefined Asset Group | PreDefined U-Class | Server | Predefined Asset Group | PreDefined Solaris 11 |OperatingSystem| Predefined Asset Group | PreDefined Oracle Linux |OperatingSystem| Predefined Asset Group | PreDefined Oracle Linux 6 |OperatingSystem| Predefined Asset Group | PreDefined V-Class | Server | Predefined Asset Group | PreDefined Solaris 10 |OperatingSystem| Predefined Asset Group | PreDefined Windows |OperatingSystem| Predefined Asset Group | PreDefined Solaris 9 |OperatingSystem| Predefined Asset Group | PreDefined Other x86 | Server | Predefined Asset Group | PreDefined Oracle Linux 5 |OperatingSystem| Predefined Asset Group | PreDefined Solaris |OperatingSystem| Predefined Asset Group | PreDefined M-Series | Server | Predefined Asset Group | PreDefined Operating Systems |OperatingSystem| Predefined Asset Group | PreDefined SUSE Linux |OperatingSystem| Predefined Asset Group | PreDefined Other SPARC | Server | Predefined Asset Group | PreDefined RHEL 4 |OperatingSystem| Predefined Asset Group | PreDefined Servers | Server | Predefined Asset Group | PreDefined SUSE 10 |OperatingSystem| Predefined Asset Group | PreDefined Solaris 8 |OperatingSystem| Predefined Asset Group | PreDefined SUSE 11 |OperatingSystem| Predefined Asset Group | PreDefined x86 | Server | Predefined Asset Group | PreDefined M-Series Servers | Server | Predefined Asset Group | PreDefinedRed Hat Enterprise Linux|OperatingSystem| Predefined Asset Group | PreDefined Dynamic System Domains | Server | Predefined Asset Group | PreDefined
Displaying the list of groups in brief format.
psc12c/groups > list -bGroups list: Name |------------------------- RHEL 6 SPARC Other Servers Sun Blade 8000 Series Other Chassis RHEL 5
x86 32-bit x64Sun Blade 6000 / Sun Netra 6000 Series Chassis Other Linux SUSE 9 Other Solaris U-Class Solaris 11 Oracle Linux Oracle Linux 6 V-Class Solaris 10 Windows Solaris 9 Other x86 Oracle Linux 5 Solaris M-Series Operating Systems SUSE Linux Other SPARC RHEL 4 Servers SUSE 10 Solaris 8 SUSE 11 x86 M-Series ServersRed Hat Enterprise Linux Dynamic System Domains
List the member of a group:
opsc12c/groups > list_members -g SolarisMembers of group Solaris: Name | Type | UUID |--------------------------------------------------------------------------------------- Solaris 11 | PreDefined |b1098266-653b-4df7-9eca-8fb946b6ca2b Solaris 8 | PreDefined |8cb9ed24-791c-42fc-ac52-3f83301509d5 Solaris 10 | PreDefined |0e0781ba-2106-4ce0-8f06-c78e819a7da5 Solaris 9 | PreDefined |cacc9011-6d43-4303-91db-2586c53db717 Other Solaris | PreDefined |595be25e-f1fb-4358-8305-89b62f261c4e
opsc12c/groups > list_members -g "Solaris 11"Members of group Solaris 11: Name | Type | UUID |--------------------------------------------------------------------------------------- opsc12c | GlobalZone |31022121-6ade-4f7f-932b-1b07ac9cc1a5 baxter | GlobalZone |cfe7dfa3-c8db-4d33-a504-e137a2fa69d4
Creating a new group and adding assets to a group:
opsc12c/groups > create -g Sol11-prov -d "Group for IPS Updates"
opsc12c/groups > attach -n baxter -g Sol11-prov
opsc12c/groups > update -g Sol11-prov -n Sol11-update
opsc12c/groups > list -bGroups list:
Name |------------------------- Sol11-update RHEL 6 SPARC Other Servers Sun Blade 8000 Series Other Chassis RHEL 5 x86 32-bit x64Sun Blade 6000 / Sun Netra 6000 Series Chassis Other Linux SUSE 9 Other Solaris U-Class Solaris 11 Oracle Linux Oracle Linux 6 V-Class Solaris 10 Windows Solaris 9 Other x86 Oracle Linux 5 Solaris M-Series Operating Systems SUSE Linux Other SPARC RHEL 4 Servers SUSE 10 Solaris 8 SUSE 11 x86 M-Series ServersRed Hat Enterprise Linux Dynamic System Domains
A sub-group is added to the new group:
opsc12c/groups > create -g Sol11-zones -p Sol11-update
opsc12c/groups > list -bGroups list: Name |------------------------- Sol11-zones Sol11-update RHEL 6 SPARC Other Servers Sun Blade 8000 Series Other Chassis RHEL 5 x86 32-bit x64Sun Blade 6000 / Sun Netra 6000 Series Chassis Other Linux SUSE 9 Other Solaris
U-Class Solaris 11 Oracle Linux Oracle Linux 6 V-Class Solaris 10 Windows Solaris 9 Other x86 Oracle Linux 5 Solaris M-Series Operating Systems SUSE Linux Other SPARC RHEL 4 Servers
psc12c/groups > list_members -g Sol11-updateMembers of group Sol11-update: Name | Type | UUID |--------------------------------------------------------------------------------------- Sol11-zones | UserDefined |014791ad-192f-42de-84c3-26dba6fe92d2 baxter | Server |16dc6f4e-0611-429d-8614-0c71e4bbf8c6 baxter | GlobalZone |cfe7dfa3-c8db-4d33-a504-e137a2fa69d4
psc12c/groups > end
List assets and using commands without changing modes (sub-command scope):
opsc12c > gear.listRegistered Gear: UFN | Manage state | Description | Asset Type | UUID |--------------------------------------------------------------------------------------------------------------------------------------------------------------------- baxter | MANAGED | 192.168.10.100 | GlobalZone | cfe7dfa3-c8db-4d33-a504-e137a2fa69d4 opsc12c | MANAGED | Enterprise Controller OS | GlobalZone | 31022121-6ade-4f7f-932b-1b07ac9cc1a5 sol10-12c | MANAGED | 192.168.0.114 | GlobalZone | 10a67603-00f6-4dfa-871e-3a622b2620a2 zone1 | MANAGED | zone1 | NonGlobalZone | 8a570c4d-a6cd-4c98-9f79-3b70f6a575c1 192-168-0-113 | MANAGED | Global Zone OS | GlobalZone | e5ceffc5-e8ea-4f60-b0f4-f86290d7823f opsc12c | MANAGED | Enterprise Controller Server | Server | a97c58a6-9053-41f6-a1f5-b12d46624679 Soll11Client | MANAGED | None | Server | e48ea027-7d9b-45fa-8a3b-e2b93b321e85 baxter | MANAGED | 192.168.10.100 | Server | 16dc6f4e-0611-429d-8614-0c71e4bbf8c6 Sol10-12c | MANAGED | 192.168.0.114 | Server | 72dd6eeb-01e8-4a5f-8677-2db5b9f6cde0 zone1 | MANAGED | zone1 | NonGlobalZone | d46082ee-7ec8-4146-b349-8bc395bfbeac sol10-12c | MANAGED | Global Zone Control Domain Server | GlobalZone | d52f7320-0ca5-4e7a-8d8d-0c653516ed2b Sol10Client | MANAGED | Global Zone Server | Server | 350626ff-58df-4dbd-9267-76ddf73bd9fb 192-168-0-113 | MANAGED | Global Zone Control Domain Server | GlobalZone | 5ba1ae8c-d558-4f1c-9ece-237daf548998
sol10-12c | MANAGED | Global Zone | GlobalZone | 2c89fedb-23e3-4b9d-9465-3bb22b879204 192-168-0-113 | MANAGED | Global Zone | GlobalZone | bad5e492-ab93-4ed2-97cd-47b735898d16
opsc12c > groups.create -g sol11-serv
opsc12c > groups.attach -g sol11-serv -n baxter
opsc12c > groups.poweron -g sol11-serv
opsc12c > groups
opsc12c/groups > poweroff -g sol11-serv
opsc12c/groups > list -bGroups list: Name |------------------------- Sol11-zones Sol11-update RHEL 6 SPARC Other Servers Sun Blade 8000 Series Other Chassis RHEL 5 x86 32-bit x64Sun Blade 6000 / Sun Netra 6000 Series Chassis Other Linux SUSE 9 Other Solaris U-Class Solaris 11 Oracle Linux Oracle Linux 6 V-Class Solaris 10 Windows Solaris 9 Other x86 Oracle Linux 5 Solaris M-Series Operating Systems SUSE Linux Other SPARC RHEL 4 Servers sol11-serv SUSE 10 Solaris 8 SUSE 11 x86 M-Series ServersRed Hat Enterprise Linux Dynamic System Domains
Deleting a group.
opsc12c/groups > delete -g sol11-serv
opsc12c/groups > list -bGroups list: Name |------------------------- Sol11-zones Sol11-update RHEL 6 SPARC Other Servers Sun Blade 8000 Series Other Chassis RHEL 5 x86 32-bit x64Sun Blade 6000 / Sun Netra 6000 Series Chassis Other Linux SUSE 9 Other Solaris U-Class Solaris 11 Oracle Linux Oracle Linux 6 Soll Serv V-Class Solaris 10 Windows Solaris 9 Other x86 Oracle Linux 5 Solaris M-Series Operating Systems SUSE Linux Other SPARC RHEL 4 Servers SUSE 10 Solaris 8 SUSE 11 x86 M-Series ServersRed Hat Enterprise Linux Dynamic System Domains
Ops Center users require an account in the OS, this exaple create a new user in Solaris 11 on the EC:
tim@opsc12c:~$ sudo useradd -m -d /export/home/ocadmin -s /usr/bin/bash ocadminPassword:80 blockstim@opsc12c:~$ sudo passwd ocadminNew Password:Re-enter new Password:passwd: password successfully changed for ocadmin
The following examples are of user management via the oc command:
opsc12c/user > show_local_usersLocal Users: Name |
----------------- root tim
opsc12c/user > show_all_local_rolesUser Roles: Roles |--------------------- UPDATE_SIM_ADMIN ROLE_ADMIN ASSET_ADMIN USER_ADMIN SECURITY_ADMIN STORAGE_ADMIN READ FAULT_ADMIN PROFILE_PLAN_ADMIN OPS_CENTER_ADMIN REPORT_ADMIN CLOUD_ADMIN UPDATE_ADMIN VIRT_ADMIN CLOUD_USER EXALOGIC_ADMINSERVER_DEPLOY_ADMIN NETWORK_ADMIN SUPERCLUSTER_ADMIN
opsc12c/user > show_local_user_roles -u timUser Roles: Roles |--------------------- UPDATE_SIM_ADMIN ASSET_ADMIN ROLE_ADMIN USER_ADMIN SECURITY_ADMIN STORAGE_ADMIN READ PROFILE_PLAN_ADMIN OPS_CENTER_ADMIN REPORT_ADMIN CLOUD_ADMIN UPDATE_ADMIN VIRT_ADMIN CLOUD_USERSERVER_DEPLOY_ADMIN NETWORK_ADMIN SUPERCLUSTER_ADMIN
opsc12c/user > revoke_local_role -u tim -r SUPERCLUSTER_ADMIN
opsc12c/user > show_local_user_roles -u timUser Roles: Roles |--------------------- UPDATE_SIM_ADMIN ASSET_ADMIN ROLE_ADMIN USER_ADMIN SECURITY_ADMIN STORAGE_ADMIN READ
PROFILE_PLAN_ADMIN OPS_CENTER_ADMIN REPORT_ADMIN CLOUD_ADMIN UPDATE_ADMIN VIRT_ADMIN CLOUD_USERSERVER_DEPLOY_ADMIN NETWORK_ADMIN
opsc12c/user > add_local_user -u ocadmin -r OPS_CENTER_ADMIN
opsc12c/user > show_local_usersLocal Users: Name |----------------- ocadmin root tim
opsc12c/user > show_local_user_roles -u ocadminUser Roles: Roles |--------------------- OPS_CENTER_ADMIN
opsc12c/user > grant_local_role -u tim -r SUPERCLUSTER_ADMIN
opsc12c/user > show_local_user_roles -u timUser Roles: Roles |--------------------- UPDATE_SIM_ADMIN ROLE_ADMIN ASSET_ADMIN USER_ADMIN SECURITY_ADMIN STORAGE_ADMIN READ PROFILE_PLAN_ADMIN OPS_CENTER_ADMIN REPORT_ADMIN CLOUD_ADMIN UPDATE_ADMIN VIRT_ADMIN CLOUD_USERSERVER_DEPLOY_ADMIN NETWORK_ADMIN SUPERCLUSTER_ADMIN
opsc12c/user > show_local_users -rLocal Users: Name | Roles |-------------------------------------------------------------------- ocadmin | [OPS_CENTER_ADMIN] root |[UPDATE_SIM_ADMIN, ROLE_ADMIN, ASSET_ADMIN, USER_ADMIN, SECURITY_ADMIN, STORAGE_ADMIN, READ, FAULT_ADMIN, PROFILE_PLAN_ADMIN, OPS_CENTER_ADMIN, REPORT_ADMIN, CLOUD_ADMIN, UPDATE_ADMIN, VIRT_ADMIN, CLOUD_USER, SERVER_DEPLOY_ADMIN, NETWORK_ADMIN] tim |[UPDATE_SIM_ADMIN, ROLE_ADMIN, ASSET_ADMIN, USER_ADMIN, SECURITY_ADMIN, STORAGE_ADMIN, READ, PROFILE_PLAN_ADMIN, OPS_CENTER_ADMIN, REPORT_ADMIN, CLOUD_ADMIN, UPDATE_ADMIN, VIRT_ADMIN, CLOUD_USER, SERVER_DEPLOY_ADMIN, NETWORK_ADMIN, SUPERCLUSTER_ADMIN]
opsc12c/user > replicate_user_roles -u tim -r ocadmin
opsc12c/user > show_local_user_roles -u ocadminUser Roles: Roles |--------------------- UPDATE_SIM_ADMIN ROLE_ADMIN ASSET_ADMIN USER_ADMIN SECURITY_ADMIN STORAGE_ADMIN READ PROFILE_PLAN_ADMIN OPS_CENTER_ADMIN REPORT_ADMIN CLOUD_ADMIN UPDATE_ADMIN VIRT_ADMIN CLOUD_USERSERVER_DEPLOY_ADMIN NETWORK_ADMIN SUPERCLUSTER_ADMIN
opsc12c/user > delete_local_user -u ocadmin
opsc12c/user > show_local_usersLocal Users: Name |----------------- root tim
Examine OS profiles with the CLI:
psc12c/osprofile > [tab]
clone delete export import import_jet_template list
opsc12c/osprofile > listProfiles list: Name | Description |-------------------------------------------------------------------------------------------------------------------------- Sol10Osprovisioning | OS Provisioning for Solaris 10 x86 client. default-profile-5.11i386-OracleSolarisDesktop | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11i386-OracleSolarisLargeServer | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11i386-OracleSolarisSmallServer | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisDesktop | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisLargeServer | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisSmallServer | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-OracleLinux-R6-U1-Server-x86_64-dvd | Default Profile for OracleLinux-R6-U1-Server-x86_64-dvd default-profile-sol-10-u9-ga-x86-dvd | Default Profile for sol-10-u9-ga-x86-dvd
opsc12c/osprofile > end
Examine OS images with the CLI:
opsc12c > osimage
opsc12c/osimage > [tab]
delete import list
opsc12c/osimage > import -h
import -f [-d ] -n Options: -h, --help show this help message and exit -f FILE, --filename=FILE Specifies the location of the image file. -d DESC, --description=DESC Describes the image. -n NAME, --name=NAME Name of the image
Installs a new ISO image from an image that resides on the Entreprisecontroller local file system.
opsc12c/osimage > import -f /var/tmp/sol-10-u8-ga-x86-dvd.iso -d "solaris 10 10/09" -n Sol10U8
opsc12c/osimage > listName Version OS Type Descriptionsolaris11-sparc (0.175.0.0.0.2.1482) 5.11sparc solaris GuestOS Nonesolaris11-i386 (0.175.0.0.0.2.1482) 5.11i386 solaris GuestOS NoneOracleLinux-R6-U1-Server-x86_64-dvd oel6x86_64 None Nonesol-10-u9-ga-x86-dvd oracle solaris 10 9/10 s10x_u9wos_14a x86 None NoneSol10U8 solaris 10 10/09 s10x_u8wos_08a x86 None None
opsc12c/osprofile > listProfiles list: Name | Description |-------------------------------------------------------------------------------------------------------------------------- Sol10Osprovisioning | OS Provisioning for Solaris 10 x86 client. default-profile-5.11i386-OracleSolarisDesktop | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11i386-OracleSolarisLargeServer | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11i386-OracleSolarisSmallServer | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisDesktop | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisLargeServer | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisSmallServer | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-OracleLinux-R6-U1-Server-x86_64-dvd | Default Profile for OracleLinux-R6-U1-Server-x86_64-dvd default-profile-Sol10U8 | Default Profile for Sol10U8 default-profile-sol-10-u9-ga-x86-dvd | Default Profile for sol-10-u9-ga-x86-dvd
The Ops Center CLI will allow the importation of a previously exported profile you can not create a profile from the command line, however, when a OS or FW images is imported the default plan and profiles are created.
opsc12c/osprofile > listProfiles list: Name | Description |-------------------------------------------------------------------------------------------------------------------------- Sol10Osprovisioning | OS Provisioning for Solaris 10 x86 client. default-profile-5.11i386-OracleSolarisDesktop | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11i386-OracleSolarisLargeServer | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11i386-OracleSolarisSmallServer | Default Profile for solaris11-i386 (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisDesktop | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisLargeServer | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-5.11sparc-OracleSolarisSmallServer | Default Profile for solaris11-sparc (0.175.0.0.0.2.1482) default-profile-OracleLinux-R6-U1-Server-x86_64-dvd | Default Profile for OracleLinux-R6-U1-Server-x86_64-dvd default-profile-Sol10U8 | Default Profile for Sol10U8 default-profile-sol-10-u9-ga-x86-dvd | Default Profile for sol-10-u9-ga-x86-dvd
psc12c/fwimage > listFirmware Package Names:Name Description Size Version--------------------------------------------------------------------------------------ALOM_main_1_6_10 ALOM main Firmware 0 1.6.10ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2 0 2.0.2.10
opsc12c > man fwimage
Oracle Enterprise Manager Ops Center Command Line Interface fwimage(1)
NAME fwimage - Command to initiate the Fwimage mode and to use its subcommands.
SYNOPSIS create delete -i imagename list [-l] update
DESCRIPTION The Fwimage mode is one of a set of modes provided by the
Oracle Enterprise Manager Ops Center Command Line Interface. Use Fwimage subcommands to create and manage firmware image packages.
Type the fwimage command at the command line prompt to enter Fwimage mode. Type the end command to stop the mode and to return to the command line prompt.
Subcommands list [-l] --More--(7%)
opsc12c/fwimage > fwimage
opsc12c/fwimage > [tab]
create delete list update
opsc12c/fwimage > listFirmware Package Names:Name Description Size Version--------------------------------------------------------------------------------------ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2 0 2.0.2.10
opsc12c/fwimage > create
opsc12c/fwimage/create > [tab]
add_device commit reset set show unset
opsc12c/fwimage/create > set name=ALOM_main_1_6_10opsc12c/fwimage/create > set version=1.6.10opsc12c/fwimage/create > set type=alommainfwopsc12c/fwimage/create > set description="ALOM main Firmware"opsc12c/fwimage/create > set make=Sunopsc12c/fwimage/create > set url=file:///var/tmp/ALOM_1.6.10/alommainfw
psc12c/fwimage/create > add_device -v Sun -m "Sun Fire V210 Server" --validated
opsc12c/fwimage/create > show*name=ALOM_main_1_6_10*version=1.6.10*type=alommainfw description=ALOM main Firmware*make=Sun size=0 powerOffRequired=False dependeeFirmwarePackageName=None updateCount=0*url=file:///var/tmp/ALOM_1.6.10/alommainfw*supported devices=(Sun, Sun Fire V210 Server),
opsc12c/fwimage/create > commitjob submittedFirmware image job launched
opsc12c/fwimage/create > end
psc12c/fwimage > listFirmware Package Names:
Name Description Size Version--------------------------------------------------------------------------------------ALOM_main_1_6_10 ALOM main Firmware 0 1.6.10ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2 0 2.0.2.10
opsc12c/fwimage > delete -i ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2Firmware package 'ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2' cannot be deleted because it has a profile attached
In order to delete a Firmware or OS image via the command line requires that and profile and plan associated with the image be removed first.
opsc12c/fwimage > delete -i ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2Firmware image ILOM-2_0_2_10_r58430-Sun_Fire_X4100M2 deleted successfully
Deploying a plan with the CLI:
ec-08 > gear.listRegistered Gear: UFN | Manage state | Description | Asset Type | UUID |--------------------------------------------------------------------------------------------------------------------------------------------------------------------- ec-08 | MANAGED | Enterprise Controller OS | GlobalZone | a9070c1c-c694-4dbd-9131-125c777e9a4a asset-08-sp | MANAGED | 192.168.103.181 | Server | 97d5bbd2-7895-465f-b5af-b824e1a09719 ec-08 | MANAGED | Enterprise Controller Server | Server | 5a44317c-c8eb-4ad4-8867-539802404b4e
ec-08 > osprofile.listProfiles list: Name | Description |-------------------------------------------------------------------------------------------------------------------------- default-profile-sol-10-u9-ga-sparc-dvd | Default Profile for sol-10-u9-ga-sparc-dvd profile-sol-10-u9-ga-sparc-dvd | Profile for sol-10-u9-ga-sparc-dvd
ec-08 > man deploy
Oracle Enterprise Manager Ops Center Command Line Interface deploy(1)
NAME deploy - Command to initiate the Deploy mode and to use its subcommands.
SYNOPSIS add "attribute={string|integer|true|false}[,attribute2...attributen]" apply dryrun plan [-v version] plan_name ] set "attribute={string|integer|true|false}[,attribute2...attributen]"
show [plan|results] target [-a] [-d] [-g] [-U] assetname[,assetname2...assetnamen]
DESCRIPTION The Deploy mode is one of a set of modes provided by the Oracle Enterprise Manager Ops Center Command Line Interface. Use Deploy subcommands to specify the attributes of a deployment plan and then to deploy the plan on target assets. You can modify the plan before you apply it; how- ever, your changes are not saved and no new version of the plan is created.
--More--(7%)
ec-08 > deployec-08/deploy-setup > [tab]
plan target
ec-08/deploy-setup > target -htarget { }Options: -h, --help show this help message and exit -a, --add add assets to current set of targets [default is replace set of targets] -d, --delete remove asset(s) from the current set of targets -g ASSETNAME, --gear=ASSETNAME asset name list (comma seperated)
ec-08 > deploy
ec-08/deploy-setup > plan profile-sol-10-u9-ga-sparc-dvd-planPlan "profile-sol-10-u9-ga-sparc-dvd-plan" selected: version 1, description "Created from profile"
ec-08/deploy-setup > target 97d5bbd2-7895-465f-b5af-b824e1a09719(Interpreting "97d5bbd2-7895-465f-b5af-b824e1a09719" as an Asset UUID)
After deploy-setup completes the prompt drops to deploy and attributes for the plan are set, which attributes depends on the plan type, see the chart below for plan and attribute mappings.
ec-08/deploy > show planTarget: asset-08-sp__________________________________________________Step: Provision OS__________________________________________________Associated Profile:{ manualNetBoot: False userName: None serialPort: ttya iscsiStorageServer: None partitionList: [ { sizeOption: fixed partitionType: None
mountPoint: swap device: rootdisk.s1 size: 8192 fileSystemType: swap
} , { sizeOption: free partitionType: None mountPoint: / device: rootdisk.s0 size: 0 fileSystemType: zfs
}
] jetParamList: [ ] class: class com.sun.xvm.services.osdeployment.SolarisManifest timeZone: US/Mountain scriptList: None nis: None userPassword: None ldap: None distributionTypes: [ Developer System Support ] serverPool: None iscsiManualMode: False SSHPublicKey: None iscsiVolumeGroup: None nameService: none profileSubtype: Solaris_sparc register: True jetModules: language: C useIscsiDisk: False termType: vt100 dns: None managementCredentials: -1 baud: 9600 { network: { option: None ipmpConfig: None { networkConfig: { networkInterfaces: [ { gateway: None serverInfoDevice: None dhcpClientId: None staticIP: False device: GB_0 bootDevice: True nameserver: None networkIp: None
domainname: None networkAllocationType: STATIC ip: None netmask: None mac: None hostname: None network: com.sun.hss.domain:name=NORM-192.168.103.0_24,type=Network
}
]
} } linkAggregationConfig: None
} } profileName: profile-sol-10-u9-ga-sparc-dvd iscsiLun: 0 nfsv4DomainName: dynamic image: sol-10-u9-ga-sparc-dvd rootPassword: cangetin userID: None
}
--------------------------------------------------
ec-08/deploy > set "ip='192.168.103.81'"Translates to structure:{'network':{'networkConfig':{'networkInterfaces':[{ 'ip':'192.168.103.81'}]},'linkAggregationConfig':{'ip':'192.168.103.81'}}}
Deployment Plans and Attributes
Deployment Plan Attributes
Configure M-Series Hardware, Create and Install Domain
No per-target attribute collection required.
Configure RAID No per-target attribute collection required.
Configure Server Hardware and Install OS No per-target attribute collection required.
Configure Service Processor No per-target attribute collection required.
Configure and Install Dynamic System Domain
No per-target attribute collection required.
Configure and Install Logical Domains No per-target attribute collection required.
Configure and Install Virtual Machines No per-target attribute collection required.
Create Boot Environment No per-target attribute collection required.
Create Dynamic System Domain No per-target attribute collection required.
Create Logical Domains guestName: name of the new logical domain. This is just the name of the virtual server guest.(Optional) prime: set to true to set the resource plan data so that the already set profile data on the logical domain step are used to prime the resource data.Logical domains creation requires the setting of resource plan
Deployment Plan Attributes
structures per each logical domain to create.
Create Solaris Zones ipAddress: IP for the new zone, if mode is static.ipMode: IP address assignment mode. Value = static or dynamic.ifName: network interface name to identify NIC to assign to zone.hostName: host name of the new zone.(Optional) prime: set to true to set the resource plan data so that the already set profile data on the zone step are used to prime the resource data.Solaris zones creation requires the setting of resource plan structures per each logical domain to create.
Configure and Install Solaris Zones The only parameters that must be set are the same as those used in creating an Oracle Solaris zones deployment plan.
Create Virtual Machines No per-target attribute collection required.
Provision Network No per-target attribute collection required.
Provision OS ip: set this attribute if networking option selected in the OS provision profile was None or Link Aggregation.dataIp: set this attribute if networking option selected in the OS provision profile was IPMP.
Install Server The only parameters that must be set are the same than in provision OS.
Software Deployment / Update No per-target attribute collection required.
Update Solaris 11 OS No per-target attribute collection required.
Update BIOS Configuration No per-target attribute collection required.
Update Firmware No per-target attribute collection required.
Update Firmware and Install Oracle VM Server for SPARC
No per-target attribute collection required.
ec-08/deploy > applyExecuting the planTarget: asset-08-sp__________________________________________________Step: Provision OS__________________________________________________Associated Profile:{ manualNetBoot: False userName: None serialPort: ttya iscsiStorageServer: None partitionList: [ { sizeOption: fixed partitionType: None mountPoint: swap
device: rootdisk.s1 size: 8192 fileSystemType: swap
} , { sizeOption: free partitionType: None mountPoint: / device: rootdisk.s0 size: 0 fileSystemType: zfs
}
] jetParamList: [ ] class: class com.sun.xvm.services.osdeployment.SolarisManifest timeZone: US/Mountain scriptList: None nis: None userPassword: None ldap: None distributionTypes: [ Developer System Support ] serverPool: None iscsiManualMode: False SSHPublicKey: None iscsiVolumeGroup: None nameService: none profileSubtype: Solaris_sparc register: True jetModules: language: C useIscsiDisk: False termType: vt100 dns: None managementCredentials: -1 baud: 9600 { network: { option: None ipmpConfig: None { networkConfig: { networkInterfaces: [ { gateway: None serverInfoDevice: None dhcpClientId: None staticIP: False device: GB_0 bootDevice: True nameserver: None networkIp: None domainname: None
networkAllocationType: STATIC ip: 192.168.103.81 netmask: None mac: None hostname: None network: com.sun.hss.domain:name=NORM-192.168.103.0_24,type=Network
}
]
} } { linkAggregationConfig: { ip: 192.168.103.81
} }
} } profileName: profile-sol-10-u9-ga-sparc-dvd iscsiLun: 0 nfsv4DomainName: dynamic image: sol-10-u9-ga-sparc-dvd rootPassword: cangetin userID: None
}
--------------------------------------------------ec-08.18
ec-08 > jobs.list -x ec-08.18Jobs list: Job ID | Status | Owner | Job Type |----------------------------------------------------------------------------------------------------------------------- ec-08.18 | RUNNING | ocadmin | Execute-DeploymentPlan
ec-08 > jobs.list --id ec-08.18Jobs list: Job ID | Status | Owner | Job Type |----------------------------------------------------------------------------------------------------------------------- ec-08.18 | RUNNING | ocadmin | Execute-DeploymentPlan
ec-08 > jobs.list -l -x ec-08.18Job Id: ec-08.18 Created By: ocadmin Type: Execute-DeploymentPlan Name: profile-sol-10-u9-ga-sparc-dvd-plan;asset-08-sp Status: RUNNING Creation Date: Fri Dec 07 10:03:34 GMT-07:00 2012 End Date: Wed Dec 31 17:00:00 GMT-07:00 1969 Run Id: 1 Task Id: 101
Task Name: asset-08-sp Task Id: 102 Task Name: Provision OS Task Id: 103 Task Name: Setup Install Client Target: 192.168.103.81 Status: SUCCESS start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: Setup Clients task is successfully completed. (32519) INFO : ec-08.18.1 locked all specified targets for entire job duration. Task Id: 104 Task Name: Download All Images Task Id: 105 Task Name: Download And Setup Image Task Id: 106 Task Name: Download Image Target: PC->ec-08-4c6bd061 Status: SUCCESS start time: Fri Dec 07 10:03:37 GMT-07:00 2012 end time: Fri Dec 07 10:03:37 GMT-07:00 2012 Cause Code: None Message: Image download succeeded INFO : Task is posted to the Proxy Controller (ec-08-4c6bd061), from the Enterprise Controller. (15011) INFO : Task is received by the Proxy Controller. (15012) INFO : ---enter into image task run---- INFO : download image sol-10-u9-ga-sparc-dvd.iso:osIsoImage:sol-10-u9-ga-sparc-dvd.iso#37, INFO : EC and PC are on the same machine, skipping the download. Task Id: 107 Task Name: Setup Image Target: PC->ec-08-4c6bd061 Status: RUNNING start time: Fri Dec 07 10:03:42 GMT-07:00 2012 end time: Fri Dec 07 10:03:42 GMT-07:00 2012 Cause Code: None Message: Task execution in progress... INFO : Invoking the prepare method of this target. (15018) INFO : Task is posted to the Proxy Controller (ec-08-4c6bd061), from the Enterprise Controller. (15011) INFO : Task is received by the Proxy Controller. (15012) INFO : Proxy OS Image file: /var/opt/sun/xvm/images/os/iso//sol-10-u9-ga-sparc-dvd.iso INFO : Setting up Image: sol-10-u9-ga-sparc-dvd Task Id: 108 Task Name: Download Image Target: PC->ec-08-4c6bd061 Status: SUCCESS start time: Fri Dec 07 10:03:37 GMT-07:00 2012 end time: Fri Dec 07 10:03:37 GMT-07:00 2012 Cause Code: None Message: Image download succeeded INFO : Task is posted to the Proxy Controller (ec-08-4c6bd061), from the Enterprise Controller. (15011) INFO : Task is received by the Proxy Controller. (15012) INFO : ---enter into image task run---- INFO : download image OpsCenterAgent.Solaris.sparc.12.1.1.2076.zip:agentImage:,jsPostInstall.sh:osScript:,osp_status_firstboot.sh:osScript:,init_agent_fi rstboot.sh:osScript:, INFO : EC and PC are on the same machine, skipping the download. Task Id: 109
Task Name: Configure Client's DHCP Target: 192.168.103.81 Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None Task Id: 110 Task Name: Configure Install Server Target: 192.168.103.81 Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None Task Id: 111 Task Name: ClearZoneController Target: com.sun.hss.domain:name=NORM-192.168.103.181,type=Server Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None Task Id: 112 Task Name: Network Install Target: ec-08-4c6bd061/com.sun.hss.domain:name=0003BAE0CE9C,type=Server Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None Task Id: 113 Task Name: Monitor OS Installation Target: 192.168.103.81 Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None Task Id: 114 Task Name: Verify Agent Install Target: 192.168.103.81 Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None Task Id: 115 Task Name: Cleanup Client Target: 192.168.103.81 Status: READY_TO_RUN start time: Fri Dec 07 10:03:35 GMT-07:00 2012 end time: Fri Dec 07 10:03:35 GMT-07:00 2012 Cause Code: None Message: None
Updating using the CLI:
tim@opsc12c > man update
Oracle Enterprise Manager Ops Center Command Line Interface update(1)
NAME update - Command to initiate the Update mode and to use its subcommands.
SYNOPSIS add_configuration_file -f filename -p pathname -v version -c category -d description -C channel add_file_to_distro -f path_name -o distro_name -a category [-s] add_local_action -a action -f filename -p parent_category -d description -c channel-t macro|postaction|preaction|probe add_local_category -c category_name -p parent_category -d description -o distro_name [-r] apply_profile_to_gear -g asset_name -y policy_name -f profile_name [-r continue|abort_any] [ -x sequential|parallel] [ -j job_name] [-e job_description] [-k task_name] [-o seconds] [-a] bulk_upload_directory -D distribution -d directory check_disconnected_mode check_guus [-u username] [-p password] [--proxy proxy_hostname [--port proxy_port [--proxyuser proxy_username] [--proxypass proxypassword] check_inventory [-a| -g asset_name] [-t snapshot_name] [-f filename] [-c] [ -d delimiter] [-e enclosure] [-r [ -p ] create_historical_snapshot -g asset_name -s snapshot_name [-d description] create_profile [-o][ --si =searchstring_install] [--su=searchstring_upgrade] [--sr=searchstring_uninstall] [--ni=nodeID_install] [--nu=nodeID_upgrade] [--nr=nodeID_uninstall] [--sisubstring] [ --susubstring ] [ --srsubstring ] [ -f profile_name] [-l profile_description] [-n creatorname ] [-a] [ -c ] [ -d ] [ -r ] create_profile_from_inventory -g asset_name [-t snapshot_name] [-f profile_name] [-l description] [-n creator_name] -r delete_component -i node_id -d distribution [-k] delete_profiles -p profile_name|profile_name1, profile_name2...profile_namen delete_snapshots [-g assetname] [-s snapshotname] find_nodes -s searchstring [-a] [ -l ] [ -c ] [ -d ] get_job_status -i jobID [-a] [ -l ] [ -c ] [ -r ] [ -f filename] [-t snapshot_name] [-d delimiter] [-e enclosure] [-p] job_history -g asset_name|asset_name1,...asset_namen [-f from_date] [-t to_date] [-i jobid|jobid1,...jobidn] [-l] [ --fail ] [ --ok ] [ ---warning ] [ --nostatus ] [ --install ] [ -upgrade ] [ --uninstall ] [ --downgrade ] [ --detail ] list_distros [-a] list_policies [-l] list_profiles [-l] -p profile_name list_snapshots [-g assetname] load_kb_bundle -f path_name modify_gear -g assetname [--si=searchstring_install] [--su=searchstring_upgrade] [--sr=searchstring_uninstall] [--ni=nodeID_install] [--nu=nodeID_upgrade] [--nr=nodeID_uninstall] [--sisubstring] [ --susubstring ] [ --srsubstring ] [ -j jobID] [-e job_description] [-k task] -y policy [-f profilename] [-l profile_description] [-r failure_policy] [-x execution_policy] [-n creatorname] [-o seconds] seconds [-c] [ -a ] [ -d ] [ -p ] search_inventory [-g assetname] [-a] -s searchstring [-t snapshot_name] [-n] [ -l ] [ -c ] [ -f filename] [-d delimiter] [-e enclosure] [-p] [ -o nb_loop] set_component_file -n component_name -d distro_name -f filename set_connected_mode [-c]|[ -d ]
DESCRIPTION The Update mode is one of a set of modes provided by the Oracle Enterprise Manager Ops Center Command Line Interface. Use Update subcommands to manage the local inventory of a host.
Type the update command at the command line prompt to enter Update mode. Type the end command to stop the mode and to
return to the command line prompt.
--More--(4%)
opsc12c > update
opsc12c/update > [tab]
add_configuration_file add_file_to_distro add_local_actionadd_local_category apply_profile_to_gear bulk_upload_directorycheck_disconnected check_guus check_inventorycreate_historical_snapshot create_profile create_profile_from_inventorydelete_component delete_profiles delete_snapshotsfind_nodes get_job_status job_historylist_distros list_policies list_profileslist_snapshots load_kb_bundle modify_gearsearch_inventory set_component_file set_connected_mode
opsc12c/update > list_distrosAvailable distributions.-----------------------------------------------------------------------------------------------------SOLARIS10_SPARCSOLARIS10_X86SOLARIS9_SPARCSOLARIS_11_ANY_ARCH
opsc12c/update > list_distros -aAvailable distributions.-----------------------------------------------------------------------------------------------------AS3_AMD64AS3_IA32AS4_AMD64AS4_IA32AS4_S390ES3_AMD64ES3_IA32ES4_AMD64ES4_IA32OEL5_AMD64OEL5_IA32OEL6_AMD64OEL6_IA32RHEL5_AMD64RHEL5_IA32RHEL5_S390XRHEL6_AMD64RHEL6_IA32RHELD5_AMD64RHELD5_IA32SLED10_AMD64SLED10_IA32SLED11_AMD64SLED11_IA32SLES10_AMD64SLES10_IA32SLES11_AMD64SLES11_IA32SLES11_S390X--More--(71%)
opsc12c/update > list_policiesProfiles in systemName Description Policy Type------------------------------ ------------------------------ -------------Ask For All System policy that consults th SYSTEMNo To All System policy that denies all SYSTEMYes To All System policy that confirms al SYSTEM
opsc12c/update > list_policies -lProfiles in system-----------------------------------------------------------------------------------------------------Name: Ask For All Description: System policy that consults the user on all actions Policy Type: SYSTEM Last Update: Sat Oct 27 14:13:18 GMT-07:00 2012
Name: No To All Description: System policy that denies all actions Policy Type: SYSTEM Last Update: Sat Oct 27 14:13:18 GMT-07:00 2012
Name: Yes To All Description: System policy that confirms all actions Policy Type: SYSTEM Last Update: Sat Oct 27 14:13:18 GMT-07:00 2012
opsc12c/update > list_profilesProfiles in systemName Description Profile Type------------------------------ ------------------------------ -------------Check Bugs Fix Verify that the system has all SYSTEMCheck Security Verify that the system has all SYSTEMCheck System Verify all software dependenci SYSTEMCheck Withdrawn Patches Replace any withdrawn patches SYSTEMLocal Software Review Validate local components agai SYSTEMPerform Reboot Restart the Operating System SYSTEMPerform Reboot + Reconfigure Restart the selected system an SYSTEMUpgrade All Components Check for any available compon SYSTEMUpgrade All Solaris 11 Compone Check for any available compon SOLARIS11SYST
opsc12c/update > list_profiles -lProfiles in system-----------------------------------------------------------------------------------------------------Name: Check Bugs Fix Description: Verify that the system has all the latest recommended patches installed Profile Type: SYSTEM Last Update: Sat Oct 27 14:53:02 GMT-07:00 2012
Name: Check Security Description: Verify that the system has all required security patches installed Profile Type: SYSTEM Last Update: Sat Oct 27 14:53:02 GMT-07:00 2012
Name: Check System Description: Verify all software dependencies. Recommend components to install or upgrade Profile Type: SYSTEM Last Update: Sat Oct 27 14:53:02 GMT-07:00 2012
Name: Check Withdrawn Patches
--More--(38%)
opsc12c/update > list_snapshots -g sol10-12cSnapshots for host: sol10-12c------------------------------------------------------------------------------------------------------------------------Wed Dec 05 12:36:41 GMT-07:00 2012 [Automatic Snapshot]
opsc12c/update > create_historical_snapshot -g sol10-12c -s Initial_Snapshot------------------------------------------------------------------------------------------------------------------------Retrieving and processing inventory for sol10-12c------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Created snapshot: Initial_Snapshot------------------------------------------------------------------------------------------------------------------------
opsc12c/update > list_snapshots -g sol10-12cSnapshots for host: sol10-12c------------------------------------------------------------------------------------------------------------------------Wed Dec 05 12:36:41 GMT-07:00 2012 [Automatic Snapshot]Initial_Snapshot
opsc12c/update > list_distrosAvailable distributions.------------------------------------------------------------------------------------------------------------------------SOLARIS10_SPARCSOLARIS10_X86SOLARIS9_SPARCSOLARIS_11_ANY_ARCH
opsc12c/update > bulk_upload_directory -D SOLARIS10_X86 -d /var/tmp/sudo-pkg
ec-08/update > [tab]
add_configuration_file add_file_to_distroadd_local_action add_local_categoryapply_profile_to_gear bulk_upload_directorycheck_disconnected check_guuscheck_inventory create_historical_snapshotcreate_profile create_profile_from_inventorydelete_component delete_profilesdelete_snapshots find_nodesget_job_status job_historylist_distros list_policieslist_profiles list_snapshotsload_kb_bundle modify_gearsearch_inventory set_component_fileset_connected_mode
ec-08/update > list_distrosAvailable distributions.---------------------------------------------------------------------------------------
--SOLARIS10_SPARCSOLARIS10_X86SOLARIS9_SPARCSOLARIS_11_ANY_ARCH
ec-08/update > bulk_upload_directory -D SOLARIS10_SPARC -d /opt/ora/files/packages
ec-08/update > add_local_category -hadd_local_category -c -p -d -o [-r]Options: -h, --help show this help message and exit -c NAME, --category_name=NAME category name -p PARENTNAME, --parent_name=PARENTNAME parent category name -D DESCRIPTION, --description=DESCRIPTION description -o DISTRONAME, --distro=DISTRONAME distribution name
Adds a category to the hierarchy of categories in a distribution.
ec-08/update > add_local_category -c Brand_RTU_S9 -p "local PKGs" -D "RTU for S9 Branded zones" -o SOLARIS10_SPARC-----------------------------------------------------------------------------------------Created category local PKGs/Brand_RTU_S9 for SOLARIS10_SPARC-----------------------------------------------------------------------------------------
ec-08/update > find_nodes -s SMCsudo* -aName Description Node id Distro Available Certified-------------------------------------------------- -------------------------------------------------- --------- --------------- ---------- ----------SMCsudo 40900064 SOLARIS10_SPARC False FalseSMCsudo-1.7.4p6-0 [02/04/2011] 40900065 SOLARIS10_SPARC True False
ec-08/update > create_profile -hcreate_profile [-o] [--si] [--su] [--sr] [--ni] [--nu] [--nr] [--sisubstring] [--susubstring] [--srsubstring] [-r] [-f] [-l] [-n] [-a] [-c] [-d] [-r]Options: -h, --help show this help message and exit --si=PATTERN search term to add to the install list --su=PATTERN search term to add to the upgrade list --sr=PATTERN search term to add to the uninstall list --ni=NODEID node ids to install --nu=NODEID node ids to upgrade --nr=NODEID node ids to uninstall -a, --all include all matched packages/patches -c, --case searches are case sensitive -f NAME, --profilename=NAME specify the profilename -D DESCRIPTION, --description=DESCRIPTION description -o NAME, --distro=NAME limit by distribution name -r, --replace replace an existing profile if the names are the same
-t TYPE, --type=TYPE profile type
Create a profile from packages that match one or more of the criteria-----------------------------------------------------------------------------------------You must supply a search string or node id.-----------------------------------------------------------------------------------------
ec-08/update > create_profile -o SOLARIS10_SPARC --ni=40900065 -f Install_sudo -D "Install sudo"-----------------------------------------------------------------------------------------Created profile Install_sudo-----------------------------------------------------------------------------------------
ec-08/update > apply_profile_to_gear -g asset-08 -y "Yes To All" -f Install_sudo-----------------------------------------------------------------------------------------Job was successfully submitted in simulate mode.Job id is: ec-08.20-----------------------------------------------------------------------------------------
ec-08/update > apply_profile_to_gear -g asset-08 -y "Yes To All" -f Install_sudo -a-----------------------------------------------------------------------------------------Job was successfully submitted in actual run mode.Job id is: ec-08.21-----------------------------------------------------------------------------------------
Checking Connectivity.
ec-08/update > check_disconnected-----------------------------------------------------------------------------------------------------xVM Ops Center is in disconnected mode.-----------------------------------------------------------------------------------------------------
ec-08/update > check_guus-----------------------------------------------------------------------------------------GUUS connection failed.-----------------------------------------------------------------------------------------
ec-08/update > set_connected_mode -hset_connected_mode set_connected_mode [-d] [-c]Options: -h, --help show this help message and exit -d, --disconnected set disconnected mode -c, --connected set connected mode
Restores the default update mode-----------------------------------------------------------------------------------------
To change the connected mode supply -d for disconnected or -c for connected----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------xVM Ops Center is in disconnected mode.-----------------------------------------------------------------------------------------
opsc12c > man incidents
Oracle Enterprise Manager Ops Center Command Line Interface incidents(1)
NAME incidents - Command to initiate the Incidents mode and to use its subcommands. The Incidents subcommands manages notices that thresholds have been exceeded and hardware faults.
SYNOPSIS acknowledge -i|--incidents incidentID[,incidentID2,..,incidentIDn] [-n|--note text] annotate -i|--incidents incidentID[,incidentID2,..,incidentIDn] [-n|--note text] [-s|--synopsis text] [-t|--type comment|suggested_action] assign -i|--incidents incidentID[,incidentID2,..,incidentIDn] -u|--user owner close -i|--incidents incidentID[,incidentID2,..,incidentIDn] -n|--note text -d|--disable-delay minutes list [-l|--details] [ -s|--state state] [-u|--user owner] show -i|--incidents incidentID[,incidentID2,..,incidentIDn]
DESCRIPTION The Incidents mode is one of a set of modes provided by the Oracle Enterprise Manager Ops Center Command Line Interface. Use Incidents subcommands to
Type the incidents command at the command line prompt to enter Incidents mode. Type the end command to stop the mode and to return to the command line prompt.
Subcommands list [-l|--details] [-s|--state state] [-u|--user owner]splays a list of current incidents. You can restrict the list to the specified type of incident (state) or to assigned owner.
show -i|--incidents incidentID[,incidentID2,..,incidentIDn]splays detailed information about one or more incidents.
acknowledge -i|--incidents incidentID[,incidentID2,..,incidentIDn] [-n|--note text]ccepts the assignment of one or more incidents. You can add some text to the detailed information to indicate
activity on the incidents such as the type of investiga- tion or status.
annotate -i|--incidents incidentID[,incidentID2,..,incidentIDn] [-s|--synopsis text [-n|--note text] [-t|--type comment|suggested_action]dds a synopsis of your new information to the detailed--More--(21%)
08 > incidentsopsc12c/incidents > [tab]
acknowledge annotate assign close list show
opsc12c/incidents > listIncidents: Id |Severity| State | Owner | Description |--------------------------------------------------------------------------------------------------------------------------20969|WARNING | UNASSIGNED | None | The asset can no longer be reached20985|WARNING | UNASSIGNED | None | System Load 15-Minute Average Per CPU Core has reached 2.7120989|WARNING | UNASSIGNED | None | ZPool Usage Percentage rpool has reached 92.8805224954|WARNING | UNASSIGNED | None | The asset can no longer be reached24956|WARNING | UNASSIGNED | None |ZPool Usage Percentage za36fa94c-8111-438d-b3c7-a76d3e775366 has reached 90.9312920987|WARNING | UNASSIGNED | None | 88.30288% of space is used on /var filesystem.27659|CRITICAL| UNASSIGNED | None |SMF Service State svc:/application/graphical-login/cde-login:default has switched to maintenance27661|CRITICAL| UNASSIGNED | None | SMF Service State svc:/system/webconsole:console has switched to maintenance27355|WARNING | UNASSIGNED | None | The asset can no longer be reached
opsc12c/incidents > acknowledge -i 27659,27661,20989 -n "Working to Resolve"
opsc12c/incidents > listIncidents: Id |Severity| State | Owner | Description |--------------------------------------------------------------------------------------------------------------------------20969|WARNING | UNASSIGNED | None | The asset can no longer be reached20985|WARNING | UNASSIGNED | None | System Load 15-Minute Average Per CPU Core has reached 2.7120989|WARNING | ACKNOWLEDGED | tim | ZPool Usage Percentage rpool has reached 92.8805224954|WARNING | UNASSIGNED | None | The asset can no longer be reached24956|WARNING | UNASSIGNED | None |ZPool Usage Percentage za36fa94c-8111-438d-b3c7-a76d3e775366 has reached 90.9312920987|WARNING | UNASSIGNED | None | 88.30288% of space is used on /var filesystem.
27659|CRITICAL| ACKNOWLEDGED | tim |SMF Service State svc:/application/graphical-login/cde-login:default has switched to maintenance27661|CRITICAL| ACKNOWLEDGED | tim | SMF Service State svc:/system/webconsole:console has switched to maintenance27355|WARNING | UNASSIGNED | None | The asset can no longer be reached
opsc12c/incidents > list -l -u tim -s ACKNOWLEDGEDIncidents: Id |Severity| State | Owner | Creation date | Last update date | Description |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------20989|WARNING | ACKNOWLEDGED | tim |Tue Dec 04 08:10:43 GMT-07:00 2012|Fri Dec 07 15:13:53 GMT-07:00 2012| ZPool Usage Percentage rpool has reached 92.8805227659|CRITICAL| ACKNOWLEDGED | tim |Fri Dec 07 11:26:49 GMT-07:00 2012|Fri Dec 07 15:08:01 GMT-07:00 2012|SMF Service State svc:/application/graphical-login/cde-login:default has switched to maintenance27661|CRITICAL| ACKNOWLEDGED | tim |Fri Dec 07 11:26:53 GMT-07:00 2012|Fri Dec 07 15:08:01 GMT-07:00 2012| SMF Service State svc:/system/webconsole:console has switched to maintenance
opsc12c/incidents > show -i 20989Incidents: Id |Severity| State | Owner | Creation date | Last update date | Description |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------20989|WARNING | ACKNOWLEDGED | tim |Tue Dec 04 08:10:43 GMT-07:00 2012|Fri Dec 07 15:08:01 GMT-07:00 2012| ZPool Usage Percentage rpool has reached 92.88052
opsc12c/incidents > annotate -i 20989 -t suggested_action -s "adding second mirror" -n "adding local disks for a second mirror"
opsc12c/incidents > close -i 20989 -n "Zpool has been expanded"
opsc12c/incidents > listIncidents: Id |Severity| State | Owner | Description |--------------------------------------------------------------------------------------------------------------------------20969|WARNING | UNASSIGNED | None | The asset can no longer be reached20985|WARNING | UNASSIGNED | None | System Load 15-Minute Average Per CPU Core has reached 2.7124954|WARNING | UNASSIGNED | None | The asset can no longer be reached24956|WARNING | UNASSIGNED | None |ZPool Usage Percentage za36fa94c-8111-438d-b3c7-a76d3e775366 has reached 90.9312920987|WARNING | UNASSIGNED | None | 88.30288% of space is used on /var filesystem.27659|CRITICAL| ACKNOWLEDGED | tim |SMF Service State svc:/application/graphical-login/cde-login:default has switched to maintenance27661|CRITICAL| ACKNOWLEDGED | tim | SMF Service State svc:/system/webconsole:console has switched to maintenance
27355|WARNING | UNASSIGNED | None | The asset can no longer be reached
opsc12c/notifications > listID Severity Type Message------------------------------------------------------------------------------------------------------------------------219 MEDIUM INFO Agent sol10-12c (192.168.0.114) has been registered. (90018)220 HIGH INFO Job opsc12c.84 unsuccessful: Completed agent connection tests (80051); Cannot verify s...221 WARNING_PROBLEM INFO WARNING incident 20997 created on ZPool Usage Percentage za36fa94c-8111-438d-b3...222 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...223 MEDIUM INFO Agent sol10-12c (192.168.0.114) has been unregistered. (90019)224 WARNING_PROBLEM INFO WARNING incident 21000 created on ZPool Usage Percentage za36fa94c-8111-438d-b3...225 WARNING_PROBLEM INFO WARNING incident 24954 created on The asset can no longer be reached226 WARNING_PROBLEM INFO WARNING incident 24956 created on ZPool Usage Percentage za36fa94c-8111-438d-b3...227 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...228 MEDIUM INFO Agent sol10-12c (192.168.0.114) has been registered. (90018)229 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...230 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...231 LOW INFO User root started a command line session as root from host opsc12c - IP address: 192.1...204 PROBLEM_UPDATES INFO Annotation added to incident 12754 : Automatically closed incident with no acti...205 PROBLEM_UPDATES INFO Annotation added to incident 5102 : Automatically closed incident with no activ...206 PROBLEM_UPDATES INFO Annotation added to incident 19956 : Automatically closed incident with no acti...207 WARNING_PROBLEM INFO WARNING incident 20987 created on 88.359825% of space is used on /var filesystem.202 PROBLEM_UPDATES INFO Annotation added to incident 19951 : Automatically closed incident with no acti...203 PROBLEM_UPDATES INFO Annotation added to incident 19953 : Automatically closed incident with no acti...208 WARNING_PROBLEM INFO WARNING incident 20985 created on System Load 15-Minute Average Per CPU Core h...209 WARNING_PROBLEM INFO WARNING incident 20989 created on ZPool Usage Percentage rpool has reached 92.9...210 WARNING_PROBLEM INFO WARNING incident 20991 created on The asset can no longer be reached211 LOW INFO User tim started a command line session as tim from host opsc12c - IP address: 192.168...212 LOW INFO User tim started a command line session as tim from host opsc12c - IP address: 192.168...213 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...214 LOW INFO User root started a command line session as tim from host opsc12c - IP address: 192.16...215 LOW INFO User tim started a command line session as tim from host
opsc12c - IP address: 192.168...216 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...218 WARNING_PROBLEM INFO WARNING incident 20995 created on The asset can no longer be reached--More--(60%)
opsc12c/notifications > delete -i 211,212,213,214,215,216Successfully deleted notificationopsc12c/notifications > listID Severity Type Message------------------------------------------------------------------------------------------------------------------------219 MEDIUM INFO Agent sol10-12c (192.168.0.114) has been registered. (90018)220 HIGH INFO Job opsc12c.84 unsuccessful: Completed agent connection tests (80051); Cannot verify s...221 WARNING_PROBLEM INFO WARNING incident 20997 created on ZPool Usage Percentage za36fa94c-8111-438d-b3...222 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...223 MEDIUM INFO Agent sol10-12c (192.168.0.114) has been unregistered. (90019)224 WARNING_PROBLEM INFO WARNING incident 21000 created on ZPool Usage Percentage za36fa94c-8111-438d-b3...225 WARNING_PROBLEM INFO WARNING incident 24954 created on The asset can no longer be reached226 WARNING_PROBLEM INFO WARNING incident 24956 created on ZPool Usage Percentage za36fa94c-8111-438d-b3...227 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...228 MEDIUM INFO Agent sol10-12c (192.168.0.114) has been registered. (90018)229 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...230 LOW INFO User tim started a command line session as root from host opsc12c - IP address: 192.16...231 LOW INFO User root started a command line session as root from host opsc12c - IP address: 192.1...204 PROBLEM_UPDATES INFO Annotation added to incident 12754 : Automatically closed incident with no acti...205 PROBLEM_UPDATES INFO Annotation added to incident 5102 : Automatically closed incident with no activ...206 PROBLEM_UPDATES INFO Annotation added to incident 19956 : Automatically closed incident with no acti...207 WARNING_PROBLEM INFO WARNING incident 20987 created on 88.359825% of space is used on /var filesystem.202 PROBLEM_UPDATES INFO Annotation added to incident 19951 : Automatically closed incident with no acti...203 PROBLEM_UPDATES INFO Annotation added to incident 19953 : Automatically closed incident with no acti...208 WARNING_PROBLEM INFO WARNING incident 20985 created on System Load 15-Minute Average Per CPU Core h...209 WARNING_PROBLEM INFO WARNING incident 20989 created on ZPool Usage Percentage rpool has reached 92.9...210 WARNING_PROBLEM INFO WARNING incident 20991 created on The asset can no longer be reached218 WARNING_PROBLEM INFO WARNING incident 20995 created on The asset can no longer be reached244 LOW INFO User root started a command line session as tim from host opsc12c - IP address: 192.16...245 LOW INFO User root started a command line session as tim from host opsc12c - IP address: 192.16...242 WARNING_PROBLEM INFO WARNING incident 27355 created on The asset can no
longer be reached243 LOW INFO User root started a command line session as tim from host opsc12c - IP address: 192.16...246 LOW INFO User tim started a command line session as tim from host opsc12c - IP address: 192.168...247 LOW INFO User root started a command line session as tim from host opsc12c - IP address: 192.16...--More--(68%)
Showing statistics from the CLI:
opsc12c/stats > showName Used Mem % Free Mem (MB) Avg Load 15min CPU Util %------------------------------------------------------------------------------------------------------------------------baxter 33.05 1339 0.07 2.00opsc12c 97.66 144 4.56 100.00sol10-12c 28.53 663 0.88 8.11zone1 9.06 663 - 1.61192-168-0-113 - - - -
Show stats with a interval (10 seconds in this case). opsc12c/stats > show -i 10'q' or to quitName Used Mem % Free Mem (MB) Avg Load 15min CPU Util %------------------------------------------------------------------------------------------------------------------------baxter 33.05 1339 0.07 2.00opsc12c 97.66 144 4.56 100.00sol10-12c 28.53 663 0.88 8.11zone1 9.06 663 - 1.61192-168-0-113 - - - -Name Used Mem % Free Mem (MB) Avg Load 15min CPU Util %------------------------------------------------------------------------------------------------------------------------baxter 33.05 1339 0.07 2.00opsc12c 97.66 144 4.56 100.00sol10-12c 28.53 663 0.88 8.11zone1 9.06 663 - 1.61192-168-0-113 - - - -Name Used Mem % Free Mem (MB) Avg Load 15min CPU Util %------------------------------------------------------------------------------------------------------------------------baxter 33.05 1339 0.07 2.00opsc12c 96.10 240 4.54 28.00sol10-12c 28.53 663 0.88 8.11zone1 9.06 663 - 1.61192-168-0-113 - - - -
Miscellaneous CLI command examples:
Starting the CLI:
root@ec-08:~ # /opt/SUNWoccli/bin/oc
Oracle Enterprise Manager Ops Center
Copyright (c) 2007, 2012 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.
Use the -connect- command to get started The tab key will always show the available command set
xvmSh > connect -h ec-08 -u ocadminEnter password for authentication > ********ec-08 >
Checking the connection to and disconnecting from the EC:
ec-08 > [tab]
connect credentials deploy disconnect discover fwimage fwprofile geargroups history incidents jobs man notifications osimage osprofileping printenv record set setenv source stats unsetupdate user version virtualization wait
ec-08 > pingOEMEC ec-08 is alive, version : 12.1.1.2076
ec-08 > disconnectxvmSh > exit
root@ec-08:~ # /opt/SUNWoccli/bin/oc
Oracle Enterprise Manager Ops Center Copyright (c) 2007, 2012 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.
Use the -connect- command to get started The tab key will always show the available command set
xvmSh > connect -h ec-08Enter username for authentication > ocadminEnter password for authentication > ********ec-08 > exit
Executing a CLI command from the UNIX command line (non-interactive):
root@ec-08:~ # /opt/SUNWoccli/bin/oc -e history0 connect -h ec-08 -u ocadmin1 gear.list2 osprofile.list3 deploy4 plan profile-sol-10-u9-ga-sparc-dvd5 plan profile-sol-10-u9-ga-sparc-dvd-plan6 target 97d5bbd2-7895-465f-b5af-b824e1a097197 set ip=192.168.103.818 show plan9 set "ip='192.168.103.81'"10 apply11 end12 jobs.list -l -x ec-08.18[...]
Executing a set of commands from the UNIX command line (non-interactive):
root@opsc12c:~# /opt/SUNWoccli/bin/oc -e 'connect ; osimage.list ; gear.list'Name Version OS Type Descriptionsolaris11-sparc (0.175.0.0.0.2.1482) 5.11sparc solaris GuestOS Nonesolaris11-i386 (0.175.0.0.0.2.1482) 5.11i386 solaris GuestOS NoneOracleLinux-R6-U1-Server-x86_64-dvd oel6x86_64 None Nonesol-10-u9-ga-x86-dvd oracle solaris 10 9/10 s10x_u9wos_14a x86 None NoneSol10U8 solaris 10 10/09 s10x_u8wos_08a x86 None NoneRegistered Gear: UFN | Manage state | Description | Asset Type | UUID |--------------------------------------------------------------------------------------------------------------------------------------------------------------------- baxter | MANAGED | 192.168.10.100 | GlobalZone | cfe7dfa3-c8db-4d33-a504-e137a2fa69d4 opsc12c | MANAGED | Enterprise Controller OS | GlobalZone | 31022121-6ade-4f7f-932b-1b07ac9cc1a5 sol10-12c | MANAGED | 192.168.0.114 | GlobalZone | c0ab5df3-69eb-4917-b242-bd057de6e8e0 zone1 | MANAGED | zone1 | NonGlobalZone | 291b07c2-874c-4c1e-9764-54cb731e98b1 192-168-0-113 | MANAGED | Global Zone OS | GlobalZone | e5ceffc5-e8ea-4f60-b0f4-f86290d7823f opsc12c | MANAGED | Enterprise Controller Server | Server | a97c58a6-9053-41f6-a1f5-b12d46624679 Sol10_VB | MANAGED | Solaris 10 VBox for Provisioning | Server | f7f244f2-baf9-4680-ba8e-5a82c98f731c baxter | MANAGED | 192.168.10.100 | Server | 16dc6f4e-0611-429d-8614-0c71e4bbf8c6 zone1 | MANAGED | None | NonGlobalZone | 52bee996-d8fd-483e-bb95-1288feaa4b00 sol10-12c | MANAGED | Global Zone Control Domain Server | GlobalZone | 49295a4d-6c0a-453a-8516-5b2ff17f0a14 Sol10Client | MANAGED | Global Zone Server | Server | 350626ff-58df-4dbd-9267-76ddf73bd9fb 192-168-0-113 | MANAGED | Global Zone Control Domain Server | GlobalZone | 5ba1ae8c-d558-4f1c-9ece-237daf548998 sol10-12c | MANAGED | 192.168.0.114 | Server | 542d709c-3744-4b28-9d81-c5b4e9ad7ee6 sol10-12c | MANAGED | Global Zone | GlobalZone | 39598a5d-aee8-4790-a4bf-c9cbc088417b 192-168-0-113 | MANAGED | Global Zone | GlobalZone | bad5e492-ab93-4ed2-97cd-47b735898d16
root@opsc12c:~#