Clarifications, based on apcupsd 3.14 and AP9617 FW version 3.7.3:
- The DEVICE password in apcupsd.conf needs to match the "Authentication Phrase" in UPS->PowerChute->configuration
- The IP address of the host that is running apcupsd must be added to "PowerChute Network Shutdown Clients" in UPS->PowerChute->clients
- I have two SmartUPSs, one feeding each redundant power supply. I used the multiple UPS Example in the manual, but did not null-configure the shutdown scripts, so that either UPS failing would initiate a shutdown. Unfortunately, it seems the PCNET port number cannot be changed, and both apcupsd instances want to bind it.
2011-04-13
2011-03-29
multilog patch update for daemontools
I found this useful patch to provide human-readable dates for daemontools multilog:
http://blog.endersys.com/2009/12/qmail-multilog-localtime-patch-for-daemontools-0-76/
Unfortunately, the time format that was chosen is not useful for navigating lengthy logfiles.
Here's my version that uses ISO-8601 date format.
2011-01-28
Dell OMSA: how to enable SNMP on openSUSE
Quite easy for openSUSE 11.3 . The only modification to normal procedure is to replace this line in /etc/snmp/snmpd.conf :
#rocommunity public 127.0.0.1
rocommunity public
2011-01-27
Dell OMSA: how to enable SNMP on Debian
This worked for me with Debian Lenny on a PE 2900. Reposting, since it took a bit of digging to find it. Credit to Bas Roos
--------------------------------------------------------------------------------------
* apt-get install snmpd
* Edit /etc/snmp/snmpd.conf
- Comment out 'com2sec paranoid default public
- Uncomment out '#com2sec readonly default public'
- Change 'default' into our management IP range in the previous
step (resulting in 'com2sec readonly 192.168.2.0/24 public')
* Edit /etc/default/snmpd
- Change SNMPDOPTS
- Before: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux
-p /var/run/snmpd.pid 127.0.0.1'
- After: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -p
/var/run/snmpd.pid 0.0.0.0' (this enabled smux and made snmpd listen on
all interfaces, instead of lo)
* /etc/init.d/dataeng enablesnmp (this should enable SNMP for both dataeng
itself, as it adds a line to /etc/snmp/snmpd.conf)
* /etc/init.d/dataeng restart (restarts dataeng and starts dsm_sa_snmp32d)
* /etc/init.d/snmpd restart
After this, SNMP seems to be working:
username at mgmt-server:~$ snmpwalk -v 2c -c public 192.168.2.71
.1.3.6.1.4.1.674.10892.1.300.10.1.11.1
SNMPv2-SMI::enterprises.674.10892.1.300.10.1.11.1 = STRING: "
here>"
2010-10-12
SanDisk U3 flash drives - U3 removal
The U3 rubbish can be removed using Linux, without running the Windows tool. (Instructions found buried in the comments to this blog post:
http://www.theatreofnoise.com/2006/08/uninstall-u3-and-free-your-usb-drive.html
)
- Mount the U3 volume, and use the 'mount' command to get the device name (/dev/sr1 in my case).
- Change directory to /sys/class/block/sr1/device (change 'sr1' as applicable).
- Enter 'echo 1 > delete'.
- Voila!
2010-08-12
Digi Edgeport/8 persistent serial port assignments
Here's how to add arbitrary symlinks referencing specific ports:
In /etc/udev/rules.d/60-persistent-serial.rules , insert lines like the following just above the final LABEL (included for reference). (Obviously, you'll need to change it for the serial number of your own adapter). This example sets links for ports 5 through 8 (as labelled on the adapter box):
ENV{ID_SERIAL}!="Digi_International_Edgeport_8_I01845608-2", GOTO="persistent_serial_3"
ENV{ID_PORT}=="0",SYMLINK+="ttyBellows"
ENV{ID_PORT}=="1",SYMLINK+="ttyDetector"
LABEL="persistent_serial_3"
ENV{ID_SERIAL}!="Digi_International_Edgeport_8_I01845608-3", GOTO="persistent_serial_end"
ENV{ID_PORT}=="0",SYMLINK+="ttyMosaicGrating"
ENV{ID_PORT}=="1",SYMLINK+="ttySlit"
LABEL="persistent_serial_end"
In /etc/udev/rules.d/60-persistent-serial.rules , insert lines like the following just above the final LABEL (included for reference). (Obviously, you'll need to change it for the serial number of your own adapter). This example sets links for ports 5 through 8 (as labelled on the adapter box):
ENV{ID_SERIAL}!="Digi_International_Edgeport_8_I01845608-2", GOTO="persistent_serial_3"
ENV{ID_PORT}=="0",SYMLINK+="ttyBellows"
ENV{ID_PORT}=="1",SYMLINK+="ttyDetector"
LABEL="persistent_serial_3"
ENV{ID_SERIAL}!="Digi_International_Edgeport_8_I01845608-3", GOTO="persistent_serial_end"
ENV{ID_PORT}=="0",SYMLINK+="ttyMosaicGrating"
ENV{ID_PORT}=="1",SYMLINK+="ttySlit"
LABEL="persistent_serial_end"
2010-08-05
Digi Edgeport/8 persistent serial port assignments
Even better than patching usb-serial.ko is to use the /dev/serial/by-id links that are provided with recent versions of Udev.
In the case of Debian Lenny (5.0.4), where the version of Udev (125) is too old, patching /lib/udev/path_id as follows:
--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -515,6 +515,9 @@ handle_device () {
*/host[0-9]*/[0-9]*:[0-9]*:[0-9]*:[0-9]*)
handle_scsi "$D"
;;
+ */ttyUSB*)
+ D=${D%/ttyUSB*}
+ ;;
*/usb[0-9]*/[0-9]*/*)
handle_usb "$D"
;;
and copying /lib/udev/60-persistent-serial.rules (the latter goes to /etc/udev/rules.d) provides the capability.
Subscribe to:
Posts (Atom)