The Oracle Enterprise Manager Ops Center Command Line Interface (CLI) is an alternative to the browser user interface for Oracle Enterprise Manager Ops Center.
This chapter explains how to use the Oracle Enterprise Ops Center CLI and all the commands included within this tool:
The Oracle Enterprise Manager Ops Center CLI can perform many, but not all, functions of Oracle Enterprise Manager Ops Center.
The following charts compare the product features in the BUI and CLI:
You can perform some but not all discovery and asset management tasks through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-1 shows the functions that the CLI can perform for asset discovery, management, and grouping.
Table 1-1 Asset Discovery, Management, and Grouping
Function | Possible with CLI | Mode |
---|---|---|
Find asset |
Yes |
Discover |
Execute discovery profiles |
Yes |
Discover |
Add asset |
No |
n/a |
Declare asset |
No |
n/a |
Manage asset |
Yes |
Gear |
Unmanage asset |
Yes |
Gear |
Register asset |
Yes |
Gear |
View asset data |
Yes |
Gear |
Update asset data |
Yes |
Gear |
Reset a server |
Yes |
Gear |
Refresh a server |
Yes |
Gear |
Manage locator lights |
Yes |
Gear |
Manage power settings |
Yes |
Gear |
Reboot an OS |
Yes |
Gear |
Reinstall an asset on an OS |
Yes |
Gear |
Create a group |
Yes |
Groups |
Add asset to a group |
Yes |
Groups |
Move assets between groups |
Yes |
Group |
Manage power settings of an asset in a group |
Yes |
Group |
Delete a group |
Yes |
Group |
Delete an asset |
Yes |
Gear |
Upgrade an Agent on an Asset | Yes | Gear |
Upgrade all Agents needing an upgrade | Yes | Gear |
You can provision and update operating systems through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-2 shows the functions that the CLI can perform for operating system provisioning and patching.
Table 1-2 Operating System Provisioning and Patching
Function | Possible with CLI | Mode |
---|---|---|
Import an OS image |
Yes |
OSImage |
Delete an OS image |
Yes |
OSImage |
Create an OS profile |
No |
n/a |
Import an OS profile |
Yes |
OSProfile |
Export an OS profile |
Yes |
OSProfile |
Clone an OS profile |
Yes |
OSProfile |
Delete an OS profile |
Yes |
OSProfile |
Import a JET template |
Yes |
OSProfile |
Provision an OS |
Yes |
Gear |
Check inventory |
Yes |
Update |
Upload a knowledge base bundle |
Yes |
Update |
Update operating systems |
Yes |
Update |
Create OS update profiles |
Yes |
Update |
Apply OS update profiles |
Yes |
Update |
Add a configuration file |
Yes |
Update |
Add a file to a distribution |
Yes |
Update |
Run OS update profiles |
No |
n/a |
You can provision firmware through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-3 shows the functions that the CLI can perform for firmware provisioning.
Table 1-3 Firmware Provisioning
Function | Possible with CLI | Mode |
---|---|---|
Create a firmware image |
Yes |
FWImage |
Update a firmware image |
Yes |
FWImage |
Delete a firmware image |
Yes |
FWImage |
Create a firmware profile |
Yes |
FWProfile |
Update a firmware profile |
Yes |
FWProfile |
Delete a firmware profile |
Yes |
FWProfile |
Update firmware |
Yes |
Gear |
Check firmware compliance |
Yes |
Gear |
Run firmware reports |
No |
n/a |
Some administration tasks can be performed through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-4 shows the functions that the CLI can perform for administration.
Table 1-4 Administration
Function | Possible with CLI | Mode |
---|---|---|
Change connection mode |
Yes |
Update |
Deploy a Proxy Controller |
No |
n/a |
Manage users and roles |
Yes |
User |
View roles |
Yes |
Jobs |
Manage jobs |
Yes |
Jobs |
View notifications |
Yes |
Notifications |
Delete notifications |
Yes |
Notifications |
Manage incidents |
Yes |
Incidents |
You can use the command line interface of the Oracle Enterprise Manager Ops Center to perform operations.
The Oracle Enterprise Manager Ops Center’s command line has prerequisites.
Because the CLI share information with the Enterprise Controller, you must create the connection between the CLI to the Enterprise Controller. When you run the CLI on the same system as the Enterprise Controller, the connection does not need credentials, but when the CLI runs on a different system than the Enterprise Controller’s system, you must provide the system's credentials.
When connecting from a remote system, the CLI verifies that the certificate of the Enterprise Controller’s server is in the list of trusted certificates. For new connections or after reinstalling the Enterprise Controller, you must accept the server's certificates to establish the connection. The certificates are then stored in a local trust store for the user and do not require acceptance again. For more information about certificates, see Certificates.
You must have Java SE Development Kit (JDK) 7 or 8 installed in the system running the CLI.
You can invoke the Oracle Enterprise Manager Ops Center’s command line from the Enterprise Controller’s server or from a remote server.
oc
CommandYou can initiate the Oracle Enterprise Manager Ops Center’s command line with various options.
The CLI is accessed with the oc
command. The oc
command can be run with the following options:
Use -V| --version
to show the CLI version and exit.
Use -h| --help
to show the CLI help and exit.
Use -q| --quiet
to be as quiet as possible.
Use -d| --debug <debug level>
to specify a debug logging level. Debug logging levels are DEBUG
, FINEDEBUG
, CMDSTAT
, INFO
, WARNING
, ERROR
, CRITICAL
, OFF
, and ALL
.
Use -c| --cmdfile <file>
to execute the <file>
command file.
Use -e| --eval <command>
for one-line execution. The <command>
command is the only command to be executed. This option can be run with one-liners. For more information about one-liners see Using the CLI One-Liner.
Use -o| --outfile <file>
to write the output to the <file>
file.
Use -O| --output_format <format>
to specify an output format. Format can be text
of parsable
.
Examples:
#./oc -V OpsCenter Command Line Interface 12.1.0 #./oc -e history 495 connect 496 version
You can set variables and use them with any Oracle Enterprise Manager Ops Center command.
To define a user variable, enter set <variable name>=<value>
in the command prompt.
Example:
#./oc xvmSh> set JOBID=foo.3 xvmSh> connect localhost> jobs.list -x $JOBID
You can provide a series of commands on the Oracle Enterprise Manager Ops Center’s command line.
The CLI accepts a list of commands as an argument.
Enter the following command:
./oc -e
'list commands separated by a semicolon'
Example:
#./oc -e 'connect ; jobs.list | grep FAILED'
Use general commands used for CLI execution or as universal commands through the Oracle Enterprise Manager Ops Center’s command line.
Use the Tab key to see a list of the available commands or as a completion key when typing a command.
You can verify your connection to the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
The ping
command checks connectivity to the Enterprise Controller.
localhost > ping OEMEC None is alive, version : 12.1.0.1848
You can view the user configuration through the Oracle Enterprise Manager Ops Center’s command line.
Use the printenv
command to display the definitions for the following variables in the user configuration:
output_format
: Format for the command output, either text or parsable.
parsable_text_separator
: Text separator for parsable command output.
log_level
: Logging level.
history_length
: Number of commands saved in the history.
debug
: Debug logging, either true or false.
pager
: Pager for long output, either true or false.
continue_on_error
: Continue when a command fails, either true or false.
text_wrap_width
: Maximum number of characters in a line.
accept_all_certificates
: Enable or disable accepting all certificates by default, either true or false.
To display the current user configuration, enter printenv
in the command prompt.
Example:
localhost > printenv output_format=textparsable_text_separator=log_level=OFFhistory_length=500debug=falsepager=falsecontinue_on_error=falsetext_wrap_width=-1 accept_all_certificates = false
The user configuration can be changed using the setenv
command.
You set variables for the environment through the Oracle Enterprise Manager Ops Center’s command line.
The setenv
command sets the following variables in the following ways:
output_format=text|parsable parsable_text_separator=text log_level=OFF|ON history_length=integer debug=true|false pager=true|false continue_on_error=true|false text_wrap_width=integer accept_all_certificates = true|false
To set the user environment, enter sentenv <variable>=<value>
in the command prompt. For example:
localhost > setenv pager=true
Note:
It’s preferable to set the pager variable to true
before running some commands, such as the man
command.
You can copy all console inputs and outputs to a text file using the Oracle Enterprise Manager Ops Center’s command line.
You can save the resulting file in the directory you prefer. Issue the command without a file name to stop the recording.
To record the console inputs and outputs into a text file, enter record <filename>
at the command prompt, for example:
localhost > record foo.file
Use the Tab key to close the file.
You can use a command script on the Oracle Enterprise Manager Ops Center’s command line.
The source
command uses command script files to source commands as if they were entered at the prompt. For more information about command scripts, see Command Scripts. This command is also used to specify a file as the source of an operation when executing other commands. This file can be used for information that is shared by more than one script, or to keep secure information separate.
To use a source file, enter source <filename>
in the command prompt.
Example:
EnterpriseControler > source /tmp/cmds
You can display the product version through the Oracle Enterprise Manager Ops Center’s command line.
The version
command displays the version of the CLI, the Oracle Enterprise Manager Ops Center software, the Java SE Runtime Environment, and the Java HotSpot Server VM software, for example:
localhost > version CLI version: 12.3.2.805 OpsCenter version: 12.3.2.805 Platform: Java-1.8.0_66-Java_HotSpot-TM-_64-Bit_Server_VM,_25.66-b17,_Oracle_Corporation-on-SunOS-5.11-amd64 Jython Version: 2.7.0
You can control the timing of commands in the Oracle Enterprise Manager Ops Center’s command line.
You can set the CLI to wait until either the most recent job or a specific job finishes before launching a new job, using the wait
command. This can be useful if one job, such as a discovery, is a requirement for another job, such as grouping or managing discovered assets. You can identify a job by its jobID or by its runID.
The wait
command is used in command scripts where many commands are run almost at the same time, and a command must wait to be executed until the job launched by the previous command is completed. For more information about command scripts, see Command Scripts. This command can be used from within any mode at any time or from the main command line.
To wait for a job to complete, enter wait
in the command prompt.
Use the -i| --jobid <job ID>
option to specify a job ID. The CLI waits for that job to complete.
Use the -r| --runid <run ID>
option to specify a job runID. The CLI waits for that job to complete. Default is to wait for the last job.
Use the -a| --all
option to wait for all jobs.
Use the -n| --maxwait <maximum wait time>
to specify a timeout, a maximum number of seconds to wait for a job to complete.
Note:
To interrupt a wait operation during interactive session, press Ctrl+C.
You can show the commands in the Oracle Enterprise Manager Ops Center’s command line.
This command can be used from within any mode at any time or from the main command line.
To show the available commands, enter help
in the command prompt.
Use the -l
option to include detailed usage information.
You can display recent commands. through the Oracle Enterprise Manager Ops Center’s command line.
This command can be used from within any mode at any time or from the main command line. To show the recent commands, enter history
in the command prompt. Use the -n <number of commands>
option to limit the history list, for example:
localhost > history -n 3
The history includes a command number for the sequence. To repeat a command in the history enter the !
character with the command number and press the Tab key, as shown in the following example:
localhost> history -n 3 495 connect 496 version 498 history -n 3 localhost>!496 <TAB> localhost>version
You can display the man page for a specific mode through the Oracle Enterprise Manager Ops Center’s command line.
The syntax usage and description for all mode subcommands are included in the man page. This command can be used from within any mode at any time or from the main command line. To display the man page for a specific mode, enter man
<mode name>
in the command prompt. For example, to learn about the gear
command:
localhost > man gear
If no mode name is given, the CLI man page is displayed.
To see a list of man pages, enter the command and press the Tab key.
Note:
The man
command requires the pager
environment variable to be set to true
for multipage output before being run. For more information about how to set the pager
variable, see Setting the User Environment.
You can return to the parent prompt in the Oracle Enterprise Manager Ops Center’s command line.
You can exit a mode and return to the parent CLI prompt, using the end
command. This command can be used from within any mode at any time or from the main command line. To exit a mode, enter end
in the command prompt.
localhost/gear > end localhost >
You can close the network connection between the Enterprise Controller and the Oracle Enterprise Manager Ops Center Command Line Interface.
To disconnect from the Enterprise Controller, enter disconnect
in the command prompt.
Example:
localhost > disconnect xvmSh >
You can limit the output of any mode through the Oracle Enterprise Manager Ops Center’s command line.
For any main or mode command, you can constrain the output by appending one of the following filters to the command:
| grep
regexp to filter by the regular expression
| count
integer to display only the number of output lines
| tee
filename to write the output to a file
Example:
localhost/jobs > list | tee /var/tmp/todays_jobs.txt
Note:
For better results with grep
and count
filters, activate parsable output, using the setenv
command.
Spaces are required before and after the pipeline “ | ” character
You can create scripts through the Oracle Enterprise Manager Ops Center’s command line.
The CLI can also be used in a non-interactive way, using command scripts. The following example shows a script named update.xvm
that writes the inventory of a server to a file:
connect finance_svr -u zz3282134 -p b@seba11 update csv_inventory -h finance_svr -f ~/inventory_latest.csv wait end
To create the file at any time, issue the following command:
oc --cmdfile update.xvm
To run a command script use the source
command.
Example:
xvmSh > source update.xvm
You use the modes of the Oracle Enterprise Manager Ops Center’s command line to manage assets.
The commands in this section start a mode that includes a set of subcommands. Use the man
command to display the man page for each mode.
Certificates – Use certificates mode to view and manage trusted certificates.
Collisions – Use collisions mode to detect collisions of host IDs or MAC addresses used by logical domains.
Controller – Use controller mode to migrate assets from one Proxy Controller to another Proxy Controller.
Credentials – Use credentials mode to view and manage driver credentials.
Deploy-Setup – Use deploy-setup mode to set up the plan and target to deploy an asset.
Deploy – Use deploy mode to deploy an asset.
Discover – Use discovery mode to discover gear (assets).
FWImage – Use fwimage mode to create, view, and manage firmware images.
FWProfile – Use fwprofile mode to create, view, and manage firmware profiles.
Gear – Use gear mode to view and manage gear (assets) and provision operating systems and firmware.
Groups – Use groups mode to view, create, and manage groups.
Guest – Use guest mode to view Oracle Solaris zones including kernel zones and Oracle VM Server for SPARC logical domains, and control their actions.
Incidents – Use incidents mode to view and manage incidents.
Jobs – Use jobs mode to view and manage jobs.
Monitoring – Use monitoring mode to manage monitoring services.
Networks – Use networks mode to display the list of managed networks.
Notifications – Use notifications mode to view notifications and change notification settings.
OSImage – Use osimage mode to view, manage, and install OS images.
OSProfile – Use opsrofile mode to view, manage, and import OS profiles.
Plan – Use plan mode to list and remove deployment plans.
Reports – Use reports mode to manage the reporting service.
Security – Use security mode to update certificates before they expire.
Serverpools – Use serverpools mode to view, and manage server pools.
Stats – Use stats mode to view statistics about the Enterprise Controller.
Update – Use update mode to view and manage OS update profiles, policies, snapshots, and distributions, and view and change the connection mode.
User – Use user mode to create, view and manage users and roles.
Virtualization – Use virtualization mode to view, and manage virtual hosts and virtual machines.
Unlike the ecadm
and proxyadm
commands, which are used for administering the Enterprise Controller and its Proxy Controllers, the CLI operates on the assets of the data center.
To execute a subcommand within a mode:
Enter the mode, then enter the subcommand.
Enter <mode name>.<subcommand name>
.
Example:
localhost > jobs.list
For information about the mode commands that have a corresponding action in the browser user interface, see Finding the Equivalent Browser User Interface Actions For the Mode Commands.
The certificates mode manages security through the Oracle Enterprise Manager Ops Center’s command line.
Certificates mode allows you to view and manage the list of trusted certificates that enable the communication between the Enterprise Controller and the product's Command Line Interface. The CLI is a client of the Enterprise Controller in remote connections. The CLI does not check for certificates in local connections.
For information about certificates that enable authorization among the Enterprise Controller, Proxy Controllers, and assets, see Security mode.
Certificates are stored in a truststore file in the user directory. When connecting to an EC remotely, the CLI verifies if the certificate chain of the EC server is part of the trusted list. If the certificate chain is not in the trusted list, then the CLI requests to accept the new certificate to add it to the list. If the certificate chain is not accepted, then the connection fails.
Additionally, you can set your user environment to silently accept all certificates by setting the accept_all_certificates
variable to true, see Setting the User Environment for more information in changing the value of the variable. You can also set your connection to silently accept all certificates by using the -a or --accept_all_certificates
option with the connect
command. This is especially useful for non-interactive sessions where it is not possible to interactively accept the certificate.
To enable your scripts to connect to a remote server, you can choose from the following options:
If you reinstall your EC and CLI often, modify your scripts to add the -a or --accept_all_certificates
option to the connect command to make them pass-through.
If you reinstall your EC often but not the CLI, you might prefer to change the new CLI preference accept_all_certificates
to automatically accept certificates at all times for all servers to which it connects. You can also add the following line at the beginning of each script to add the certificate, although this command connects to the EC and then disconnects: certificates.add -h hostname -u username [-n port] -p password -f
.
If you do not reinstall your EC often, then you can connect to the EC interactively to accept the certificate at the user level which adds it to the user's truststore. In this case you will need to connect interactively to it after each reinstall of your EC to accept its new certificates.
You can view the list of existing trusted certificates through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
xvmSh/certificates > list Alias | Issuer | Subject | Serial Number ------------------------------------------------------------------------------------------------------------ root@sm-36:11172 | CN=sm-36_oem-ec_ca | CN=sm-36_oem-ec_ca | 385822055 root@sm-36:11172 | CN=sm-36_oem-ec_ca | CN=sm-36_oem-ec_agent | 1497938285
Use the -a| --alias
<alias>
option to list a specific alias or a list of aliases separated by a comma.
Use the -d
| --detail
option to include detailed certificate information.
You can add a certificate to the trusted list through the Oracle Enterprise Manager Ops Center’s command line.
Enter add -h| --hostname <EChostname> -u| --username <username>
xvmSh/certificates > add -h sm-37 -u root Enter password for authentication > ******** Untrusted certificate encountered. Create an exception to accept it at each connection? [Display/Yes/No] y Certificate chain added for root@sm-37:11172
Use the -p| --pass <password>
option to add without entering the user password interactively.
Use the -f| -- force
option to add without receiving any confirmation message, useful for scripts where no interaction is possible.
Use the -n| --
port <port_number>
option to add the port number to use.
The collisions mode detects duplicate addresses through the Oracle Enterprise Manager Ops Center’s command line.
This module is about detecting collisions of host IDs and MAC addresses used by logical domains managed by Oracle Enterprise Manager Ops Center. A collision is an occurrence of a duplicated host ID or MAC address used by two or more logical domains.
You can run this command to detect host ID or MAC address collisions of logical domains existing in the Enterprise Controller.
This command also allows you to detect if specific host IDs or MAC addresses collide with host IDs or MAC addresses used by logical domains inside the Enterprise Controller. This functionality is specially useful to prevent collisions before adding logical domains created outside of Enterprise Manager Ops Center. You can either provide a file containing data of the logical domains or provide the host IDs or MAC addresses as part of the command.
Additionally, you can reserve a number of MAC addresses from a specified range. You can use the reserved MAC addresses to assign them to a future logical domain to guarantee it will not collide with another MAC address used inside the Enterprise Controller.
You can list all collisions detected for all existing logical domains
You can filter the list by type of collisions detected for host IDs or MAC addresses.
Enter list -t|--type <all|hostid|macaddres>
xvmSh/collisions > list -t hostid Collision on hostid 84ffb4b4 : Server | Name | UUID | MAC ----------------------------------------------------------------------------------------------------------------- foo.example.com | ldom_guest | a2478fdd-62f8-c4af-afdd-e2d93cc93abb | 00:14:4F:FB:5D:0E foo.example.com | ldom_guest1 | 7db50419-d46d-4351-b7f7-ba7d5f1c76fd | 00:14:4F:FF:B4:B4
You can verify whether host IDs or MAC addresses collide with a host ID or MAC address used by logical domains managed by Enterprise Controlle
You can specify the name of the file containing data of logical domains to check them for possible collisions.
Enter list -t|--type <all|hostid|macaddres> -f|--file <filename>
xvmSh/collisions > list -t hostid -f dumpldoms.txt Collision on hostid 84ffb4b4 : Server | Name | UUID | MAC ---------------------------------------------------------------------------------------------------- foo.example.com | ldom_guest | a2478fdd-62f8-c4af-afdd-e2d93cc93abb | 00:14:4F:FB:5D:0E foo.example.com | guest-inter-collision | 544fe468-90a8-66ce-990f-bb4b79842fa9 | 00:14:4F:FA:2D:E1
You can run the script /opt/sun/n1gc/bin/read_mac
on managed Oracle VM for SPARC control domains to collect their logical domains data. You can send the output of the script to a file and then use that file as part of the -f|--file
option.
You can verify if the specified host IDs or MAC addresses collide with a host ID or MAC address used by logical domains through the Oracle Enterprise Manager Ops Center’s command line.
You can choose to filter the list by type of collisions for either host IDs or MAC addresses.
Verifies if the specified host IDs or MAC addresses collide with a host IDs or MAC addresses used by logical domains inside the Enterprise Controller. This command identifies different levels of collisions:
Severe – For host ID collisions between two or more logical domains.
Warning – For MAC address collisions between two or more vnets of logical domains, including alternate MAC addresses of the vnets.
Info – For MAC address collisions between vnets of logical domains and logical domain MAC addresses.
Enter check -t|--type <hostid|macaddres> -v|--value <values>
xvmSh/collisions > check -t macaddress -v 0:14:4F:FB:5D:0E,00:14:4F:FA:2D:E1 Collision Level - INFO : Server | Name | UUID | MAC ----------------------------------------------------------------------------------------------------------------------------- foo.example.com | ldom_guest | a2478fdd-62f8-c4af-afdd-e2d93cc93abb | 00:14:4F:FB:5D:0E foo.example.com | ldom_guest_2_collision | 3c526eeb-f38c-c169-ed1c-88a0825e7a38 | 00:14:4F:FB:5D:0E
You can reserve a number MAC addresses from a MAC address network range through the Oracle Enterprise Manager Ops Center’s command line.
You can reserve MAC addressed from the manual or automatic range.
Enter allocate -n|--size <number> -r|--range <manual|auto>
xvmSh/collisions > allocate -n 2 -r manual Allocated MAC addresses: MAC Address | -------------------------- 00:14:4F:FD:5C:AD 00:14:4F:FF:05:E5
You can migrate assets from a failed Proxy Controller through the Oracle Enterprise Manager Ops Center’s command line.
Use Controllers mode to evacuate the assets managed by a failed Proxy Controller to other available Proxy Controllers. This mode also allows you to view the available Proxy Controllers that you can use to evacuate the assets.
You can view a list of Proxy Controllers, the Enterprise Controller, and Virtualization Controllers through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
localhost/controllers > list Controller list: Name | UUID |Status | Version | ----------------------------------------------------------------------------- 192.0.2.95-PC | abcd76fd-28be-abcd-8uae-abcd20b780e1 |MAINTENANCE| 12.1.4.2311| 192.0.2.97-PC | abcdcdab-7654-abcd-a781-abcd96791054 | OK | 12.1.4.2311| 192.0.297-EC | abcd2f30-ef67-abcd-ab12-abcd9b6ab671 | OK | 12.1.4.2311| x44-VC | abcde955-1edt-abcd-adi5-abcdgg1e74e6 | OK | 12.1.4.2311|
You can place a Proxy Controller in maintenance mode or remove a Proxy Controller from maintenance mode through the Oracle Enterprise Manager Ops Center’s command line.
Enter set_maintenance
-U| --UUID <proxyuuid> —m on|off
|.
Use the on
option to set the asset in maintenance mode.
Use the off
option to unset the maintenance mode of an asset.
While in maintenance mode, a Proxy Controller continues to manage assets but cannot discover new assets or act as a target for asset migration, and incidents are not generated for the Proxy Controller.
You can move assets from a failed Proxy Controller through the Oracle Enterprise Manager Ops Center’s command line.
You can evacuate the assets managed by a failed Proxy Controller to other available Proxy Controllers. The Proxy Controller to which the assets can be migrated is determined by the networks managed by the available Proxy Controllers and their load.
Enter migrate_assets
-U
| --UUID <proxy_uuid>
.
localhost/controllers > migrate_assets -U h4fm76fd-28be-4892-8uae-4i8b20b780e1
WARNING:
The failed Proxy Controller will be removed after the job launched by this command is finished.
You can perform operations on credentials through the Oracle Enterprise Manager Ops Center’s command line.
Use the Credentials mode to view and manage the driver credentials necessary to discover and manage assets. The credentials also help to establish trust between internal components.
You can view a list of existing driver credentials through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
localhost/credentials > list Driver Credentials: ID | Name | Type | Description | -------------------------------------------------------------- 6850 | admin | SSH | root/admin SSH creds | 6840 | occosIPMI | IPMI | IPMI |
Use the -i| --ids
<credential IDs>
option to give a specific credential ID or a list of credential IDs. IDs must be separated by a comma.
Use the -l|--detail
| option to include detailed credential information.
Use the -a|--assigned
option to include a list of assets that use the credential.
You can modify the values of a driver credential through the Oracle Enterprise Manager Ops Center’s command line.
The modify
command starts a submode with its own set of subcommands.
You can assign a set of credentials to a managed asset, changing their credentials through the Oracle Enterprise Manager Ops Center’s command line.
Enter assign -i|--id credential_id -U|--uuid asset_uuid -g|--gear=assetname -d|--discoverIP IPaddress
to assign a new credential to the specified asset. You specify the asset by either its UUID or its asset name if it is unique. You must also include the IP address that was used to discover the asset. You get this information from the output of the gear.list
command.
You can create credentials to use for access to managed assets through the Oracle Enterprise Manager Ops Center’s command line.
Use one of the following protocol-specific subcommands to create credentials:
create_chap -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_cisco -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_http -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_ipmi -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_jmx -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_ovm_sparc -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_serial_console -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_snmp -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_snmp_v3 -n <name> [-d <description>] -u <user_name> -p <password_file> --authprotocol <MD5/SHA> --privprotocol <DES/AES>
create_ssh -n|--name credentialname -d|--description text -u|--username username -e|--privesc none|role|sudo -r|--roleOrSudo username -o|--port portnumber -p|--passwordfile filename
create_storage -n|--name credentialname -d|--description text -u|--username username -r|--restport portnumber -o|--port portnumber -p|--passwordfile filename
create_telnet -n|--name credentialname -d|--description text -u|--username username -p|--passwordfile filename
create_wmi -n|--name credentialname -d|--description text -u|--username usernamee -p|--passwordfile filename
You can direct deployments through the Oracle Enterprise Manager Ops Center’s command line.
Use Deploy-setup mode to specify a deployment plan and its target. The deployment plan must exist already and the asset must be already a managed asset.
You can perform deploy operations through the Oracle Enterprise Manager Ops Center’s command line.
To run commands that deploy assets, enter the Deploy mode, which redirects you to the Deploy-Setup mode.
Enter deploy
in the CLI prompt.
localhost > deploy localhost/deploy-setup >
You can choose a deployment plan through the Oracle Enterprise Manager Ops Center’s command line.
You must select an existing deployment plan.
Enter plan
<plan name>
Use the -v| --version
option to specify a version of a plan.
localhost/deploy-setup > plan plan-fwp Plan "plan-fwp" selected: version 1, description "None"
You can choose an asset to be a target of a plan through the Oracle Enterprise Manager Ops Center’s command line.
You must identify the asset that are the target of the deployment plan. If multiple assets have the same user-friendly name, you are prompted to select the asset’s UUID.
Enter target
<asset name or public UUID>
You can also add some other options:
Use the -a| --add
option to add assets to current set of targets.
Use the -d| --delete
option to delete assets from the current set of targets.
Use the -g| --gear <asset name>
option to give an asset name or a list of asset names, separated by comma.
Use the -U| --UUID <public UUID>
option to give an asset UUID or a list of asset UUIDs, separated by comma.
Example using an asset's name:
localhost/deploy-setup > target foo.example.com
Example using an asset public UUID:
localhost/deploy-setup > target 53f6e87f-3582-4cda-9c63-9121a3a8beb3
After you specify the plan and target, the mode changes from the deploy-setup mode to the deploy mode. This is reflected at the command prompt as follows:
localhost/deploy>
You can perform deployments through the Oracle Enterprise Manager Ops Center’s command line.
Use Deploy mode to direct deployment plans.
Note:
Examples of Plan Deployment can be found on the Enterprise Controller in /opt/SUNWoccli/doc/examples.
You can view the attributes of the deployment plan or the deployment plan through the Oracle Enterprise Manager Ops Center’s command line.
Enter show plan
.
localhost/deploy > show plan Target: foo.example.com __________________________________________________ Step: Update Firmware __________________________________________________ Associated Profile: { firmwarePackages: [ ILOM-3_0_3_31_a-Sun_Fire_X4600M2 ] dryRun: False subType: Server resetSP: False profileDescription: forceDowngrade: False forceReinstall: False profileName: fwp-profile network: None ip: None }
To view the structure of a plan:
Enter show
.
localhost/deploy > show Step: Update Firmware __________________________________________________ { isDryRun: Dry run? type: boolean firmwarePackages: Firmware Packages type: array of [ type:java.lang.String ] resetSP: Reset SP? type: boolean forceDowngrade: Force Downgrade? type: boolean forceReinstall: Force Reinstall? type: boolean ip: IP Address type: java.lang.String network: Network Information { gateway: Gateway IP Address type: java.lang.String objectName: Object Name type: java.lang.String userFriendlyName: User Friendly Name type: java.lang.String netmask: Network Address Mask type: java.lang.String ip: IP Address type: java.lang.String } }
To view the results of a deployment plan:
Enter show results
.
Example:
localhost/deploy > show results Step: Provision OS Operating-System-1
You can modify the value of the attributes of a deployment plan through the Oracle Enterprise Manager Ops Center’s command line.
Some deployment plans require specific information during the deployment. See Table 1-5 for the names of the attributes you must set before applying the plan.
Table 1-5 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 |
(Optional) Logical domains creation requires the setting of resource plan structures per each logical domain to create. |
Create Solaris Zones |
(Optional) Solaris zones creation requires the setting of resource plan structures per each logical domain zone 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 |
|
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. |
Use the following syntax to set an attribute or list of attributes of a deployment plan:
For simple types:
Enter set "<attribute-name> = <'string-value'>"|<int>|<true|false>
Examples:
localhost/deploy > set "forceReinstall = false" localhost/deploy > set "ip = '192.0.2.23'"
For attributes that are backed by other struct-like value objects, use the following syntax:
Enter set "<attribute-name> = list or nested object"
set "network={gateway='192.0.2.111', userFriendlyName='ip address', ip='192.0.2.4'}"
If you use JavaScript Objet Notation (JSON) format, use the following syntax:
set "{'resourcePlans':[{'hostName':'myhostname','networks':[{'networkBindings':[{'ipAddress':'192.0.2.1'}]}]}]}"
Or
set "resourcePlans=[{hostName='myhostname',networks=[{networkBindings=[{ipAddress='192.0.2.1'}]}]}]"
Or
set "<json-string> "
For deployment plans on multiple targets that require unique values for each target, use the set
command as follows:
localhost/deploy > set "@<target-uuid or dynamic-target>:<key>=<'string-value'>"|<int>|<true|false>|list of nested objects" set "<@target-uuid or dynamic-target>:<json-string>"
Example:
localhost/deploy > set @<target-UUID>:"network={gateway='192.0.2.1', userFriendlyName='ip address', ip='192.0.2.4'}"
You can add attributes to a deployment plan through the Oracle Enterprise Manager Ops Center’s command line.
The syntax for adding attributes is similar to the syntax for setting attributes. However, for arrays, the add
command appends an element to the array while the set
command modifies the attribute of an existing element within the array.
Use the following syntax to add attributes to a deployment plan:
For simple types:
Enter add "<attribute-name> = {<'string-value'>"|<int>|<true|false>}
Examples:
localhost/deploy > add "forceReinstall = false" localhost/deploy > add "ip = '192.0.2.23'"
For attributes that are backed by other struct-like value objects, use the following syntax:
Enter add "<attribute-name> = list or nested object"
localhost/deploy > add "network={gateway='192.0.2.1', userFriendlyName='ip address', ip='192.0.2.4'}"
If you use JavaScript Objet Notation (JSON) format, use the following syntax:
"{'resourcePlans':[{'hostName':'myhostname','networks':[{'networkBindings':[{'ipAddress':'192.0.2.1'}]}]}]}"
Or
add "resourcePlans=[{hostName='myhostname',networks=[{networkBindings=[{ipAddress='192.0.2.1'}]}]}]"
Or
add "<json-string> "
For deployment plans on multiple targets that require unique values for each target, use the set
command as follows:
add "@<target-uuid or dynamic-target>:<key>=<'string-value'>"|<int>|<true|false>|list of nested objects" add "<@target-uuid or dynamic-target>:<json-string>"
Example:
localhost/deploy > add @<target-UUID>:"network={gateway='192.0.2.1', userFriendlyName='ip address', ip='192.0.2.2'}"
You can test a new development plan using the Oracle Enterprise Manager Ops Center’s command line.
To test a deployment plan, use the dryrun
command to create the tasks without committing the job, this ensures no errors with data.
To dry run a deployment plan:
Enter dryrun.
localhost/deploy > dryrun
You can apply a deployment plan to an asset through the Oracle Enterprise Manager Ops Center’s command line.
To execute a deployment plan, set the attributes if required and then apply the plan. Some deployment plans need to have their attributes set before applying the plan.
Enter apply
.
localhost/deploy > apply
You can discover assets through the Oracle Enterprise Manager Ops Center’s command line.
Use Discover mode to set up and run discovery jobs. You can create a discovery job or use a discovery profile to discover an asset. You can also execute an existing discovery profile.
You can discover assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter discover
in the CLI prompt.
localhost > discover localhost/discover >
Discover assets through the Oracle Enterprise Manager Ops Center’s command line.
The create submode is used to create and launch new discovery jobs. This submode has its own set of commands.
Enter create
.
localhost/discover > create localhost/discover/create >
Set the type of discovery job, for example, OS, ILOM, ALOM.
You can discover an operating system through the Oracle Enterprise Manager Ops Center’s command line.
You can discover the service processor and its operating system through the Oracle Enterprise Manager Ops Center’s command line.
ILOM is the service processor used in some Oracle Sun servers. An ILOM discovery also discovers operating systems.
You can discover a service processor and its operating system through the Oracle Enterprise Manager Ops Center’s command line.
ALOM is the service processor used in some Oracle Sun servers. An ALOM discovery also discovers operating systems and systems with ILOM service processors.
You can list all discovery profiles through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_profiles
.
Use the -i| --ids
< profile IDs>
option to give a specific discovery profile ID or a list of discovery profile IDs. IDs must be separated by a comma.
You can list all the existing discovery ranges that discover systems through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_ranges
.
Use the -i| --ids
<range IDs>
option to give a specific discovery range ID or a list of discovery ranges IDs. IDs must be separated by a comma.
You can list all driver credentials used to discover systems through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_credentials
.
Use the -i| --ids
<credential IDs>
option to give a specific driver credential ID or a list of driver credentials IDs. IDs must be separated by a comma.
You can list all driver credentials for a discovery profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_profile_credentials
-i| --id <discovery profile iD>
.
You can list the IP ranges specified in a discovery profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_profile_ranges
-i| --id <discovery profile iD>
.
You can list all networks available to discover systems through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_networks
.
You can execute a profile to discover assets that comply with the profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter execute
-i| --id <discovery profile id> -t| --targets <target friendly names>
.
Use -i| --id <ID>
to execute the discovery profile with ID <ID>
.
Use -t| --targets <target friendly names>
to give a list of target friendly names. Target names must be separated by a comma.
Use the -n| --networkuuid <network UUID>
option to give a network UUID.
Use the -c| --credentials <discovery credentials IDs>
option to give a specific discovery credential ID or a list of discovery credential IDs. IDs must be separated by a comma.
Use the -m| --management <management credential ID>
option to give a management credential ID.
Use the -p| --proxy <proxyID>
option to direct the discovery to targets managed by the specified Proxy Controller. Requires the -r| --range
option.
Use the -s| --serviceTag <servicetag credential ID>
option to give a service tag credential ID.
Use the -a| --agentLess
option to set agentless deployment on.
Use the -r| --ranges <discovery ranges IDs>
option to give a list of discovery ranges IDs. IDs must be separated by a comma.
You can perform operations on firmware images through the Oracle Enterprise Manager Ops Center’s command line.
Use Fwimage mode to view and delete firmware images.
You can perform operations on firmware images through the Oracle Enterprise Manager Ops Center’s command line.
Enter fwimage
in the CLI prompt.
localhost > fwimage localhost/fwimage >
You can view a list of available firmware images through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
Use the -l| --detail
option to display a detailed list.
You can create a firmware image through the Oracle Enterprise Manager Ops Center’s command line.
You can update an existing firmware image through the Oracle Enterprise Manager Ops Center’s command line.
Enter update
-i| --image <image name>
.
The image update submode is launched.
Enter the new criteria for the image using the set
command.
Enter set version=<version>
to set the firmware version.
Enter set type=<type>
to set the firmware type.
Enter commit
to update the firmware image.
localhost/fwimage > update -i myimage localhost/fwimage/update > set version=1.1 localhost/fwimage/update > set type=ALOM-CMT localhost/fwimage/update > commit Firmware image updated successfully
You can perform operations on firmware profiles through the Oracle Enterprise Manager Ops Center’s command line.
Use Fwprofile mode to view and delete firmware profiles.
You can perform operations on firmware profiles through the Oracle Enterprise Manager Ops Center’s command line.
Enter fwprofile
in the CLI prompt.
localhost > fwprofile localhost/fwprofile >
You can view the existing firmware profiles through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
Use the -l| --detail
option to display a detailed list.
A list of firmware profiles is displayed.
You can check the status of a firmware profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter status
-p| --profile <profile name>
.
The firmware profile status is displayed.
You can create a firmware profile using one or more firmware images through the Oracle Enterprise Manager Ops Center’s command line.
Enter create
-p| --profile <firmware profile name> -i| --images <list of images separated by comma>
.
Use the -d| --description <description>
option to add a description to the profile.
Use the -r| --reinstall
option to force a reinstall when provisioning the firmware.
Use the -g| --downgrade
option to force a downgrade when provisioning the firmware.
The firmware profile is created.
You can update an existing firmware profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter update
-p| --profile <firmware profile name> -i | --images <list of images separated by comma>
.
Use the -d| --description <description>
option to add a description to the profile.
Use the -r| --reinstall
option to force a reinstall when provisioning the firmware.
Use the -g| --downgrade
option to force a downgrade when provisioning the firmware.
The firmware profile is updated.
The gear mode manages assets through the Oracle Enterprise Manager Ops Center’s command line.
Use gear mode to view and manage all assets, including operating systems, hardware, and chassis. Although the term for objects that the Enterprise Manager Ops Center software manages is asset, the CLI uses the term gear.
You can perform operations on managed assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter gear
in the CLI prompt.
localhost > gear localhost/gear >
You can list the assets managed by Oracle Enterprise Manager Ops Center through its command line.
Enter list
. The list of assets is filtered by the roles assigned to the user account.
localhost/gear > list Registered Gear: UFN |Manage state|Description |Asset Type| UUID | Maintenance| ------------------------------------------------------------------------------- v64v| MANAGED |192.0.2.14 | Server |abcde-fc-8b-91-abcd51d|NO_MAINTENANCE c4pr| MANAGED |192.0.2.26 | Server |abcde-dc-43-82-abcd86d|NO_MAINTENANCE
Use the -l
| --detail
option to show asset details.
Example
localhost/gear > list -l -d Registered Gear: ------------------------------------------------------------------------------- Name : v64v Description : 192.0.2.14 Managed State : MANAGED Status : OK Lock Info : None Is a Zone : False Public UUID : abcde-fc-8b-91-dd2651d Asset Type : Server IPs which were used to discover gear : 192.168.10.10 Name : c4pr Description : 192.0.2.26 Managed State : MANAGED Status : OK Lock Info : None Is a Zone : False Public UUID : 5a544-dc-43-82-ef8886d Asset Type : Server IPs which were used to discover gear : 192.168.10.10
Use the f| --filter <filter term>
option to filter the assets list.
Example
localhost/gear > list --filter v64v Registered Gear: UFN | Manage state | Description | Asset Type | UUID ------------------------------------------------------------------------------- v64v | MANAGED | 192.0.2.14 | Server | 6fdg9-fc-8b-91-dd2651
You can update the name of any asset, including the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
You can also update an asset's description and associated tags.
Enter update
-g| --gear <asset name>
.
Use the -U| --UUID
<UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when several assets have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use the -n| --name
<new name>
option to give the asset a new name.
Use the -d| --description <description>
option to update the asset's description.
Use the -t| --tags <space-separated list of tags>
option to update the asset's legacy tags.
Use the -s| --semantictags <space-separated list of tags>
option to update the asset's semantic tags.
You can view current and historical jobs associated with an OS, server, or chassis through the Oracle Enterprise Manager Ops Center’s command line.
Enter show_jobs
-g| --gear <asset name>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when several assets have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can manage discovered assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter manage
-g| --gear <asset name> -u| --user <user name with access to asset> -p| --password <user's password>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when several assets have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use the -t| --type <type>
option to give the asset type. This is useful when several assets have the same name.
You can unmanage a managed asset, removing the asset from the managed asset list and removing any agent through the Oracle Enterprise Manager Ops Center’s command line.
Enter unmanage
-g| --gear <asset name>
-u| --user <user name with access to asset> -p| --password <user's password>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when several assets have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use the -t| --type <type>
option to give the asset type. This is useful when several assets have the same name.
You can place an asset in maintenance mode or remove an asset from maintenance mode through the Oracle Enterprise Manager Ops Center’s command line.
Enter set_maintenance
-g| --gear <asset name> on
|.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when several assets have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use the on
option to place the asset in maintenance mode.
Use the off
option to remove the asset from maintenance mode.
You can delete assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter delete
-g| --gear <asset name>
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when several assets have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use the -f| --force
option to force the operation.
You can reinstall an agent on one or more managed operating systems through the Oracle Enterprise Manager Ops Center’s command line.
Enter reinstall_agent
-g| --gear <comma-separated asset list> -v| --version <Agent version to install> -u| --user <user name> -p| --password <password>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can reboot a managed operating system through the Oracle Enterprise Manager Ops Center’s command line.
Enter reboot
-g| --gear <OS asset name>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can update firmware on one or more systems using an existing firmware profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter apply_firmware
-g| --gear <comma-separated asset list> -p| --profile <firmware profile>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can compare the firmware for a list of assets to a firmware profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter fwprofile_compliance
-g| --gear <comma-separated asset list> -p| --profile <firmware profile>
.
You can provision a new operating system onto a managed system through the Oracle Enterprise Manager Ops Center’s command line.
The provision_os
command starts a submode with its own set of subcommands.
You can activate or deactivate lights on a physical asset through the Oracle Enterprise Manager Ops Center’s command line.
Enter set
-g| --gear <asset name> -l| --locator <on|off>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can enable or disable notifications for a specific OS, server, or chassis through the Oracle Enterprise Manager Ops Center’s command line.
Enter set
-g| --gear <asset name> -n| --notifications <on|off>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can deactivate a server or a chassis through the Oracle Enterprise Manager Ops Center’s command line.
Enter poweroff
-g| --gear <asset name>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use the -f| --force
option to force the server or chassis to power off.
You can activate a server or a chassis through the Oracle Enterprise Manager Ops Center’s command line.
Enter poweron
-g| --gear <asset name>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can reset a managed server or chassis through the Oracle Enterprise Manager Ops Center’s command line.
Enter reset
-g| --gear <server or chassis name>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
Use -n| --netboot
to cause each server to do a netboot instead of booting from disk.
Use the -f| --force
option to force the server or chassis to power off.
You can power off a service processor and then power it on through the Oracle Enterprise Manager Ops Center’s command line.
The -r|--refresh
option also re-probes the service processor, including scanning the service tag.
Enter resetsp -g|--gear
assetname
[-U|--UUID
assetuuid
]
[--attributes=
attributelist
]
[-r|--refresh]
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can refresh the data for a server through the Oracle Enterprise Manager Ops Center’s command line.
Enter refresh
-g| --gear <server name>
.
Use the -U| --UUID <UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
Use the --attributes
<attribute list>
option to give a list of asset attributes instead of the asset name. This is useful when assets might have the same name. The asset attributes that can be used are the type
, UUID
, UFN
, and ip
. Attributes must be separated by a comma. The type
attribute must be os
, server
or chassis
, and the ip
attribute must be a valid IPv4 address.
Examples:
--attributes=ip=192.0.2.1,type='server' --attributes=type='server',UFN='foo'
You can upgrade the Agent Controller on one or more assets through the Oracle Enterprise Manager Ops Center’s command line.
Upgrading the Agent Controller on an Asset
Enter upgrade_agent [-g|--gear assetname |[-U|--UUID assetuuid |[--attributes=attributelist
] to upgrade the agent controller on the specified asset. You can specify the asset by name, by UUID, or by matching the specified attributes. Be sure that all the members of a hierarchy are upgraded. For example, if you upgrade a non-global zone, make sure that the agent on its parent global zone is upgraded first.
Upgrading the Agent Controller on All Assets
Enterupgrade_all_agents [-n|--nb_jobs jobnumber] [-s|--simulate]
to identify all assets that need to be upgraded and submit a job for each operation. You can limit the number of jobs that run simultaneously. You can simulate the operation of this command before you use it. This command follows the hierarchy of assets so, for example, a global zone is upgraded before any of its non-global zones and, if an upgrade of a global zone fails, none of its non-global zone are upgraded. At the end of the operation, any asset that could not be upgraded is listed.You can perform operations on groups through the Oracle Enterprise Manager Ops Center’s command line.
Use Groups mode to view and manage groups.
You can perform operations on groups of assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter groups
in the CLI prompt.
localhost > groups localhost/groups >
You can view the list of groups through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
Use the -l| --detail
option to view a list showing group details.
Use the -b| --brief
option to limit the output to group names.
You can view the assets that are members of a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_members
-g| --group <group name>.
You can view the groups to which an asset belongs through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_membership
-n| --gear <asset name>.
Use the -U| --uuid
<UUID>
option to give the asset public UUID instead of the asset name. This is useful when assets might have the same name.
You can create a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter create
-g| --group <group> -d| --description <description> -p| --parent <parent group>
.
The parent group must already exist.
You can change the name, description, and parent group of a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter update
-g| --group <group>
.
Use the -n| --name <new name>
option to rename the group.
Use the -d| --description <new description>
option to give the group a new description.
Use the -p| --parent <new description>
option to give the group a new parent group.
You can add an asset to a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter attach
-n| --gear <asset name> -g| --group <group>
.
Use the -U| --uuid
<UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
You can remove an asset from a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter detach
-n| --gear <asset name> -g| --group <group>
.
Use the -U| --uuid
<UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
You can move an asset from one group to another group through the Oracle Enterprise Manager Ops Center’s command line.
Enter move
-n| --gear <name of gear> -f| --from_group <current group> -g| --group <destination group>
.
Use the -U| --uuid
<UUID>
option to give the asset public UUID instead of the asset name. This is useful when several assets have the same name.
You can delete a group through the Oracle Enterprise Manager Ops Center’s command line.
Deleting a group does not delete the assets within the group.
Enter delete
-g| --group <group>
.
Use the -c| --child
option to indicate if sub-groups under the specified group must be also deleted.
You can power on assets in a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter poweron
-g| --group <group name>
.
Use the -n| --netboot
option to cause each server to do a netboot instead of booting from disk.
Deactivated hardware within the group is powered on.
You can power off assets in a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter poweroff
-g| --group <group name>
.
Use the -f | --force
option to force the hardware to power off.
Activated hardware within the group is powered off.
You can reset servers in a group through the Oracle Enterprise Manager Ops Center’s command line.
Enter reset
-g| --group <group>
Use the -f| --force
option to force the operation.
Use the -n| --netboot
option to cause each server to do a netboot instead of booting from disk.
You can perform operations on logical domains and non-global zones through the Oracle Enterprise Manager Ops Center’s command line.
Use Guest mode to manage Oracle VM Server for SPARC logical domains and Oracle zones, including kernel zones.
You can perform operations on logical domains and non-global zones through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to guest mode to run guest
commands.
Enter guest
in the CLI prompt.
localhost > guest
localhost/guest >
You can display information about a specific guest through the Oracle Enterprise Manager Ops Center’s command line.
To get the UUID of a guest, use the virtualiztion
mode's list_guests
command.
Enter info
with the UUID of the specific guest.
EnterpriseController/guest > info -U uuid
You can manage the state of a logical domain or non-global zone through the Oracle Enterprise Manager Ops Center’s command line.
The following commands control how a guest is stopped and started:
halt -U|--UUID uuid restart -U|--UUID uuid shutdown -U|--UUID uuid start -U|--UUID uuid
You can perform operations on incidents through the Oracle Enterprise Manager Ops Center’s command line.
Use Incidents mode to view and manage existing incidents.
You can manage incidents through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to incidents mode to run incidents commands.
Enter incidents
in the CLI prompt.
localhost > incidents localhost/incidents >
You can view a list of existing incidents through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
Use the -e| --emitter
option to add to the display the name and the UUID of the asset that is generating the incident.
Use the -l| --detail
option to display detailed incidents information.
Use the -s| --state <state>
option to filter incidents by <state>
.
Use the -u| --user <owner>
to filter incidents by <owner>
.
You can view details of the existing incidents or a specific incident through the Oracle Enterprise Manager Ops Center’s command line.
Enter show
-i| --incidents <incident ID or comma-separated incident IDs list>.
Use the -l| --detail
option to display detailed incidents information.
You can view the alerts associated with one or more incidents through the Oracle Enterprise Manager Ops Center’s command line.
Enter show_alerts
-i| --incidents <incident ID or comma-separated incident IDs list>.
Use the -l| --detail
option to display detailed incidents information.
You can indicate that you are investigating one or more incidents through the Oracle Enterprise Manager Ops Center’s command line.
Enter acknowledge
-i| --incidents <comma-separated incident IDs list>
Use the -n| --note <note>
option to add a note.
You can add an annotation to one or more incidents through the Oracle Enterprise Manager Ops Center’s command line.
Enter annotate
-i| --incidents <comma-sepatared incident IDs list>
Use the -t| --type <annotation type>
option to specify an annotation type. Annotation types are comment
or suggested_action
.
Use the -s| --synopsis <synopsis>
option to specify an annotation synopsis.
Use the -n| --note <note>
option to add a note.
You can assign one or more incidents to a user through the Oracle Enterprise Manager Ops Center’s command line.
Enter assign
-i| --incidents <comma-separated incident IDs list> -u| --user <user>
.
Use the -n| --note <note>
option to add a note.
You can close one or more incident through the Oracle Enterprise Manager Ops Center’s command line.
Enter close
-i| --incidents <comma-separated incident IDs list>
.
Use the -d| --disable-delay <disable delay>
option to disable the incident monitoring conditions, and reactivate the monitors after <disable delay>
minutes.
Use the -n| --note <note>
option to add a note.
You can perform operations on jobs through the Oracle Enterprise Manager Ops Center’s command line.
Use the jobs mode to view existing jobs.
You can perform operations on jobs through the Oracle Enterprise Manager Ops Center’s command line.
You must change to jobs mode to run job commands.
Enter jobs
in the CLI prompt.
localhost > jobs localhost/jobs >
You can view a list of jobs through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
The list of current and historical jobs is displayed.
localhost/jobs > list Job ID Status Owner Job Type ------------------------------------------------------------------------------- amritsar.5 SUCCESS root UpdateGearJob amritsar.4 SUCCESS root DeleteAssetJob amritsar.3 SUCCESS root AgentProvisioningJob amritsar.2 SUCCESS root AgentProvisioningJob amritsar.1 PARTIALLYSUCCESSFUL root DeleteAssetJob
Use the -l| --detail
option to view detailed job information.
Use the -f| --filter <term>
option to filter the job list.
Use the -o| --owner <job_owner>
option to list jobs owned by job_owner.
Use the -s| --status <job_status>
option to list jobs with status job_status.
Use the -t| --type <job_type>
option to list jobs with job type job_type.
Use the -x| --id <job_id>
option to list jobs with job id job_id.
Use the -m| --matchAll
option to list jobs that match all of the criteria indicated; default is for any search criteria to match.
Use the -r| --runid <run ID>
option to retrieve information of a job with a specific runID.
Use the -C| --limit
<limit> option to limit the number of jobs returned.
Use the -A| --ascend
option to sort results ascending; default is descending.
Use the -R| --onlyrunningtasks
option to exclude completed jobs; default lists all tasks.
Use the -S| --sort <job_attribute>
option to sort results on <job_attribute>; default is to sort on job id.
Use the -T
option to list jobs that match the case.
Use the -L| --nologdetails
option to not include log details in detailed listing of jobs.
You can run an previous job using its job ID through the Oracle Enterprise Manager Ops Center’s command line.
Enter run
-x| --id <Job ID>
.
Use the --simulate
option to run the job in simulation mode.
You can re-run a partially successful job on its failed targets through the Oracle Enterprise Manager Ops Center’s command line.
Enter rerun_on_failed
-x| --id <Job ID>
.
You can delete some jobs through the Oracle Enterprise Manager Ops Center’s command line.
Deleting a job removes the job information from Oracle Enterprise Manager Ops Center. You can only delete jobs that are stopped or completed.
Enter delete
-x| --id <Job ID>
.
You can perform monitoring operations through the Oracle Enterprise Manager Ops Center’s command line.
Use Monitoring mode to manage asset monitoring services.
You can perform operations on alerts through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to monitoring mode to run monitoring commands.
Enter monitoring
in the CLI prompt.
localhost > monitoring localhost/monitoring >
You can check whether an asset is being monitored through the Oracle Enterprise Manager Ops Center’s command line.
You can display the enabled state for an asset’s monitoring rules.
Enter list
.
The enabled state is displayed with a value of true or false.
Parameters: Name | Value | ---------------------- Enabled | True
You can enable monitoring rules on all assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter enable
.
You can perform operations on networks through the Oracle Enterprise Manager Ops Center’s command line.
Use Networks mode to view the list of managed networks.
You can perform operations on networks through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to networks mode to run networks commands.
Enter networks in the CLI prompt.
localhost > networks localhost/networks >
You can view the list of managed networks through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
A simplified list of managed networks is displayed.
Available networks: Name | UUID | CIDR ------------------------------------------------------- 192.0.2.0/24.1 | 0123-4567-b730-abcdef | 192.0.2.0/24
Use the -l| --detail
option to display a detailed list.
Available networks: Name | UUID | CIDR | VLAN id | Physical | Default GW ------------------------------------------------------------------------------ 192.0.2.0/24.1 | 0123-4567-b730-abcdef | 192.0.2.0/24 | -1 | True | 192.0.2.1
You can perform operations on notifications through the Oracle Enterprise Manager Ops Center’s command line.
Use Notifications mode to view notifications.
You can perform operatons on notifications through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to notifications mode to run notifications commands.
Enter notifications
in the CLI prompt.
localhost > notifications localhost/notifications >
You can view all current notifications through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
A list of notifications is displayed.
localhost/notifications > list ID Severity Type Message ------------------------------------------------------------------------------- 1 MEDIUM INFO Enterprise Controller registered with Sun. (70002) 2 MEDIUM INFO Proxy Controller proxyone (192.0.2.185) has b... 3 MEDIUM INFO Proxy Controller proxytwo (192.0.2.218) has b...
Use the -l| --detail
option to display a detailed list.
Use the -f| --filter <filter term>
option to filter the notifications.
Use the -s| --severity <severity>
option to display only notifications of given severity [HIGH|MEDIUM|LOW
].
Use the -c| --count <max>
option to specify a maximum count of notifications to display.
Use the -u| --username <user>
option to display only notifications belonging to a user.
Use the -i| --notification_id <ID>
option to display notifications of a specific ID.
Use the -r| --status <status>
option to display only notifications according to their status [READ|UNREAD
]. Default is to display both.
You can delete a notification using its ID number through the Oracle Enterprise Manager Ops Center’s command line.
Enter delete
-i| notification_id <notification ID number>
.
localhost > delete -i 43 Successfully deleted notification
Use the -u| --username <user>
option to delete notifications belonging to a user.
You can perform operations on operating system images through the Oracle Enterprise Manager Ops Center’s command line.
Use the Osimage mode to view and manage OS images.
You can perform operations on OS images through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to OS image mode to run OS image commands.
Enter osimage
in the CLI prompt.
localhost > osimage localhost/osimage >
You can view OS images through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
Use the -l| --detail
option to view a detailed list.
You can import an OS image through the Oracle Enterprise Manager Ops Center’s command line.
The OS image must be located to the Enterprise Controller's local file system.
Enter import
-f| --filename <image file name and location> -d| --description <description> -n| --name <image name>
.
localhost/osimage > import -f folder/location/image.iso -d Solaris 10 -n Solaris 10 JobId = EnterpriseController.47
You can perform operation on profiles that deploy operating systems through the Oracle Enterprise Manager Ops Center’s command line.
Use the Osprofile mode to view, import, and export operating system profiles.
You can perform operations on profiles for operating systems through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to OS profile mode to run OS profile commands.
Enter osprofile
in the CLI prompt.
localhost > osprofile localhost/osprofile >
You can view OS profiles through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
Use the -l| --detail
option to view a detailed list.
localhost/osprofile > list Profile Name: sles10Jeff1 Description: sles10Jeff1 Distro Name: sles10 OS Version: SUSE-Linux-Enterprise-Server-SP2-10.2-0 Platform: x86
You can import a JET template through the Oracle Enterprise Manager Ops Center’s command line.
Enter import_jet_template
-p| --profile <profile name> -i| --image <OS image> -t| --template_path <local template path>
.
You can import an OS profile file through the Oracle Enterprise Manager Ops Center’s command line.
If you are importing a profile that you have previously exported, change the Name
and Payload_Name
attributes before you import the profile.
Enter import
-f| --file <profile name>
You can export an OS profile to a designated file through the Oracle Enterprise Manager Ops Center’s command line.
Enter export
-p| --profile <profile name> -f| --file <file name.prof>.
You can make a new profile by copying an existing profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter clone
-p| --profile <original profile name> -n| --name <new profile name>
.
You can perform operations on plans through the Oracle Enterprise Manager Ops Center’s command line.
Use Plan mode to view and delete deployment plans.
You can perform operations on deployment plans through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to plan mode to run plan commands.
Enter plan
in the CLI prompt.
localhost > plan localhost/plan >
You can display a list of plans through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
EnterpriseController/plan > list
ID | Name | Description
-------------------------------------------------------------------------------
2951|Oracle Solaris 11.2 x86-11.5.0-OracleSolarisSmallServer|Created by profile
You can perform operations on reports through the Oracle Enterprise Manager Ops Center’s command line.
Use Reports mode to view the collection of samples called partitions, delete a partition, apply the rollup and cleanup processes to a partition, and rever the rollup process.
You can perform operations on reports through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to reports mode to run report commands.
Enter reports
in the CLI prompt.
localhost > reports localhost/reports >
You can view the current status of the reporting service through the Oracle Enterprise Manager Ops Center’s command line.
Enter show
.
You can start the reporting service without restarting the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter start
.
You can stop the reporting service without stopping the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter stop
.
You can view a list of all the partitions managed by the reporting service through the Oracle Enterprise Manager Ops Center’s command line.
A partition is the collection of all samples compiled during one day between 12:00 a.m. and 11:59:59 p.m.
Enter list
.
You can view detailed information about a partition through the Oracle Enterprise Manager Ops Center’s command line.
You can view a partition’s state, and the number of daily, hourly, weekly, monthly, or stats samples.
Enter partition
-p| --id <partition ID>
.
Use the -s| --state
option to display the partition's state.
Use the -k| --hourly
option to display the number of hourly samples.
Use the -d| --daily
option to display the number of daily samples.
Use the -w| --weekly
option to display the number of weekly samples.
Use the -m| --monthly
option to display the number of monthly samples.
Use the -t| --stats
option to display the number of stats samples.
Use the -f| --full
option to display all the information about a partition.
You can view a list of assets with at least one sample in a specific partition through the Oracle Enterprise Manager Ops Center’s command line.
Enter urns
-p| --id <partition ID>
Use the -u| --urn <urn name>
option to specify the asset for which the list of attributes is requested. An urn name is an object name. If no urn name is given, the list of urns that have at least one sample in the partition is shown. This list includes the number of samples for each urn.
Use the -q| --quiet
to avoid displaying warning messages.
You can check the partitions to determine if a conversion is necessary through the Oracle Enterprise Manager Ops Center’s command line.
Enter check
.
You can convert samples of a partition to a new format through the Oracle Enterprise Manager Ops Center’s command line.
Enter convert
.
Use the -p| --id <partition ID>
option to specify a partition.
Use the -n| --n <number of samples>
option to specify the number of samples.
Use the -q| --quiet
to avoid displaying warning messages.
You can purge the old format partition samples through the Oracle Enterprise Manager Ops Center’s command line.
Enter purge
.
Use the -p| --id <partition ID>
option to specify a partition.
Use the -n| --n <number of samples>
option to specify the number of samples.
Use the -q| --quiet
to avoid displaying warning messages.
You can get the current average of samples in a partition and remove old samples through the Oracle Enterprise Manager Ops Center’s command line.
You can enable automatic rollup to calculate an average of samples, and cleanup to remove old samples in a partition.
Enter enable
.
You can disable automatic rollup and cleanup in a partition through the Oracle Enterprise Manager Ops Center’s command line.
Enter disable
.
You can start the rollup process manually for a specific partition through the Oracle Enterprise Manager Ops Center’s command line.
The rollup process calculates the average of samples in a partition, it is started every hour, and operates on one partition at a time. To use this command, the automatic rollup should be disabled. For more information about how to disable the automatic rollup process, see Disabling Automatic Rollup and Cleanup.
Enter rollup
.
Use the -p| --id <partition ID>
option to specify a partition. If no partition is given, the reporting service automatically selects the oldest partition that has not been rolled up.
Use the -t| --t <milliseconds>
option to specify a pause time in milliseconds.
Use the -q| --quiet
to avoid displaying warning messages.
You can start the cleanup process manually through the Oracle Enterprise Manager Ops Center’s command line.
The cleanup process removes old samples. This process is started every hour, and it removes only the partitions that are previously rolled-up. For more information about how to roll-up a partition, see Starting Manual Rollup.
Enter cleanup
.
Use the -t| --t <milliseconds>
option to specify a pause time in milliseconds.
Use the -q| --quiet
to avoid displaying warning messages.
You can view detailed information about the rollup and cleanup processes through the Oracle Enterprise Manager Ops Center’s command line.
Enter info
.
You can view the statistics for the rollup and cleanup processes through the Oracle Enterprise Manager Ops Center’s command line.
Enter stats
.
You can reset the statistics related to the rollup and cleanup processes through the Oracle Enterprise Manager Ops Center’s command line.
The counters and gauges are reset.
Enter reset_stats
.
You can set the pause time used for the rollup and cleanup processes through the Oracle Enterprise Manager Ops Center’s command line.
This value is set in milliseconds. The default value is 1000 milliseconds.
Enter pause
-t| --t <milliseconds>
.
You can revert the effects of a partition through the Oracle Enterprise Manager Ops Center’s command line.
You can reset a specific partition to revert the effects of a rollup that has been previously applied.
Enter reset
-p| --id <partition ID>
.
Use the -t| --t <milliseconds>
option to specify a pause time in milliseconds.
Use the -q| --quiet
to avoid displaying warning messages.
You can perform security operations through the Oracle Enterprise Manager Ops Center’s command line.
Use the Security mode to manage the certificates that enable the communication between the Enterprise Controller and Proxy Controllers and between a Proxy Controller and its assets. This mode consists of subcommands that manage the authorizations between components of the architecture:
Subcommands ending with _proxy
control certificates in the communication between the Enterprise Controller and the specified Proxy Controller.
Subcommands ending with _asset
control certificates in the communication between a Proxy Controller and a physical or virtual asset.
You can perform security operations through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to security mode to run security commands.
Enter security
in the CLI prompt.
localhost > security localhost/security >
You can view information about the certificates used by the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_proxy
.
You can view information about the certificates used by a specific Proxy Controller to communicate with its assets.
Enter list_asset -p <proxyID>
.
You can view information a certificate, including how long before it expires, through the Oracle Enterprise Manager Ops Center’s command line.
Enter check_proxy
.
Enter check_asset -p <proxyID>
.
You can renew certificates through the Oracle Enterprise Manager Ops Center’s command line.
You must update certificates before they expire. You can update credentials for more than one asset or Proxy Controller at a time.
Enter push_asset -k
keystore
-p
proxyID
[-w
keystore_password
]
[-a
assetname
] [-n
number
].
Enter push_proxy -k
keystore
-p
proxyID
[-w
keystore_password
]
[-n
number
].
You can delete unused certificates through the Oracle Enterprise Manager Ops Center’s command line.
Enter remove_asset -s
serialnumber
[-p
proxyID
]
[-a
assetname
] [-n
number
] [-i
issuer
] [-l
alias
].
Enter remove_proxy -s
serialnumber
[-p [
proxyID
]
[-n
number
] [-i
issuer
] [-l
alias
].
You can perform operations on server pools through the Oracle Enterprise Manager Ops Center’s command line.
Use the Serverpools mode to view the existing server pools, and to list and remove a member from a server pool.
You can perform operations on server pools through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to serverpools mode to run server pool commands.
Enter serverpools
in the CLI prompt.
localhost > serverpools localhost/serverpools >
You can view a list of existing server pools through the Oracle Enterprise Manager Ops Center’s command line.
Enter list
.
You can view the members of a server pool through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_members
-U| --UUID <Server Pool UUID>
.
Use the -l|--detail
option to include detailed credential information.
You can remove a member or a list of members from a server pool through the Oracle Enterprise Manager Ops Center’s command line.
Enter remove_members
-U| --UUID <Server Pool UUID> -M| --members <Server UUID>
.
Use the -f|--force
option to force the server removal from the server pool.
You can view statistics about the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Stats mode reports:
Percentage of memory used
Free memory (MB)
Average load (15 minutes)
CPU utilization percentage
You can display statistics through the Oracle Enterprise Manager Ops Center’s command line.
You must switch to stats mode to run stats commands.
Enter stats
in the CLI prompt.
localhost > stats localhost/stats >
You can view statistics about the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter show
.
Name Used Mem % Free Mem (MB) Avg Load 15min CPU Util % ------------------------------------------------------------------------------- EnterpriseController 34.28 6646 1.74 75.00 EnterpriseController 34.28 6646 1.74 75.00 EnterpriseController 34.28 6646 1.74 75.00
Use the -i| --interval <interval>
option to specify a repeat interval in seconds.
You can perform update operations through the Oracle Enterprise Manager Ops Center’s command line.
Use the Update mode to view and manage policies, profiles, and snapshots for OS updates.
You can perform update operations through the Oracle Enterprise Manager Ops Center’s command line.
You must change to update mode to run these commands.
Enter update
in the CLI prompt.
localhost > update localhost/update >
You can view the available OS update policies through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_policies
.
Use the -l| --detail
option to display a detailed list.
Use the -p| --policyname <profile_name>
option to display policies with a specific policy name.
You can view the available OS update profiles through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_profiles
.
Use the -l| --detail
option to display a detailed list.
Use the -p| --profilename <profile name>
option to display profiles with a specific profile name.
You can view the available distributions through the Oracle Enterprise Manager Ops Center’s command line.
By default, this command shows only active distributions.
Enter list_distros
.
Use the -a| --all
option to display inactive and active distributions.
You can view the snapshots for a specific asset through the Oracle Enterprise Manager Ops Center’s command line.
Enter list_snapshots
-g| --gear <asset name>
.
You can search an OS asset or all assets for inventory whose name matches a search string through the Oracle Enterprise Manager Ops Center’s command line.
The search string must be a regular expression. For a summary of regular expression constructs, visit http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
.
Enter search_inventory
-s| --search_string <search string>
.
Enter the -g| --gear <asset name>
option to search a specific asset, or use the -a| --allgear
option to search all gear. You must use one of these two options.
Use the -t| --snapshot <snapshot name>
option to search for a specific snapshot. This option can only be used with the -g
option.
Use the -D| --description
option to search descriptions.
Use the -c| --cvs
option to output to comma-separated values (CSV).
Use the -f| --filename <filename>
option to specify a filename for CSV output.
Use the -d| --delimiter <delimiter>
option to specify a delimiter character. The default is the pipe (|) character.
Use the -e| --enclosure <enclosure>
option to specify an enclosure character. The default is the quote (“) character.
Use the -p| --append
option to append the data to an existing file.
Use the -l| --detail
option to display detailed data.
You can check an OS asset to see if inventory is available for it through the Oracle Enterprise Manager Ops Center’s command line.
Enter check_inventory
.
Enter the -g| --gear <asset name>
option to check a specific asset, or use the -a| --allgear
option to check all assets. You must use one of these two options.
Use the -t| --snapshot <snapshot name>
option to check a specific snapshot. This option can only be used with the -g
option.
Use the -c| --cvs
option to output to comma-separated values (CSV).
Use the -f| --filename <filename>
option to specify a filename for CSV output.
Use the -d| --delimiter <delimiter>
option to specify a delimiter character. The default is the pipe (|) character.
Use the -e| --enclosure <enclosure>
option to specify an enclosure character. The default is the quote (“) character.
Use the -r| --header
option to include a header line.
Use the -p| --append
option to append the asset data to an existing file.
You can verify your connection to the Knowlwedge Base through the Oracle Enterprise Manager Ops Center’s command line.
Enter check_guus
.
Use the -u| --user <user name>
option to specify a user name.
Use the -p| --password <password>
option to specify a password.
Use the --proxy <proxy host name>
option to specify a proxy.
Use the --port <proxy port>
option to specify a proxy port.
Use the --proxyuser <proxy user name>
option to specify a proxy user name.
Use the --proxypass <proxy password>
option to specify a proxy password.
You can view the job history for a specific OS asset through the Oracle Enterprise Manager Ops Center’s command line.
Enter job_history
-g| --gear <asset list>
.
Use the -l| --detail
option to show a detailed listing.
Use the -f| --fromdate <from date YYYYMMDD>
option to specify a from date. The default is seven days ago.
Use the -t| --todate <to date YYYYMMDD>
option to specify an end date. The default is today.
Use the -i| --jobids < job ID>
option to query a specific job or jobs, you must still supply the asset name.
Use the -L| --log
option to print logs.
Use the --fail
option to query failed status.
Use the --ok
option to query ok status.
Use the --warning
option to query warning status.
Use the --nostatus
option to query nostatus status.
Use the --install
option to query install action.
Use the --upgrade
option to query upgrade action.
Use the --uninstall
option to query uninstall action.
Use the --downgrade
option to query downgrade action.
You can get information about a job status through the Oracle Enterprise Manager Ops Center’s command line.
Enter get_job_status
.
Enter the -i| --jobids <job ID>
option to query specific jobs, or use the -a| --alljobs
option to query all jobs. You must use one of these two options.
Use the -l| --detail
option to print out detail, including logs if available.
Use the -c| --cvs
option to output to comma-separated values (CSV).
Use the -f| --filename <filename>
option to specify a filename for CSV output.
Use the -d| --delimiter <delimiter>
option to specify a delimiter character. The default is the pipe (|) character.
Use the -e| --enclosure <enclosure>
option to specify an enclosure character. The default is the quote (“) character.
Use the -r| --header
option to include a header line.
Use the -p| --append
option to append the asset data to an existing file.
You can update the Knowledge Base bundles in the Update software library through the Oracle Enterprise Manager Ops Center’s command line.
Knowledge base bundles contain current patch data. A knowledge base bundle must be moved to the system running the Enterprise Controller before it can be uploaded.
Enter load_kb_bundle
-f| --filename <path to KB bundle>
.
You can check the connection mode through the Oracle Enterprise Manager Ops Center’s command line.
Enter check_disconnected
.
You can change the Enterprise Controller from disconnected to connected mode through the Oracle Enterprise Manager Ops Center’s command line.
Enter set_connected_mode
-c| --connected
.
You can change the Enterprise Controller from connected to disconnected mode through the Oracle Enterprise Manager Ops Center’s command line.
Enter set_connected_mode -d| --disconnected
You can update a specific OS asset through the Oracle Enterprise Manager Ops Center’s command line.
The update includes installing, upgrading, or uninstalling specific packages and patches
Enter modify_gear
-g| --gear <assetname> -y| --policy <policy name> -a| --actual
.
Omit the -a
option to run the job as a simulation.
Use the --si
<search string>
option to specify a search term to add to the install list.
Use the --su
<search string>
option to specify a search term to add to the upgrade list.
Use the --sr <search string
> option to specify a search term to add to the uninstall list.
The search strings used for this command must be regular expressions. For a summary of regular expression constructs, visit http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
.
Use the --ni <node IDs to install>
option to specify node IDs for install.
Use the --nu <node IDs to upgrade>
option to specify node IDs for upgrade.
Use the --nr <node IDs to uninstall>
option to specify node IDs for uninstall.
Use the -j| --jobname <job name>
option to specify a job name.
Use the -e| --jobdesc <job description>
option to specify a job description.
Use the -k| --taskname <taskname>
option to specify a task name.
Use the -f| --profilename <profile name>
option to specify a profile name.
Use the -D| --description <profile description>
option to specify a profile description.
Use the -r| --failure_policy <failure policy>
option to specify a failure policy.
Use the -x| --execution_policy <execution policy>
option to specify an execution policy.
Use the -o| --seconds <number of seconds>
option to wait a specified number of seconds before running the job.
Use the -c| --case
option to run a case sensitive search.
Use the -d| --desc
option to search the description.
Example:
localhost/update > modify_gear -g "foo.example.com" --sr SUNWbzip -y "Yes To All" -a
You can apply a profile to an asset that updates all packages and patches to match the profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter apply_profile_to_gear
-g | --gear <assetname> -y| --policy <policy name> -f| --profilename <profile name> -a| --actual
Omit the -a
option to run the job as a simulation.
Use the -j| --jobname <job name>
option to specify a job name.
Use the -e| --jobdesc <job description>
option to specify a job description.
Use the -k| --taskname <taskname>
option to specify a task name.
Use the -r| --failure_policy <failure policy>
option to specify a failure policy.
Use the -x| --execution_policy <execution policy>
option to specify an execution policy.
Use the -o| --seconds <number of seconds>
option to wait a specified number of seconds before running the job.
The following is an example of a command to deploy a profile job to one or more hosts:
localhost/update > apply_profile_to_gear -g <space separated list of host names> -y "Yes To All" -f <profile name>
You can create a historical snapshot through the Oracle Enterprise Manager Ops Center’s command line.
Enter create_historical_snapshot
-g| --gear <asset name> -s| --snapshotname <snapshot name> -D| --description <snapshot description>
.
You can delete an existing snapshot of an asset through the Oracle Enterprise Manager Ops Center’s command line.
Enter delete_snapshots
-g| --gear <asset name> -s| --snapshot <snapshot name>
.
You can create profiles that install and upgrade assets through the Oracle Enterprise Manager Ops Center’s command line.
You can create a new profile by specifying packages and patches to install, upgrade, and uninstall.
Enter create_profile
.
You must supply a search string or node id. The search string used for this command must be a regular expression. For a summary of regular expression constructs, visit http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
.
Use the --si <search string>
option to specify a search term to add to the install list.
Use the --su <search string>
option to specify a search term to add to the upgrade list.
Use the -sr <search string>
option to specify a search term to add to the uninstall list.
Use the --ni <node IDs to install>
option to specify node IDs for install.
Use the --nu <node IDs to upgrade>
option to specify node IDs for upgrade.
Use the --nr <node IDs to uninstall>
option to specify node IDs for uninstall.
Use the -f| --profilename <distribution name>
option to specify a profile name.
Use the -o| --distro <profile name>
option to limit by distro name.
Use the -C <channel name>
option to specify the channel name for all subcommands.
Use the -D| --description <profile description>
option to specify a profile description.
Use the -t| --type <profile description>
option to specify a profile type.
Use the -a| --all
option to include all matched packages/patches.
Use the -c| --case
option to run a case sensitive search.
Use the -r| --replace
option to replace an existing profile if the names are the same.
Use the -p| --loop
option to restrict the maximum number of inventory items found in a host.
You can create a new OS profile based on an existing system through the Oracle Enterprise Manager Ops Center’s command line.
Enter create_profile_from_inventory
-g| --gear <gear name>
.
Use the -t| --snapshot <snapshot name>
option to search for a specific snapshot. This option can only be used with the -g
option.
Use the -f| --profilename <profile name>
option to specify a profile name.
Use the -D| --description <profile description>
option to specify a profile description.
Use the -r| --include_removes
option to include removed packages.
You can delete a profile through the Oracle Enterprise Manager Ops Center’s command line.
Enter delete_profiles
-p| --profilename <profile name>
.
You can add a file stored on the Enterprise Controller to a distribution through the Oracle Enterprise Manager Ops Center’s command line.
Enter add_file_to_distro
-f| --file_path <full path to distribution> -o| --distro_name <distro name> -a| --category_name <category name> -C| --channelname <channel name> -s | --security
.
You can upload the contents of a directory to the Updates software library through the Oracle Enterprise Manager Ops Center’s command line.
You can upload content from a directory and its subdirectories to the Updates software library.
Enter bulk_upload_directory
-D| --distribution <distribution name of uploaded files>
-d| --directory <full path to the source directory> -C| --channelname <channel name>.
Note:
For more information about how to view the available distributions, see Viewing OS Distributions
You can add a local action through the Oracle Enterprise Manager Ops Center’s command line.
Enter add_local_action
-a| --actionname <action name> -f| --filename <file name> -p| --parentname <parent category name> -D| --description <description> -C| --channelname <channel name> -t
.
The action type must be macro, postaction, preaction, or probe.
You can add a local categorythrough the Oracle Enterprise Manager Ops Center’s command line.
Enter add_local_category
-c| --category_name <category name> -p| --parent_name <parent name> -D| --description <description> -C| --channelname <channel name>
.
You can delete a component through the Oracle Enterprise Manager Ops Center’s command line.
Enter delete_component
-i| --nodeid <node id> -d| --distro <distro> -C | --channelname <channel name>
.
Use the -k| --donotcheckforinstall
option to refrain from checking for install.
You can add a configuration file through the Oracle Enterprise Manager Ops Center’s command line.
Enter add_configuration_file
-f| --filename <filename> -p| --pathname <path name to file> -v| --version <version> -c| --categoryname <category name> -D| --description <description> -C| --channelname <channel name>
.
You can set a component file through the Oracle Enterprise Manager Ops Center’s command line.
Enter set_component_file
-n| --componentname <component name> -C| --channelname <channel name> -f| --filename <file name>
.
You can find nodes whose names match a search string using the Oracle Enterprise Manager Ops Center’s command line.
The search string used for this command must be a regular expression. For a summary of regular expression constructs, visit http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
.
Enter find_nodes
-s| --search_string <search string>
.
Use the -a| --all
option to list all nodes.
Use the -l| --detail
option to print details.
Use the -c| --case
option to specify a case-sensitive search.
As the following examples shows, when regular expressions are not used correctly, any node is listed as a result:
localhost/update > find_nodes -s SMCcurl-7.21* -a Name Node id Distro Available Certified ------------------------------------------------------------------------------- localhost/update > find_nodes -s SMCcurl-7.21.2-0 [1/1/2012] -a Name Node id Distro Available Certified -------------------------------------------------------------------------------
Correct examples:
localhost/update > find_nodes -s SMCcurl-7.21.* -a Name Node id Distro Available Certified ------------------------------------------------------------------------------- SMCcurl-7.21.0-0 [1/1/2012] 41025315 SOLARIS10_SPARC True True SMCcurl-7.21.1-0 [1/1/2012] 41125695 SOLARIS10_SPARC True True SMCcurl-7.21.2-0 [1/1/2012] 42327548 SOLARIS10_SPARC True True EnterpriseContoller/update > find_nodes -s SMCcurl-* -a Name Node id Distro Available Certified ------------------------------------------------------------------------------- SMCcurl 41002397 SOLARIS10_SPARC False True SMCcurl 46108251 SOLARIS9_SPARC False True SMCcurl 52104822 SOLARIS10_X86 False True
You can perform operations for users through the Oracle Enterprise Manager Ops Center’s command line.
Use the User mode to view and manage local and remote users and their roles.
You can perform operations for users through the Oracle Enterprise Manager Ops Center’s command line.
Enter user
in the CLI prompt.
localhost > user localhost/user >
You can view the existing users in the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter show_local_users
.
A list of users is shown.
Use the -r| --roles <role name>
option to view users with <role name>
role. A list of users and their roles are shown.
You can view the available role types in the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter show_all_local_roles
.
You can view the roles assigned to a specific user in the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter show_local_user_roles
-u| --user <user name>
.
You can add a user to the Enterprise Controller and grant a role to the new user through the Oracle Enterprise Manager Ops Center’s command line.
The user must already exist in the host where the Enterprise Controller is installed.
Enter add_local_user
-u| --user <user name> -r| --role <role or comma-separated roles list>
.
For information about the available role types you can grant to a user, see Viewing Role Types.
You can grant a role to a user through the Oracle Enterprise Manager Ops Center’s command line.
Enter grant_local_role
-u| --user <user name> -r| --role <role or comma-separated roles list>
.
For information about the available role types you can grant to a user, see Viewing Role Types.
You can replicate the roles from a source user to a recipient user through the Oracle Enterprise Manager Ops Center’s command line.
The current roles and privileges of the recipient users are overwritten with the roles and privileges of the source user.
Enter replicate_user_roles
-u|--user <source user> -r| --role <recipient user>
.
You can remove a role from a user of the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
For more information about how to see the roles of a user, see Viewing User Roles.
Enter revoke_local_role
-u| --user <user name> -r| --role <role or list of comma-separated roles to remove>
.
You can view and save the permissions of a specific user through the Oracle Enterprise Manager Ops Center’s command line.
You can display the permissions assigned to the specified user account and output the results to a file.
Enter show_user_permissions
-u|--user
username
[-f|--format json|xml|plain|csv]
[-o|--outputfile
filename
].
You can add a directory server through the Oracle Enterprise Manager Ops Center’s command line.
You can view a list of directory servers and their IDs through the Oracle Enterprise Manager Ops Center’s command line.
Enter get_directory_servers
.
Use the -d| --details
option to show directory server details.
You can get a list of directory server users and their roles through the Oracle Enterprise Manager Ops Center’s command line.
Enter get_ds_users
-d| --directory <directory server name>
.
Use the -r| --roles <role>
option to filter users with <role>
role.
You can synchronize all directory server users and their roles with the cache on the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter sync_all_ds_users
-d| --directory <directory server name>
.
You can synchronize a specific user on the directory server with the cache on the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter sync_ds_user
-d| --directory <directory server name> -u| --user <user>
.
You can remove a directory server from the Enterprise Controller through the Oracle Enterprise Manager Ops Center’s command line.
Enter remove_directory_service
-d| --directory <directory server name>
.
You can use the Virtualization mode to manage virtual assets through the Oracle Enterprise Manager Ops Center’s command line.
The virtualization mode manages virtual hosts and virtual machines (Oracle Solaris zones only).
You can perform operations on virtual assets through the Oracle Enterprise Manager Ops Center’s command line.
Enter virtualization
in the CLI prompt.
localhost > virtualization localhost/virtualization >
You can view the list of global zones or control domains through the Oracle Enterprise Manager Ops Center’s command line.
Use this subcommand to get the UUID of a global zone or control domain, which you can use with the list_guests
and list_libraries
subcommands.
Enter list_hosts
.
You can view the list of non-global zones for a specific global zone or the list of logical domains for a control domain through the Oracle Enterprise Manager Ops Center’s command line.
You can identify the global zone or control domain by its UUID or its object name. Use this command to obtain the UUID of a guest to use with the guest
subcommand.
Enter list_guests -C| --container-on
Objectname.
Enter list_guests -U| --UUID
assetuuid.
through the Oracle Enterprise Manager Ops Center’s command line.
You can view the list of libraries available to the agent-managed container, identified by its UUID .
Enter list_libraries -U| --UUID
assetuuid.
You can move a non-global zone through the Oracle Enterprise Manager Ops Center’s command line.
You can detach a non-global zone from its non-functioning global zone and attach the non-global zone to a different global zone.
Enter startup
(-z zonename -S ObjectName | -Z ObjectName) -D ObjectName
.
Use the -z| --zonename
option to specify a guest (non-global zone). If you select this option you must specify a source global zone object name.
Use the -S| --source-on
option if you specify a zonename before. Using this option you specify a source global zone object name.
Use the -Z| --zone-on
option in case you did not select the -z| --zonename
option. Using this option you indicate the host (global zone) object name.
Use the -D| --destination
option to indicate the destination (global zone).
You can use the Oracle Enterprise Manager Ops Center browser user interface (BUI) instead of using the command-line interface.
You can find in the browser user interface many, but not all, equivalent actions for the CLI mode commands.
The following charts show the mode commands that have a corresponding action in the browser user interface:
The Controllers mode migrates assets to another Proxy Controller through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-6 shows the commands included in the Controllers mode and their equivalent actions in the BUI.
Table 1-6 Controllers Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Open the alert indicating that a Proxy Controller has failed > Migrate Assets > Auto Balance across Proxy Controllers> Migrate |
|
Open the alert indicating that a Proxy Controller has failed> Migrate Assets> Auto Balance across Proxy Controllers> Migrate |
You can perform operations on credentials through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-7 shows the commands included in the Credentials mode and their equivalent actions in the BUI.
You can perform Deploy-Setup operations through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-8 shows the commands included in the Deploy-Setup mode and their equivalent actions in the BUI.
You can perform deploy operations through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-9 shows the commands included in the Deploy mode and their equivalent actions in the BUI.
Table 1-9 Deploy Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Plan Management> Deployment Plans> Select a type of plan> Select a plan> Center Pane> Details tab |
|
NA |
|
Navigation Pane> Plan Management> Deployment Plans> Select a type of plan> Select a plan> Center Pane> Results tab |
|
Navigation Pane> Plan Management> Deployment Plans> Select a type of plan> Select a plan> Actions Pane> Edit Deployment Plan |
|
NA |
|
NA |
|
Navigation Pane> Plan Management> Deployment Plans> Select a type of plan> Select a plan> Actions Pane> Apply Deployment Plan |
You can perform discover operations through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-10 shows the commands included in the Discover mode and their equivalent actions in the BUI.
Table 1-10 Discover Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
NA |
|
Navigation Pane> Plan Management> Profiles and Policies> Discovery |
|
NA |
|
Navigation Pane> Administration> Enterprise Controller> Credentials |
|
Navigation Pane> Plan Management> Profiles and Policies> Discovery> Select a Discovery Profile> Discovery Credentials table in the Center Pane. |
|
NA |
|
NA |
|
Navigation Pane> Plan Management> Profiles and Policies> Discovery> Select a Discovery Profile> Actions Pane> Add Assets |
You can perform operations on firmware images through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-11 shows the commands included in the FWImage mode and their equivalent actions in the BUI.
You can perform operations on firmware profiles through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-12 shows the commands included in the FWProfile mode and their equivalent actions in the BUI.
Table 1-12 FWProfile Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Plan Management> Profiles and Policies> Firmware |
|
NA |
|
Navigation Pane> Plan Management> Profiles and Policies> Firmware> Actions Pane> Create Profile |
|
Navigation Pane> Plan Management> Profiles and Policies> Firmware> Center Pane> Edit |
|
Navigation Pane> Plan Management> Profiles and Policies> Firmware> Center Pane> Delete |
You can perform operations on assets through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-13 shows the commands included in the Gear mode and their equivalent actions in the BUI.
Table 1-13 Gear Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Assets> All Assets |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Edit Attributes or Edit Tags |
|
Navigation Pane> Assets> All Assets> Jobs tab |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Switch Management Access |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Switch Management Access |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Place in Maintenance Mode or Remove From Maintenance Mode |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Delete Assets |
|
Navigation Pane> Assets> All Assets> Select an OS> Actions Pane> Switch Management Access |
|
Navigation Pane> Assets> All Assets> Select an OS> Actions Pane> Reboot |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Update Firmware |
|
NA |
|
Navigation Pane> Plan Management> Deployment Plans> Provision OS> Select a Plan> Actions Pane> Apply Deployment Plan |
|
set (locator lights) |
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Locator Lights On or Locator Lights Off |
set (notifications) |
NA |
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Power Off |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> Power On |
|
Navigation Pane> Assets> All Assets> Select a server Actions Pane> Reset Server(s) |
|
Navigation Pane> Assets> All Assets> Select a server Actions Pane> Refresh |
|
Upgrade Agent Controller | Navigation Pane > Assets> All Assets> Select an asset> Actions Pane> upgrade Agent Controller |
Upgrade All Agents | NA |
You can perform operations on groups of assets through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-14 shows the commands included in the Groups mode and their equivalent actions in the BUI.
Table 1-14 Groups Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
list (Predefined Groups) |
Navigation Pane> Assets> Server, Chassis, Operating Systems or All User Defined Groups |
Navigation Pane> Assets> Server, Chassis, Operating Systems or All User Defined Groups |
|
Navigation Pane> Assets> Server, Chassis, Operating Systems or All User Defined Groups |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Create Group |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Edit Group |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Add Asset to Group |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Remove Asset from Group |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Move Asset to Group |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Delete Group |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Power On |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Power Off |
|
Navigation Pane> Assets> All User Defined Groups> Actions Pane> Reset Server (s) |
You can perform operations on logical domains and non-global zones through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-17 shows the commands included in the Guest mode and their equivalent actions in the BUI.
Table 1-15 Guest Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Assets> All Assets> Select a guest> Summary |
|
reboot,start,halt,shutdown,delete |
Navigation Pane> Assets> All Assets> Select a guest> Actions Pane> reboot,start,halt,shutdown,delete |
You can monitor and manage incidents through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-16 shows the commands included in the Incidents mode and their equivalent actions in the BUI.
Table 1-16 Incidents Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Message Center> Unassigned Incidents, My Incidents or Incidents Assigned to Others |
|
Navigation Pane> Message Center> Unassigned Incidents, My Incidents or Incidents Assigned to Others |
|
Navigation Pane> Message Center> Unassigned Incidents, My Incidents or Incidents Assigned to Others> Acknowledge Incident(s) |
|
Navigation Pane> Message Center> Unassigned Incidents, My Incidents or Incidents Assigned to Others> Add Annotation to Incident(s) |
|
Navigation Pane> Message Center> Unassigned Incidents, My Incidents or Incidents Assigned to Others> Assign Incident(s) |
|
Navigation Pane> Message Center> Unassigned Incidents, My Incidents or Incidents Assigned to Others> Close Incident(s) |
You can manage jobs through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-17 shows the commands included in the Jobs mode and their equivalent actions in the BUI.
Table 1-17 Jobs Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Jobs Pane |
|
Jobs Pane> Select a job> Re-Run Selected Jobs |
|
Jobs Pane> Select a failed job> Re-Run Selected Jobs |
|
Jobs Pane> Select a job> Delete Selected Jobs |
|
Jobs Pane> Select a job> Stop Selected Jobs |
You can perform notifications through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-18 shows the commands included in the Notifications mode and their equivalent actions in the BUI.
You can manage OS images through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-19 shows the commands included in the OSImage mode and their equivalent actions in the BUI.
Table 1-19 OSImage Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Libraries> Software Libraries> Initial EC Library> Actions Pane> Import Image |
|
Navigation Pane> Libraries> Software Libraries> Initial EC Library> Actions Pane> Import Image |
|
NA |
You can perform operations on profiles that provision an operating system through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-20 shows the commands included in the OSProfile mode and their equivalent actions in the BUI.
Table 1-20 OSProfile Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Plan Management> Profiles and Policies> OS Provisioning |
|
Navigation Pane> Plan Management> Profiles and Policies> OS Provisioning> Create Profile> Select JET Template in the Subtype |
|
Navigation Pane> Plan Management> Profiles and Policies> Update Profiles> Center Pane> Import Profile |
|
Navigation Pane> Plan Management> Profiles and Policies> Update Profiles> Center Pane> Export Profile |
|
Navigation Pane> Plan Management> Profiles and Policies> OS Provisioning> Center Pane> Copy Profile |
|
Navigation Pane> Plan Management> Profiles and Policies> OS Provisioning> Center Pane> Delete Profile |
You can perform Reports operations through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-20 shows the commands included in the Reports mode and their equivalent actions in the BUI.
You can perform operations on server pools through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-25 shows the commands included in the ServerPools mode and their equivalent actions in the BUI.
Table 1-22 ServerPools Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Assets> Server Pools |
|
Navigation Pane> Assets> Server Pools> Select a server pool |
|
Navigation Pane> Assets> Server Pools> Select a server pool> Select a server> Actions Pane> Remove from Server Pool |
You can perform Update operations through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-23 shows the commands included in the Update mode and their equivalent actions in the BUI.
Table 1-23 Update Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Plan Management> Profiles and Policies> Update Policies |
|
Navigation Pane> Plan Management> Profiles and Policies> Update Profiles |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Content tab> Search Criteria Menu> Distribution list |
|
NA |
|
NA |
|
NA |
|
NA |
|
Navigation Pane> Assets> Select an asset> Jobs tab |
|
Jobs Pane> Status column |
|
Navigation Pane> Administration> Enterprise Controller> Actions Pane> Setup Connection Mode |
|
Navigation Pane> Administration> Enterprise Controller> Actions Pane> Setup Connection Mode |
|
Navigation Pane> Administration> Enterprise Controller> Actions Pane> Setup Connection Mode> Switch to Connected Mode or Switch to Disconnected Mode. |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> New Update OS Job |
|
Navigation Pane> Assets> All Assets> Select an asset> Actions Pane> New Update OS Job |
|
NA |
|
NA |
|
Navigation Pane> Plan Management> Profiles and Policies> Update Profiles> Actions Pane> New Profile |
|
NA |
|
Navigation Pane> Plan Management> Profiles and Policies> Update Profiles> Select a profile> Delete Profile |
|
NA |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Actions Pane> Bulk Upload Packages |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Actions Pane> Upload Local Action |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Actions Pane> Add Local Category |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Actions Pane> Delete Local Component |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Actions Pane> Upload Local Configuration |
|
Navigation Pane> Libraries> Software Libraries> Linux, Solaris 8-10 Software Update Library> Actions Pane> Edit Local Component File |
|
NA |
You can perform operations for users through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-24 shows the commands included in the User mode and their equivalent actions in the BUI.
Table 1-24 User Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Administration> Enterprise Controller> Local Users |
|
Navigation Pane> Administration> Enterprise Controller> Local Users> Role Permission Mapping tab |
|
Navigation Pane> Administration> Enterprise Controller> Local Users |
|
Navigation Pane> Administration> Enterprise Controller> Local Users > Actions Pane> Add User |
|
Navigation Pane> Administration> Enterprise Controller> Local Users> Manage User Roles icon |
|
Navigation Pane> Administration> Enterprise Controller> Local Users> Replicate User Roles icon |
|
Navigation Pane> Administration> Enterprise Controller> Local Users> Manage User Roles icon |
|
Navigation Pane> Administration> Enterprise Controller> Directory Serves> Add Directory Server |
|
Navigation Pane> Administration> Enterprise Controller> Directory Serves> |
|
Navigation Pane> Administration> Enterprise Controller> Directory Serves> Select a Directory Server from the list> User tab |
|
Navigation Pane> Administration> Enterprise Controller> Directory Serves> Select a Directory Server from the list> Actions Pane> Sync all remote users and roles |
|
NA |
|
Navigation Pane> Administration> Enterprise Controller> Directory Serves> Select a Directory Server from the list> Delete Directory Server |
|
Navigation Pane> Administration> Enterprise Controller> Directory Serves> Select a Directory Server from the list> User tab> Select a user> Delete User |
You can perform operations on virtual assets through the Oracle Enterprise Manager Ops Center’s command line.
Table 1-25 shows the commands included in the Virtualization mode and their equivalent actions in the BUI.
Table 1-25 Virtualization Mode Commands and Their Equivalent Actions in the BUI
CLI Command | BUI Action |
---|---|
Navigation Pane> Assets> All Assets> Servers |
|
Navigation Pane> Assets> All Assets> Servers |
|
Navigation Pane> Assets> All Assets> Select a non-global zone> Actions Pane> Migrate Zone |