configuration of powerware 5125 ups

Started by tops, December 29, 2015, 04:39:15 PM

Previous topic - Next topic

tops

Hi.
Trying to communicate with a powerware 5125 ups.
I followed an old thread fond here https://www.netxms.org/forum/configuration/ups-configuration/
(wich seems to be for a windows configuration)

in my  nxagentd.conf i put this
SubAgent = /usr/local/lib/libnsm_ups.so


# UPS subagent configuration section
*UPS
Device = 0:ttyUSB5:,9600,8,N,1:BCMXCP

From the logfile i recive this:
[29-Dec-2015 15:29:14] Log file opened
[29-Dec-2015 15:29:14] Debug level set to 0
[29-Dec-2015 15:29:15] Subagent "/usr/local/lib/libnsm_linux.so" loaded successfully
[29-Dec-2015 15:29:15] Unable to add UPS device from configuration file. Original configuration record: 0:ttyUSB5:,9600,8,N,1:BCMXCP
[29-Dec-2015 15:29:15] Subagent "/usr/local/lib/libnsm_ups.so" loaded successfully
[29-Dec-2015 15:29:16] Listening on socket 0.0.0.0:4700
[29-Dec-2015 15:29:17] NetXMS Agent started

Also i have no other communication on usb5

and my agent version is 1.2.9

Any idea?



Alex Kirhenshtein

Use full name of the device – /dev/ttyUSB5

tops

Hi Alex.
Tried that before...

[29-Dec-2015 16:22:54] Log file opened
[29-Dec-2015 16:22:54] Debug level set to 0
[29-Dec-2015 16:22:55] Subagent "/usr/local/lib/libnsm_linux.so" loaded successfully
[29-Dec-2015 16:22:55] Unable to add UPS device from configuration file. Original configuration record: 0:/dev/ttyUSB5:,9600,8,N,1:BCMXCP
[29-Dec-2015 16:22:55] Subagent "/usr/local/lib/libnsm_ups.so" loaded successfully
[29-Dec-2015 16:22:56] Listening on socket 0.0.0.0:4700
[29-Dec-2015 16:22:57] NetXMS Agent started

and the conf

Action = sms:/home/sms/bin/sms_alert $1

SubAgent = /usr/local/lib/libnsm_ups.so


# UPS subagent configuration section
*UPS
Device = 0:/dev/ttyUSB5:,9600,8,N,1:BCMXCP


Alex Kirhenshtein

My bad, missed colon.

Correct configuration is:

Device = 0:/dev/ttyUSB5,9600,8,N,1:BCMXCP

P.S are sure about port speed? Common speed for BCMXCP-devices is 19200 (set by default in netxms driver)

tops

Hi

Still no luck.
From the post in the link it supposed to be 9600.

also tried without colon, then i get
[29-Dec-2015 17:38:42] Debug level set to 0
[29-Dec-2015 17:38:43] Subagent "/usr/local/lib/libnsm_linux.so" loaded successfully
[29-Dec-2015 17:38:43] UPS: Cannot establish communication with device #0 "BCMXCP-/dev/ttyUSB5,19200,8,N,1"
[29-Dec-2015 17:38:43] Subagent "/usr/local/lib/libnsm_ups.so" loaded successfully
[29-Dec-2015 17:38:44] Listening on socket 0.0.0.0:4700
[29-Dec-2015 17:38:45] NetXMS Agent started

and with 9600

[29-Dec-2015 17:37:41] Debug level set to 0
[29-Dec-2015 17:37:42] Subagent "/usr/local/lib/libnsm_linux.so" loaded successfully
[29-Dec-2015 17:37:42] Subagent "/usr/local/lib/libnsm_ups.so" loaded successfully
[29-Dec-2015 17:37:42] UPS: Cannot establish communication with device #0 "BCMXCP-/dev/ttyUSB5,9600,8,N,1"
[29-Dec-2015 17:37:43] Listening on socket 0.0.0.0:4700
[29-Dec-2015 17:37:44] NetXMS Agent started