Solved

I want to create a report on SANsymphony-V

Posted on 2015-02-13
7
33 Views
Last Modified: 2015-03-08
I have to able to export a report and be able to email it from SANsymphony-V.

I have the powershell scripts but I can't make any sense of any of it

http://www.datacore.com/SSV-Webhelp/Exporting_Data_Usage.htm

That's the page that comes with the instructions

It's a windows server 2008 r2 standard running net 4.5.1
0
Comment
Question by:Network Zero
  • 4
  • 3
7 Comments
 
LVL 26

Expert Comment

by:Dan McFadden
ID: 40612234
1. What type of report do you want to create?  HTML, PDF, TEXT, PNG...
2. Where you want the report saved?
3. What are the Host Group names to report on?
4. How many days should be included in the report (how days to go back)
5. How do you want to sort the report?
6. Detailed report or Data Usage report?
7. What order should the report be sorted (Ascending or Descending)
8. Do you want the report creation date in the name on the report file?

If you can answer these questions, the report can be configured.

Dan
0
 
LVL 7

Author Comment

by:Network Zero
ID: 40616477
1. PDF
2. On the local drive
3. All the groups
4. Just the present day
5. Sort it by host
6. Both
7. Assending
8.yes
0
 
LVL 26

Expert Comment

by:Dan McFadden
ID: 40616500
Then the command line should be:

Command for the data usage report:
Export-DcsReport   -ReportName "SANsymphony-V Disk Usage Report"  -ExportType Pdf  -Path "C:\reports\" -DaysBack 1 -SortBy "HostGroupName" -AddDateToFileName 

Open in new window


Command for the detailed report:
Export-DcsReport   -ReportName "SANsymphony-V Detailed Report"  -ExportType Pdf  -Path "C:\reports\" -DaysBack 1 -SortBy "HostGroupName" -Detailed -AddDateToFileName 

Open in new window


Dan
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 7

Author Comment

by:Network Zero
ID: 40618062
I will try these tomorrow. ty
0
 
LVL 7

Author Comment

by:Network Zero
ID: 40620228
San SympThis is what I get I uploaded a picture, I think I have to load a module but I tried it

I found this code that connects to this thing, ill post it in case it helps this is backup the san

# Register DataCore Cmdlets
Import-Module "C:\Program Files\DataCore\SANsymphony\DataCore.Executive.Cmdlets.dll" -WarningAction silentlyContinue
 
# To create an encrypted password file, execute the following command
# Read-Host -AsSecureString | ConvertFrom-SecureString | Out-File securestring.txt
# securesting.txt has to be located in the same folder as the script
 
# Variables
$DcsServer = hostname
$DcsUserName = "Administrator"
$DcsPassword = Get-Content securestring.txt | ConvertTo-SecureString
$DcsCredItem = New-Object -Typename System.Management.Automation.PSCredential -Argumentlist $DcsUserName, $DcsPassword
$Keep = 3
$BackupFolder = "C:\SSVBACKUP"
 
# Keep last x files - see $Keep for number of files to keep
# $Files is a variable which stores the filenames of all files that match *.cab
$Files = Get-ChildItem -Path $BackupFolder -Recurse | Where-Object {-not $_.PsIsContainer} | where {$_.name -like "*.cab"}
 
# Do-Until Loop which loops until the count of $Files is equal $Keep
do {$Files | Sort-Object CreationTime | Select-Object -First ($Files.Count - $Keep)| Remove-Item} until ($Files.Count -ge $Keep)
 
# Connect to Server Group using $server
Connect-DcsServer -Server $DcsServer -Credential $DcsCredItem -Connection $DcsServer
 
# Set Backupfolder
ForEach ($Dcs in (Get-DcsServer)) {Set-DcsBackUpFolder -Server $Dcs -Folder $BackupFolder}
 
# Take Configbackup
Backup-DcsConfiguration
 
# Disconnect Server Group
Disconnect-DcsServer

Open in new window

0
 
LVL 26

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 40620835
Ok the error states that path is not a valid option. Try running it without the -Path "c:\reports\" in the command.

Dan
0
 
LVL 7

Author Closing Comment

by:Network Zero
ID: 40653086
Haven't had time to check this, but the last thing was given errors still
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now