Access Keys:
Skip to content (Access Key - 0)
 

Switched rack PDU

David

On Jan 19, 2012 14:07

Hi, i have a apc switched rack pdu lying around witch i am trying to control with openremote.
It has 8 switchable power outlets and has its own basic web interface to control them.
The web interface uses html post to send the commands (one page to select wich oultets and what to do with them and one to confirm)
It also had ssh acces and with console u have to go tru a sequence of menus to control the outlets (mostly while typing numbers)
I have tried both the html command option (but saw no option for post parameters) as the telnet command option (by giving the login and number sequence with enters into notepad and copy pasting it to the telenet command field) What would be the easiest way to make this work ? And if it is possible are there some examples i might follow ?

Regards

 
Labels:
Participants: Eric Bariaux , Marcus Redeker , David
  1. Jan 23

    David says:

    It seems it is also possible to manage it thru snmp. Would it bepossbile to send...

    It seems it is also possible to manage it thru snmp. Would it bepossbile to send snmp commands with openremote ?

    1. Jan 23

      Eric Bariaux says:

      There is no SNMP module right now. This has been mentioned in the past and as th...

      There is no SNMP module right now. This has been mentioned in the past and as there are a few SNMP stacks in Java, should not be too difficult to implement.
      If somebody wants to have a go at it, we'll be glad to provide support through the forums.

      1. Feb 12

        David says:

        Hi, I just made a basic snmp module that switches my light connected to the pdu ...

        Hi, I just made a basic snmp module that switches my light connected to the pdu on.
        For now it has the ip, port, oid etc hardcoded and no security in it but i am going to try and make it way more generic.
        I based my snmp module on the telnet module and using snmp4j libraries. (distributed under apache 2.0 licence i hope that's ok ?)
        Most stuff was well explained on the Openremote Documentation pages but maybe you can add some stuff about external libraries. That's where i had some trouble with (might be because im a .net dev and have no java building experience).
        I didn't know where to put the snmp4j lib in the controller so i added it to the lib folder in the controller dir and added
        <path id = "compile.path.id">
        <fileset dir = "${lib.dir}/snmp4j"/>
        to the build.xml file. I thought building the built war file would include it somehow but that was not the case so i had to add the snmp4j jar to Runtime\apache-tomcat-6.0.18\webapps\controller\WEB-INF\lib manually.
        (Maybe my whole approach is not right and its way simpler in another way)

        1. Feb 13

          Marcus Redeker says:

          The "compile.path.id" is only for the java compiler. For the runtime the jar als...

          The "compile.path.id" is only for the java compiler.
          For the runtime the jar also needs to be copied to WEB-INF/lib as you already figured out correctly.
          This is done in the ant build.xml in the "init" target. There is a command

           <copy todir = "${build.dir}/lib" flatten = "true"> 
          which takes the needed jar's and copies them all into one folder. That is later used and packed into WEB-INF/lib. If you add your jar with an additional fileset it should end up in the war file.

        2. Feb 15

          Eric Bariaux says:

          David, Glad you did manage to have something working there. If you want to con...

          David,

          Glad you did manage to have something working there.

          If you want to contribute your code (so maybe others can also enhance it if required and I can give it a try), please take a look at http://www.openremote.org/display/project/Contributor+License+Agreement+Signup
          and here http://www.openremote.org/display/Community/New+Contributors+Getting+Started

          Thanks,
          Eric

Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license