Difference between revisions of "Power"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
This is where we should keep track of info about the power supplies, power usage, etc. | This is where we should keep track of info about the power supplies, power usage, etc. | ||
+ | |||
+ | == Some snmpget commands == | ||
+ | |||
+ | Here are some common [https://www.opsview.com/resources/monitoring/blog/monitoring-apc-ups-useful-oids OID's]. SNMP uses these OID's to get very specific, discrete pieces of information from a device. | ||
+ | |||
+ | As an example, we've run the following commands to get info about the power supply for cluster: | ||
+ | |||
+ | <pre> | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.1.1.1.0 | ||
+ | SNMPv2-SMI::enterprises.318.1.1.1.1.1.1.0 = STRING: "Smart-UPS RT 10000 XL" | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.3.2.5.0 | ||
+ | SNMPv2-SMI::enterprises.318.1.1.1.3.2.5.0 = INTEGER: 9 | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.2.2.3.0 | ||
+ | SNMPv2-SMI::enterprises.318.1.1.1.2.2.3.0 = Timeticks: (132000) 0:22:00.00 | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.2.2.1.0 | ||
+ | SNMPv2-SMI::enterprises.318.1.1.1.2.2.1.0 = Gauge32: 100 | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.2.1.1.4.0 | ||
+ | SNMPv2-MIB::sysContact.0 = STRING: Charlie Peck, charles.peck@gmail.com | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.2.1.1.6.0 | ||
+ | SNMPv2-MIB::sysLocation.0 = STRING: Noyes Machine Room, Arctic Rack | ||
+ | > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.2.2.2.0 | ||
+ | SNMPv2-SMI::enterprises.318.1.1.1.2.2.2.0 = Gauge32: 26 | ||
+ | </pre> | ||
+ | |||
+ | == Some other useful pages == | ||
+ | |||
+ | [[:File:ClusterPowerDiagram.png | Most recent cluster power diagram]] | ||
[[Sysadmin:ImportantInfo:UPS|Old UPS page]] | [[Sysadmin:ImportantInfo:UPS|Old UPS page]] | ||
− | |||
− | |||
− | |||
[[Sysadmin:ImportantInfo:PowerFailure | Deprecated power failure info]] | [[Sysadmin:ImportantInfo:PowerFailure | Deprecated power failure info]] |
Revision as of 10:08, 1 August 2018
This is where we should keep track of info about the power supplies, power usage, etc.
Some snmpget commands
Here are some common OID's. SNMP uses these OID's to get very specific, discrete pieces of information from a device.
As an example, we've run the following commands to get info about the power supply for cluster:
> /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.1.1.1.0 SNMPv2-SMI::enterprises.318.1.1.1.1.1.1.0 = STRING: "Smart-UPS RT 10000 XL" > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.3.2.5.0 SNMPv2-SMI::enterprises.318.1.1.1.3.2.5.0 = INTEGER: 9 > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.2.2.3.0 SNMPv2-SMI::enterprises.318.1.1.1.2.2.3.0 = Timeticks: (132000) 0:22:00.00 > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.2.2.1.0 SNMPv2-SMI::enterprises.318.1.1.1.2.2.1.0 = Gauge32: 100 > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.2.1.1.4.0 SNMPv2-MIB::sysContact.0 = STRING: Charlie Peck, charles.peck@gmail.com > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.2.1.1.6.0 SNMPv2-MIB::sysLocation.0 = STRING: Noyes Machine Room, Arctic Rack > /usr/bin/snmpget -v 1 -c public ups.cluster.earlham.edu .1.3.6.1.4.1.318.1.1.1.2.2.2.0 SNMPv2-SMI::enterprises.318.1.1.1.2.2.2.0 = Gauge32: 26