https://github.com/equelin/psmitrend
Powershell module for creating and submitting Mitrend assessments
https://github.com/equelin/psmitrend
api dell emc mitrend powershell rest
Last synced: about 2 months ago
JSON representation
Powershell module for creating and submitting Mitrend assessments
- Host: GitHub
- URL: https://github.com/equelin/psmitrend
- Owner: equelin
- License: mit
- Created: 2017-08-24T15:13:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T13:14:12.000Z (over 7 years ago)
- Last Synced: 2025-03-21T08:46:20.717Z (about 2 months ago)
- Topics: api, dell, emc, mitrend, powershell, rest
- Language: PowerShell
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PSMitrend
Powershell module for creating and submitting Mitrend assessments. It's purpose is to simplify the process of assessment's request by providing a single powershell command.```Powershell
> Request-Assessment -Company 'MyCompany' -AssessmentName 'MyAssessment' -DeviceType 'MyDevice' -File 'C:\Myfile.zip'
```This module can be useful for automating planed assessment's request to provide long term insight of your infrastructure.
## What is Mitrend?
As stated in the [Mitrend's website](https://medium.com/mitrend/what-is-mitrend-eb3abb884f21):
> Mitrend helps IT professionals by providing a clear and accurate view of datacenter infrastructure. Our automated services include assessments of a wide range of infrastructure components, from Server and Virtualization to Storage and Backup Systems.
# Requirements
- Powershell 4 (If possible get the latest version available)
- A valid Mitrend account# Usage Instructions
### Install the module
```powershell
#Automated installation from the Powershell Gallery (Powershell 5):
Install-Module PSMitrend# Or manual setup
# Download the repository
# Unblock the zip
# Extract the PSMitrend folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)# Import the module
Import-Module PSMitrend #Alternatively, Import-Module \\Path\To\PSMitrend# Get commands in the module
Get-Command -Module PSMitrend# Get help
Get-Help Request-Assessment -Full #Get help for a specific command
Get-Help PSMitrend
```### How to submit an assessment
> You can find more detailed scripts [here](./Examples/README.md)
1- Follow the mitrend documentation to gather all relevant files
2- Open a Powershell console and import the PSMitrend module
```Powershell
> Import-Module PSMitrend
```3- Get your Mitrend credentials
```Powershell
> $Credentials = Get-Credential
```4- Request an assessment
```Powershell
> $Assessment = Request-Assessment -Credentials $Credentials -Company 'MyCompany' -AssessmentName 'MyAssessment' -DeviceType 'Unity' -File 'C:\Myfile.zip'
```7- If everything goes well, you should receive emails from Mitrend stating that they are processing the data
8- You can request Mitrend to send you an email with the assessment in xml format with the command `Request-EmailReport`. I you need powerpoint's reports, you will have to download them from the Mitrend website
```Powershell
> Request-EmailReport -Credentials $Credentials -Assessment $Assessment.id
```# Author
**Erwan Quélin**
-
-# Special Thanks
- Mitrend for providing [powershell's script examples ](https://github.com/Mitrend/APISamples/blob/master/createAssessment.ps1)
# License
Copyright 2016-2017 Erwan Quelin and the community.
Licensed under the MIT License.