Back to the list of connectors[1]

Hitachi HDS AMS/HUS (SNM2 CLI on Linux) Enterprise

Description

This connector discovers the status of Hitachi AMS/HUS's processors, CSW, cache, SM, power supplies, batteries, fans, physical disks and environment sensors.

Target

Typical platforms: Hitachi AMS Hitachi HUS

Operating system: Storage System

Prerequisites

Leverages: Hitachi SNM2 CLI

Technology and protocols: Command Lines

Examples

CLI

metricshub HOSTNAME -t linux -c +HitachiSNM2CLILinux --ssh -u USER

metricshub.yaml

resourceGroups:
  <RESOURCE_GROUP>:
    resources:
      <HOSTNAME-ID>:
        attributes:
          host.name: <HOSTNAME> # Change with actual host name
          host.type: linux
        selectConnectors: [ HitachiSNM2CLILinux ] # Optional, to load only this connector
        protocols:
          ssh:
            username: <USERNAME> # Change with actual credentials
            password: <PASSWORD> # Encrypted using metricshub-encrypt

Connector Activation Criteria

The Hitachi HDS AMS/HUS (SNM2 CLI on Linux) connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • The command below succeeds on the agent host
    • Command: uname
    • Output contains: Linux (regex)
  • The command below succeeds on the agent host
    • Command: if [ -n "$STONAVM_HOME" ]; then echo STONAVM_HOME Defined; fi
    • Output contains: STONAVM_HOME Defined (regex)
  • The command below succeeds on the agent host
    • Command: if [ -n "$LD_LIBRARY_PATH" ]; then echo LD_LIBRARY_PATH Defined; fi
    • Output contains: LD_LIBRARY_PATH Defined (regex)
  • The command below succeeds on the agent host
    • Command: export STONAVM_RSP_PASS=on;echo %{PASSWORD}>$STONAVM_HOME/MS_HW_pwdfile;$STONAVM_HOME/auaccountenv -set -uid %{USERNAME} -passwdfile $STONAVM_HOME/MS_HW_pwdfile
    • Output contains: The account information has been set successfully (regex)

Metrics

Type Collected Metrics Specific Attributes
battery
  • hw.status{hw.type="battery", state="degraded|failed|ok"}
  • hw.status{hw.type="battery", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
enclosure
  • hw.status{hw.type="enclosure", state="present"}
  • id
  • model
  • name
  • serial_number
  • type
  • vendor
fan
  • hw.status{hw.type="fan", state="degraded|failed|ok"}
  • hw.status{hw.type="fan", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
logical_disk
  • hw.logical_disk.limit
  • hw.logical_disk.usage{state="free"}
  • hw.logical_disk.usage{state="used"}
  • hw.status{hw.type="logical_disk", state="degraded|failed|ok"}
  • hw.status{hw.type="logical_disk", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • info
  • name
  • raid_level
  • type
memory
  • hw.status{hw.type="memory", state="degraded|failed|ok"}
  • hw.status{hw.type="memory", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
network
  • hw.status{hw.type="network", state="degraded|failed|ok"}
  • hw.status{hw.type="network", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
other_device
  • hw.status{hw.type="other_device", state="degraded|failed|ok"}
  • hw.status{hw.type="other_device", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
physical_disk
  • hw.physical_disk.size
  • hw.status{hw.type="physical_disk", state="degraded|failed|ok"}
  • hw.status{hw.type="physical_disk", state="present"}
  • firmware_version
  • hw.parent.id
  • hw.parent.type
  • id
  • info
  • model
  • name
  • serial_number
  • vendor
power_supply
  • hw.status{hw.type="power_supply", state="degraded|failed|ok"}
  • hw.status{hw.type="power_supply", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
No results.