{"id":443654,"date":"2024-12-28T03:01:24","date_gmt":"2024-12-28T03:01:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=443654"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=443654","title":{"rendered":"<span>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 3PAR \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0432 Zabbix<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442! \u041d\u0430\u00a0\u0441\u0432\u044f\u0437\u0438 \u0410\u043d\u0434\u0440\u0435\u0439 \u041b\u0435\u0431\u0435\u0434\u0435\u0432, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 Cloud4Y. \u0425\u043e\u0447\u0443 \u0441\u00a0\u0432\u0430\u043c\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0421\u0425\u0414.<\/p>\n<p>\u041d\u0430\u00a0\u0421\u0425\u0414 3PAR, \u043a\u00a0\u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043f\u043e\u00a0SNMP, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043d\u0430\u00a0FTS, \u043a\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0443. \u0427\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e SNM Trap, \u043d\u043e\u00a0\u0432\u00a0\u0446\u0435\u043b\u043e\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u0430\u043a \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043d\u0435\u043b\u044c\u0437\u044f. \u0417\u0430\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u00a0SSH \u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043e\u0442\u00a0HPE. \u0412\u00a0\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 Posh\u2011SSH + HPE3PARToolKit \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f\u00a0\u0441\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u0435\u0442\u0440\u0438\u043a, \u0432\u044b\u0432\u043e\u0434 \u0438\u0445 \u0432\u00a0\u0444\u0430\u0439\u043b \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u043d\u0430\u00a0Zabbix Server.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0451 \u043a\u0430\u043a\u00a0\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 3PAR:<\/p>\n<ul>\n<li>\n<p>Grafana + \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 HPE<\/p>\n<\/li>\n<li>\n<p>SNMP Trap<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u00a0Zabbix. \u0414\u043b\u044f\u00a0\u0442\u0430\u043a\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 PowerShell: PoshSSH \u0438 HPE3PARToolKit. \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f PowerShell\u00a0\u2014 5.1. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e PowerShell \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>host<\/code> \u0438\u043b\u0438 <code>$PSVersionTable<\/code><\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u0435\u0439<\/h2>\n<pre><code class=\"powershell\">Install-Module -Name Posh-SSH  Install-Module -Name HPEStoragePowerShellToolkit<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u00a0\u043a\u0430\u043a\u0438\u043c\u2011\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u043d\u043b\u0430\u0439\u043d \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0438\u0445 \u0432\u00a0\u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0441\u00a0\u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438.<\/p>\n<pre><code class=\"powershell\">Save-Module \u2013Name Posh-SSH \u2013Path C:\\PS\\<\/code><\/pre>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e\u00a0\u043f\u0443\u0442\u0438 C:\\Program Files\\WindowsPowerShell\\Modules \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e\u00a0\u043c\u043e\u0434\u0443\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b:<\/p>\n<pre><code>Get-Module -Name Posh-SSH,HPEStoragePowerShellToolkit -ListAvailable<\/code><\/pre>\n<p>\u041d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e\u00a0\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0443 VLUN \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0414\u043b\u044f\u00a0\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 PS \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0423\u0417 \u043d\u0430 3PAR \u0441\u00a0\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u043e\u043b\u044c\u044e \u00abBrowse\u00bb. \u0412 <strong>\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/strong> \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440 \u0441\u0443\u043c\u043c\u044b \u0432\u0441\u0435\u0445 \u0442\u043e\u043c\u043e\u0432 \u043f\u043e\u0434\u00a0\u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c\u00a0\u0436\u0435 VV:<\/p>\n<pre><code class=\"powershell\">$Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress ip_\u0430\u0434\u0440\u0435\u0441_3PAR -SANUserName \u00ab\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 3PAR\u00bb -SANPassword \u00ab\u043f\u0430\u0440\u043e\u043b\u044c\u00bb     $dataVlun = Get-StatVlun -SANConnection $Connection1 -Iteration 1 -vvSum     $removessh = ($Connection1 | Close-Connection)      $data = @()      $dataVlun | ForEach-Object {          $3parexport = @{}          $3parexport[\"{#NAMEVLUN}\"] = $_.VVName                  $data += $3parexport      }      $exportdata = @{}     $exportdata[\"data\"] = $data      $exportdata | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 3PAR \u0447\u0435\u0440\u0435\u0437 SSH, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 Get-StatVlun \u0432 1 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u0432\u0441\u0435\u0445 \u0442\u043e\u043c\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 Virtual Volume \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0414\u0430\u043b\u0435\u0435 \u0447\u0435\u0440\u0435\u0437 \u0446\u0438\u043a\u043b \u0438\u0434\u0451\u0442 \u0441\u0431\u043e\u0440 \u0442\u043e\u043c\u043e\u0432 \u0432 \u043f\u0443\u0441\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0436\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0430 \u0432\u044b\u0432\u043e\u0434 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b.<\/p>\n<p><strong>\u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/strong> \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u043e\u043c\u0443 3PAR. \u041f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u0430 \u0447\u0435\u0440\u0435\u0437 CLI \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c 3PAR \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0435\u0441\u043e\u0441\u0442\u044b\u043a\u043e\u0432\u043a\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0432\u044b\u0432\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 CLI \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u044b r\/w_Cur, r\/w_Avg \u0438 r\/w_Max, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432.\u00a0<\/p>\n<p>\u0422\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0443 <code>r\/w_Cur<\/code>, \u0430 \u043d\u0435 <code>I\/O_Cur,<\/code> <code>KB_Cur<\/code> \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f <code>I\/O_Cur<\/code>, <code>Svt_Cur<\/code> = <code>KB_Cur.<\/code><\/p>\n<pre><code class=\"powershell\">$Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress ip_\u0430\u0434\u0440\u0435\u0441_3PAR -SANUserName \u00ab\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 3PAR\u00bb -SANPassword \u00ab\u043f\u0430\u0440\u043e\u043b\u044c\u00bb     $dataVlun = Get-StatVlun -SANConnection $Connection1 -Iteration 1 -vvSum -rw      $removessh = ($Connection1 | Close-Connection)       $3parexport = @{}     $3parexport_write = @{}     $3parexport_read = @{}     $3parexport_total = @{}      $dataVlun | ForEach-Object {         $exportport = ($_.Host)+($_.Port)+($_.VVName)         If ($_.\"r\/w\" -eq \"t\"){             If (-Not $3parexport.ContainsKey($exportport)) {             $3parexport_total[$exportport] = @{                 \"RW\" = $_.\"r\/w\"                 \"KBCur\" = $_.KB_Cur                 \"SVTCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"RWCur\" = $_.\"r\/w_Cur\"             }           }         }                        If ($_.\"r\/w\" -eq \"r\"){            If (-Not $3parexport.ContainsKey($exportport)) {             $3parexport_read[$exportport] = @{                 \"RW\" = $_.\"r\/w\"                 \"KBCur\" = $_.KB_Cur                 \"SVTCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"RWCur\" = $_.\"r\/w_Cur\"             }           }         }                        If ($_.\"r\/w\" -eq \"w\"){            If (-Not $3parexport.ContainsKey($exportport)) {             $3parexport_write[$exportport] = @{                 \"RW\" = $_.\"r\/w\"                 \"KBCur\" = $_.KB_Cur                 \"SVTCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"RWCur\" = $_.\"r\/w_Cur\"             }           }         }                             }     $3parexport_read | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"     $3parexport_write | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"     $3parexport_total | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e SSH, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>Get-StatVlun -Iteration 1 -vvSum -rw<\/code><br \/><strong>\u041a\u043b\u044e\u0447\u0438<\/strong>:<\/p>\n<p>-rw \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u043e\u043c\u0443 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e<br \/>RW \u2013 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0447\u0442\u0435\u043d\u0438\u0435\\\u0437\u0430\u043f\u0438\u0441\u044c \u0438\u043b\u0438 \u0441\u0443\u043c\u043c\u0443. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u0447\u0442\u0435\u043d\u0438\u044f + \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u043e\u043c\u0443.<br \/>KBcur \u2013 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u043c\u0441<br \/>IOCur \u2013 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u041a\u0411 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<br \/>RWcur \u2013 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/p>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 3 \u0444\u0430\u0439\u043b\u0430 \u2013 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e.<\/p>\n<h3>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 Zabbix<\/h3>\n<p>\u041f\u043e <a href=\"https:\/\/nc.cloud4y.ru\/index.php\/s\/RcLTzQMypPnz37L%5C\">\u0441\u0441\u044b\u043b\u043a\u0435 <\/a>\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f Zabbix, \u0433\u0434\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0430\u0432\u0442\u043e\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (CPU, VLUN, VV, PortCheck, Disk). \u0428\u0430\u0431\u043b\u043e\u043d \u043f\u043e\u0434 \u0432\u0435\u0440\u0441\u0438\u044e 7.0 \u0438 \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0410 \u043d\u0438\u0436\u0435 \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>CPU<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"powershell\">    ####################################################     ################## 3PAR CPU Node #################     ####################################################  $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS $dataCPU = Get-StatCPU -SANConnection $Connection1 -Iteration 1  $removessh = ($Connection1 | Close-Connection)  $data = @()  $dataCPU | ForEach-Object {      $3parexport = @{}      $3parexport[\"{#NODENUM}\"] = $_.\"node\"              $data += $3parexport      }  $exportdata = @{} $exportdata[\"data\"] = $data  $exportdata | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"    #################################################### ################## 3PAR CPU  ################# ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataCPU = Get-StatCPU -SANConnection $Connection1 -Iteration 1     $removessh = ($Connection1 | Close-Connection)     $3parCPU = @{}     $dataCPU | ForEach-Object {         $NodeCPU = $_.node         If ($_.cpu -eq \"total\"){          If (-Not $3parCPU.ContainsKey($NodeCPU)) {             $3parCPU[$NodeCPU] = @{                 \"cpu\" = $_.cpu                 \"user\" = $_.user                 \"system\" = $_.sys                 \"idle\" = $_.idle             }         }       }    }       $3parCPU | ConvertTo-Json -Depth 10 -Compress | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>Ports<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"powershell\">    ####################################################     ################## 3PAR port Check #################     ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataPort = Get-HostPorts | Select-Object -SkipLast 1      $removessh = ($Connection1 | Close-Connection)      $data = @()      $dataPort | ForEach-Object {          $3parexport = @{}          $3parexport[\"{#DEVICE}\"] = $_.Device         $3parexport[\"{#MODE}\"] = $_.Mode         $3parexport[\"{#STATE}\"] = $_.State         $3parexport[\"{#NODEWWN}\"] = $_.Node_WWN         $3parexport[\"{#PORTWWN}\"] = $_.Port_WWN         $3parexport[\"{#TYPE}\"] = $_.Type         $3parexport[\"{#PROTOCOL}\"] = $_.Protocol         $3parexport[\"{#LABEL}\"] = $_.Label         $3parexport[\"{#PARTNER}\"] = $_.Partner                   $data += $3parexport      }      $exportdata = @{}     $exportdata[\"data\"] = $data      $exportdata | ConvertTo-Json -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"       ####################################################     ################## 3PAR port Data ##################     ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataPort = Get-HostPorts | Select-Object -SkipLast 1     $removessh = ($Connection1 | Close-Connection)      $3parStatPort = @{}     $dataPort | ForEach-Object {         $portname = $_.Device         If (-Not $3parStatPort.ContainsKey($portname)) {             $3parStatPort[$portname] = @{                 \"MODE\" = $_.Mode                 \"STATE\" = $_.State                 \"NODEWWN\" = $_.Node_WWN                 \"PORTWWN\" = $_.Port_WWN                 \"TYPE\" = $_.Type                 \"PROTOCOL\" = $_.Protocol                 \"LABEL\" = $_.Label                 \"PARTNER\" = $_.Partner             }         }     }     $3parStatPort | ConvertTo-Json -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"      ####################################################     ################## 3PAR stat port ##################     ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $data = Get-StatPort -SANConnection $Connection1 -Iteration 1     $removessh = ($Connection1 | Close-Connection)     $3parStatPort = @{}     $data | ForEach-Object {         $portname = $_.Port         If (-Not $3parStatPort.ContainsKey($portname)) {             $3parStatPort[$portname] = @{                 \"KBCur\" = $_.KB_Cur                 \"SvtCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"IOSzCur\" = $_.IOSz_Cur             }         }     }     $3parStatPort | ConvertTo-Json -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>VV<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"powershell\">    ####################################################     ################## 3PAR VV check #################     ####################################################       $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataVV = Get-VVList     $removessh = ($Connection1 | Close-Connection)      $data = @()      $dataVV | ForEach-Object {          $3parexport = @{}          $3parexport[\"{#ID}\"] = $_.Id         $3parexport[\"{#PROV}\"] = $_.Prov         $3parexport[\"{#NAME}\"] = $_.Name         $3parexport[\"{#TYPE}\"] = $_.Type         $3parexport[\"{#COPYOF}\"] = $_.CopyOf         $3parexport[\"{#BSID}\"] = $_.BsId         $3parexport[\"{#RD}\"] = $_.Rd         $3parexport[\"{#STATE}\"] = $_.\"-Detailed_State-\"         $3parexport[\"{#SNP}\"] = $_.Snp         $3parexport[\"{#USR}\"] = $_.Usr         $3parexport[\"{#VSIZE}\"] = $_.VSize                   $data += $3parexport      }      $exportdata = @{}     $exportdata[\"data\"] = $data      $exportdata | ConvertTo-Json -Depth 10 -Compress | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"           ####################################################         ################## 3PAR VV stat #################         ####################################################        $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataVV = Get-StatVv -SANConnection $Connection1 -Iteration 1     $removessh = ($Connection1 | Close-Connection)     $3parStatVV = @{}     $3parStatVV = @{}     $dataVV | ForEach-Object {         $VVname = $_.VVname         If (-Not $3parStatVV.ContainsKey($VVname)) {             $3parStatVV[$VVname] = @{                 \"KBCUR\" = $_.KB_Cur                 \"SVTCUR\" = $_.Svt_Cur                 \"IOSZCUR\" = $_.IOSz_Cur                 \"IOCUR\" = $_.\"I\/O_Cur\"             }         }     }     $3parStatVV | ConvertTo-Json -Depth 10 -Compress | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"           ####################################################         ################## 3PAR VV List #################         ####################################################       $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataVVList = Get-VVList     $removessh = ($Connection1 | Close-Connection)     $3parVVList = @{}     $dataVVList | ForEach-Object {         $VVname = $_.Name         If (-Not $3parVVList.ContainsKey($VVname)) {             $3parVVList[$VVname] = @{                 \"ID\" = $_.Id                 \"PROV\" = $_.Prov                 \"USED\" = $_.Usr                 \"TOTAL\" = $_.VSize                 \"ADM\" = $_.Adm                 \"SNP\" = $_.Snp                 \"STATE\" = $_.\"-Detailed_State-\"                 \"RD\" = $_.Rd             }         }     }     $3parVVList | ConvertTo-Json -Depth 10 -Compress | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438\u00a0\u0412\u041c, \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u00a0\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0432\u00a0\u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442, \u0430\u00a0\u043f\u043e\u0441\u043b\u0435 Zabbix agent \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u00a0\u0444\u0430\u0439\u043b\u043e\u0432. \u0412\u00a0\u043a\u043e\u043d\u0444\u0438\u0433 Zabbix agent \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.<\/p>\n<pre><code>UserParameter=3par1StatVlunNewTotal[*],type \u041f\u0443\u0442\u044c_\u0434\u043e_\u0444\u0430\u0439\u043b\u0430  UserParameter=3par1StatVlunNewRead[*],type \u041f\u0443\u0442\u044c_\u0434\u043e_\u0444\u0430\u0439\u043b\u0430 UserParameter=3par1StatVlunNewWrite[*],type \u041f\u0443\u0442\u044c_\u0434\u043e_\u0444\u0430\u0439\u043b\u0430 UserParameter=3par1StatVlunCheck[*],type \u041f\u0443\u0442\u044c_\u0434\u043e_\u0444\u0430\u0439\u043b\u0430<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u0433\u0435\u043d\u0442\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d 3PAR \u043d\u0430\u00a0Zabbix server \u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f.<\/p>\n<p>\u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043e\u043d\u043e \u043d\u0435\u00a0\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u043e\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0415\u0441\u043b\u0438 \u0443\u00a0\u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0438\u0434\u0435\u0438, \u043a\u0430\u043a\u00a0\u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u0441\u00a0\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u043c \u043f\u043e\u0441\u043b\u0443\u0448\u0430\u044e.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430\u00a0\u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/870224\/\"> https:\/\/habr.com\/ru\/articles\/870224\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442! \u041d\u0430\u00a0\u0441\u0432\u044f\u0437\u0438 \u0410\u043d\u0434\u0440\u0435\u0439 \u041b\u0435\u0431\u0435\u0434\u0435\u0432, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 Cloud4Y. \u0425\u043e\u0447\u0443 \u0441\u00a0\u0432\u0430\u043c\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0421\u0425\u0414.<\/p>\n<p>\u041d\u0430\u00a0\u0421\u0425\u0414 3PAR, \u043a\u00a0\u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043f\u043e\u00a0SNMP, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043d\u0430\u00a0FTS, \u043a\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0443. \u0427\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e SNM Trap, \u043d\u043e\u00a0\u0432\u00a0\u0446\u0435\u043b\u043e\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u0430\u043a \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043d\u0435\u043b\u044c\u0437\u044f. \u0417\u0430\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u00a0SSH \u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043e\u0442\u00a0HPE. \u0412\u00a0\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 Posh\u2011SSH + HPE3PARToolKit \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f\u00a0\u0441\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u0435\u0442\u0440\u0438\u043a, \u0432\u044b\u0432\u043e\u0434 \u0438\u0445 \u0432\u00a0\u0444\u0430\u0439\u043b \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u043d\u0430\u00a0Zabbix Server.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0451 \u043a\u0430\u043a\u00a0\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 3PAR:<\/p>\n<ul>\n<li>\n<p>Grafana + \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 HPE<\/p>\n<\/li>\n<li>\n<p>SNMP Trap<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u00a0Zabbix. \u0414\u043b\u044f\u00a0\u0442\u0430\u043a\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 PowerShell: PoshSSH \u0438 HPE3PARToolKit. \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f PowerShell\u00a0\u2014 5.1. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e PowerShell \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>host<\/code> \u0438\u043b\u0438 <code>$PSVersionTable<\/code><\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u0435\u0439<\/h2>\n<pre><code class=\"powershell\">Install-Module -Name Posh-SSH  Install-Module -Name HPEStoragePowerShellToolkit<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u00a0\u043a\u0430\u043a\u0438\u043c\u2011\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u043d\u043b\u0430\u0439\u043d \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0438\u0445 \u0432\u00a0\u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0441\u00a0\u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438.<\/p>\n<pre><code class=\"powershell\">Save-Module \u2013Name Posh-SSH \u2013Path C:\\PS\\<\/code><\/pre>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e\u00a0\u043f\u0443\u0442\u0438 C:\\Program Files\\WindowsPowerShell\\Modules \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e\u00a0\u043c\u043e\u0434\u0443\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b:<\/p>\n<pre><code>Get-Module -Name Posh-SSH,HPEStoragePowerShellToolkit -ListAvailable<\/code><\/pre>\n<p>\u041d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e\u00a0\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0443 VLUN \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0414\u043b\u044f\u00a0\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 PS \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0423\u0417 \u043d\u0430 3PAR \u0441\u00a0\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u043e\u043b\u044c\u044e \u00abBrowse\u00bb. \u0412 <strong>\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/strong> \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440 \u0441\u0443\u043c\u043c\u044b \u0432\u0441\u0435\u0445 \u0442\u043e\u043c\u043e\u0432 \u043f\u043e\u0434\u00a0\u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c\u00a0\u0436\u0435 VV:<\/p>\n<pre><code class=\"powershell\">$Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress ip_\u0430\u0434\u0440\u0435\u0441_3PAR -SANUserName \u00ab\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 3PAR\u00bb -SANPassword \u00ab\u043f\u0430\u0440\u043e\u043b\u044c\u00bb     $dataVlun = Get-StatVlun -SANConnection $Connection1 -Iteration 1 -vvSum     $removessh = ($Connection1 | Close-Connection)      $data = @()      $dataVlun | ForEach-Object {          $3parexport = @{}          $3parexport[\"{#NAMEVLUN}\"] = $_.VVName                  $data += $3parexport      }      $exportdata = @{}     $exportdata[\"data\"] = $data      $exportdata | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 3PAR \u0447\u0435\u0440\u0435\u0437 SSH, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 Get-StatVlun \u0432 1 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u0432\u0441\u0435\u0445 \u0442\u043e\u043c\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 Virtual Volume \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0414\u0430\u043b\u0435\u0435 \u0447\u0435\u0440\u0435\u0437 \u0446\u0438\u043a\u043b \u0438\u0434\u0451\u0442 \u0441\u0431\u043e\u0440 \u0442\u043e\u043c\u043e\u0432 \u0432 \u043f\u0443\u0441\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0436\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0430 \u0432\u044b\u0432\u043e\u0434 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b.<\/p>\n<p><strong>\u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/strong> \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u043e\u043c\u0443 3PAR. \u041f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u0430 \u0447\u0435\u0440\u0435\u0437 CLI \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c 3PAR \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0435\u0441\u043e\u0441\u0442\u044b\u043a\u043e\u0432\u043a\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0432\u044b\u0432\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 CLI \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u044b r\/w_Cur, r\/w_Avg \u0438 r\/w_Max, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432.\u00a0<\/p>\n<p>\u0422\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0443 <code>r\/w_Cur<\/code>, \u0430 \u043d\u0435 <code>I\/O_Cur,<\/code> <code>KB_Cur<\/code> \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f <code>I\/O_Cur<\/code>, <code>Svt_Cur<\/code> = <code>KB_Cur.<\/code><\/p>\n<pre><code class=\"powershell\">$Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress ip_\u0430\u0434\u0440\u0435\u0441_3PAR -SANUserName \u00ab\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 3PAR\u00bb -SANPassword \u00ab\u043f\u0430\u0440\u043e\u043b\u044c\u00bb     $dataVlun = Get-StatVlun -SANConnection $Connection1 -Iteration 1 -vvSum -rw      $removessh = ($Connection1 | Close-Connection)       $3parexport = @{}     $3parexport_write = @{}     $3parexport_read = @{}     $3parexport_total = @{}      $dataVlun | ForEach-Object {         $exportport = ($_.Host)+($_.Port)+($_.VVName)         If ($_.\"r\/w\" -eq \"t\"){             If (-Not $3parexport.ContainsKey($exportport)) {             $3parexport_total[$exportport] = @{                 \"RW\" = $_.\"r\/w\"                 \"KBCur\" = $_.KB_Cur                 \"SVTCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"RWCur\" = $_.\"r\/w_Cur\"             }           }         }                        If ($_.\"r\/w\" -eq \"r\"){            If (-Not $3parexport.ContainsKey($exportport)) {             $3parexport_read[$exportport] = @{                 \"RW\" = $_.\"r\/w\"                 \"KBCur\" = $_.KB_Cur                 \"SVTCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"RWCur\" = $_.\"r\/w_Cur\"             }           }         }                        If ($_.\"r\/w\" -eq \"w\"){            If (-Not $3parexport.ContainsKey($exportport)) {             $3parexport_write[$exportport] = @{                 \"RW\" = $_.\"r\/w\"                 \"KBCur\" = $_.KB_Cur                 \"SVTCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"RWCur\" = $_.\"r\/w_Cur\"             }           }         }                             }     $3parexport_read | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"     $3parexport_write | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"     $3parexport_total | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e SSH, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>Get-StatVlun -Iteration 1 -vvSum -rw<\/code><br \/><strong>\u041a\u043b\u044e\u0447\u0438<\/strong>:<\/p>\n<p>-rw \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u043e\u043c\u0443 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e<br \/>RW \u2013 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0447\u0442\u0435\u043d\u0438\u0435\\\u0437\u0430\u043f\u0438\u0441\u044c \u0438\u043b\u0438 \u0441\u0443\u043c\u043c\u0443. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u0447\u0442\u0435\u043d\u0438\u044f + \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u043e\u043c\u0443.<br \/>KBcur \u2013 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u043c\u0441<br \/>IOCur \u2013 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u041a\u0411 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<br \/>RWcur \u2013 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/p>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 3 \u0444\u0430\u0439\u043b\u0430 \u2013 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e.<\/p>\n<h3>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 Zabbix<\/h3>\n<p>\u041f\u043e <a href=\"https:\/\/nc.cloud4y.ru\/index.php\/s\/RcLTzQMypPnz37L%5C\">\u0441\u0441\u044b\u043b\u043a\u0435 <\/a>\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f Zabbix, \u0433\u0434\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0430\u0432\u0442\u043e\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (CPU, VLUN, VV, PortCheck, Disk). \u0428\u0430\u0431\u043b\u043e\u043d \u043f\u043e\u0434 \u0432\u0435\u0440\u0441\u0438\u044e 7.0 \u0438 \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0410 \u043d\u0438\u0436\u0435 \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>CPU<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"powershell\">    ####################################################     ################## 3PAR CPU Node #################     ####################################################  $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS $dataCPU = Get-StatCPU -SANConnection $Connection1 -Iteration 1  $removessh = ($Connection1 | Close-Connection)  $data = @()  $dataCPU | ForEach-Object {      $3parexport = @{}      $3parexport[\"{#NODENUM}\"] = $_.\"node\"              $data += $3parexport      }  $exportdata = @{} $exportdata[\"data\"] = $data  $exportdata | ConvertTo-Json -Compress -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"    #################################################### ################## 3PAR CPU  ################# ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataCPU = Get-StatCPU -SANConnection $Connection1 -Iteration 1     $removessh = ($Connection1 | Close-Connection)     $3parCPU = @{}     $dataCPU | ForEach-Object {         $NodeCPU = $_.node         If ($_.cpu -eq \"total\"){          If (-Not $3parCPU.ContainsKey($NodeCPU)) {             $3parCPU[$NodeCPU] = @{                 \"cpu\" = $_.cpu                 \"user\" = $_.user                 \"system\" = $_.sys                 \"idle\" = $_.idle             }         }       }    }       $3parCPU | ConvertTo-Json -Depth 10 -Compress | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>Ports<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"powershell\">    ####################################################     ################## 3PAR port Check #################     ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataPort = Get-HostPorts | Select-Object -SkipLast 1      $removessh = ($Connection1 | Close-Connection)      $data = @()      $dataPort | ForEach-Object {          $3parexport = @{}          $3parexport[\"{#DEVICE}\"] = $_.Device         $3parexport[\"{#MODE}\"] = $_.Mode         $3parexport[\"{#STATE}\"] = $_.State         $3parexport[\"{#NODEWWN}\"] = $_.Node_WWN         $3parexport[\"{#PORTWWN}\"] = $_.Port_WWN         $3parexport[\"{#TYPE}\"] = $_.Type         $3parexport[\"{#PROTOCOL}\"] = $_.Protocol         $3parexport[\"{#LABEL}\"] = $_.Label         $3parexport[\"{#PARTNER}\"] = $_.Partner                   $data += $3parexport      }      $exportdata = @{}     $exportdata[\"data\"] = $data      $exportdata | ConvertTo-Json -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"       ####################################################     ################## 3PAR port Data ##################     ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $dataPort = Get-HostPorts | Select-Object -SkipLast 1     $removessh = ($Connection1 | Close-Connection)      $3parStatPort = @{}     $dataPort | ForEach-Object {         $portname = $_.Device         If (-Not $3parStatPort.ContainsKey($portname)) {             $3parStatPort[$portname] = @{                 \"MODE\" = $_.Mode                 \"STATE\" = $_.State                 \"NODEWWN\" = $_.Node_WWN                 \"PORTWWN\" = $_.Port_WWN                 \"TYPE\" = $_.Type                 \"PROTOCOL\" = $_.Protocol                 \"LABEL\" = $_.Label                 \"PARTNER\" = $_.Partner             }         }     }     $3parStatPort | ConvertTo-Json -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\"      ####################################################     ################## 3PAR stat port ##################     ####################################################      $Connection1 = New-PoshSshConnection -ArrayNameOrIPAddress $3paripaddress -SANUserName $VC_USER -SANPassword $VC_PASS     $data = Get-StatPort -SANConnection $Connection1 -Iteration 1     $removessh = ($Connection1 | Close-Connection)     $3parStatPort = @{}     $data | ForEach-Object {         $portname = $_.Port         If (-Not $3parStatPort.ContainsKey($portname)) {             $3parStatPort[$portname] = @{                 \"KBCur\" = $_.KB_Cur                 \"SvtCur\" = $_.Svt_Cur                 \"IOCur\" = $_.\"I\/O_Cur\"                 \"IOSzCur\" = $_.IOSz_Cur             }         }     }     $3parStatPort | ConvertTo-Json -Depth 10 | Out-File -FilePath \"\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\" <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>VV<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"powershell\"><\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-443654","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443654"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443654\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}