Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 21ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
i

iscsi

Recently created Least recently created Recently updated Least recently updated

timmy / 🔥 iSCSI 健康檢查一把抓!NAS 連線懶人包

Last active 5 hours ago bash-script iscsi linux lvm synology systemd

快速檢查 Synology 連線、iscsid 狀態、iSCSI 登入與 LVM,這支 script 超實用!

0 0 0 1
1 #!/bin/bash
2 # 檔名:check_iscsi_status.sh
3
4 TARGET_IP="192.168.42.20"
5
6 echo "🔍 檢查是否能 ping 到 Synology..."
7 ping -c 2 $TARGET_IP || {
8 echo "❌ 無法連線到 $TARGET_IP"
9 exit 1
10 }