Skip to content

Instantly share code, notes, and snippets.

Supermicro IPMI License Key (for updating BIOS) = HMAC-SHA1-96(INPUT: MAC address of BMC, SECRET KEY: 85 44 E3 B4 7E CA 58 F9 58 30 43 F8)
echo -n 'bmc-mac' \
| xxd -r -p \
| openssl dgst -sha1 -mac HMAC -macopt hexkey:8544E3B47ECA58F9583043F8 \
| awk '{print $2}' \
| cut -c 1-24
version: '2.1'
services:
esphomeyaml:
image: ottowinter/esphomeyaml:latest
container_name: esphomeyaml
command: esphomeyaml dashboard
restart: always
ports:
hdparm -tT --direct /dev/<DEVICE>
AIO NVMe Intel Optane 990P
Timing O_DIRECT cached reads: 2423 MB/sec
Timing O_DIRECT disk reads: 2415 MB/sec
SSD SATA SAMSUNG PM863a 960GB
AVG Timing O_DIRECT cached reads: 472 MB/s
AVG Timing O_DIRECT disk reads: 507 MB/s
#
# Commands to set protocol type between ehternet and infiniband on Mellanox ConnectX-3 VPI network cards
# LINK_TYPE 2 = Eth
# LINK_TYPE 1 = IB
# LINK_TYPE 3 = VPI
#
"C:\Program Files\Mellanox\WinMFT\mst.exe" status
MST devices:
Assumptions:
servers: 2 x Centos 7.4 minimal installs
domain: virt.lab
firewall zone: internal
first server name: ipa01
first server ip: 10.1.1.11
second server name: ipa02
second server ip: 10.1.1.12
singleinterface: eth0
DNS forwarders: 192.168.1.1 1.1.1.1
Using a zvol for a swap device for host and VMs
Swapping to Optane
Since i’m running virtual machines, there is another thing which should go to low-latency storage: swap. I try to conserve as much memory as possible, which means VMs sometimes use their swap space, which gets horribly slow in case it resides on spinning disks. For that reason i created another partition, created a separate ZFS pool and created disk images that will hold the VMs swap.
Creating a new pool is very simple and as i don’t need redundancy on swap it will just be one “device”, actually a partition. Using unique hardware identifiers instead of device paths (e.g. “/dev/nvme0n1p3”) is quite helpful as PCIe enumeration and partition order may change.
set firewall family inet filter iiNet-Voice term SERVICES from address 203.173.44.0/24
set firewall family inet filter iiNet-Voice term SERVICES then accept
set firewall family inet filter iiNet-Voice term NETWORK from address 203.55.228.192/26
set firewall family inet filter iiNet-Voice term NETWORK from address 203.55.231.192/26
set firewall family inet filter iiNet-Voice term NETWORK from address 203.55.229.192/26
set firewall family inet filter iiNet-Voice term NETWORK from address 203.2.134.0/25
set firewall family inet filter iiNet-Voice term NETWORK from address 203.59.49.0/26
set firewall family inet filter iiNet-Voice term NETWORK then accept
set firewall family inet filter iiNet-Voice term CONFIGURATION from address 203.55.231.64/27
set firewall family inet filter iiNet-Voice term CONFIGURATION from address 203.206.62.0/27
I have just check some of the ones we have configure and that are working in the field. I have attached IPOE and PPPOE configurations. I hope this helps. If you need any help with debugging please let me know.
//NBN IPOE Config
set interfaces pt-2/0/0 mtu 1452
set interfaces pt-2/0/0 vdsl-options vdsl-profile 17a
set interfaces pt-2/0/0 unit 0 family inet dhcp
root@gandalf# load factory-default
root@gandalf> request system zeroize
## system reboots into Amnisiac
## login as root no password
root@amnisiac# set system host-name gandalf
root@amnisiac# set system login message "Ya Shall Not Pass"
# Let networkd manage all devices on this system
network:
version: 2
renderer: networkd
ethernets:
#declare the interface used y the bridge device
enp7s0:
dhcp4: no
dhcp6: no