void HostInfoConfig::PrintInfo()

in host/AzureRecoveryLib/config/HostInfoConfig.cpp [916:999]


void HostInfoConfig::PrintInfo() const
{
    TRACE_FUNC_BEGIN;
    BOOST_ASSERT(m_bInitialized);

    printf("\nHost Level Infomation\n");
    printf(" HostID: %s\n", m_host_level_info.HostId.c_str());
    printf(" HostName: %s\n", m_host_level_info.HostName.c_str());
    printf(" MachineType: %s\n", m_host_level_info.MachineType.c_str());
    printf(" OS-Type: %s\n", m_host_level_info.OsType.c_str());
    printf(" OS-Version: %s\n", m_host_level_info.OsVersion.c_str());
    printf(" OS-Drive: %s\n", m_host_level_info.OsDrive.c_str());
    printf(" OS-Install Path: %s\n", m_host_level_info.OsInstallPath.c_str());
    printf(" OS-Drive Extents: %s\n", m_host_level_info.OsDiskDriveExtents.c_str());

    printf("\nDisks Level Information:\n");
    for (size_t id = 0; id < m_disks.size(); id++)
    {
        if (!m_disks[id].Name.empty())
        printf("\n\tName : %s\n", m_disks[id].Name.c_str());

        if (!m_disks[id].Name.empty())
        printf("\tDiskId: %s\n", m_disks[id].DiskId.c_str());

        if (!m_disks[id].MountPoint.empty())
        printf("\tMountPoint: %s\n", m_disks[id].MountPoint.c_str());

        if (!m_disks[id].DiskGrp.empty())
        printf("\tDiskGroup: %s\n", m_disks[id].DiskGrp.c_str());

        if (!m_disks[id].FSType.empty())
        printf("\tFSType%s\n", m_disks[id].FSType.c_str());

        printf("\t%s\n", m_disks[id].Bootable ? "Boot Disk" : "Non Boot Disk");
        printf("\t%s\n", m_disks[id].DynamicDisk ? "Dynamic Disk" : "Basic Disk");

        for (size_t ip = 0; ip < m_disks[id].partitions.size(); ip++)
        {
            if (!m_disks[id].partitions[ip].info.Name.empty())
            printf("\n\t\tName: %s\n", 
            m_disks[id].partitions[ip].info.Name.c_str());

            if (!m_disks[id].partitions[ip].info.MountPoint.empty())
            printf("\t\tMountPoint: %s\n", 
            m_disks[id].partitions[ip].info.MountPoint.c_str());

            if (!m_disks[id].partitions[ip].info.DiskGrp.empty())
            printf("\t\tDiskGroup: %s\n", 
            m_disks[id].partitions[ip].info.DiskGrp.c_str());

            if (!m_disks[id].partitions[ip].info.FSType.empty())
            printf("\t\tFSType: %s\n", 
            m_disks[id].partitions[ip].info.FSType.c_str());

            if (!m_disks[id].partitions[ip].info.Name.empty() ||
                !m_disks[id].partitions[ip].info.MountPoint.empty() )
            printf("\t\tSys Partition: %s\n", 
            m_disks[id].partitions[ip].info.IsSystemVolume ? "Yes" : "No");

            for (size_t ilv = 0; ilv < m_disks[id].partitions[ip].logical_volumes.size(); ilv++)
            {
                if (!m_disks[id].partitions[ip].logical_volumes[ilv].Name.empty())
                    printf("\n\t\t Name: %s\n",
                    m_disks[id].partitions[ip].logical_volumes[ilv].Name.c_str());

                if (!m_disks[id].partitions[ip].logical_volumes[ilv].MountPoint.empty())
                    printf("\t\t MountPoint: %s\n",
                    m_disks[id].partitions[ip].logical_volumes[ilv].MountPoint.c_str());

                if (!m_disks[id].partitions[ip].logical_volumes[ilv].DiskGrp.empty())
                    printf("\t\t DiskGroup: %s\n",
                    m_disks[id].partitions[ip].logical_volumes[ilv].DiskGrp.c_str());

                if (!m_disks[id].partitions[ip].logical_volumes[ilv].FSType.empty())
                    printf("\t\t FSType: %s\n",
                    m_disks[id].partitions[ip].logical_volumes[ilv].FSType.c_str());

                printf("\t\t Sys Volume: %s\n", 
                    m_disks[id].partitions[ip].logical_volumes[ilv].IsSystemVolume ? "Yes" : "No");
            }
        }
    }
    TRACE_FUNC_END;
}