New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rackpdu

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rackpdu

This is a native SNMP library for manage APC Rack PDU.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
14
366.67%
Maintainers
1
Weekly downloads
 
Created
Source

rackpdu

This is a native SNMP library for manage APC Rack PDU.

Tested on APC Rack PDU switched 9000 series.

Install

Using NPM:

$ npm install rackpdu

Using YARN:

$ yarn add rackpdu

Usage

import { RackPDU } from 'rackpdu';

const client = new RackPDU('192.168.1.102:161'); // or new RackPDU('192.168.1.102', { timeout: 30000});
console.log(await client.isAlive());

await client.close();
import { RackPDU } from 'rackpdu';

console.log(await RackPDU.isAlive('192.168.1.102'));

Methods

Common:

  • isAlive
  • getName
  • getHardwareRevision
  • getFirmwareRevision
  • getDayOfManufacture
  • getModelNumber
  • getSerialNumber
  • getDescription
  • getUptime
  • getPowerDraw

Outlets:

  • getOutletsCount
  • getOutletName
  • getOutletNames
  • getOutletState
  • getOutletStates

Commands:

  • runDeviceCommand
  • runOutletsCommand

Static methods

  • RackPDU.isAlive
  • RackPDU.getOutletsNames
  • RackPDU.outletRunCommand
  • RackPDU.outletOn
  • RackPDU.outletOff
  • RackPDU.outletReboot
  • RackPDU.outletsReboot

Configure Rack PDU Hardware

  • In Administration -> Network -> SNMPv1 -> access

    • enable Enable 'Enable SNMPv1 access'
  • In Administration -> Network -> SNMPv1 -> access control

    • set 'Access Type' of public Community Name to 'Read'
    • set 'Access Type' of private Community Name to 'Write+'

Keywords

apc

FAQs

Package last updated on 05 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts