Useful Huawei OIDs

. – provides names for hwEntityId – temperature sensors
. – temperature sensors high threshold
. – temperature sensors low threshold
. – transceiver optical power rx (NE40E)
. – 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

Adding a repository:
#gpg --keyserver hkp:// --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 squeeze main
deb-src squeeze main

apt-get update
apt-get install xtrabackup

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