Useful Huawei OIDs

.1.3.6.1.2.1.47.1.1.1.1.7 – provides names for hwEntityId
1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11 – temperature sensors
.1.3.6.1.4.1.2011.5.25.31.1.1.1.1.12 – temperature sensors high threshold
.1.3.6.1.4.1.2011.5.25.31.1.1.1.1.16 – temperature sensors low threshold
.1.3.6.1.4.1.2011.5.25.31.1.1.1.1.22 – transceiver optical power rx (NE40E)
.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.8 – transceiver optical power rx (switches)

Huawei S53/S93 traffic policy statistics

This example shows how to match and count pvst+ packets in vlan 299 on certain interface.

traffic classifier pvst-bpdu-vlan299 operator and 
 if-match destination-mac 0100-0CCC-CCCD
 if-match vlan-id 299
traffic behavior pvst-bpdu-vlan299
 statistic enable 
traffic policy pvst-bpdu-vlan299
 classifier pvst-bpdu-vlan299 behavior pvst-bpdu-vlan299
int g2/0/30
 traffic-policy pvst-bpdu-vlan299 inbound

Display and clear statistics:

reset traffic policy statistics interface GigabitEthernet2/0/30 inbound
disp traffic policy statistics interface GigabitEthernet2/0/30 inbound

Reset command can be issued only from user-view.

percona xtrabackup basics on debian

Installation
Adding a repository:
#gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
... [some output removed] ...
gpg: imported: 1

#gpg -a --export CD2EFD2A | sudo apt-key add -
Add this to /etc/apt/sources.list, replacing squeeze with the name of your distribution:
deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main

apt-get update
apt-get install xtrabackup

Creating a backup
innobackupex --user=DBUSER --password=DBUSERPASS --databases="db1 db2" /path/to/BACKUP-DIR/