dimis7 Posted October 6, 2015 #1 Posted October 6, 2015 Hello everyone. Just upgraded from DSM 5.1-5022 to DSM 5.2-5592 Update 4. I have an old APC UPS with no usb port... But since my mobo have serial port, i have connect it that way. On the previous version this worked fine. However with the new version of DSM the UPS is not detected any more. In order to work this setup on the previous version i have make a change to /usr/syno/etc/ups/ups.conf: [ups] driver = apcsmart port = /dev/ttyS2 #community = name #snmp_version = v2c #mibs = auto #secName = Synology #secLevel = noAuthNoPriv #authProtocol = MD5 #authPassword = 111111111111 #privProtocol = DES #privPassword = 222222222222 I make the same change to the new ver but when i run the command "upsdrvctl start" i get: Diskstation> upsdrvctl stop Network UPS Tools - UPS driver controller SDS5-2-2015Q1branch-5579-150611 Diskstation> upsdrvctl start Network UPS Tools - UPS driver controller SDS5-2-2015Q1branch-5579-150611 Network UPS Tools - APC Smart protocol driver 3.1 (SDS5-2-2015Q1branch-5579-150611) APC command table version 3.1 [d] unrecognized Diskstation> You can see from the following image that the ups responds to the server correctly: Since I'm not familiar with linux terminal i need some help to troubleshoot this problem... Thanks!
GavinChen Posted October 14, 2015 #2 Posted October 14, 2015 Sorry for my bad english. I also use APC UPS without USB, here is my modifying the way in the new version(5.2-5592 update 4) of the DSM. 1.Edit /usr/syno/etc/ups/ups.conf [ups] driver = apcsmart port = /dev/ttyS0 <--Changed to your cable = 940-0095B 2.Modify /usr/syno/etc/rc.sysv/ups-usb.sh at 88 line original local DRV_LIST="usbhid-ups blazer_usb bcmxcp_usb richcomm_usb tripplite_usb" after modify local DRV_LIST="apcsmart usbhid-ups blazer_usb bcmxcp_usb richcomm_usb tripplite_usb" 3.Edit/etc/rc.local at #!/bin/sh below add /usr/syno/etc/rc.sysv/ups-usb.sh start 4.Download https://github.com/networkupstools/nut/raw/master/data/cmdvartab this files and put it to /usr/syno/share/ folder 5.Restart your NAS,and enjoy it!
bmwbiker Posted October 18, 2015 #3 Posted October 18, 2015 Dear GavinChen, can you please explain exactly the steps you've done to run serial APC-USV? I've followed the steps like your's, but the USV wasn't recognized. Thanks in advance.
GavinChen Posted October 19, 2015 #4 Posted October 19, 2015 My APC Model is Smart-UPS 700 with Serial Cable. Please sure your step 1. What are your RS-232 port with connect APC UPS? 1.Edit /usr/syno/etc/ups/ups.conf [ups] driver = apcsmart port = /dev/ttyS0 <--Changed to your cable = 940-0095B PS: I capture the result picture,but I can't upload it.
Recommended Posts