Imported Upstream version 2.6.3

This commit is contained in:
Arnaud Quette 2012-01-24 11:22:33 +01:00
parent 45043b58d0
commit fad6ced6f6
255 changed files with 11081 additions and 4629 deletions

View file

@ -40,6 +40,12 @@ include::sock-protocol.txt[]
include::../scripts/augeas/README[]
[[devscan]]
include::../tools/nut-scanner/README[]
[[new-clients]]
include::new-clients.txt[]
@ -57,6 +63,8 @@ NUT developers tools
NUT provides several tools for clients and core developers, and QA people.
[[dev-simu]]
Device simulation
-----------------
@ -65,10 +73,44 @@ This mode allows to simulate any kind of devices, even non existing ones.
Using this method, you can either replay a real life sequence,
<<dev-recording,recorded from an actual device>>, or directly interact
through upsrw or by editing the device file.
through upsrw or by editing the device file, to modify the variables values.
For more information, refer to linkman:dummy-ups[8]
manual page.
Here is an example to setup a device simulation:
- install NUT as usual, if not already done
- get a simulation file (.dev) or sequence (.seq), or generate one using the
<<dev-recording,device recorder>>. Sample files are provided in the 'data'
directory of the NUT source. You can also download these from the development
repository, such as the
link:http://anonscm.debian.org/viewvc/nut/trunk/data/evolution500.seq?revision=2778&view=co[evolution500.seq].
- copy the simulation file to your sysconfig directory, like /etc/nut or
/etc/ups
- configure NUT for simulation (linkman:ups.conf[5]):
+
[dummy]
driver = dummy-ups
port = evolution500.dev
desc = "dummy-ups in dummy mode"
+
- now start NUT, at least dummy-ups and upsd:
+
$ upsdrvctl start dummy
$ upsd
+
- and check the data:
+
$ upsc dummy
...
+
- you can also use upsrw to modify the data:
+
$ upsrw -s ups.status="OB LB" -u user -p password dummy
+
- or directly edit /etc/nut/evolution500.seq. In this case, modification will
only apply according to the TIMER events and the current position in the
sequence.
For more information, refer to linkman:dummy-ups[8] manual page.
[[dev-recording]]
@ -91,6 +133,9 @@ For example, to record information from the device 'myups' every 10 seconds:
tools/device-recorder.sh myups@localhost myups.seq 10
During the recording, you will want to generate power events, such as power
failure and restoration. These will be tracked in the simulation files, and be
eventually be replayed by the <<dev-simu,dummy-ups>> driver.
NUT core development and maintenance
@ -113,3 +158,9 @@ Appendix A: NUT command and variable naming scheme
==================================================
include::nut-names.txt[]
[[lib-info]]
Appendix B: NUT libraries complementary information
===================================================
include::../lib/README[]