APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Posted: 2021-06-28 08:01 AM . Last Modified: 2024-03-18 12:13 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:01 AM . Last Modified: 2024-03-18 12:13 AM
Hi,
I've been fighting with SNMP commands to try and get some basic information form my AP7911A.
My eventual goal is to get my APC's set up with nagios so I'm using the check_snmp command and have tired a bunch of things with no luck.
For ex/
./check_snmp -H 10.91.12.240 -o .1.3.6.1.4.1.318.1.1.1.2.2.2.0 -C public
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 10.91.12.240:161 .1.3.6.1.4.1.318.1.1.1.2.2.2.0
When I run snmpget -t 1 -r 5 -v 1 -c public 10.91.12.240:161 sysUpTime.0 I do get a response: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (119496480) 13 days, 19:56:04.80
What I would like to figure out is how to use SNMP to get:
All in all any command I run other then sysUpTime I get back "SNMP problem - No data received from host" . Any help would be greatly appreciated.
Thank you in advanced.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
I am using a GUI SNMP tool called GetIf, not a CLI tool. Thus, I just navigate via the GUI and do a "get" request when I highlight the OID in the list. You may need to research snmpget a little bit to see what syntax is required. For example, it may require you to add a .0 at the end of the OID like:
snmpget -v1 -c public 10.91.12.240 .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.0
That is my first guess as to what to try. Here is what I did below. Pressing "Start" initates a Get request in this program. (I took my PDU offline so I can't query it again today without setting it up but when I pressed start yesterday, it provided the response I provided a screenshot of in the bottom half of the screen):
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:01 AM . Last Modified: 2024-03-18 12:13 AM
Hello,
AP7911A is a Rack Power Distribution Unit (PDU) - it is a switched outlet power strip, not a UPS (Buy RACK PDU, SWITCHED, 2U, 30A, 208V, (16)C13 - Technical Specifications and Information | APC). Do you really have a UPS (and maybe just selected the wrong IP address) or a Rack PDU because a Rack PDU won't respond to UPS SNMP OIDs and vice versa with a UPS not responding to rPDU OIDs. So, if it is truly an AP7911A, it won't respond to upsAdvBatteryTemperature (.1.3.6.1.4.1.318.1.1.1.2.2.2) since it is not UPS and does not have a battery.
The easiest thing is to probably use a graphical MIB browser such as iReasoning or GetIf which are available for free. This will help you browse the OIDs and obtain the numerical OIDs for the pieces of information you'd like once you verify what device you are looking at and trying to query data from. Rack PDUs respond to anything applicable (depending on model) under .iso.org.dod.internet.private.enterprises.apc.products.hardware.rPDU (.1.3.6.1.4.1.318.1.1.12)
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
I stand corrected. You are right it's a PDU. Could you maybe point me in the right direction of where I could find:
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Sure.
.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2 / .iso.org.dod.internet.private.enterprises.apc.products.hardware.rPDU.rPDULoad.rPDULoadStatus.rPDULoadStatusTable.rPDULoadStatusEntry.rPDULoadStatusLoad
Also, please review this article -> What values should I expect from OID rPDULoadStatusLoad on my Rack PDU 1G? | FAQs | Schneider Electr...
You'll get get three responses from this OID, the first will be the total, then bank 1, and bank 2.
I just did it on my PDU below and here is what I got (the OID reports in tenths):
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Could you share the full command you are running. I seem to be missing something.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
For Ex:
snmpget -v1 -c public -m "/usr/share/snmp/mibs/powernet410.txt" 10.91.12.240 .iso.org.dod.internet.private.enterprises.apc.products.hardware.rPDU.rPDULoad.rPDULoadStatus.rPDULoadStatusTable.rPDULoadStatusEntry.rPDULoadStatusLoad
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: PowerNet-MIB::rPDULoadStatusLoad
snmpget -v1 -c public -m "/usr/share/snmp/mibs/powernet410.txt" 10.91.12.240 .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: PowerNet-MIB::rPDULoadStatusLoad
snmpget -v1 -c public 10.91.12.240 .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.318.1.1.12.2.3.1.1.2
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
I am using a GUI SNMP tool called GetIf, not a CLI tool. Thus, I just navigate via the GUI and do a "get" request when I highlight the OID in the list. You may need to research snmpget a little bit to see what syntax is required. For example, it may require you to add a .0 at the end of the OID like:
snmpget -v1 -c public 10.91.12.240 .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.0
That is my first guess as to what to try. Here is what I did below. Pressing "Start" initates a Get request in this program. (I took my PDU offline so I can't query it again today without setting it up but when I pressed start yesterday, it provided the response I provided a screenshot of in the bottom half of the screen):
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
Ok great I now have a response from Getif.
So while I try to figure out how to get the same response via SNMP I notice a problem.
It seems to be missing the decimal in it's response.
Total should be 3.2
Bank 1: 1.4
Bank 2: 1.8
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 08:02 AM . Last Modified: 2024-03-18 12:12 AM
That is not the way SNMP typically works. You won't see any decimals in any responses for APC products or typically any other vendor. It is up to the user to know the value is in tenths or if you have a high end SNMP management tool, it can put them in for you. GetIf is freeware so it does not have the capability to do so and you just see the raw response from the device. With GetIf, you'll need to just read the description on any given OID and move the decimal place manually in your mind depending on if it reports in tenths, hundredths, etc
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.