In Cumulus OS Switches, we can do MAC checking regarding troubleshooting Layer 2 function. At first we can use this command to make sure the MAC address is learned from some interfaces source. net show mac bridge macs If we want to check the Forward Database Mac on Cumulus OS Switches, you can use this […]
Month: August 2023
External Script Zabbix
Use external script to trigger checking from endpoint instead of from zabbix. Host : 10.0.70.253 Creating External Script : probe_latency.sh latency=$(ssh $1 ping -c 3 google.com | tail -1 | awk ‘{print $4}’ | cut -d ‘/’ -f 2) echo $latency
Passwordless SSH
SSH Client : 10.0.0.12 SSH Server: 192.168.0.11 User: psi-admin Login as psi-admin to SSH Client, then generate key to use: ssh-keygen -t rsa Then use ssh-copy-id to send the key to the SSH Server ssh-copy-id psi-admin@192.168.0.11 Done!
EVPN 6Wind
EVPN common configuration In EVPN, BGP must be configured to learn VNIs of local VXLAN interfaces, as follows: and the following configuration activates EVPN for the 10.10.1.2 neighbor.: and add interface vxlan and vni id to encapsulation vlan: and config on the neighbor peer :
How to Check Uptime & Upgrade Firmware on infiniband unmanage switch
You can check the unmanaged status with some MFT commands on the hosts in the fabric. Assume there is an unmanaged switch with LID 1, then you can check the uptime information with the following command: And you can also check the current firmware information with this following command: Almost all devices consist of hardware, […]
Grafana and Alerting ( Ubuntu )
Installation Components Required sudo apt-get install -y apt-transport-httpssudo apt-get install -y software-properties-common wgetsudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key Adding Repositories echo “deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main” | sudo tee -a /etc/apt/sources.list.d/grafana.list Updating Packages sudo apt-get update Installing Grafana sudo apt-get install grafana Starting and enabling Grafana on startup sudo systemctl enable grafana-server sudo systemctl start […]
Installing Promtail on ubuntu
Install Promtail Adding Repo PROMTAIL_VERSION=$(curl -s “https://api.github.com/repos/grafana/loki/releases/latest” | grep -Po ‘”tag_name”: “v\K[0-9.]+’) Create a new directory for storing Promtail binary and configuration file. sudo mkdir /opt/promtail Run the following command to download Promtail archive from releases page of the Loki repository. sudo wget -qO /opt/promtail/promtail.gz “https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip” Extract binary file from archive: sudo gunzip /opt/promtail/promtail.gz Set […]
Installing Loki On Ubuntu
Install Loki Get the latest version tag of Loki release from GitHub. Then assign version tag to variable. LOKI_VERSION=$(curl -s “https://api.github.com/repos/grafana/loki/releases/latest” | grep -Po ‘”tag_name”: “v\K[0-9.]+’) Create a new directory to store Loki binary and configuration file. sudo mkdir /opt/loki Download archive from releases page of the Loki repository. sudo wget -qO /opt/loki/loki.gz “https://github.com/grafana/loki/releases/download/v${LOKI_VERSION}/loki-linux-amd64.zip” Extract […]