/usr/share/augeas/lenses/dist/nutupsconf.aug is in nut-client 2.7.2-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | (*
Module: NutUpsConf
Parses /etc/nut/ups.conf
Author: Raphael Pinson <raphink@gmail.com>
Frederic Bohe <fredericbohe@eaton.com>
Arnaud Quette <arnaud.quette@gmail.com>
About: License
This file is licensed under the GPL.
About: Lens Usage
Sample usage of this lens in augtool
* Print all drivers used
> print /files//etc/nut/ups.conf/*/driver
About: Configuration files
This lens applies to /etc/nut/ups.conf. See <filter>.
*)
module NutUpsConf =
autoload ups_xfm
(************************************************************************
* Group: UPS.CONF
*************************************************************************)
let ups_comment = IniFile.comment IniFile.comment_re IniFile.comment_default
let ups_sep = IniFile.sep IniFile.sep_re IniFile.sep_default
let ups_global = "chroot"
| "driverpath"
| "maxstartdelay"
| "pollinterval"
| "user"
let ups_fields = "driver"
| "port"
| "sdorder"
| "desc"
| "nolock"
| "maxstartdelay"
| "CP"
| "CS"
| "ID"
| "LB"
| "LowBatt"
| "OL"
| "OffDelay"
| "OnDelay"
| "SD"
| "advanced_eco_mode"
| "advorder"
| "alarm_control"
| "authPassword"
| "authProtocol"
| "authtype"
| "awd"
| "batteryPercentage"
| "battery_alarm"
| "battery_number"
| "battery_open_status_check"
| "battext"
| "battvoltmult"
| "baud_rate"
| "baudrate"
| "bus"
| "bypass_alarm"
| "bypass_forbidding"
| "bypass_when_off"
| "cable"
| "cablepower"
| "chargetime"
| "community"
| "constant_phase_angle"
| "converter_mode"
| "daysoff"
| "daysweek"
| "dumbterm"
| "eco_mode"
| "explore"
| "fake_lowbatt"
| "flash"
| "frequency"
| "fruid"
| "full_update"
| "houroff"
| "houron"
| "idleload"
| "input_timeout"
| "langid_fix"
| "limited_runtime_on_battery"
| "linevoltage"
| "load.off"
| "load.on"
| "load.status"
| "loadPercentage"
| "login"
| "lowbatt"
| "manufacturer"
| "max_bypass_freq"
| "max_bypass_volt"
| "max_load"
| "maxreport"
| "methodOfFlowControl"
| "mfr"
| "mibs"
| "min_bypass_freq"
| "min_bypass_volt"
| "mincharge"
| "minruntime"
| "model"
| "modelname"
| "nohang"
| "nombattvolt"
| "norating"
| "notification"
| "notransferoids"
| "novendor"
| "nowarn_noimp"
| "numOfBytesFromUPS"
| "offdelay"
| "oldmac"
| "ondelay"
| "output_pace"
| "output_phase_angle"
| "password"
| "pollfreq"
| "pollonly"
| "powerup"
| "prefix"
| "prgshut"
| "privPassword"
| "privProtocol"
| "product"
| "productid"
| "protocol"
| "rebootdelay"
| "reset_to_default"
| "runtimecal"
| "sdtime"
| "sdtype"
| "secLevel"
| "secName"
| "serial"
| "serialnumber"
| "shutdownArguments"
| "shutdown_delay"
| "shutdown_duration"
| "shutdown_timer"
| "silent"
| "site_fault_detection"
| "snmp_version"
| "startdelay"
| "status_only"
| "stayoff"
| "subdriver"
| "subscribe"
| "testing"
| "testtime"
| "timeout"
| "ttymode"
| "type"
| "ups.delay.shutdown"
| "ups.delay.start"
| "upstype"
| "usd"
| "use_crlf"
| "use_pre_lf"
| "username"
| "validationSequence"
| "vendor"
| "vendorid"
| "voltage"
| "wait"
| "work_range_type"
| "wugrace"
let ups_entry = IniFile.indented_entry (ups_global|ups_fields) ups_sep ups_comment
let ups_title = IniFile.indented_title IniFile.record_re
let ups_record = IniFile.record ups_title ups_entry
let ups_lns = IniFile.lns ups_record ups_comment
let ups_filter = (incl "/etc/nut/ups.conf")
. Util.stdexcl
let ups_xfm = transform ups_lns ups_filter
|