Skip to content

Instantly share code, notes, and snippets.

@alcraiu
alcraiu / PVE-HP-ssacli-smart-storage-admin.md
Created November 30, 2021 15:40 — forked from si458/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x OR 7.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x OR 7.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@alcraiu
alcraiu / PVE-HP-ssacli-smart-storage-admin.md
Created November 30, 2021 15:39 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@alcraiu
alcraiu / Remove-OldFiles.ps1
Created January 22, 2019 06:32 — forked from markwragg/Remove-OldFiles.ps1
Powershell script to remove files older than a certain date and log the files removed to a file.
[CmdletBinding()]
Param(
$limit = (Get-Date).AddDays(-7),
$path = "C:\Example\Path"
)
# Delete files older than the $limit.
$FilesToDelete = (Get-ChildItem -Path $path -Exclude Logs | Where-Object { $_.LastWriteTime -lt $limit }) | Select Path
# If files are deleted create a log detailing this