# Script to gather information for a troubleshooting post

**URL:** https://dietpi.com/forum/t/script-to-gather-information-for-a-troubleshooting-post/17709
**Category:** Troubleshooting
**Created:** [20 August 2023 23:30 UTC](https://dietpi.com/forum/t/script-to-gather-information-for-a-troubleshooting-post/17709 "2023-08-20T23:30:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![HyperCriSiS](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/8e8cbc/32.png) [@HyperCriSiS](https://dietpi.com/forum/u/HyperCriSiS)
#### Post date: [20 August 2023 23:30 UTC](https://dietpi.com/forum/t/script-to-gather-information-for-a-troubleshooting-post/17709/1 "2023-08-20T23:30:25Z")

</div>

Hi,

I made a small script to gather the information needed to open a troubleshooting post  
which puts everything together for fast copy and paste:

```auto
#!/bin/bash

# Get DietPi version
dietpi_version=$(cat /boot/dietpi/.version)

# Get Distro version
distro_version=$(echo $G_DISTRO_NAME $G_RASPBIAN)

# Get Kernel version
kernel_version=$(uname -a)

# Get Architecture
architecture=$(dpkg --print-architecture)

# Get SBC model
sbc_model=$(echo $G_HW_MODEL_NAME)

# Template with placeholders
template=
"DietPi version | $dietpi_version
Distro version | $distro_version
Kernel version | $kernel_version
Architecture | $architecture
SBC model | $sbc_model"

echo "$template"

```

Regards  
Hyper
