SNMP control of APC PDU - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: SNMP control of APC PDU (/showthread.php?tid=3065) |
SNMP control of APC PDU - jamesng - 17.12.2020 Hi I'd like to run the following SNMP command to power cycle the ports in an APC AP7920B PDU (port 8 in the example below) snmpset -c private 192.168.1.100 1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.8 integer 3 The SNMP set command works from the terminal but I'm having some trouble running this from my script in LogicMachine. Here's what I have so far Code: require('snmp') I'm getting the following error trying to load the SNMP library on my CBUS 5500SHAC (which runs LM) - is there a way that I can load the SNMP library? Code: [color=#000000][size=small][font=Consolas, monospace]module 'snmp' not found: Many thanks in advance. James RE: SNMP control of APC PDU - Daniel - 17.12.2020 Check PM |