tqandrade/snmp-fiberhome — reverse-engineered prompt
Reverse engineered prompt
Build me a Node.js library for managing Fiberhome OLT equipment over SNMP. I want to import it in another project, pass in connection options like IP, community, port, trap port, logs and warnings, then call simple promise based functions.
It should let me read OLT information, model, subrack details, slots, cards, PON port lists and individual PON ports. It also needs ONU tools, like listing authorized and unauthorized ONUs, getting ONU info by slot, PON and ONU ID, checking optical power, distance, bandwidth, LAN ports, WAN settings, MAC or serial data, last off time and uplink interface.
Please include write actions too, like add ONU, authorize ONU, delete ONU, set WAN, set LAN ports, set bandwidth, enable web admin and reboot ONU. Handle failed connections by returning false where appropriate. Add clear examples and basic tests so I can publish it as an npm package.
Want more depth? Deep Reverse