DWS如何查看所有组件版本
查看console版本
在console页面按F12,查看下图所示
查看servicecm版本
登录servicecm,选择 系统 -> 适配包,标签输入dws,点击查询按钮
查看微服务版本
登录cdk-master节点,依次执行以下命令
kubectl describe pod $(kubectl get pod -n dws | grep "dwscontroller-" | awk '{print $1}' | tail -1) -ndws | grep "Image:" | awk -F : '{print $4}'
kubectl describe pod $(kubectl get pod -n dws | grep "dms-collection-" | awk '{print $1}' | tail -1) -ndws | grep "Image:" | awk -F : '{print $4}'
kubectl describe pod $(kubectl get pod -n dws | grep "dms-monitoring-" | awk '{print $1}' | tail -1) -ndws | grep "Image:" | awk -F : '{print $4}'
kubectl describe pod $(kubectl get pod -n ecf | grep "ecfclustermanager-" | awk '{print $1}' | tail -1) -necf | grep "Image:" | awk -F : '{print $4}'
kubectl describe pod $(kubectl get pod -n ecf | grep "dbsmonitor-" | awk '{print $1}' | tail -1) -necf | grep "Image:" | awk -F : '{print $4}'
kubectl describe pod $(kubectl get pod -n ecf | grep "dbsevent-" | awk '{print $1}' | tail -1) -necf | grep "Image:" | awk -F : '{print $4}'
kubectl describe pod $(kubectl get pod -n ecf | grep "dbsinsight-" | awk '{print $1}' | tail -1) -necf | grep "Image:" | awk -F : '{print $4}'
查看租户面集群各组件版本
登录rms数据库,查询以下SQL:
select rds_cluster.id, rds_cluster.name, rds_cluster.status, rds_restenant.realDomainName, rds_cluster.createAt, rds_cluster.datastoreType, rds_cluster_spec.code, round(length(group_concat(distinct rds_instance.id)) / 36) as instanceNum, rds_cluster.datastoreVersion, group_concat(distinct rds_instance.guestAgentVersion) as agentVersions, rds_cluster_image.image_type, rds_cluster_image.os_version, rds_cluster.packageInfo, group_concat(distinct rds_package_info.package_name) as plugins from rds_cluster inner join rds_instance on rds_cluster.id = rds_instance.clusterId left join rds_restenant on rds_cluster.tenantId = rds_restenant.realDomainId left join rds_cluster_spec on rds_cluster.clusterSpecId = rds_cluster_spec.id left join rds_cluster_image on rds_cluster.imageId = rds_cluster_image.image_id left join cluster_plugin on rds_cluster.id = cluster_plugin.clusterId left join plugin_info on cluster_plugin.pluginId = plugin_info.id left join rds_package_info on plugin_info.id = rds_package_info.version_id where rds_instance.status not in ('100', '303', '304', '400') and (rds_instance.instCreateType is NULL or rds_instance.instCreateType = 'INST') and rds_cluster.id = '{集群编号}' group by rds_cluster.id\G
- 点赞
- 收藏
- 关注作者
评论(0)