Creating Profiles

Create profiles to register instances with OS Management Hub during migration.

OS Management Hub uses registration profiles to register instances with the service. To prepare for migration, you examine your OS Management instances to determine what profiles you need to create in OS Management Hub, such as group profiles and profiles for standalone Oracle Linux and Windows instances. The profiles you create are used to migrate OS Management instances to OS Management Hub.

Tip

For simplicity and efficiency, we recommend that you use the migration assistant tool to perform this task. For more information, see Installing the Migration Assistant.

Using the Migration Assistant

Use the osms-to-osmh create profile command and required parameters to create profiles used for migrating standalone instances to OS Management Hub. The command examines the standalone instances in OS Management and creates profiles in OS Management Hub.

For example, to create profiles for all standalone instances in OS Management:

osms-to-osmh create profile
Note

Managed instances that are members of a OS Management group aren't considered. For groups, use the osms-to-osmh create managed-instance-group command, which creates the group and its associated registration profile.

The following is sample output:

$ osms-to-osmh create profile 
Discovering Instances for Profile Creation....
Found 13 stand-alone instance(s)                                                                                                                                                                                                                   

6 registration profile(s) need to be created to meet the software source assignments for the stand-alone instances.

Profile    Compartment  Vendor  Version         Arch    Registration Type  Software Sources                                                          
---------  -----------  ------  --------------  ------  -----------------  --------------------------------------------------------------------------  
Profile_1  idg          ORACLE  ORACLE_LINUX_8  X86_64  OCI_LINUX          Oracle Linux 8 BaseOS Latest (x86_64)                                     
                                                                           Oracle Linux 8 Addons (x86_64)                                            
                                                                           Oracle Linux 8 Application Stream (x86_64)                                
                                                                           Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64)
                                                                           MySQL 8.0 for Oracle Linux 8 (x86_64)                                     
                                                                           MySQL 8.0 Connectors Community for Oracle Linux 8 (x86_64)                
                                                                           MySQL 8.0 Tools Community for Oracle Linux 8 (x86_64)                     
                                                                                                                                                     
...
Create 'Profile_1' in compartment 'idg' in OS Management Hub?  [y/n]  y
Enter name for profile: osms-to-osmh-standalone-ol8
Creating Profile....
Created Profile 'osms-to-osmh-standalone-ol8'. OCID: ocid1.osmhprofile.oc1..<unique_ID>
...
 

Usage

osms-to-osmh create profile [-c | --compartment name] [-y | --yes] [--managed-instance-id ocid] [ --help]

Option Details

Parameter Description
-c | --compartment name

Creates profiles for standalone managed instances in the specified compartment. For name, specify either the name of the compartment or the OCID assigned to compartment.

If no compartment is specified, standalone managed instances from all compartments are displayed.

-y | --yes Proceeds with creating all profiles without prompting you for confirmation.
-v | --verbose Displays the list of instances and the registration profile that can be used to register the instances with OS Management Hub.
--managed-instance-id ocid Creates a profile in OS Management Hub for the specified managed instance. For ocid, specify the OCID assigned to the managed instance.
--help Displays help information about the migration assistant command, such as the available options and the supported values for each option.

Using the Console

To create profiles in OS Management Hub using the Console, see Creating a Profile .

We recommend creating a registration profile for each of your managed instance groups and a set of profiles to satisfy your standalone Oracle Linux instances. For standalone Windows instances, OS Management Hub includes service-provided profiles you can use during migration. See Understanding Profiles to learn more about OS Management Hub profiles.