Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

...

Colocation manager is shipped with PDU SNMP module allowing to control and read states of PDU/similar devices using SNMP protocol. Number of devices/manufacturers are supported by default. In order to allow adding custom devices that are not on supported devices list, we've come up with DIY Device Driver, allowing for PDU module to read from any SNMP-enabled device.

...

  • SNMP Port - defaults to 161
  • SNMP Protocol - select SNMP protocol supported by your device:
    • v1
    • v2c
    • v3 - this protocol will require you to provide some additional configuration:
      • Security level - required, one of: noAuthNoPriv, authNoPriv, authPriv
      • Authentication protocol - MD5 or SHA
      • Authentication pass phrase
      • Privacy protocol - DES or AES
      • Privacy pass phrase
      • Context name
      • Context EngineID
  • Feature configurations - tick checkbox next to feature to enable it for your device. Consult your device documentation / MIBs. Notes:
    • OID can be numeric (like 3.1.3.6.1231.2.1.4.5.11.1211.1) or in text form (like: SNMPv2-SMI::enterprises.14748.1.31.1). On port-related OIDs you can use  {$port} variable which will be substituted with actual port number on get/set calls
    • use Test button to test entered OID against your device. When feature is port-related you can enter port number (in a form returned by List Ports) to perform test on
    • select Unit that your device returns data over SNMP - consult MIB/documentation of your device for details
Feature nameDescriptionOIDValuesUnitTest
List PortsThis is default feature that all devices should support.
Its
It's used to test connection as well as listing ports in Colocation manager when defining connections in device.see notes above the table--

Test will perform snmpwalk and show you returned data in debug window.

Get Port stateInforms whether Port (outlet) is on or off. 

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

Enter what values your device reports for ON and OFF state (ie 1 and 0)-

Test will perform snmpget on OID, parsed with port value you enter next to test button

Set Port StateAllows to enable/disable outlet on your device. Used in client portal widget to manage PDU, as well as in Colocation manager/
adminarea
admin area

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

Enter what values your device requires for ON and OFF state (ie 1 and 0)-Test will send ON value using snmpset on OID, parsed with port value you enter next to test button.
Get Port CurrentGet Current (amperage) of given port. Select what unit your device returns values in

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

-uA,mA,cA,A,kATest will perform snmpget on OID, parsed with port value you enter next to test button
Get port VoltageGet Voltage of given port. Select what unit your device returns values in

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

-uV,mV,cV,V,kV,MV

Test will perform snmpget on OID, parsed with port value you enter next to test button


Get port Acumulated kWhIf your device supports kWh consumption metering, and expose this information over snmp it can be used for power billing. 

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

--Test will perform snmpget on OID, parsed with port value you enter next to test button
Get port Active Power (W)Get port's Active power (W). Select what unit your device returns values in

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

-mW,cW,W,kWTest will perform snmpget on OID, parsed with port value you enter next to test button
Get Port Apparent Power (VA)Get port's Apparent power (VA). Select what unit your device returns values in

Use  {$port} in OID in place where port number should be placed.

You can use moveioid modifier (see section below the table)

-mVA,cVA,VA,kVATest will perform snmpget on OID, parsed with port value you enter next to test button


Modifying port number in OID using moveoid

...

Our device returns sample list of Outlets as a result of snmpwalk on OID: SNMPv2-SMI::enterprises.14748.1.31.1 

We got this list by entering above OID in List Ports feature and clicking on "Test" next to it

Code Block
7.0 => Outlet 1
12.0 => Outlet 2
17.0 => Outlet 3
22.0 => Outlet 4
27.0 => Outlet 5
32.0 => Outlet 6
37.0 => Outlet 7
42.0 => Outlet 8
47.0 => Outlet 9
52.0 => Outlet 10
  • From MIB documentation we've established, that 1 number away from port number is its current amperage.
  • So for port SNMPv2-SMI::enterprises.14748.1.31.1.7.0 amperage is on SNMPv2-SMI::enterprises.14748.1.31.1.8.0

To have it working with DIY Device, in OID for Get port current we'll enter:


Code Block
SNMPv2-SMI::enterprises.14748.1.31.1.{$port|moveoid:0:1}

...