phillipsnick / apc-pdu-snmp Goto Github PK
View Code? Open in Web Editor NEWAPC PDU module utilising SNMP
License: MIT License
APC PDU module utilising SNMP
License: MIT License
I am having an interesting issue turning some outlets off/on. I am attempting to control some APC PDU's, model #AP8965. When turning an outlet off or on I get the following error.
{ RequestFailedError: GeneralError: 1.3.6.1.4.1.318.1.1.4.4.2.1.3.10
at Object.Session.onSimpleGetResponse [as onResponse] (/path/to/relevant/directory/node_modules/net-snmp/index.js:946:16)
at Session.onMsg (/path/to/relevant/directory/node_modules/net-snmp/index.js:920:9)
at emitTwo (events.js:126:13)
at Socket.emit (events.js:214:7)
at UDP.onMessage [as onmessage] (dgram.js:659:8)
name: 'RequestFailedError',
message: 'GeneralError: 1.3.6.1.4.1.318.1.1.4.4.2.1.3.10',
status: 5 }
The weird thing is that the actions ARE going through, the outlets are turning off and on as expected. Have you run into this in the past? Any chance you could point me in the right direction?
I am having an interesting issue turning some outlets off/on. I am attempting to control some APC PDU's, model #AP8965. When turning an outlet off or on I get the following error.
{ RequestFailedError: GeneralError: 1.3.6.1.4.1.318.1.1.4.4.2.1.3.10
at Object.Session.onSimpleGetResponse [as onResponse] (/path/to/relevant/directory/node_modules/net-snmp/index.js:946:16)
at Session.onMsg (/path/to/relevant/directory/node_modules/net-snmp/index.js:920:9)
at emitTwo (events.js:126:13)
at Socket.emit (events.js:214:7)
at UDP.onMessage [as onmessage] (dgram.js:659:8)
name: 'RequestFailedError',
message: 'GeneralError: 1.3.6.1.4.1.318.1.1.4.4.2.1.3.10',
status: 5 }
The weird thing is that the actions ARE going through, the outlets are turning off and on as expected. Have you run into this in the past? Any chance you could point me in the right direction?
If anyone is looking for a updated version I'll be making some changes on my fork.
Additional, I will be refactoring to handle multiple PDUs.
Also requires a number of fixes to correspond with the updated module
The value is a Guage32 value, not 100% sure on how to convert this into something usable currently.
I am having issues testing your example. I keep getting RequestTimedOutError: Request timed out.
I logged into my APC pdu, enabled snmpV1 and snmpV3. Not sure if there is anything more needed than that. There are some options for access control but left those default.
Sitting in the example dir, I am running 'node outlet-info.js'.
I was expecting some output from what it looks like are various queries.
Any guidance would be helpful in this debug process.
Thanks.
In package.json
"main": "./lib/apc.js"
However the actual filename is
./lib/app.js
In the readme it looks like your refering to this link for the APC MIB (http://www.observium.org/svn/observer/trunk/mibs/PowerNet-MIB). This MIB appears to be version 4.0.5 (Jan 11, 2012) and is out of date.
Latest APC mibs can be found on their website here:
ftp://ftp.apc.com/apc/public/software/pnetmib/mib
Current MIB (May 12 2014):
ftp://ftp.apc.com/apc/public/software/pnetmib/mib/411/powernet411.mib
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.