Skip to content

Instantly share code, notes, and snippets.

@odivlad
odivlad / OVN.md
Last active December 29, 2023 07:07
OVN cheat sheet

Manpages

Architecture:

man ovn-architecture

OVN_Northbound:

@odivlad
odivlad / ovs_dp.py
Last active December 29, 2023 07:08
OpenVSwitch datapath monitoring
#!/usr/bin/env python
#
# Author: Vladislav Odintsov <odivlad@gmail.com>
#
# This script creates machine-readable output for OVS metrics
#
# Metrics values by columns:
# 1: dpflows - dapath flows count in ovs-dpctl show output
# 2: dphit - hits in cache (datapath)
# 3: dpmiss - missed searches in cache (datapath)
[root@hv ~]# for d in sda sdb sdc sde; do echo "Smartctl for /dev/$d"; echo; smartctl -a /dev/$d; echo; done
Smartctl for /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.9.14-200.fc25.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Momentus 5400.6
Device Model: ST9500325AS
Serial Number: S2W51N2D