machineswhe.blogg.se

Lsusb status
Lsusb status










lsusb status
  1. #Lsusb status serial numbers#
  2. #Lsusb status serial number#
  3. #Lsusb status pro#

# When apcupsd detects that the mains are on, but the battery is not $ udevadm info -attribute-walk -name=/dev/usb/hiddev0 | egrep 'manufacturer|product|serial'ĪTTRS.

#Lsusb status serial number#

The manufacturer and serial number attributes will be used by udev to uniquely identify each UPS on the system.

#Lsusb status serial numbers#

Each UPS performs different actions for different events.Ĭonnect each UPS and determine they are visible USB devicesīus 004 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supplyīus 008 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power Supplyĭetermine the serial numbers for each UPS

lsusb status

One UPS is named "UPS Network" and controls power to networking equipment, and the other UPS is named "UPS Server" and controls power to the computer monitoring both UPSes. The UPS devices used as examples below are two APC SmartUPS SUA1500 devices connected to one computer via USB. I rewrote it in PowerShell and was pretty happy with the results so I thought I would share them.

lsusb status

In order to control multiple UPS devices, extra steps must be taken that are not required for monitoring only one UPS.įor multiple UPS monitoring to work, each UPS must be uniquely identifiable and uniquely named on the monitoring computer, separate nf files must be used for each UPS device, and a modified apcupsd init.d script must be used to control multiple apcupsd daemon processes. Over on, I came upon a VBScript in a forum to find all the PNP entities associated with a USBController. The following configuration steps can be used for monitoring one or more UPS devices from one computer. The log file /var/log/apcupsd.events says if the daemon has started correctly. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2. Now you can start the daemon with the command: Heres the details of lsusb: Code: Bus 002 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. UPSTYPE : the type of UPS you have (USB, RS232,…)Īnd in /etc/default/apcupsd, you indicate that the configuration is done (not needed with systemd). UPSCABLE : the type of cable connecting the UPS to your computer. In /etc/apcupsd/nf, you must specify the type of UPS: You need to use the lsusb command: lsusb Try to look a wireless or network device in the list. The daemon controls and monitors the status of UPS and allows your computer to run for a specified length of time on UPS power, and then executes a controlled shutdown in the case of an extended power failure.īefore starting the daemon, you must at minimum configure /etc/apcupsd/nf and /etc/default/apcupsd.

#Lsusb status pro#

To see if your ups is recognized, use the command:īus 001 Device 002: ID 051d:0002 American Power Conversion Back-UPS Pro 500/1000/1500 Support On The Go (OTG) 2.0 host/device selection. The documentation is available in the apcupsd-doc package. The ZynqMP USB 3.0 Controller shall provide one 5.0Gbit/s USB channel using the PS internal GT as PHY.












Lsusb status