Skip to main content

iSCSI initiator

v0.1.3

Inspect the host's iSCSI initiator (open-iscsi): active sessions, per-session detail (targets, connections, negotiated parameters), configured target nodes, and initiator interfaces. Read-only.

4 allowed by default
Pack ID
iscsi
Vendor
emisar
OS
linux
Actions
4
Required binaries. Install these on the host before relying on the pack — an action that calls a missing one fails at run time.
iscsiadm

Install

emisar pack install fetches this pack, re-validates it, and verifies its content hash against the --hash below — the exact bytes this page was rendered against, so a tampered copy is rejected — before copying it into the runner's packs dir. The command reloads a running daemon itself; no manual restart.

on the runner host
sudo emisar pack install iscsi --hash sha256:28a5418001eb35dc2bf10bb666c7da23787da29d456ce1ad215aace3f8f331d8

Actions 4 total

View on GitHub
  • iscsi.ifaces exec low

    iscsiadm -m iface

    List initiator interfaces (the iface bindings sessions run over).

    View source on GitHub
  • iscsi.nodes exec low

    iscsiadm -m node

    List configured / discovered target nodes in the initiator database.

    View source on GitHub
  • iscsi.session_detail exec low

    iscsiadm -m session -P 3

    Show full per-session detail at print level 3 — target IQN, portal, session and connection state, negotiated parameters, and the attached SCSI disks.

    View source on GitHub
  • iscsi.sessions exec low

    iscsiadm -m session

    List active iSCSI sessions — one line per session (transport, target IQN, sid). Returns nothing and succeeds when there are no active sessions (iscsiadm exits 21 in that case, which is treated as success, not failure).

    View source on GitHub