Back to the list of connectors

Huawei OceanStor (REST)

Description

This connector discovers environmental sensors, Fans, Controllers, Power Supplies, Battery Backup Units, CPUs, LUNs, Physical Disks and NetworkCards for Huawei OceanStor storage devices. It relies on OceanStor V3 and above.

Connector ID: HuaweiOceanStorREST

This connector supersedes:

Target

Typical platform: Huawei OceanStor

Operating system: Storage System

Prerequisites

Leverages: Huawei DeviceManager REST API

Technology and protocols: HTTP/REST

This connector is not available for the local host (it is applicable to remote hosts only).

Examples

CLI

hws HOSTNAME -t storage -f HuaweiOceanStorREST --https --http-port 443 -u USERNAME

hws-config.yaml

hosts:
- host:
    hostname: <HOSTNAME> # Change with actual host name
    type: storage
  selectedConnectors: [ HuaweiOceanStorREST ] # Optional, to load only this connector
  http:
    https: true
    port: 443 # or probably something else
    username: <USERNAME> # Change with actual credentials
    password: <PASSWORD> # Encrypted using hws-encrypt

Connector Activation Criteria

The Huawei OceanStor (REST) connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • The HTTP Request below to the managed host succeeds:
    • GET /deviceManager/devicemanager/feature/login/login.html
    • Request Header:
      Accept:*/*

Metrics

Type Collected Metrics Specific Attributes (Labels)
Enclosure
  • hw.status{hw.type="enclosure",state="ok|degraded|failed"}
  • hw.status{hw.type="enclosure",state="present"}
  • bios_version
  • model
  • serial_number
  • type
  • vendor
Disk Controller
  • hw.status{hw.type="disk_controller",state="ok|degraded|failed"}
  • hw.status{hw.type="disk_controller",state="present"}
  • firmware_version
Battery
  • hw.status{hw.type="battery",state="ok|degraded|failed"}
  • hw.status{hw.type="battery",state="present"}
    Processor
    • hw.cpu.speed
    • hw.cpu.speed.limit{limit_type="max"}
    • hw.status{hw.type="cpu",state="ok|degraded|failed"}
    • hw.status{hw.type="cpu",state="present"}
      Fan
      • hw.status{hw.type="fan",state="ok|degraded|failed"}
      • hw.status{hw.type="fan",state="present"}
        Logical Disk, RAID
        • hw.logical_disk.limit
        • hw.status{hw.type="logical_disk",state="ok|degraded|failed"}
        • hw.status{hw.type="logical_disk",state="present"}
          Network Card, FC Port
          • hw.network.bandwidth.limit
          • hw.network.up
          • hw.status{hw.type="network",state="ok|degraded|failed"}
          • hw.status{hw.type="network",state="present"}
          • logical_address
          Physical Disk
          • hw.physical_disk.endurance_utilization{state="remaining"}
          • hw.physical_disk.size
          • hw.status{hw.type="physical_disk",state="ok|degraded|failed"}
          • hw.status{hw.type="physical_disk",state="present"}
          • firmware_version
          • model
          • serial_number
          • vendor
          Power Supply
          • hw.status{hw.type="power_supply",state="ok|degraded|failed"}
          • hw.status{hw.type="power_supply",state="present"}
            Temperature Sensor
            • hw.status{hw.type="temperature",state="ok|degraded|failed"}
            • hw.status{hw.type="temperature",state="present"}
            • hw.temperature
            • sensor_location
            Voltage Sensor
            • hw.status{hw.type="voltage",state="ok|degraded|failed"}
            • hw.status{hw.type="voltage",state="present"}
            • hw.voltage
            • sensor_location
            No results.