我需要使用字符串“degraded”进行 grep,并且希望输出包含健康状态、名称和类型。这是名称值对格式

我需要使用字符串“degraded”进行 grep,并且希望输出包含健康状态、名称和类型。这是名称值对格式
  Name            = Server1.domain.com
  Description     =
  Tenant          =
  Type            = host
  Address         =
  Netmask         =
  OS type         = VMware ESXi
  Ignored address =
  Host group      =
  Health state    = Degraded/Warning (10)
  Health details  = "The host does not have any initiators logged into the storage system. Register one or more initiators on the host to the storage system. This may also require zoning changes on the switches.

格式化为可读性

在此输入图像描述

相关内容