<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using scripting to check if a MicroSD USB Kit is connected in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7214258#M10071</link>
    <description>&lt;P&gt;Kindly use OneView admin credential to run PowerShell commands against your servers via OneView.&lt;/P&gt;&lt;P&gt;# Connect to the OneView appliance&lt;/P&gt;&lt;P&gt;Connect-HPOVMgmt -hostname &amp;lt;OneView_Appliance_IP&amp;gt; -username &amp;lt;username&amp;gt; -password &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;# Get all servers managed by OneView&lt;/P&gt;&lt;P&gt;$servers = Get-HPOVServer&lt;/P&gt;&lt;P&gt;# Loop through each server to check for MicroSD USB kits&lt;/P&gt;&lt;P&gt;foreach ($server in $servers) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $serverHardware = Get-HPOVServerHardware -Name $server.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $serverHardwareComponents = Get-HPOVServerHardware -ServerHardware $serverHardware&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check if the server has MicroSD USB kits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $microSDKit = $serverHardwareComponents | Where-Object { $_.Model -like "*MicroSD*" -and $_.Location -like "*USB*" }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($microSDKit) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Output "$($server.name) has MicroSD USB kit installed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Output "$($server.name) does not have MicroSD USB kit installed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;# Disconnect from the OneView appliance&lt;/P&gt;&lt;P&gt;Disconnect-HPOVMgmt&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 01:37:27 GMT</pubDate>
    <dc:creator>Rama2</dc:creator>
    <dc:date>2024-05-07T01:37:27Z</dc:date>
    <item>
      <title>Using scripting to check if a MicroSD USB Kit is connected</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7213260#M10058</link>
      <description>&lt;P&gt;Hi peeps,&lt;/P&gt;&lt;P&gt;I have about 320x DL360 Gen10 servers, and about 160x ML30&amp;nbsp; Gen10 servers spread across 114,000sqkm, all managed with OneView 8.60.01.&lt;/P&gt;&lt;P&gt;We need to identify which of these servers have MicroSDUSB kits in them, ideally with a summary report, so we can have them removed on the next on site visit - powershell seems the most logical here.&lt;/P&gt;&lt;P&gt;Does anyone know how I might setup a script to identify which servers have these MicroSD USB kits in them?&lt;/P&gt;&lt;P&gt;I found a the OneView PS module, but it does not even show the SATA drives connected to the server...&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 23:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7213260#M10058</guid>
      <dc:creator>CarlPowerNZ</dc:creator>
      <dc:date>2024-05-07T23:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using scripting to check if a MicroSD USB Kit is connected</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7214258#M10071</link>
      <description>&lt;P&gt;Kindly use OneView admin credential to run PowerShell commands against your servers via OneView.&lt;/P&gt;&lt;P&gt;# Connect to the OneView appliance&lt;/P&gt;&lt;P&gt;Connect-HPOVMgmt -hostname &amp;lt;OneView_Appliance_IP&amp;gt; -username &amp;lt;username&amp;gt; -password &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;# Get all servers managed by OneView&lt;/P&gt;&lt;P&gt;$servers = Get-HPOVServer&lt;/P&gt;&lt;P&gt;# Loop through each server to check for MicroSD USB kits&lt;/P&gt;&lt;P&gt;foreach ($server in $servers) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $serverHardware = Get-HPOVServerHardware -Name $server.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $serverHardwareComponents = Get-HPOVServerHardware -ServerHardware $serverHardware&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check if the server has MicroSD USB kits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $microSDKit = $serverHardwareComponents | Where-Object { $_.Model -like "*MicroSD*" -and $_.Location -like "*USB*" }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($microSDKit) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Output "$($server.name) has MicroSD USB kit installed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Output "$($server.name) does not have MicroSD USB kit installed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;# Disconnect from the OneView appliance&lt;/P&gt;&lt;P&gt;Disconnect-HPOVMgmt&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 01:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7214258#M10071</guid>
      <dc:creator>Rama2</dc:creator>
      <dc:date>2024-05-07T01:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using scripting to check if a MicroSD USB Kit is connected</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7214545#M10079</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2128123"&gt;@CarlPowerNZ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let us know if you were able to resolve the issue.&lt;/P&gt;
&lt;P&gt;If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 09:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/using-scripting-to-check-if-a-microsd-usb-kit-is-connected/m-p/7214545#M10079</guid>
      <dc:creator>Sunitha_Mod</dc:creator>
      <dc:date>2024-05-09T09:38:14Z</dc:date>
    </item>
  </channel>
</rss>

