# upsdrvctl -t shutdown
Network UPS Tools - UPS driver controller 2.6.5-Unversioned directory
*** Testing mode: not calling exec/kill
0.000000
If you're not a NUT core developer, chances are that you're told to enable debugging
to see why a driver isn't working for you. We're sorry for the confusion, but this is
the 'upsdrvctl' wrapper, not the driver you're interested in.
Below you'll find one or more lines starting with 'exec:' followed by an absolute
path to the driver binary and some command line option. This is what the driver
starts and you need to copy and paste that line and append the debug flags to that
line (less the 'exec:' prefix).
0.005590 Shutdown UPS: SMK
0.005707 exec: /lib64/nut/blazer_ser -a SMK -k
Соединение не отваливается.
# /lib64/nut/blazer_ser -h
Network UPS Tools - Megatec/Q1 protocol serial driver 1.55 (2.6.5-Unversioned directory)
usage: blazer_ser -a <id> [OPTIONS]
-a <id> - autoconfig using ups.conf section <id>
- note: -x after -a overrides ups.conf settings
-V - print version, then exit
-L - print parseable list of driver variables
-D - raise debugging level
-q - raise log level threshold
-h - display this help
-k - force shutdown
-i <int> - poll interval
-r <dir> - chroot to <dir>
-u <user> - switch to <user> (if started as root)
-x <var>=<val> - set driver variable <var> to <val>
- example: -x cable=940-0095B
Acceptable values for -x or ups.conf in this driver:
Set cable power for serial interface : -x cablepower=<value>
Delay before UPS startup (minutes) : -x ondelay=<value>
Delay before UPS shutdown (seconds) : -x offdelay=<value>
Parameters used for runtime calculation : -x runtimecal=<value>
Nominal charge time for UPS battery : -x chargetime=<value>
Minimum load to be used for runtime calculation : -x idleload=<value>
Skip reading rating information from UPS : -x norating
Skip reading vendor information from UPS : -x novendor
Preselect communication protocol (skip autodetection) : -x protocol
Read The Fine Manual ('man 8 blazer')
Включить debug и посмотреть что там:
# /lib64/nut/blazer_ser -DDDDD -a SMK -k
Перед этим всё же посмотреть на выхлоп (может будет что интересное) /lib/nut/blazer_ser -DDDDD -a SMK, то есть:
# /etc/init.d/upsdrv zap
# killall blazer_ser
# /lib/nut/blazer_ser -DDDDD -a SMK
Fat-Zer пишет:У меня зреет нехорошее подозрение, что фины не так точно реализовали протокол, как того хотелось бы...
Честно говоря к SVEN у меня двоякое отношение, вроде и ничего так железки (комплектуха вполне приличная), с другой стороны стремление удешевить продукцию приводит к непредсказуемым последствиям.
История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.