Class RawNUTClient

Reserved for advanced uses, use NUTClient

Constructors

Accessors

Methods

  • Parameters

    • username: string
    • password: string

    Returns Promise<void>

  • Parameters

    • ups: string
    • command: string

    Returns Promise<string>

  • Parameters

    • ups: string
    • variable: string

    Returns Promise<string>

  • Parameters

    • ups: string
    • variable: string

    Returns Promise<string>

  • Parameters

    • ups: string
    • variable: string

    Returns Promise<string[]>

  • Parameters

    • ups: string
    • variable: string

    Returns Promise<string[]>

  • Parameters

    • ups: string
    • variable: string

    Returns Promise<string>

  • Parameters

    • ups: string

    Returns Promise<string[]>

  • Parameters

    • ups: string

    Returns Promise<string[]>

  • get network protocol version

    Returns Promise<string[]>

  • Parameters

    • ups: string

    Returns Promise<string[]>

  • Parameters

    • ups: string

    Returns Promise<string[]>

  • Parameters

    • ups: string

      {string} the name of the UPS

    Returns Promise<string>

    You probably shouldn’t send this command unless you are upsmon, or a upsmon replacement.

  • get network protocol version

    Returns Promise<string>

  • Parameters

    • ups: string
    • command: string

    Returns Promise<string>

  • allow to send custom command

    Parameters

    • cmdParts: string[]
    • Optionaltimeout: number

    Returns Promise<string>

  • Parameters

    • ups: string
    • variable: string
    • value: unknown

    Returns Promise<string>

  • Parameters

    • OptionaltlsOptions: Omit<ConnectionOptions, "socket" | "host" | "port">

    Returns Promise<void>