- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Array Setup and Networking
- >
- Viewing volume encryption status for array
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2015 07:37 AM
10-13-2015 07:37 AM
A unusual request I suspect, Is there a way to generate a results output to display confirmation that every volume has encryption enabled.
I know this is unavailable from the volumes page but is available if you ‘drill’ into the details of each individual volume. Don’t particularly wish to do this for over 1000 volumes!
Via the cli vol –list does not provide it however vol –info <vol name> does – Is there a way you can perform this across every volume?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2015 08:57 AM
10-13-2015 08:57 AM
SolutionYou could take a look at REST APIs that are available in 2.3.
More details in this post: Nimble OS 2.3 – REST API
By updating the query to include a filter for volumes with encryption_cipher=none, you can make a list of any volumes that dont have encryption enabled. Here's the full script:
###########################
# Enable HTTPS
###########################
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
###########################
# Get Token
###########################
$array = "<ARRAY>"
$username = "admin"
$password = "<PASSWORD>"
$data = @{
username = $username
password = $password
}
$body = convertto-json (@{ data = $data })
$uri = "https://" + $array + ":5392/v1/tokens"
$token = Invoke-RestMethod -Uri $uri -Method Post -Body $body
$token = $token.data.session_token
###########################
# Get Volume List
###########################
$header = @{ "X-Auth-Token" = $token }
$uri = "https://" + $array + ":5392/v1/volumes?encryption_cipher=none"
$volume_list = Invoke-RestMethod -Uri $uri -Method Get -Header $header
$vol_array = @();
foreach ($volume_id in $volume_list.data.id){
$uri = "https://" + $array + ":5392/v1/volumes/" + $volume_id
$volume = Invoke-RestMethod -Uri $uri -Method Get -Header $header
$vol_array += $volume.data
}
###########################
# Print Results
###########################
$vol_array | sort-object name | select name,size,encryption_cipher | format-table -autosize
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2015 09:07 AM
10-13-2015 09:07 AM
Re: Viewing volume encryption status for array
That's excellent - Totally forgot about the ability to perform this in the API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 07:42 PM - edited 06-07-2022 07:46 PM
06-07-2022 07:42 PM - edited 06-07-2022 07:46 PM
Re: Viewing volume encryption status for array
I used the below today
(1) Download and install Powershell modules for Nimble
https://infosight.hpe.com/InfoSight/media/software/active/15/205/HPENimblePowerShellToolkit.210.zip
(2) Then
Connect-NSGroup -group <my-nimble-ip> -credential admin -IgnoreServerCertificate
Get-NSVolume |select Name, Vol_state, encryption_cipher
This looks far simpler