Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. UPS configuration

UPS configuration

Scheduled Pinned Locked Moved Support
13 Posts 2 Posters 25.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    Victor Kirhenshtein
    wrote on last edited by
    #3

    Also, I found that some Powerware models shows management interface on serial console by default. They need to be switched into "pass-through" mode before using BCM/XCP protocol. That also may be the reason why UPS subagent cannot communication with the device.

    Best regards,
    Victor

    1 Reply Last reply
    0
    • D
      D
      DanG
      wrote on last edited by
      #4

      It's Model 5125.
      I'm not sure about how I kan switch to pass-through mode...

      Dan

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #5

        If you connect to com with terminal, what did you get?

        Best regards,
        Victor

        1 Reply Last reply
        0
        • D
          D
          DanG
          wrote on last edited by
          #6

          Victor,

          I stopped the LanSafe service.
          Using Putty I get a connection with the serial port.
          If I then run the NetXMS ups subagent I get the “no communication” warning, however the com port is the taken by the subagent as I can no more connect using Putty (nor does LaneSafe work).
          Since the ups subagent loads I tried to use the DCI, however they all return Unsupported - this is to be expected I guess.
          If I then remove ups subagent I once more can connect to the port.
          By what I can find, the PowerWare 5125 does not have a pass-through option.
          Any idea?

          Dan

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #7

            Do you have any response from the port when you connect with putty?

            1 Reply Last reply
            0
            • D
              D
              DanG
              wrote on last edited by
              #8

              When no other application uses the port the Putty connects without an error, however I don't get a prompt. should I get one?

              Dan

              1 Reply Last reply
              0
              • D
                D
                DanG
                wrote on last edited by
                #9

                Victor,

                After looking at the ups.cpp and bcmxcp.cpp source code, examining the BCM/XCP protocol and using a serial software that allows sending hexadecimal data to a COM port I found out that our UPS works with a rate op 9600 baud. As the ubs agent speed is hardcoded at 19200 this is probably the reason for it not working.
                I guess the subagent ups config format should be extended to allow communication settings.

                Dan

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #10

                  Thank you for debugging this! I have added possibility to set serial port speed in UPS subagent. Starting from 1.1.5, you can write like this:

                  Device = 0:"COM1:,9600":BCMXCP

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • D
                    D
                    DanG
                    wrote on last edited by
                    #11

                    Victor,

                    I think this is what open source software is all about, being able to contribute make software better. Thank you for listening and reacting so promptly to our findings.

                    If I may make a suggestion, serial communication parameters are Speed, Data bits, Stop bits, Parity and Flow control.
                    The function used in vcmxp.cpp has most of them: m_serial.Set(19200, 8, NOPARITY, ONESTOPBIT);
                    Maybe it would be even better to have something like:
                    Device = 0:"COM1:,9600,8,N,1":BCMXCP

                    Regards,

                    Dan

                    1 Reply Last reply
                    0
                    • V
                      V
                      Victor Kirhenshtein
                      wrote on last edited by
                      #12

                      I have added those options. Parity should be specified as N, E, or O. So fully specified string will be

                      Device = 0:"COM1:,9600,8,N,1":BCMXCP

                      Default speed is driver-dependent (i.e. 19200 for BCMXCP and 2400 for APC), default data bits is 8, default parity is N (none), and default stop bits is 1.

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • D
                        D
                        DanG
                        wrote on last edited by
                        #13

                        Hi,

                        After installing Agent 1.1.5 and using the new extended syntax the NetXMS recognizes the UPS. DCI works nicely.

                        Thank you!

                        Regards,

                        Dan

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups