Skip to content

Instantly share code, notes, and snippets.

View fenar's full-sized avatar
💭
I may be slow to respond.

Fatih Nar fenar

💭
I may be slow to respond.
  • Texas
View GitHub Profile
@fenar
fenar / NVIDIA-SMI-WATCH.md
Last active June 12, 2024 22:05
CLI GPU Observability

fenar@macpro71 acm-observability % oc get pods -n nvidia-gpu-operator
NAME READY STATUS RESTARTS AGE
gpu-feature-discovery-s9jsp 1/1 Running 0 42m
gpu-operator-9f47fbdc-d2g9k 1/1 Running 0 44m
nvidia-container-toolkit-daemonset-7k46j 1/1 Running 0 42m
nvidia-cuda-validator-4br5g 0/1 Completed 0 40m
nvidia-dcgm-2z4px 1/1 Running 0 42m
nvidia-dcgm-exporter-7wgq2 1/1 Running 0 42m
nvidia-device-plugin-daemonset-mlvcv 1/1 Running 0 42m
nvidia-driver-daemonset-415.92.202405281402-0-ww2nb 2/2 Running 0 43m

Configure the NVIDIA DCGM Exporter Dashboard on Red Hat OCP

(1) Download the latest NVIDIA DCGM Exporter Dashboard from the DCGM Exporter repository on GitHub:
curl -LfO https://github.com/NVIDIA/dcgm-exporter/raw/main/grafana/dcgm-exporter-dashboard.json

(2) Create a config map from the downloaded file in the openshift-config-managed namespace:
oc create configmap nvidia-dcgm-exporter-dashboard -n openshift-config-managed --from-file=dcgm-exporter-dashboard.json

(3) Label the config map to expose the dashboard in the Administrator perspective of the web console:

@fenar
fenar / format-hdd.sh
Created June 12, 2024 17:43
Format All Disks
#!/bin/bash
# Ensure the script is run as root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
# List all the hard drives
drives=$(lsblk -dpno NAME,TYPE | grep 'disk' | awk '{print $1}')
#!/bin/bash
# Sample Script for VM migration betweek Openstack Deployments
# This is for inspiration purposes, use it wisely.
# Variables
SOURCE_OS_AUTH_URL="http://source-openstack:5000/v3"
SOURCE_OS_PROJECT_NAME="source_project"
SOURCE_OS_USERNAME="source_user"
SOURCE_OS_PASSWORD="source_password"
SOURCE_IMAGE_ID="source_image_id"
@fenar
fenar / SNO-HP-32Coresx2
Created January 18, 2024 18:23
SNO-HP-32Coresx2
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: sno-hugepages-patch
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
@fenar
fenar / p5g-prep-guide.yaml
Last active January 26, 2024 12:32
P5G RH-OCP Prep Guide
### Main Guideline
https://docs.openshift.com/container-platform/4.14/scalability_and_performance/ztp_far_edge/ztp-reference-cluster-configuration-for-vdu.html#sno-configure-for-vdu
### Enable SCTP
https://docs.openshift.com/container-platform/4.14/networking/using-sctp.html
For SNO make sure -> machineconfiguration.openshift.io/role: master
### Install Service Mesh
https://docs.openshift.com/container-platform/4.14/service_mesh/v2x/installing-ossm.html
@fenar
fenar / SNO-HugePages
Created January 8, 2024 14:42
OCP SNO Hugepages
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: sno-hugepages-patch
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
@fenar
fenar / 5gcore-cnf-metrics.json
Created October 30, 2023 17:34
3gpp 5g cnf grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@fenar
fenar / gist:52094e0d36ed8a18a882de4ee9fdcd2e
Created August 25, 2023 13:00
5Gcore-GrafanaDashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@fenar
fenar / dell-server-etc.md
Last active August 11, 2023 14:51
100GBps-Dell-Intel-Mikrotik

---Incase You Have a Messed-Up Bios---- Start
(A) Clear all pending jobs via iDRAC WebUI: Maintenance -> Job Queue

(B) Revert back to initial BIOS
ssh to iDRAC terminal
% ssh root@
racadm>>racadm recover BIOS.Setup.1-1
---Incase You Have a Messed-Up Bios---- End

Enabling Dell-Intel-E810 on Server Side