├── AppVeyor ├── Functions │ └── AppVeyor-Util.psm1 ├── PSDeploy │ ├── AppVeyorModule.PSDeploy.ps1 │ └── PSGalleryModule.PSDeploy.ps1 ├── deploy.ps1 ├── install.ps1 └── test.ps1 ├── ISSUE_TEMPLATE.md ├── LICENSE ├── Medias └── Unity-Powershell-Demo-01.gif ├── README.md ├── Tests ├── Class │ ├── Class.Tests.ps1 │ └── Data │ │ ├── README.md │ │ ├── Unity300-4_1.json │ │ ├── Unity400F-4_1.json │ │ ├── Unity400F-4_2.json │ │ ├── UnityVSA-4_0.json │ │ ├── UnityVSA-4_1.json │ │ └── UnityVSA-4_5_1.json ├── Function │ ├── Function.Data.ps1 │ └── Function.Tests.ps1 ├── Help │ └── Module.Help.Tests.ps1 ├── Module │ └── Unity-Powershell.Tests.ps1 └── Unit │ ├── Get-UnityObject.Tests.ps1 │ └── New-UnityObject.Tests.ps1 ├── Tools ├── Build-Module │ ├── Configs │ │ └── Config.ps1 │ ├── Format │ │ ├── Build-Format.ps1 │ │ └── Convert-ClassToPS1xml.ps1 │ ├── Readthedocs │ │ └── Update-Doc.ps1 │ ├── build.ps1 │ └── psakeBuild.ps1 ├── Classes │ ├── Class_Unity400F_41.ps1 │ ├── Class_Unity400F_42.ps1 │ ├── Classes_Unity300_41.ps1 │ ├── Classes_UnityVSA_41.ps1 │ ├── Classes_UnityVSA_451.ps1 │ ├── Compare-Class.ps1 │ ├── Enum.ps1 │ ├── Enum_Unity400F_41.ps1 │ ├── Enum_Unity400F_42.ps1 │ ├── Enum_UnityVSA_451.ps1 │ ├── Get-Class.ps1 │ └── Get-Enum.ps1 ├── Functions │ ├── New-GetFunction.ps1 │ ├── Result_Unity400F_41 │ │ ├── Get-UnityaclUser.ps1 │ │ ├── Get-UnityaffectedResource.ps1 │ │ ├── Get-Unityalert.ps1 │ │ ├── Get-UnityalertConfig.ps1 │ │ ├── Get-UnityalertConfigSNMPTarget.ps1 │ │ ├── Get-UnitybaseRequest.ps1 │ │ ├── Get-UnitybaseResponse.ps1 │ │ ├── Get-UnitybasicSystemInfo.ps1 │ │ ├── Get-Unitybattery.ps1 │ │ ├── Get-UnityblockHostAccess.ps1 │ │ ├── Get-UnityblockHostAccessParam.ps1 │ │ ├── Get-UnitycandidateSoftwareVersion.ps1 │ │ ├── Get-UnitycapabilityProfile.ps1 │ │ ├── Get-UnitycapabilityProfileRecommendation.ps1 │ │ ├── Get-UnitycertificateScope.ps1 │ │ ├── Get-UnitycifsFilesystemParameters.ps1 │ │ ├── Get-UnitycifsServer.ps1 │ │ ├── Get-UnitycifsShare.ps1 │ │ ├── Get-UnitycifsShareACE.ps1 │ │ ├── Get-UnitycifsShareCreate.ps1 │ │ ├── Get-UnitycifsShareDelete.ps1 │ │ ├── Get-UnitycifsShareModify.ps1 │ │ ├── Get-UnitycifsShareParameters.ps1 │ │ ├── Get-UnitycompressionParameters.ps1 │ │ ├── Get-UnityconfigCaptureResult.ps1 │ │ ├── Get-Unitycrl.ps1 │ │ ├── Get-Unitydae.ps1 │ │ ├── Get-UnitydataCollectionResult.ps1 │ │ ├── Get-Unitydatastore.ps1 │ │ ├── Get-UnitydhsmConnection.ps1 │ │ ├── Get-UnitydhsmServer.ps1 │ │ ├── Get-Unitydisk.ps1 │ │ ├── Get-UnitydiskGroup.ps1 │ │ ├── Get-UnitydiskGroupConfiguration.ps1 │ │ ├── Get-UnitydnsServer.ps1 │ │ ├── Get-Unitydpe.ps1 │ │ ├── Get-UnityelementImport.ps1 │ │ ├── Get-Unityencryption.ps1 │ │ ├── Get-UnityesrsParam.ps1 │ │ ├── Get-UnityesrsPolicyManager.ps1 │ │ ├── Get-UnityesxDatastore.ps1 │ │ ├── Get-UnityethernetPort.ps1 │ │ ├── Get-Unityevent.ps1 │ │ ├── Get-Unityfan.ps1 │ │ ├── Get-UnityfastVPParameters.ps1 │ │ ├── Get-UnityfcPort.ps1 │ │ ├── Get-Unityfeature.ps1 │ │ ├── Get-UnityfileDNSServer.ps1 │ │ ├── Get-UnityfileDNSServerSourceParameters.ps1 │ │ ├── Get-UnityfileEventSettings.ps1 │ │ ├── Get-UnityfileEventsPool.ps1 │ │ ├── Get-UnityfileEventsPublisher.ps1 │ │ ├── Get-UnityfileInterface.ps1 │ │ ├── Get-UnityfileInterfaceSourceParameters.ps1 │ │ ├── Get-UnityfileKerberosServer.ps1 │ │ ├── Get-UnityfileLDAPServer.ps1 │ │ ├── Get-UnityfileLDAPServerSourceParameters.ps1 │ │ ├── Get-UnityfileNDMPServer.ps1 │ │ ├── Get-UnityfileNISServer.ps1 │ │ ├── Get-UnityfileNISServerSourceParameters.ps1 │ │ ├── Get-Unityfilesystem.ps1 │ │ ├── Get-UnityfilesystemImportParameters.ps1 │ │ ├── Get-UnityfilesystemParameters.ps1 │ │ ├── Get-UnityfloatOrValueMap.ps1 │ │ ├── Get-UnityftpServer.ps1 │ │ ├── Get-Unityhealth.ps1 │ │ ├── Get-Unityhost.ps1 │ │ ├── Get-UnityhostContainer.ps1 │ │ ├── Get-UnityhostIPPort.ps1 │ │ ├── Get-UnityhostInitiator.ps1 │ │ ├── Get-UnityhostInitiatorPath.ps1 │ │ ├── Get-UnityhostLUN.ps1 │ │ ├── Get-UnityhostLunModify.ps1 │ │ ├── Get-UnityhostVVolDatastore.ps1 │ │ ├── Get-UnityimportSession.ps1 │ │ ├── Get-UnityimportSyncProgress.ps1 │ │ ├── Get-UnityinstalledSoftwareVersion.ps1 │ │ ├── Get-UnityinstalledSoftwareVersionLanguage.ps1 │ │ ├── Get-UnityinstalledSoftwareVersionPackages.ps1 │ │ ├── Get-UnityinterfacePortPair.ps1 │ │ ├── Get-UnityioLimitParameters.ps1 │ │ ├── Get-UnityioLimitPolicy.ps1 │ │ ├── Get-UnityioLimitRule.ps1 │ │ ├── Get-UnityioLimitRuleSetting.ps1 │ │ ├── Get-UnityioLimitSetting.ps1 │ │ ├── Get-UnityioModule.ps1 │ │ ├── Get-UnityipInterface.ps1 │ │ ├── Get-UnityipPort.ps1 │ │ ├── Get-UnityiscsiNode.ps1 │ │ ├── Get-UnityiscsiPortal.ps1 │ │ ├── Get-UnityiscsiSettings.ps1 │ │ ├── Get-Unityjob.ps1 │ │ ├── Get-UnityjobTask.ps1 │ │ ├── Get-UnityjobTaskRequest.ps1 │ │ ├── Get-Unitylcc.ps1 │ │ ├── Get-UnityldapServer.ps1 │ │ ├── Get-Unitylicense.ps1 │ │ ├── Get-UnitylinkAggregation.ps1 │ │ ├── Get-UnitylocalizedMessage.ps1 │ │ ├── Get-UnityloginSessionInfo.ps1 │ │ ├── Get-Unitylun.ps1 │ │ ├── Get-UnitylunAdd.ps1 │ │ ├── Get-UnitylunCreate.ps1 │ │ ├── Get-UnitylunDelete.ps1 │ │ ├── Get-UnitylunMemberReplication.ps1 │ │ ├── Get-UnitylunModify.ps1 │ │ ├── Get-UnitylunParameters.ps1 │ │ ├── Get-UnitylunRemove.ps1 │ │ ├── Get-UnitymemoryModule.ps1 │ │ ├── Get-Unitymessage.ps1 │ │ ├── Get-Unitymetric.ps1 │ │ ├── Get-UnitymetricCollection.ps1 │ │ ├── Get-UnitymetricQueryResult.ps1 │ │ ├── Get-UnitymetricRealTimeQuery.ps1 │ │ ├── Get-UnitymetricService.ps1 │ │ ├── Get-UnitymetricValue.ps1 │ │ ├── Get-UnitymgmtInterface.ps1 │ │ ├── Get-UnitymgmtInterfaceSettings.ps1 │ │ ├── Get-UnitymoveSession.ps1 │ │ ├── Get-UnitynameValuePair.ps1 │ │ ├── Get-UnitynasServer.ps1 │ │ ├── Get-UnitynfsServer.ps1 │ │ ├── Get-UnitynfsShare.ps1 │ │ ├── Get-UnitynfsShareCreate.ps1 │ │ ├── Get-UnitynfsShareDelete.ps1 │ │ ├── Get-UnitynfsShareModify.ps1 │ │ ├── Get-UnitynfsShareParameters.ps1 │ │ ├── Get-UnityntpServer.ps1 │ │ ├── Get-UnitypingResult.ps1 │ │ ├── Get-Unitypool.ps1 │ │ ├── Get-UnitypoolConfiguration.ps1 │ │ ├── Get-UnitypoolConsumer.ps1 │ │ ├── Get-UnitypoolConsumerAllocation.ps1 │ │ ├── Get-UnitypoolFASTVP.ps1 │ │ ├── Get-UnitypoolTier.ps1 │ │ ├── Get-UnitypoolUnit.ps1 │ │ ├── Get-UnitypoolUnitParameters.ps1 │ │ ├── Get-UnitypotentialHost.ps1 │ │ ├── Get-UnitypowerSupply.ps1 │ │ ├── Get-UnitypreferredInterfaceSettings.ps1 │ │ ├── Get-UnitypreferredInterfaceSourceParameters.ps1 │ │ ├── Get-UnityquotaConfig.ps1 │ │ ├── Get-UnityraidConfiguration.ps1 │ │ ├── Get-UnityraidGroup.ps1 │ │ ├── Get-UnityraidGroupCache.ps1 │ │ ├── Get-UnityraidGroupConfiguration.ps1 │ │ ├── Get-UnityraidGroupParameters.ps1 │ │ ├── Get-UnityremoteInterface.ps1 │ │ ├── Get-UnityremoteSyslog.ps1 │ │ ├── Get-UnityremoteSystem.ps1 │ │ ├── Get-UnityreplicationInterface.ps1 │ │ ├── Get-UnityreplicationParameters.ps1 │ │ ├── Get-UnityreplicationSession.ps1 │ │ ├── Get-UnityresourceInfo.ps1 │ │ ├── Get-UnityresourceRef.ps1 │ │ ├── Get-UnityrevokedCertificate.ps1 │ │ ├── Get-Unityrole.ps1 │ │ ├── Get-UnityroleMapping.ps1 │ │ ├── Get-Unityroute.ps1 │ │ ├── Get-UnityrpChapSettings.ps1 │ │ ├── Get-UnitysasPort.ps1 │ │ ├── Get-UnitysecuritySettings.ps1 │ │ ├── Get-UnityserviceAction.ps1 │ │ ├── Get-UnityserviceContract.ps1 │ │ ├── Get-UnityserviceInfo.ps1 │ │ ├── Get-Unitysite.ps1 │ │ ├── Get-UnitysmtpServer.ps1 │ │ ├── Get-Unitysnap.ps1 │ │ ├── Get-UnitysnapHostAccess.ps1 │ │ ├── Get-UnitysnapHostAccessParameters.ps1 │ │ ├── Get-UnitysnapSchedule.ps1 │ │ ├── Get-UnitysnapScheduleParameters.ps1 │ │ ├── Get-UnitysnapScheduleRule.ps1 │ │ ├── Get-UnitysoftwareUpgradeSession.ps1 │ │ ├── Get-Unityssc.ps1 │ │ ├── Get-Unityssd.ps1 │ │ ├── Get-UnitystatValue.ps1 │ │ ├── Get-UnitystorageProcessor.ps1 │ │ ├── Get-UnitystorageResource.ps1 │ │ ├── Get-UnitystorageResourceCapabilityProfile.ps1 │ │ ├── Get-UnitystorageResourceDelete.ps1 │ │ ├── Get-UnitystorageTier.ps1 │ │ ├── Get-UnitystorageTierConfiguration.ps1 │ │ ├── Get-UnitystorageTierExtension.ps1 │ │ ├── Get-UnitystripeWidthConfiguration.ps1 │ │ ├── Get-UnitysupportAsset.ps1 │ │ ├── Get-UnitysupportProxy.ps1 │ │ ├── Get-UnitysupportService.ps1 │ │ ├── Get-UnitysvcCRU.ps1 │ │ ├── Get-UnitysvcStorageProcessor.ps1 │ │ ├── Get-Unitysystem.ps1 │ │ ├── Get-UnitysystemCapacity.ps1 │ │ ├── Get-UnitysystemInformation.ps1 │ │ ├── Get-UnitysystemLimit.ps1 │ │ ├── Get-UnitysystemTierCapacity.ps1 │ │ ├── Get-UnitysystemTime.ps1 │ │ ├── Get-UnitytechnicalAdvisory.ps1 │ │ ├── Get-Unitytenant.ps1 │ │ ├── Get-UnitytracerouteResult.ps1 │ │ ├── Get-UnitytreeQuota.ps1 │ │ ├── Get-UnityuncommittedPort.ps1 │ │ ├── Get-UnityupgradeMessage.ps1 │ │ ├── Get-UnityupgradeSession.ps1 │ │ ├── Get-UnityupgradeTask.ps1 │ │ ├── Get-UnityurServer.ps1 │ │ ├── Get-Unityuser.ps1 │ │ ├── Get-UnityuserQuota.ps1 │ │ ├── Get-UnityvirtualVolume.ps1 │ │ ├── Get-UnityvirtualVolumeBinding.ps1 │ │ ├── Get-UnityvirusChecker.ps1 │ │ ├── Get-UnityvlanInfo.ps1 │ │ ├── Get-Unityvm.ps1 │ │ ├── Get-UnityvmDisk.ps1 │ │ ├── Get-UnityvmwareIscsiParameters.ps1 │ │ ├── Get-UnityvmwareNasPEServer.ps1 │ │ ├── Get-UnityvmwarePE.ps1 │ │ ├── Get-UnityvvolDatastoreCapabilityProfilesParameters.ps1 │ │ └── Get-Unityx509Certificate.ps1 │ └── Result_UnityVSA_41 │ │ ├── Get-UnityaclUser.ps1 │ │ ├── Get-UnityaffectedResource.ps1 │ │ ├── Get-Unityalert.ps1 │ │ ├── Get-UnityalertConfig.ps1 │ │ ├── Get-UnityalertConfigSNMPTarget.ps1 │ │ ├── Get-UnitybaseRequest.ps1 │ │ ├── Get-UnitybaseResponse.ps1 │ │ ├── Get-UnitybasicSystemInfo.ps1 │ │ ├── Get-Unitybattery.ps1 │ │ ├── Get-UnityblockHostAccess.ps1 │ │ ├── Get-UnityblockHostAccessParam.ps1 │ │ ├── Get-UnitycandidateSoftwareVersion.ps1 │ │ ├── Get-UnitycapabilityProfile.ps1 │ │ ├── Get-UnitycapabilityProfileRecommendation.ps1 │ │ ├── Get-UnitycertificateScope.ps1 │ │ ├── Get-UnitycifsFilesystemParameters.ps1 │ │ ├── Get-UnitycifsServer.ps1 │ │ ├── Get-UnitycifsShare.ps1 │ │ ├── Get-UnitycifsShareACE.ps1 │ │ ├── Get-UnitycifsShareCreate.ps1 │ │ ├── Get-UnitycifsShareDelete.ps1 │ │ ├── Get-UnitycifsShareModify.ps1 │ │ ├── Get-UnitycifsShareParameters.ps1 │ │ ├── Get-UnitycompressionParameters.ps1 │ │ ├── Get-UnityconfigCaptureResult.ps1 │ │ ├── Get-Unitycrl.ps1 │ │ ├── Get-Unitydae.ps1 │ │ ├── Get-UnitydataCollectionResult.ps1 │ │ ├── Get-Unitydatastore.ps1 │ │ ├── Get-UnitydhsmConnection.ps1 │ │ ├── Get-UnitydhsmServer.ps1 │ │ ├── Get-Unitydisk.ps1 │ │ ├── Get-UnitydiskGroup.ps1 │ │ ├── Get-UnitydiskGroupConfiguration.ps1 │ │ ├── Get-UnitydnsServer.ps1 │ │ ├── Get-Unitydpe.ps1 │ │ ├── Get-UnityelementImport.ps1 │ │ ├── Get-Unityencryption.ps1 │ │ ├── Get-UnityesrsParam.ps1 │ │ ├── Get-UnityesrsPolicyManager.ps1 │ │ ├── Get-UnityesxDatastore.ps1 │ │ ├── Get-UnityethernetPort.ps1 │ │ ├── Get-Unityevent.ps1 │ │ ├── Get-Unityfan.ps1 │ │ ├── Get-UnityfastCache.ps1 │ │ ├── Get-UnityfastVP.ps1 │ │ ├── Get-UnityfastVPParameters.ps1 │ │ ├── Get-UnityfcPort.ps1 │ │ ├── Get-Unityfeature.ps1 │ │ ├── Get-UnityfileDNSServer.ps1 │ │ ├── Get-UnityfileDNSServerSourceParameters.ps1 │ │ ├── Get-UnityfileEventSettings.ps1 │ │ ├── Get-UnityfileEventsPool.ps1 │ │ ├── Get-UnityfileEventsPublisher.ps1 │ │ ├── Get-UnityfileInterface.ps1 │ │ ├── Get-UnityfileInterfaceSourceParameters.ps1 │ │ ├── Get-UnityfileKerberosServer.ps1 │ │ ├── Get-UnityfileLDAPServer.ps1 │ │ ├── Get-UnityfileLDAPServerSourceParameters.ps1 │ │ ├── Get-UnityfileNDMPServer.ps1 │ │ ├── Get-UnityfileNISServer.ps1 │ │ ├── Get-UnityfileNISServerSourceParameters.ps1 │ │ ├── Get-Unityfilesystem.ps1 │ │ ├── Get-UnityfilesystemImportParameters.ps1 │ │ ├── Get-UnityfilesystemParameters.ps1 │ │ ├── Get-UnityfloatOrValueMap.ps1 │ │ ├── Get-UnityftpServer.ps1 │ │ ├── Get-Unityhealth.ps1 │ │ ├── Get-Unityhost.ps1 │ │ ├── Get-UnityhostContainer.ps1 │ │ ├── Get-UnityhostIPPort.ps1 │ │ ├── Get-UnityhostInitiator.ps1 │ │ ├── Get-UnityhostInitiatorPath.ps1 │ │ ├── Get-UnityhostLUN.ps1 │ │ ├── Get-UnityhostLunModify.ps1 │ │ ├── Get-UnityhostVVolDatastore.ps1 │ │ ├── Get-UnityimportSession.ps1 │ │ ├── Get-UnityimportSyncProgress.ps1 │ │ ├── Get-UnityinstalledSoftwareVersion.ps1 │ │ ├── Get-UnityinstalledSoftwareVersionLanguage.ps1 │ │ ├── Get-UnityinstalledSoftwareVersionPackages.ps1 │ │ ├── Get-UnityinterfacePortPair.ps1 │ │ ├── Get-UnityioLimitParameters.ps1 │ │ ├── Get-UnityioLimitPolicy.ps1 │ │ ├── Get-UnityioLimitRule.ps1 │ │ ├── Get-UnityioLimitRuleSetting.ps1 │ │ ├── Get-UnityioLimitSetting.ps1 │ │ ├── Get-UnityioModule.ps1 │ │ ├── Get-UnityipInterface.ps1 │ │ ├── Get-UnityipPort.ps1 │ │ ├── Get-UnityiscsiNode.ps1 │ │ ├── Get-UnityiscsiPortal.ps1 │ │ ├── Get-UnityiscsiSettings.ps1 │ │ ├── Get-Unityjob.ps1 │ │ ├── Get-UnityjobTask.ps1 │ │ ├── Get-UnityjobTaskRequest.ps1 │ │ ├── Get-Unitylcc.ps1 │ │ ├── Get-UnityldapServer.ps1 │ │ ├── Get-Unitylicense.ps1 │ │ ├── Get-UnitylinkAggregation.ps1 │ │ ├── Get-UnitylocalizedMessage.ps1 │ │ ├── Get-UnityloginSessionInfo.ps1 │ │ ├── Get-Unitylun.ps1 │ │ ├── Get-UnitylunAdd.ps1 │ │ ├── Get-UnitylunCreate.ps1 │ │ ├── Get-UnitylunDelete.ps1 │ │ ├── Get-UnitylunMemberReplication.ps1 │ │ ├── Get-UnitylunModify.ps1 │ │ ├── Get-UnitylunParameters.ps1 │ │ ├── Get-UnitylunRemove.ps1 │ │ ├── Get-UnitymemoryModule.ps1 │ │ ├── Get-Unitymessage.ps1 │ │ ├── Get-Unitymetric.ps1 │ │ ├── Get-UnitymetricCollection.ps1 │ │ ├── Get-UnitymetricQueryResult.ps1 │ │ ├── Get-UnitymetricRealTimeQuery.ps1 │ │ ├── Get-UnitymetricService.ps1 │ │ ├── Get-UnitymetricValue.ps1 │ │ ├── Get-UnitymgmtInterface.ps1 │ │ ├── Get-UnitymgmtInterfaceSettings.ps1 │ │ ├── Get-UnitymoveSession.ps1 │ │ ├── Get-UnitynameValuePair.ps1 │ │ ├── Get-UnitynasServer.ps1 │ │ ├── Get-UnitynfsServer.ps1 │ │ ├── Get-UnitynfsShare.ps1 │ │ ├── Get-UnitynfsShareCreate.ps1 │ │ ├── Get-UnitynfsShareDelete.ps1 │ │ ├── Get-UnitynfsShareModify.ps1 │ │ ├── Get-UnitynfsShareParameters.ps1 │ │ ├── Get-UnityntpServer.ps1 │ │ ├── Get-UnitypingResult.ps1 │ │ ├── Get-Unitypool.ps1 │ │ ├── Get-UnitypoolConfiguration.ps1 │ │ ├── Get-UnitypoolConsumer.ps1 │ │ ├── Get-UnitypoolConsumerAllocation.ps1 │ │ ├── Get-UnitypoolFASTVP.ps1 │ │ ├── Get-UnitypoolTier.ps1 │ │ ├── Get-UnitypoolUnit.ps1 │ │ ├── Get-UnitypoolUnitParameters.ps1 │ │ ├── Get-UnitypotentialHost.ps1 │ │ ├── Get-UnitypowerSupply.ps1 │ │ ├── Get-UnitypreferredInterfaceSettings.ps1 │ │ ├── Get-UnitypreferredInterfaceSourceParameters.ps1 │ │ ├── Get-UnityquotaConfig.ps1 │ │ ├── Get-UnityraidConfiguration.ps1 │ │ ├── Get-UnityraidGroup.ps1 │ │ ├── Get-UnityraidGroupCache.ps1 │ │ ├── Get-UnityraidGroupConfiguration.ps1 │ │ ├── Get-UnityraidGroupParameters.ps1 │ │ ├── Get-UnityremoteInterface.ps1 │ │ ├── Get-UnityremoteSyslog.ps1 │ │ ├── Get-UnityremoteSystem.ps1 │ │ ├── Get-UnityreplicationInterface.ps1 │ │ ├── Get-UnityreplicationParameters.ps1 │ │ ├── Get-UnityreplicationSession.ps1 │ │ ├── Get-UnityresourceInfo.ps1 │ │ ├── Get-UnityresourceRef.ps1 │ │ ├── Get-UnityrevokedCertificate.ps1 │ │ ├── Get-Unityrole.ps1 │ │ ├── Get-UnityroleMapping.ps1 │ │ ├── Get-Unityroute.ps1 │ │ ├── Get-UnityrpChapSettings.ps1 │ │ ├── Get-UnitysasPort.ps1 │ │ ├── Get-UnitysecuritySettings.ps1 │ │ ├── Get-UnityserviceAction.ps1 │ │ ├── Get-UnityserviceContract.ps1 │ │ ├── Get-UnityserviceInfo.ps1 │ │ ├── Get-Unitysite.ps1 │ │ ├── Get-UnitysmtpServer.ps1 │ │ ├── Get-Unitysnap.ps1 │ │ ├── Get-UnitysnapHostAccess.ps1 │ │ ├── Get-UnitysnapHostAccessParameters.ps1 │ │ ├── Get-UnitysnapSchedule.ps1 │ │ ├── Get-UnitysnapScheduleParameters.ps1 │ │ ├── Get-UnitysnapScheduleRule.ps1 │ │ ├── Get-UnitysoftwareUpgradeSession.ps1 │ │ ├── Get-Unityssc.ps1 │ │ ├── Get-Unityssd.ps1 │ │ ├── Get-UnitystatValue.ps1 │ │ ├── Get-UnitystorageProcessor.ps1 │ │ ├── Get-UnitystorageResource.ps1 │ │ ├── Get-UnitystorageResourceCapabilityProfile.ps1 │ │ ├── Get-UnitystorageResourceDelete.ps1 │ │ ├── Get-UnitystorageTier.ps1 │ │ ├── Get-UnitystorageTierConfiguration.ps1 │ │ ├── Get-UnitystorageTierExtension.ps1 │ │ ├── Get-UnitystripeWidthConfiguration.ps1 │ │ ├── Get-UnitysupportAsset.ps1 │ │ ├── Get-UnitysupportProxy.ps1 │ │ ├── Get-UnitysupportService.ps1 │ │ ├── Get-UnitysvcCRU.ps1 │ │ ├── Get-UnitysvcStorageProcessor.ps1 │ │ ├── Get-Unitysystem.ps1 │ │ ├── Get-UnitysystemCapacity.ps1 │ │ ├── Get-UnitysystemInformation.ps1 │ │ ├── Get-UnitysystemLimit.ps1 │ │ ├── Get-UnitysystemTierCapacity.ps1 │ │ ├── Get-UnitysystemTime.ps1 │ │ ├── Get-UnitytechnicalAdvisory.ps1 │ │ ├── Get-Unitytenant.ps1 │ │ ├── Get-UnitytracerouteResult.ps1 │ │ ├── Get-UnitytreeQuota.ps1 │ │ ├── Get-UnityuncommittedPort.ps1 │ │ ├── Get-UnityupgradeMessage.ps1 │ │ ├── Get-UnityupgradeSession.ps1 │ │ ├── Get-UnityupgradeTask.ps1 │ │ ├── Get-UnityurServer.ps1 │ │ ├── Get-Unityuser.ps1 │ │ ├── Get-UnityuserQuota.ps1 │ │ ├── Get-UnityvirtualVolume.ps1 │ │ ├── Get-UnityvirtualVolumeBinding.ps1 │ │ ├── Get-UnityvirusChecker.ps1 │ │ ├── Get-UnityvlanInfo.ps1 │ │ ├── Get-Unityvm.ps1 │ │ ├── Get-UnityvmDisk.ps1 │ │ ├── Get-UnityvmwareIscsiParameters.ps1 │ │ ├── Get-UnityvmwareNasPEServer.ps1 │ │ ├── Get-UnityvmwarePE.ps1 │ │ ├── Get-UnityvvolDatastoreCapabilityProfilesParameters.ps1 │ │ ├── Get-Unityx509Certificate.ps1 │ │ └── README.md ├── Templates │ └── ID │ │ ├── Get-Unity.ps1 │ │ ├── New-Unity.ps1 │ │ ├── Remove-Unity.ps1 │ │ └── Set-Unity.ps1 └── Workflows │ ├── Unity-Configuration.ps1 │ └── Unity-Erase.ps1 ├── Unity-Powershell ├── Format │ ├── Unity-Powershell.UnityAlert.Format.ps1xml │ ├── Unity-Powershell.UnityAlertConfig.Format.ps1xml │ ├── Unity-Powershell.UnityBasicSystemInfo.Format.ps1xml │ ├── Unity-Powershell.UnityCIFSServer.Format.ps1xml │ ├── Unity-Powershell.UnityCIFSShare.Format.ps1xml │ ├── Unity-Powershell.UnityDNSServer.Format.ps1xml │ ├── Unity-Powershell.UnityDae.Format.ps1xml │ ├── Unity-Powershell.UnityDisk.Format.ps1xml │ ├── Unity-Powershell.UnityDiskGroup.Format.ps1xml │ ├── Unity-Powershell.UnityDpe.Format.ps1xml │ ├── Unity-Powershell.UnityEncryption.Format.ps1xml │ ├── Unity-Powershell.UnityEthernetPort.Format.ps1xml │ ├── Unity-Powershell.UnityFastCache.Format.ps1xml │ ├── Unity-Powershell.UnityFeature.Format.ps1xml │ ├── Unity-Powershell.UnityFileDNSServer.Format.ps1xml │ ├── Unity-Powershell.UnityFileInterface.Format.ps1xml │ ├── Unity-Powershell.UnityFilesystem.Format.ps1xml │ ├── Unity-Powershell.UnityHost.Format.ps1xml │ ├── Unity-Powershell.UnityHostContainer.Format.ps1xml │ ├── Unity-Powershell.UnityHostIPPort.Format.ps1xml │ ├── Unity-Powershell.UnityHostInitiator.Format.ps1xml │ ├── Unity-Powershell.UnityIpInterface.Format.ps1xml │ ├── Unity-Powershell.UnityIpPort.Format.ps1xml │ ├── Unity-Powershell.UnityIscsiPortal.Format.ps1xml │ ├── Unity-Powershell.UnityJob.Format.ps1xml │ ├── Unity-Powershell.UnityLUN.Format.ps1xml │ ├── Unity-Powershell.UnityLicense.Format.ps1xml │ ├── Unity-Powershell.UnityMetric.Format.ps1xml │ ├── Unity-Powershell.UnityMetricQueryResult.Format.ps1xml │ ├── Unity-Powershell.UnityMetricRealTimeQuery.Format.ps1xml │ ├── Unity-Powershell.UnityMetricValue.Format.ps1xml │ ├── Unity-Powershell.UnityMgmtInterface.Format.ps1xml │ ├── Unity-Powershell.UnityMgmtInterfaceSettings.Format.ps1xml │ ├── Unity-Powershell.UnityNFSShare.Format.ps1xml │ ├── Unity-Powershell.UnityNTPServer.Format.ps1xml │ ├── Unity-Powershell.UnityNasServer.Format.ps1xml │ ├── Unity-Powershell.UnityNfsServer.Format.ps1xml │ ├── Unity-Powershell.UnityPool.Format.ps1xml │ ├── Unity-Powershell.UnityPoolUnit.Format.ps1xml │ ├── Unity-Powershell.UnitySession.Format.ps1xml │ ├── Unity-Powershell.UnitySmtpServer.Format.ps1xml │ ├── Unity-Powershell.UnitySnap.Format.ps1xml │ ├── Unity-Powershell.UnitySnapSchedule.Format.ps1xml │ ├── Unity-Powershell.UnitySnapScheduleRule.Format.ps1xml │ ├── Unity-Powershell.UnitySsc.Format.ps1xml │ ├── Unity-Powershell.UnitySsd.Format.ps1xml │ ├── Unity-Powershell.UnityStorageProcessor.Format.ps1xml │ ├── Unity-Powershell.UnitySystem.Format.ps1xml │ ├── Unity-Powershell.UnityTreeQuota.Format.ps1xml │ ├── Unity-Powershell.UnityUser.Format.ps1xml │ ├── Unity-Powershell.Unitybattery.Format.ps1xml │ ├── Unity-Powershell.UnitydataCollectionResult.Format.ps1xml │ ├── Unity-Powershell.Unitydatastore.Format.ps1xml │ ├── Unity-Powershell.UnityfastVP.Format.ps1xml │ ├── Unity-Powershell.UnityfcPort.Format.ps1xml │ ├── Unity-Powershell.UnityinstalledSoftwareVersion.Format.ps1xml │ ├── Unity-Powershell.UnitylinkAggregation.Format.ps1xml │ ├── Unity-Powershell.UnityserviceAction.Format.ps1xml │ ├── Unity-Powershell.UnityserviceInfo.Format.ps1xml │ ├── Unity-Powershell.UnitystorageResource.Format.ps1xml │ ├── Unity-Powershell.Unityvm.Format.ps1xml │ ├── Unity-Powershell.UnityvmwareNasPEServer.Format.ps1xml │ ├── Unity-Powershell.UnityvmwarePE.Format.ps1xml │ └── Unity-Powershell.Unityx509Certificate.Format.ps1xml ├── Private │ ├── Add-UnityObjectType.ps1 │ ├── ConvertTo-Hashtable.ps1 │ ├── Find-FromFilter.ps1 │ ├── Get-URLFromObjectType.ps1 │ ├── Get-UnityAuth.ps1 │ ├── Get-UnityHostContainerReco.ps1 │ ├── Get-UnityItemByKey.ps1 │ ├── Get-UnityLUNResource.ps1 │ ├── Get-UnityObject.ps1 │ ├── New-UnityObject.ps1 │ ├── Remove-UnityLUNResource.ps1 │ ├── Send-UnityRequest.ps1 │ ├── Show-RequestException.ps1 │ ├── Test-CompressionUnsupported.ps1 │ ├── Test-UnityConnection.ps1 │ ├── Unblock-UnityCerts.ps1 │ └── Update-TitleBarForUnityConnection.ps1 ├── Public │ ├── Connect-Unity.ps1 │ ├── Disable-UnityFastCache.ps1 │ ├── Disconnect-Unity.ps1 │ ├── Enable-UnityFastCache.ps1 │ ├── Get-UnityAlert.ps1 │ ├── Get-UnityAlertConfig.ps1 │ ├── Get-UnityBasicSystemInfo.ps1 │ ├── Get-UnityCIFSShare.ps1 │ ├── Get-UnityCifsServer.ps1 │ ├── Get-UnityDnsServer.ps1 │ ├── Get-UnityESXi.ps1 │ ├── Get-UnityFastCache.ps1 │ ├── Get-UnityFeature.ps1 │ ├── Get-UnityFileDnsServer.ps1 │ ├── Get-UnityFileInterface.ps1 │ ├── Get-UnityFilesystem.ps1 │ ├── Get-UnityHost.ps1 │ ├── Get-UnityHostIPPort.ps1 │ ├── Get-UnityHostInitiator.ps1 │ ├── Get-UnityIpInterface.ps1 │ ├── Get-UnityIpPort.ps1 │ ├── Get-UnityIscsiPortal.ps1 │ ├── Get-UnityItem.ps1 │ ├── Get-UnityLUN.ps1 │ ├── Get-UnityLicense.ps1 │ ├── Get-UnityMgmtInterface.ps1 │ ├── Get-UnityMgmtInterfaceSetting.ps1 │ ├── Get-UnityNFSServer.ps1 │ ├── Get-UnityNFSShare.ps1 │ ├── Get-UnityNTPServer.ps1 │ ├── Get-UnityNasServer.ps1 │ ├── Get-UnityPool.ps1 │ ├── Get-UnityPoolUnit.ps1 │ ├── Get-UnitySession.ps1 │ ├── Get-UnitySmtpServer.ps1 │ ├── Get-UnitySnap.ps1 │ ├── Get-UnitySnapSchedule.ps1 │ ├── Get-UnityStorageResource.ps1 │ ├── Get-UnitySystem.ps1 │ ├── Get-UnityTreeQuota.ps1 │ ├── Get-UnityUser.ps1 │ ├── Get-UnityVM.ps1 │ ├── Get-UnityVMwareLUN.ps1 │ ├── Get-UnityVMwareNFS.ps1 │ ├── Get-UnitydataCollectionResult.ps1 │ ├── Get-Unitydatastore.ps1 │ ├── Get-UnityfastVP.ps1 │ ├── Get-UnityinstalledSoftwareVersion.ps1 │ ├── Get-Unityjob.ps1 │ ├── Get-UnitylinkAggregation.ps1 │ ├── Get-UnityserviceAction.ps1 │ ├── Get-UnityserviceInfo.ps1 │ ├── Get-UnityvCenter.ps1 │ ├── Hardware │ │ ├── Get-UnityDae.ps1 │ │ ├── Get-UnityDisk.ps1 │ │ ├── Get-UnityDiskGroup.ps1 │ │ ├── Get-UnityDpe.ps1 │ │ ├── Get-UnityEncryption.ps1 │ │ ├── Get-UnityEthernetPort.ps1 │ │ ├── Get-UnitySsc.ps1 │ │ ├── Get-UnitySsd.ps1 │ │ ├── Get-UnityStorageProcessor.ps1 │ │ ├── Get-Unitybattery.ps1 │ │ └── Get-UnityfcPort.ps1 │ ├── Metric │ │ ├── Get-UnityMetric.ps1 │ │ ├── Get-UnityMetricQueryResult.ps1 │ │ ├── Get-UnityMetricRealTimeQuery.ps1 │ │ ├── Get-UnityMetricValue.ps1 │ │ └── New-UnityMetricRealTimeQuery.ps1 │ ├── New-UnityCIFSShare.ps1 │ ├── New-UnityCifsServer.ps1 │ ├── New-UnityFileDnsServer.ps1 │ ├── New-UnityFileInterface.ps1 │ ├── New-UnityFilesystem.ps1 │ ├── New-UnityHost.ps1 │ ├── New-UnityHostIPPort.ps1 │ ├── New-UnityIscsiPortal.ps1 │ ├── New-UnityLUN.ps1 │ ├── New-UnityMgmtInterface.ps1 │ ├── New-UnityNFSServer.ps1 │ ├── New-UnityNFSShare.ps1 │ ├── New-UnityNasServer.ps1 │ ├── New-UnityPool.ps1 │ ├── New-UnitySMTPServer.ps1 │ ├── New-UnitySnap.ps1 │ ├── New-UnitySnapSchedule.ps1 │ ├── New-UnityTreeQuota.ps1 │ ├── New-UnityUser.ps1 │ ├── New-UnityVMwareLUN.ps1 │ ├── New-UnityVMwareNFS.ps1 │ ├── New-UnityvCenter.ps1 │ ├── Remove-UnityAlert.ps1 │ ├── Remove-UnityCIFSShare.ps1 │ ├── Remove-UnityCifsServer.ps1 │ ├── Remove-UnityFileDnsServer.ps1 │ ├── Remove-UnityFileInterface.ps1 │ ├── Remove-UnityFilesystem.ps1 │ ├── Remove-UnityHost.ps1 │ ├── Remove-UnityHostIPPort.ps1 │ ├── Remove-UnityIscsiPortal.ps1 │ ├── Remove-UnityLUN.ps1 │ ├── Remove-UnityMgmtInterface.ps1 │ ├── Remove-UnityNFSServer.ps1 │ ├── Remove-UnityNFSShare.ps1 │ ├── Remove-UnityNasServer.ps1 │ ├── Remove-UnityPool.ps1 │ ├── Remove-UnitySMTPServer.ps1 │ ├── Remove-UnitySnap.ps1 │ ├── Remove-UnitySnapSchedule.ps1 │ ├── Remove-UnityTreeQuota.ps1 │ ├── Remove-UnityUser.ps1 │ ├── Remove-UnityVMwareLUN.ps1 │ ├── Remove-UnityVMwareNFS.ps1 │ ├── Remove-UnityvCenter.ps1 │ ├── Save-UnityDataCollectionResult.ps1 │ ├── Security │ │ └── Get-Unityx509Certificate.ps1 │ ├── Set-UnityAlert.ps1 │ ├── Set-UnityAlertConfig.ps1 │ ├── Set-UnityCIFSShare.ps1 │ ├── Set-UnityDnsServer.ps1 │ ├── Set-UnityFileDNSServer.ps1 │ ├── Set-UnityFileInterface.ps1 │ ├── Set-UnityFilesystem.ps1 │ ├── Set-UnityHost.ps1 │ ├── Set-UnityHostIPPort.ps1 │ ├── Set-UnityIscsiPortal.ps1 │ ├── Set-UnityLUN.ps1 │ ├── Set-UnityMgmtInterface.ps1 │ ├── Set-UnityMgmtInterfaceSetting.ps1 │ ├── Set-UnityNFSServer.ps1 │ ├── Set-UnityNFSShare.ps1 │ ├── Set-UnityNTPServer.ps1 │ ├── Set-UnityNasServer.ps1 │ ├── Set-UnityPool.ps1 │ ├── Set-UnitySMTPServer.ps1 │ ├── Set-UnitySnap.ps1 │ ├── Set-UnitySnapSchedule.ps1 │ ├── Set-UnitySystem.ps1 │ ├── Set-UnityTreeQuota.ps1 │ ├── Set-UnityUser.ps1 │ ├── Set-UnityVMwareLUN.ps1 │ ├── Set-UnityVMwareNFS.ps1 │ ├── Set-UnityserviceAction.ps1 │ ├── Set-UnityvCenter.ps1 │ ├── Storage │ │ ├── Invoke-UnityRefreshLUNThinClone.ps1 │ │ ├── Invoke-UnityRefreshVMwareLUNThinClone.ps1 │ │ ├── New-UnityLUNThinClone.ps1 │ │ └── New-UnityVMwareLUNThinClone.ps1 │ ├── Test-UnityEmailAlert.ps1 │ ├── Test-UnityUCAlert.ps1 │ ├── Test-UnityUIAlert.ps1 │ ├── Update-UnityvCenter.ps1 │ └── vVols │ │ ├── Get-UnityvmwareNasPEServer.ps1 │ │ └── Get-UnityvmwarePE.ps1 ├── Unity-Powershell.psd1 ├── Unity-Powershell.psm1 └── en-US │ └── about_Unity-Powershell.help.txt ├── appveyor.yml ├── docs ├── FAQ.md ├── References │ ├── Connect-Unity.md │ ├── Disable-UnityFastCache.md │ ├── Disconnect-Unity.md │ ├── Enable-UnityFastCache.md │ ├── Get-UnityAlert.md │ ├── Get-UnityAlertConfig.md │ ├── Get-UnityBasicSystemInfo.md │ ├── Get-UnityBattery.md │ ├── Get-UnityCIFSServer.md │ ├── Get-UnityCIFSShare.md │ ├── Get-UnityDNSServer.md │ ├── Get-UnityDae.md │ ├── Get-UnityDataCollectionResult.md │ ├── Get-UnityDatastore.md │ ├── Get-UnityDisk.md │ ├── Get-UnityDiskGroup.md │ ├── Get-UnityDpe.md │ ├── Get-UnityESXi.md │ ├── Get-UnityEncryption.md │ ├── Get-UnityEthernetPort.md │ ├── Get-UnityFCPort.md │ ├── Get-UnityFastCache.md │ ├── Get-UnityFastVP.md │ ├── Get-UnityFeature.md │ ├── Get-UnityFileDNSServer.md │ ├── Get-UnityFileInterface.md │ ├── Get-UnityFilesystem.md │ ├── Get-UnityHost.md │ ├── Get-UnityHostIPPort.md │ ├── Get-UnityHostInitiator.md │ ├── Get-UnityIPPort.md │ ├── Get-UnityInstalledSoftwareVersion.md │ ├── Get-UnityIpInterface.md │ ├── Get-UnityIscsiPortal.md │ ├── Get-UnityItem.md │ ├── Get-UnityJob.md │ ├── Get-UnityLUN.md │ ├── Get-UnityLicense.md │ ├── Get-UnityLinkAggregation.md │ ├── Get-UnityMetric.md │ ├── Get-UnityMetricQueryResult.md │ ├── Get-UnityMetricRealTimeQuery.md │ ├── Get-UnityMetricValue.md │ ├── Get-UnityMgmtInterface.md │ ├── Get-UnityMgmtInterfaceSetting.md │ ├── Get-UnityNASServer.md │ ├── Get-UnityNFSServer.md │ ├── Get-UnityNFSShare.md │ ├── Get-UnityNTPServer.md │ ├── Get-UnityPool.md │ ├── Get-UnityPoolUnit.md │ ├── Get-UnitySMTPServer.md │ ├── Get-UnityServiceAction.md │ ├── Get-UnityServiceInfo.md │ ├── Get-UnitySession.md │ ├── Get-UnitySnap.md │ ├── Get-UnitySnapSchedule.md │ ├── Get-UnitySsc.md │ ├── Get-UnitySsd.md │ ├── Get-UnityStorageProcessor.md │ ├── Get-UnityStorageResource.md │ ├── Get-UnitySystem.md │ ├── Get-UnityUser.md │ ├── Get-UnityVM.md │ ├── Get-UnityVMwareLUN.md │ ├── Get-UnityVMwareNFS.md │ ├── Get-UnityVMwareNasPEServer.md │ ├── Get-UnityVMwarePE.md │ ├── Get-UnityX509Certificate.md │ ├── Get-UnityvCenter.md │ ├── Invoke-UnityRefreshLUNThinClone.md │ ├── Invoke-UnityRefreshVMwareLUNThinClone.md │ ├── New-UnityCIFSServer.md │ ├── New-UnityCIFSShare.md │ ├── New-UnityFileDNSServer.md │ ├── New-UnityFileInterface.md │ ├── New-UnityFilesystem.md │ ├── New-UnityHost.md │ ├── New-UnityHostIPPort.md │ ├── New-UnityLUN.md │ ├── New-UnityLUNThinClone.md │ ├── New-UnityMetricRealTimeQuery.md │ ├── New-UnityMgmtInterface.md │ ├── New-UnityNASServer.md │ ├── New-UnityNFSServer.md │ ├── New-UnityNFSShare.md │ ├── New-UnityPool.md │ ├── New-UnitySMTPServer.md │ ├── New-UnitySnap.md │ ├── New-UnitySnapSchedule.md │ ├── New-UnityUser.md │ ├── New-UnityVMwareLUN.md │ ├── New-UnityVMwareLUNThinClone.md │ ├── New-UnityVMwareNFS.md │ ├── New-UnityiSCSIPortal.md │ ├── New-UnityvCenter.md │ ├── Remove-UnityAlert.md │ ├── Remove-UnityCIFSServer.md │ ├── Remove-UnityCIFSShare.md │ ├── Remove-UnityFileDNSServer.md │ ├── Remove-UnityFileInterface.md │ ├── Remove-UnityFilesystem.md │ ├── Remove-UnityHost.md │ ├── Remove-UnityHostIPPort.md │ ├── Remove-UnityLUN.md │ ├── Remove-UnityMgmtInterface.md │ ├── Remove-UnityNASServer.md │ ├── Remove-UnityNFSServer.md │ ├── Remove-UnityNFSShare.md │ ├── Remove-UnityPool.md │ ├── Remove-UnitySMTPServer.md │ ├── Remove-UnitySnap.md │ ├── Remove-UnitySnapSchedule.md │ ├── Remove-UnityUser.md │ ├── Remove-UnityVMwareLUN.md │ ├── Remove-UnityVMwareNFS.md │ ├── Remove-UnityiSCSIPortal.md │ ├── Remove-UnityvCenter.md │ ├── Save-UnityDataCollectionResult.md │ ├── Set-UnityAlert.md │ ├── Set-UnityAlertConfig.md │ ├── Set-UnityCIFSShare.md │ ├── Set-UnityDNSServer.md │ ├── Set-UnityFileDNSServer.md │ ├── Set-UnityFileInterface.md │ ├── Set-UnityFilesystem.md │ ├── Set-UnityHost.md │ ├── Set-UnityHostIPPort.md │ ├── Set-UnityIscsiPortal.md │ ├── Set-UnityLUN.md │ ├── Set-UnityMgmtInterface.md │ ├── Set-UnityMgmtInterfaceSetting.md │ ├── Set-UnityNASServer.md │ ├── Set-UnityNFSServer.md │ ├── Set-UnityNFSShare.md │ ├── Set-UnityNTPServer.md │ ├── Set-UnityPool.md │ ├── Set-UnitySMTPServer.md │ ├── Set-UnityServiceAction.md │ ├── Set-UnitySnap.md │ ├── Set-UnitySnapSchedule.md │ ├── Set-UnitySystem.md │ ├── Set-UnityUser.md │ ├── Set-UnityVMwareLUN.md │ ├── Set-UnityVMwareNFS.md │ ├── Set-UnityvCenter.md │ ├── Test-UnityEmailAlert.md │ ├── Test-UnityUCAlert.md │ ├── Test-UnityUIAlert.md │ └── Update-UnityvCenter.md ├── gettingstarted.md ├── index.md ├── installation.md └── prerequisites.md ├── header-mkdocs.yml └── mkdocs.yml /AppVeyor/PSDeploy/AppVeyorModule.PSDeploy.ps1: -------------------------------------------------------------------------------- 1 | Deploy DeveloperBuild { 2 | By AppVeyorModule { 3 | FromSource $ENV:BHPSModulePath 4 | To AppVeyor 5 | WithOptions @{ 6 | Version = $env:BHModuleVersion 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AppVeyor/PSDeploy/PSGalleryModule.PSDeploy.ps1: -------------------------------------------------------------------------------- 1 | Deploy Module { 2 | By PSGalleryModule { 3 | FromSource $ENV:BHPSModulePath 4 | To PSGallery 5 | WithOptions @{ 6 | ApiKey = $ENV:NugetApiKey 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AppVeyor/test.ps1: -------------------------------------------------------------------------------- 1 | # Find the build folder based on build system 2 | $ProjectRoot = $ENV:BHProjectPath 3 | 4 | if(-not $ProjectRoot) { 5 | $ProjectRoot = $PSScriptRoot 6 | } 7 | 8 | # Set some usefull varialbes 9 | $Timestamp = Get-date -uformat "%Y%m%d-%H%M%S" 10 | $PSVersion = $PSVersionTable.PSVersion.Major 11 | $TestFile = "TestResults_PS$PSVersion`_$TimeStamp.xml" 12 | $BaseFileName = "TestResults_PS$PSVersion`_$TimeStamp" 13 | 14 | # Gather test results. Store them in a variable and a NUnitXml file 15 | Add-AppVeyorLog -Message 'Run pester tests' -Category 'Information' 16 | $TestResults = Invoke-Pester -Path $ProjectRoot\Tests -PassThru -OutputFormat NUnitXml -OutputFile "$ProjectRoot\AppVeyor\$TestFile" 17 | 18 | # Document the pester results using module Format-Pester 19 | Add-AppVeyorLog -Message "Documenting the pester's results with Format-Pester" -Category 'Information' 20 | $FormatPesterResultFile = $TestResults | Format-Pester -Format 'Text' -BaseFileName $BaseFileName 21 | 22 | # In Appveyor? Upload our tests and documentation! 23 | Add-AppVeyorLog -Message 'Uploading tests and documentation on Appveyor' -Category 'Information' 24 | 25 | #Upload NUnitXml tests results 26 | (New-Object 'System.Net.WebClient').UploadFile( 27 | "https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", 28 | "$ProjectRoot\AppVeyor\$TestFile") 29 | 30 | #Upload Format-Pester tests results 31 | Push-AppveyorArtifact $FormatPesterResultFile 32 | 33 | # Stop the build if a pester test fails 34 | If ($TestResults.FailedCount -gt 0) { 35 | Add-AppVeyorLog -Message "Tests failed, stop the build" -Category 'Error' -Details "Number of tests failed: $($TestResults.FailedCount)" 36 | Throw 37 | } -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please makes sure these boxes are checked before submitting your issue (put an X between the brackets). 2 | 3 | - [ ] Check that your Powershell version > 5.0 (Bonus point if you are using the latest version available) 4 | - [ ] Check that you follow the instructions for installing the module 5 | 6 | Also, please provide: 7 | 8 | - Any instructions that may help to reproduce the problem 9 | - Informations about your host `$PSVerionTable` 10 | - The list of the loaded modules `Get-Module` 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016-2017 Erwan Quélin and the community 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Medias/Unity-Powershell-Demo-01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Medias/Unity-Powershell-Demo-01.gif -------------------------------------------------------------------------------- /Tests/Class/Class.Tests.ps1: -------------------------------------------------------------------------------- 1 | #importing the module with the using statement, classes will be available in the session 2 | using module '..\..\Unity-Powershell' 3 | 4 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path 5 | 6 | #import module 7 | $Module = Get-Module -Name 'Unity-Powershell' 8 | 9 | # Get classes defined by the module 10 | $ActualClasses = $Module.ImplementingAssembly.DefinedTypes | where-Object IsPublic | Where-Object {$_.Name -notlike '*Enum'} 11 | 12 | $Datas = @( Get-ChildItem -Path $here\Data\*.json -ErrorAction SilentlyContinue ) 13 | 14 | #Dot source the files - idea from https://becomelotr.wordpress.com/2017/02/13/expensive-dot-sourcing/ 15 | Foreach($Data in $Datas) { 16 | 17 | # Load the references datas 18 | $APITypes = Get-Content $Data.fullname | ConvertFrom-Json 19 | 20 | Describe -Name "Testing Class against file $($Data.Name)" { 21 | 22 | #Test all classes from module 23 | Foreach ($Class in $ActualClasses) { 24 | 25 | #Create an empty object in order to retrieve it's propoerties 26 | $Object = New-Object -TypeName $Class.name 27 | 28 | #Get properties of the object 29 | $ObjectProperties = $Object | Get-Member | Where-Object {$_.MemberType -eq 'Property'} 30 | 31 | #Remove 'Unity' from the name of the class 32 | $APIClassName = ($Class.name) -replace 'Unity','' 33 | 34 | #Find the definition of the class in the API 35 | $APIClass = $APITypes.entries.content | Where-Object {$_.Name -eq $APIClassName} 36 | 37 | Context -Name "Class $($Class.name)" { 38 | 39 | foreach ($Attribute in $APIClass.attributes.name) { 40 | 41 | It -Name "Attribute $Attribute is defined" { 42 | $ObjectProperties.Name -contains $Attribute | Should Be $True 43 | } 44 | } 45 | } 46 | } 47 | } 48 | } 49 | 50 | #Remove module 51 | Remove-Module $Module 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Tests/Class/Data/README.md: -------------------------------------------------------------------------------- 1 | How to generate the JSON extract of the API types definition: 2 | 3 | 1- Connect to the array 4 | 5 | 2- Run the following command: 6 | 7 | ```Powershell 8 | Get-UnityItem -URI /api/types -JSON | Out-File C:\UnityModel-APIversion.json 9 | ``` -------------------------------------------------------------------------------- /Tests/Class/Data/Unity300-4_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tests/Class/Data/Unity300-4_1.json -------------------------------------------------------------------------------- /Tests/Class/Data/Unity400F-4_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tests/Class/Data/Unity400F-4_1.json -------------------------------------------------------------------------------- /Tests/Class/Data/Unity400F-4_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tests/Class/Data/Unity400F-4_2.json -------------------------------------------------------------------------------- /Tests/Class/Data/UnityVSA-4_0.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tests/Class/Data/UnityVSA-4_0.json -------------------------------------------------------------------------------- /Tests/Class/Data/UnityVSA-4_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tests/Class/Data/UnityVSA-4_1.json -------------------------------------------------------------------------------- /Tests/Class/Data/UnityVSA-4_5_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tests/Class/Data/UnityVSA-4_5_1.json -------------------------------------------------------------------------------- /Tests/Function/Function.Data.ps1: -------------------------------------------------------------------------------- 1 | $Data = @{} 2 | 3 | $Data.function1 = @{ 4 | Name = 'Connect-Unity' 5 | Parameters = @( 6 | @{'Name' = 'Server'; 'type' = 'String[]'}, 7 | @{'Name' = 'Session'; 'type' = 'object'}, 8 | @{'Name' = 'Username'; 'type' = 'String'}, 9 | @{'Name' = 'Password'; 'type' = 'SecureString'}, 10 | @{'Name' = 'Credentials'; 'type' = 'PSCredential'}, 11 | @{'Name' = 'TrustAllCerts'; 'type' = 'Boolean'} 12 | ) 13 | } 14 | 15 | $Data.function2 = @{ 16 | Name = 'Disable-UnityFastCache' 17 | Parameters = @( 18 | @{'Name' = 'Session'; 'type' = 'object'} 19 | ) 20 | } 21 | 22 | $Data.function3 = @{ 23 | Name = 'disconnect-Unity' 24 | Parameters = @( 25 | @{'Name' = 'Session'; 'type' = 'object'} 26 | ) 27 | } 28 | 29 | $Data.function4 = @{ 30 | Name = 'Get-UnityVMwareLUN' 31 | Parameters = @( 32 | @{'Name' = 'Session'; 'type' = 'object'}, 33 | @{'Name' = 'Name'; 'type' = 'String[]'}, 34 | @{'Name' = 'ID'; 'type' = 'String[]'} 35 | ) 36 | } 37 | 38 | $Data.function1000 = @{ 39 | Name = 'Update-UnityvCenter' 40 | Parameters = @( 41 | @{'Name' = 'Session'; 'type' = 'object'} 42 | @{'Name' = 'ID'; 'type' = 'Object[]'} 43 | @{'Name' = 'Refresh'; 'type' = 'SwitchParameter'} 44 | @{'Name' = 'RefreshAll'; 'type' = 'SwitchParameter'} 45 | ) 46 | } 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Tests/Function/Function.Tests.ps1: -------------------------------------------------------------------------------- 1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path 2 | 3 | #Get information from the module manifest 4 | $manifestPath = "$here\..\..\Unity-Powershell\Unity-Powershell.psd1" 5 | $manifest = Test-ModuleManifest -Path $manifestPath 6 | 7 | #Test if a Unity-Powershell module is already loaded 8 | $Module = Get-Module -Name 'Unity-Powershell' -ErrorAction SilentlyContinue 9 | 10 | #Load the module if needed (not already loaded or not the good version) 11 | If ($Module) { 12 | If ($Module.Version -ne $manifest.version) { 13 | Remove-Module $Module 14 | $Module = Import-Module "$here\..\..\Unity-Powershell" -Version $manifest.version -force 15 | } 16 | } else { 17 | $Module = Import-Module "$here\..\..\Unity-Powershell" -Version $manifest.version -force 18 | } 19 | 20 | # Load the datas 21 | . $here\Function.Data.ps1 22 | 23 | <# 24 | # Pester tests 25 | Describe "No public function left behind" { 26 | 27 | $Module.ExportedFunctions.GetEnumerator() | ForEach-Object { 28 | $Name = $_.Value.Name 29 | 30 | It "Function $Name is tested in this test" { 31 | $data.values.name -contains $Name | Should Be $True 32 | } 33 | } 34 | } 35 | #> 36 | 37 | Describe "Functions Parameters" { 38 | 39 | $Data.GetEnumerator() | ForEach-Object { 40 | 41 | $Name = $_.Value.Name 42 | $Params = $_.Value.Parameters 43 | 44 | Context "$Name" { 45 | $Command = Get-Command -Name $Name 46 | 47 | Foreach ($Param in $Params) { 48 | 49 | It "Function $($command.Name) contains Parameter $($Param['Name'])" { 50 | $Command.Parameters.Keys -contains $Param['Name'] | Should Be $True 51 | } 52 | 53 | It "Function $($Param['Name']) type is $($Param['type'])" { 54 | $Command.Parameters.($Param['Name']).ParameterType.Name -eq $Param['Type'] | Should Be $True 55 | } 56 | } 57 | } 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /Tests/Module/Unity-Powershell.Tests.ps1: -------------------------------------------------------------------------------- 1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path 2 | 3 | #Get information from the module manifest 4 | $manifestPath = "$here\..\..\Unity-Powershell\Unity-Powershell.psd1" 5 | $manifest = Test-ModuleManifest -Path $manifestPath 6 | 7 | #Test if a Unity-Powershell module is already loaded 8 | $Module = Get-Module -Name 'Unity-Powershell' -ErrorAction SilentlyContinue 9 | 10 | #Load the module if needed 11 | If ($module) { 12 | If ($Module.Version -ne $manifest.version) { 13 | Remove-Module $Module 14 | Import-Module "$here\..\..\Unity-Powershell" -Version $manifest.version -force 15 | } 16 | } else { 17 | Import-Module "$here\..\..\Unity-Powershell" -Version $manifest.version -force 18 | } 19 | 20 | Describe -Tags 'VersionChecks' "Unity-Powershell manifest" { 21 | $script:manifest = $null 22 | It "has a valid manifest" { 23 | { 24 | $script:manifest = Test-ModuleManifest -Path $manifestPath -ErrorAction Stop -WarningAction SilentlyContinue 25 | } | Should Not Throw 26 | } 27 | 28 | It "has a valid name in the manifest" { 29 | $script:manifest.Name | Should Be 'Unity-Powershell' 30 | } 31 | 32 | It "has a valid guid in the manifest" { 33 | $script:manifest.Guid | Should Be '586e7e62-9753-4fd6-91b6-89d8d89d69a2' 34 | } 35 | 36 | It "has a valid version in the manifest" { 37 | $script:manifest.Version -as [Version] | Should Not BeNullOrEmpty 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Tools/Build-Module/Format/Build-Format.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | Param ( 3 | $Classes 4 | ) 5 | 6 | Foreach ($Classes in ($cfg.classes)) { 7 | Write-Verbose "Processing class $Class.TypeName" 8 | .\Convert-ClassToPS1xml.ps1 -TypeName $Class.TypeName -TableHeaderList $Class.TableHeaderList -OutputPath F:\Code\GitHub\Unity-Powershell\Unity-Powershell\Format\ 9 | } -------------------------------------------------------------------------------- /Tools/Build-Module/Readthedocs/Update-Doc.ps1: -------------------------------------------------------------------------------- 1 | Function Update-Doc { 2 | [CmdletBinding()] 3 | Param() 4 | 5 | Process { 6 | 7 | Write-Host $ENV:BHModulePath 8 | 9 | $ProjectRoot = $ENV:BHProjectPath 10 | 11 | # Import module. platyPS + AppVeyor requires the module to be loaded in Global scope 12 | Import-Module $ENV:BHModulePath -Force -Global 13 | 14 | #Build YAMLText starting with the header 15 | $YMLtext = (Get-Content "$ProjectRoot\header-mkdocs.yml") -join "`n" 16 | $YMLtext = "$YMLtext`n" 17 | $YMLText = "$YMLtext - Functions References:`n" 18 | 19 | # Delete all existing files in $ProjectRoot\docs\References 20 | $parameters = @{ 21 | Recurse = $true 22 | Force = $true 23 | Path = "$ProjectRoot\docs\References" 24 | ErrorAction = 'SilentlyContinue' 25 | } 26 | $null = Remove-Item @parameters 27 | 28 | # Create directory for functions markdown help files 29 | $Params = @{ 30 | Path = "$ProjectRoot\docs\References" 31 | type = 'directory' 32 | ErrorAction = 'SilentlyContinue' 33 | } 34 | $null = New-Item @Params 35 | 36 | # Create all md help files and update 37 | $Params = @{ 38 | Module = $ENV:BHProjectName 39 | Force = $true 40 | OutputFolder = "$ProjectRoot\docs\References" 41 | NoMetadata = $true 42 | } 43 | New-MarkdownHelp @Params | foreach-object { 44 | $Function = $_.Name -replace '\.md', '' 45 | $Part = " - {0}: References/{1}" -f $Function, $_.Name 46 | $YMLText = "{0}{1}`n" -f $YMLText, $Part 47 | Write-Host $Part 48 | } 49 | 50 | $YMLtext | Set-Content -Path "$ProjectRoot\mkdocs.yml" 51 | 52 | Remove-Module $ENV:BHProjectName 53 | 54 | } # End Process 55 | } # End Function -------------------------------------------------------------------------------- /Tools/Build-Module/build.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .NOTES 3 | https://github.com/equelin/unity-powershell 4 | #> 5 | 6 | [cmdletbinding()] 7 | param( 8 | [string[]]$Task = 'default' 9 | ) 10 | 11 | if (!(Get-Module -Name PlatyPS -ListAvailable)) { Install-Module -Name PlatyPS -Scope CurrentUser } 12 | if (!(Get-Module -Name psake -ListAvailable)) { Install-Module -Name psake -Scope CurrentUser } 13 | if (!(Get-Module -Name BuildHelpers -ListAvailable)) { Install-Module -Name BuildHelpers -Scope CurrentUser } 14 | 15 | Invoke-psake -buildFile "$PSScriptRoot\psakeBuild.ps1" -taskList $Task -Verbose:$VerbosePreference -------------------------------------------------------------------------------- /Tools/Classes/Class_Unity400F_41.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Class_Unity400F_41.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Class_Unity400F_42.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Class_Unity400F_42.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Classes_Unity300_41.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Classes_Unity300_41.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Classes_UnityVSA_41.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Classes_UnityVSA_41.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Classes_UnityVSA_451.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Classes_UnityVSA_451.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Enum.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Enum.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Enum_Unity400F_41.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Enum_Unity400F_41.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Enum_Unity400F_42.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Enum_Unity400F_42.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Enum_UnityVSA_451.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Tools/Classes/Enum_UnityVSA_451.ps1 -------------------------------------------------------------------------------- /Tools/Classes/Get-Enum.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Output / Format Enums from API 4 | #> 5 | 6 | [CmdletBinding()] 7 | Param ( 8 | [Parameter(Mandatory = $false)] 9 | [String]$OutputFile = '.\Enum.ps1' 10 | ) 11 | 12 | $types = Get-UnityItem -URI /api/types 13 | 14 | $Enums = ($types.entries.content | Where-Object { $_.name -like '*Enum'}) 15 | 16 | "#START" | Out-File $OutputFile 17 | 18 | Foreach ($Enum in $Enums) { 19 | 20 | "<#" | Out-File $OutputFile -Append 21 | " Name: $($Enum.Name)" | Out-File $OutputFile -Append 22 | " Description: $($Enum.Description)" | Out-File $OutputFile -Append 23 | "#>" | Out-File $OutputFile -Append 24 | 25 | "Enum $($Enum.Name) {" | Out-File $OutputFile -Append 26 | 27 | Foreach ($Attribut in ($Enum.attributes)) { 28 | " $($attribut.name) = $($attribut.initialValue) #$($attribut.description)" | Out-File $OutputFile -Append 29 | } 30 | 31 | "}" | Out-File $OutputFile -Append 32 | "" | Out-File $OutputFile -Append 33 | } -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityelementImport.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityelementImport { 2 | 3 | <# 4 | .SYNOPSIS 5 | Member element import details in an import session. 6 | .DESCRIPTION 7 | Member element import details in an import session. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityelementImport 19 | 20 | Retrieve information about all UnityelementImport 21 | .EXAMPLE 22 | Get-UnityelementImport -ID 'id01' 23 | 24 | Retrieves information about a specific UnityelementImport 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityelementImport ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/elementImport/instances' #URI 40 | $TypeName = 'UnityelementImport' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-Unityencryption.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Unityencryption { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the data encryption of the storage system.

6 | .DESCRIPTION 7 | Information about the data encryption of the storage system.

8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-Unityencryption 19 | 20 | Retrieve information about all Unityencryption 21 | .EXAMPLE 22 | Get-Unityencryption -ID 'id01' 23 | 24 | Retrieves information about a specific Unityencryption 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Unityencryption ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/encryption/instances' #URI 40 | $TypeName = 'Unityencryption' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityfileEventSettings.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityfileEventSettings { 2 | 3 | <# 4 | .SYNOPSIS 5 | File Event Service supported protocols. 6 | .DESCRIPTION 7 | File Event Service supported protocols. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityfileEventSettings 19 | 20 | Retrieve information about all UnityfileEventSettings 21 | .EXAMPLE 22 | Get-UnityfileEventSettings -ID 'id01' 23 | 24 | Retrieves information about a specific UnityfileEventSettings 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityfileEventSettings ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/fileEventSettings/instances' #URI 40 | $TypeName = 'UnityfileEventSettings' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-Unityhealth.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Unityhealth { 2 | 3 | <# 4 | .SYNOPSIS 5 | Health of the associated resource. 6 | .DESCRIPTION 7 | Health of the associated resource. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-Unityhealth 19 | 20 | Retrieve information about all Unityhealth 21 | .EXAMPLE 22 | Get-Unityhealth -ID 'id01' 23 | 24 | Retrieves information about a specific Unityhealth 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Unityhealth ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/health/instances' #URI 40 | $TypeName = 'Unityhealth' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityhostLUN.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityhostLUN { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the LUNs and LUN snapshots to which a host has access.

6 | .DESCRIPTION 7 | Information about the LUNs and LUN snapshots to which a host has access.

8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityhostLUN 19 | 20 | Retrieve information about all UnityhostLUN 21 | .EXAMPLE 22 | Get-UnityhostLUN -ID 'id01' 23 | 24 | Retrieves information about a specific UnityhostLUN 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityhostLUN ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/hostLUN/instances' #URI 40 | $TypeName = 'UnityhostLUN' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityioLimitSetting.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityioLimitSetting { 2 | 3 | <# 4 | .SYNOPSIS 5 | Global I/O limit settings. 6 | .DESCRIPTION 7 | Global I/O limit settings. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityioLimitSetting 19 | 20 | Retrieve information about all UnityioLimitSetting 21 | .EXAMPLE 22 | Get-UnityioLimitSetting -ID 'id01' 23 | 24 | Retrieves information about a specific UnityioLimitSetting 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityioLimitSetting ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/ioLimitSetting/instances' #URI 40 | $TypeName = 'UnityioLimitSetting' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityiscsiPortal.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityiscsiPortal { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the iSCSI portals in the storage system. 6 | .DESCRIPTION 7 | Information about the iSCSI portals in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityiscsiPortal 19 | 20 | Retrieve information about all UnityiscsiPortal 21 | .EXAMPLE 22 | Get-UnityiscsiPortal -ID 'id01' 23 | 24 | Retrieves information about a specific UnityiscsiPortal 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityiscsiPortal ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/iscsiPortal/instances' #URI 40 | $TypeName = 'UnityiscsiPortal' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityloginSessionInfo.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityloginSessionInfo { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about a REST API login session. 6 | .DESCRIPTION 7 | Information about a REST API login session. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityloginSessionInfo 19 | 20 | Retrieve information about all UnityloginSessionInfo 21 | .EXAMPLE 22 | Get-UnityloginSessionInfo -ID 'id01' 23 | 24 | Retrieves information about a specific UnityloginSessionInfo 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityloginSessionInfo ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/loginSessionInfo/instances' #URI 40 | $TypeName = 'UnityloginSessionInfo' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnitymgmtInterface.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitymgmtInterface { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about management interfaces in the storage system. 6 | .DESCRIPTION 7 | Information about management interfaces in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitymgmtInterface 19 | 20 | Retrieve information about all UnitymgmtInterface 21 | .EXAMPLE 22 | Get-UnitymgmtInterface -ID 'id01' 23 | 24 | Retrieves information about a specific UnitymgmtInterface 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitymgmtInterface ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/mgmtInterface/instances' #URI 40 | $TypeName = 'UnitymgmtInterface' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnitypingResult.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitypingResult { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about ping command result. 6 | .DESCRIPTION 7 | Information about ping command result. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitypingResult 19 | 20 | Retrieve information about all UnitypingResult 21 | .EXAMPLE 22 | Get-UnitypingResult -ID 'id01' 23 | 24 | Retrieves information about a specific UnitypingResult 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitypingResult ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/pingResult/instances' #URI 40 | $TypeName = 'UnitypingResult' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnitysnapHostAccess.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitysnapHostAccess { 2 | 3 | <# 4 | .SYNOPSIS 5 | Host access settings for snapshot. 6 | .DESCRIPTION 7 | Host access settings for snapshot. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitysnapHostAccess 19 | 20 | Retrieve information about all UnitysnapHostAccess 21 | .EXAMPLE 22 | Get-UnitysnapHostAccess -ID 'id01' 23 | 24 | Retrieves information about a specific UnitysnapHostAccess 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitysnapHostAccess ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/snapHostAccess/instances' #URI 40 | $TypeName = 'UnitysnapHostAccess' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnitysystemTime.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitysystemTime { 2 | 3 | <# 4 | .SYNOPSIS 5 | Current system time. 6 | .DESCRIPTION 7 | Current system time. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitysystemTime 19 | 20 | Retrieve information about all UnitysystemTime 21 | .EXAMPLE 22 | Get-UnitysystemTime -ID 'id01' 23 | 24 | Retrieves information about a specific UnitysystemTime 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitysystemTime ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/systemTime/instances' #URI 40 | $TypeName = 'UnitysystemTime' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnitytracerouteResult.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitytracerouteResult { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about traceroute command result. 6 | .DESCRIPTION 7 | Information about traceroute command result. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitytracerouteResult 19 | 20 | Retrieve information about all UnitytracerouteResult 21 | .EXAMPLE 22 | Get-UnitytracerouteResult -ID 'id01' 23 | 24 | Retrieves information about a specific UnitytracerouteResult 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitytracerouteResult ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/tracerouteResult/instances' #URI 40 | $TypeName = 'UnitytracerouteResult' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityupgradeTask.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityupgradeTask { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the upgrade task currently in progress. 6 | .DESCRIPTION 7 | Information about the upgrade task currently in progress. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityupgradeTask 19 | 20 | Retrieve information about all UnityupgradeTask 21 | .EXAMPLE 22 | Get-UnityupgradeTask -ID 'id01' 23 | 24 | Retrieves information about a specific UnityupgradeTask 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityupgradeTask ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/upgradeTask/instances' #URI 40 | $TypeName = 'UnityupgradeTask' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityurServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityurServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information for registering a storage system with Unisphere Central. 6 | .DESCRIPTION 7 | Information for registering a storage system with Unisphere Central. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityurServer 19 | 20 | Retrieve information about all UnityurServer 21 | .EXAMPLE 22 | Get-UnityurServer -ID 'id01' 23 | 24 | Retrieves information about a specific UnityurServer 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityurServer ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/urServer/instances' #URI 40 | $TypeName = 'UnityurServer' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_Unity400F_41/Get-UnityvlanInfo.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityvlanInfo { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about VLAN IDs. 6 | .DESCRIPTION 7 | Information about VLAN IDs. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityvlanInfo 19 | 20 | Retrieve information about all UnityvlanInfo 21 | .EXAMPLE 22 | Get-UnityvlanInfo -ID 'id01' 23 | 24 | Retrieves information about a specific UnityvlanInfo 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityvlanInfo ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/vlanInfo/instances' #URI 40 | $TypeName = 'UnityvlanInfo' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityelementImport.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityelementImport { 2 | 3 | <# 4 | .SYNOPSIS 5 | Member element import details in an import session. 6 | .DESCRIPTION 7 | Member element import details in an import session. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityelementImport 19 | 20 | Retrieve information about all UnityelementImport 21 | .EXAMPLE 22 | Get-UnityelementImport -ID 'id01' 23 | 24 | Retrieves information about a specific UnityelementImport 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityelementImport ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/elementImport/instances' #URI 40 | $TypeName = 'UnityelementImport' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-Unityencryption.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Unityencryption { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the data encryption of the storage system.

6 | .DESCRIPTION 7 | Information about the data encryption of the storage system.

8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-Unityencryption 19 | 20 | Retrieve information about all Unityencryption 21 | .EXAMPLE 22 | Get-Unityencryption -ID 'id01' 23 | 24 | Retrieves information about a specific Unityencryption 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Unityencryption ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/encryption/instances' #URI 40 | $TypeName = 'Unityencryption' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityfileEventSettings.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityfileEventSettings { 2 | 3 | <# 4 | .SYNOPSIS 5 | File Event Service supported protocols. 6 | .DESCRIPTION 7 | File Event Service supported protocols. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityfileEventSettings 19 | 20 | Retrieve information about all UnityfileEventSettings 21 | .EXAMPLE 22 | Get-UnityfileEventSettings -ID 'id01' 23 | 24 | Retrieves information about a specific UnityfileEventSettings 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityfileEventSettings ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/fileEventSettings/instances' #URI 40 | $TypeName = 'UnityfileEventSettings' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-Unityhealth.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Unityhealth { 2 | 3 | <# 4 | .SYNOPSIS 5 | Health of the associated resource. 6 | .DESCRIPTION 7 | Health of the associated resource. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-Unityhealth 19 | 20 | Retrieve information about all Unityhealth 21 | .EXAMPLE 22 | Get-Unityhealth -ID 'id01' 23 | 24 | Retrieves information about a specific Unityhealth 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Unityhealth ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/health/instances' #URI 40 | $TypeName = 'Unityhealth' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityhostLUN.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityhostLUN { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the LUNs and LUN snapshots to which a host has access.

6 | .DESCRIPTION 7 | Information about the LUNs and LUN snapshots to which a host has access.

8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityhostLUN 19 | 20 | Retrieve information about all UnityhostLUN 21 | .EXAMPLE 22 | Get-UnityhostLUN -ID 'id01' 23 | 24 | Retrieves information about a specific UnityhostLUN 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityhostLUN ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/hostLUN/instances' #URI 40 | $TypeName = 'UnityhostLUN' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityioLimitSetting.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityioLimitSetting { 2 | 3 | <# 4 | .SYNOPSIS 5 | Global I/O limit settings. 6 | .DESCRIPTION 7 | Global I/O limit settings. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityioLimitSetting 19 | 20 | Retrieve information about all UnityioLimitSetting 21 | .EXAMPLE 22 | Get-UnityioLimitSetting -ID 'id01' 23 | 24 | Retrieves information about a specific UnityioLimitSetting 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityioLimitSetting ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/ioLimitSetting/instances' #URI 40 | $TypeName = 'UnityioLimitSetting' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityiscsiPortal.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityiscsiPortal { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the iSCSI portals in the storage system. 6 | .DESCRIPTION 7 | Information about the iSCSI portals in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityiscsiPortal 19 | 20 | Retrieve information about all UnityiscsiPortal 21 | .EXAMPLE 22 | Get-UnityiscsiPortal -ID 'id01' 23 | 24 | Retrieves information about a specific UnityiscsiPortal 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityiscsiPortal ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/iscsiPortal/instances' #URI 40 | $TypeName = 'UnityiscsiPortal' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityloginSessionInfo.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityloginSessionInfo { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about a REST API login session. 6 | .DESCRIPTION 7 | Information about a REST API login session. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityloginSessionInfo 19 | 20 | Retrieve information about all UnityloginSessionInfo 21 | .EXAMPLE 22 | Get-UnityloginSessionInfo -ID 'id01' 23 | 24 | Retrieves information about a specific UnityloginSessionInfo 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityloginSessionInfo ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/loginSessionInfo/instances' #URI 40 | $TypeName = 'UnityloginSessionInfo' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnitymgmtInterface.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitymgmtInterface { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about management interfaces in the storage system. 6 | .DESCRIPTION 7 | Information about management interfaces in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitymgmtInterface 19 | 20 | Retrieve information about all UnitymgmtInterface 21 | .EXAMPLE 22 | Get-UnitymgmtInterface -ID 'id01' 23 | 24 | Retrieves information about a specific UnitymgmtInterface 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitymgmtInterface ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/mgmtInterface/instances' #URI 40 | $TypeName = 'UnitymgmtInterface' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnitypingResult.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitypingResult { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about ping command result. 6 | .DESCRIPTION 7 | Information about ping command result. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitypingResult 19 | 20 | Retrieve information about all UnitypingResult 21 | .EXAMPLE 22 | Get-UnitypingResult -ID 'id01' 23 | 24 | Retrieves information about a specific UnitypingResult 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitypingResult ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/pingResult/instances' #URI 40 | $TypeName = 'UnitypingResult' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnitysnapHostAccess.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitysnapHostAccess { 2 | 3 | <# 4 | .SYNOPSIS 5 | Host access settings for snapshot. 6 | .DESCRIPTION 7 | Host access settings for snapshot. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitysnapHostAccess 19 | 20 | Retrieve information about all UnitysnapHostAccess 21 | .EXAMPLE 22 | Get-UnitysnapHostAccess -ID 'id01' 23 | 24 | Retrieves information about a specific UnitysnapHostAccess 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitysnapHostAccess ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/snapHostAccess/instances' #URI 40 | $TypeName = 'UnitysnapHostAccess' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnitysystemTime.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitysystemTime { 2 | 3 | <# 4 | .SYNOPSIS 5 | Current system time. 6 | .DESCRIPTION 7 | Current system time. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitysystemTime 19 | 20 | Retrieve information about all UnitysystemTime 21 | .EXAMPLE 22 | Get-UnitysystemTime -ID 'id01' 23 | 24 | Retrieves information about a specific UnitysystemTime 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitysystemTime ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/systemTime/instances' #URI 40 | $TypeName = 'UnitysystemTime' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnitytracerouteResult.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitytracerouteResult { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about traceroute command result. 6 | .DESCRIPTION 7 | Information about traceroute command result. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitytracerouteResult 19 | 20 | Retrieve information about all UnitytracerouteResult 21 | .EXAMPLE 22 | Get-UnitytracerouteResult -ID 'id01' 23 | 24 | Retrieves information about a specific UnitytracerouteResult 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnitytracerouteResult ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/tracerouteResult/instances' #URI 40 | $TypeName = 'UnitytracerouteResult' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityupgradeTask.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityupgradeTask { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the upgrade task currently in progress. 6 | .DESCRIPTION 7 | Information about the upgrade task currently in progress. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityupgradeTask 19 | 20 | Retrieve information about all UnityupgradeTask 21 | .EXAMPLE 22 | Get-UnityupgradeTask -ID 'id01' 23 | 24 | Retrieves information about a specific UnityupgradeTask 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityupgradeTask ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/upgradeTask/instances' #URI 40 | $TypeName = 'UnityupgradeTask' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityurServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityurServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information for registering a storage system with Unisphere Central. 6 | .DESCRIPTION 7 | Information for registering a storage system with Unisphere Central. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityurServer 19 | 20 | Retrieve information about all UnityurServer 21 | .EXAMPLE 22 | Get-UnityurServer -ID 'id01' 23 | 24 | Retrieves information about a specific UnityurServer 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityurServer ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/urServer/instances' #URI 40 | $TypeName = 'UnityurServer' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/Get-UnityvlanInfo.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityvlanInfo { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about VLAN IDs. 6 | .DESCRIPTION 7 | Information about VLAN IDs. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityvlanInfo 19 | 20 | Retrieve information about all UnityvlanInfo 21 | .EXAMPLE 22 | Get-UnityvlanInfo -ID 'id01' 23 | 24 | Retrieves information about a specific UnityvlanInfo 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName='Name')] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName='ID',ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'UnityvlanInfo ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/vlanInfo/instances' #URI 40 | $TypeName = 'UnityvlanInfo' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function 53 | 54 | -------------------------------------------------------------------------------- /Tools/Functions/Result_UnityVSA_41/README.md: -------------------------------------------------------------------------------- 1 | ### Automaticaly generated GET functions -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityAlert.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityAlert.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityAlertConfig.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityAlertConfig.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityCIFSServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityCIFSServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityDNSServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityDNSServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityDae.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityDae.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityDisk.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityDisk.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityDpe.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityDpe.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityEncryption.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityEncryption.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityEthernetPort.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityEthernetPort.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityFileDNSServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityFileDNSServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityFileInterface.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityFileInterface.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityFilesystem.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityFilesystem.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityHost.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityHost.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityHostIPPort.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityHostIPPort.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityIpInterface.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityIpInterface.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityIscsiPortal.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityIscsiPortal.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityJob.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityJob.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityLUN.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityLUN.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityMetric.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityMetric.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityMetricQueryResult.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityMetricQueryResult.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityMetricRealTimeQuery.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityMetricRealTimeQuery.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityMetricValue.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityMetricValue.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityMgmtInterface.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityMgmtInterface.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityMgmtInterfaceSettings.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityMgmtInterfaceSettings.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityNFSShare.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityNFSShare.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityNTPServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityNTPServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityNasServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityNasServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityNfsServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityNfsServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityPool.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityPool.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySmtpServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySmtpServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySnap.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySnap.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySnapSchedule.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySnapSchedule.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySnapScheduleRule.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySnapScheduleRule.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySsc.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySsc.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySsd.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySsd.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityStorageProcessor.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityStorageProcessor.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitySystem.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitySystem.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityTreeQuota.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityTreeQuota.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.Unitybattery.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.Unitybattery.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitydataCollectionResult.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitydataCollectionResult.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.Unitydatastore.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.Unitydatastore.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityfastVP.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityfastVP.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityfcPort.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityfcPort.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityinstalledSoftwareVersion.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityinstalledSoftwareVersion.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitylinkAggregation.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitylinkAggregation.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityserviceAction.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityserviceAction.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityserviceInfo.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityserviceInfo.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnitystorageResource.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnitystorageResource.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.Unityvm.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.Unityvm.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityvmwareNasPEServer.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityvmwareNasPEServer.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.UnityvmwarePE.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.UnityvmwarePE.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Format/Unity-Powershell.Unityx509Certificate.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/equelin/Unity-Powershell/6e93e71ae313b3e6138c84b013bd82fcee8d3378/Unity-Powershell/Format/Unity-Powershell.Unityx509Certificate.Format.ps1xml -------------------------------------------------------------------------------- /Unity-Powershell/Private/Add-UnityObjectType.ps1: -------------------------------------------------------------------------------- 1 | #Deprecated, replaced by ConvertTo-Hashtable 2 | 3 | function Add-UnityObjectType { 4 | [CmdletBinding()] 5 | Param ( 6 | [parameter(Mandatory = $true)] 7 | $Data, 8 | [parameter(Mandatory = $true)] 9 | [string]$TypeName 10 | ) 11 | 12 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 13 | 14 | #Building the result collection (Add type) 15 | Foreach ($D in $Data) { 16 | $object = New-Object $TypeName 17 | $Data | get-member -type NoteProperty | foreach-object { 18 | If ($D."$($_.Name)") { 19 | $object."$($_.Name)" = $D."$($_.Name)" 20 | } 21 | } 22 | 23 | #Adding the request result object to the result's collection array 24 | Write-Output $object 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/ConvertTo-Hashtable.ps1: -------------------------------------------------------------------------------- 1 | function ConvertTo-Hashtable { 2 | [CmdletBinding()] 3 | Param ( 4 | [parameter(Mandatory = $true)] 5 | $Data 6 | ) 7 | 8 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 9 | 10 | #Building the result collection 11 | Foreach ($D in $Data) { 12 | $HashTable = @{} 13 | 14 | $D | 15 | get-member -MemberType NoteProperty | 16 | 17 | ForEach-Object { 18 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Add key: $($_.name) with value: $($D.$($_.name))" 19 | $HashTable.add($_.name,$D."$($_.name)") 20 | } 21 | 22 | # Output results 23 | $HashTable 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/Find-FromFilter.ps1: -------------------------------------------------------------------------------- 1 | Function Find-FromFilter { 2 | [CmdletBinding()] 3 | Param ( 4 | [parameter(Mandatory = $true)] 5 | $Data, 6 | [parameter(Mandatory = $true)] 7 | [String]$Parameter, 8 | [parameter(Mandatory = $true)] 9 | $Filter 10 | ) 11 | 12 | Process { 13 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 14 | 15 | Foreach ($F in $Filter) { 16 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Found $($Data.Count) item(s). Filtering result(s) on parameter $Parameter with value $F" 17 | 18 | $Result = $Data | Where-Object {$_."$Parameter" -like $F} 19 | 20 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Found $($Result.Count) item(s)" 21 | 22 | If ($Result) { 23 | $Result 24 | } else { 25 | Write-Error -Message "Object not found with the specified filter(s)" -Category "ObjectNotFound" 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/Get-URLFromObjectType.ps1: -------------------------------------------------------------------------------- 1 | function Get-URLFromObjectType { 2 | [CmdletBinding()] 3 | Param ( 4 | [parameter(Mandatory = $true, HelpMessage = "IP/FQDN of the array")] 5 | [UnitySession]$Session, 6 | [Parameter(Mandatory = $true,HelpMessage = 'URI')] 7 | [string]$URI, 8 | [parameter(Mandatory = $true, HelpMessage = 'Type associated to the item')] 9 | [string]$TypeName, 10 | [parameter(Mandatory = $false, HelpMessage = 'Ressource Filter')] 11 | [string]$Filter, 12 | [parameter(Mandatory = $false, HelpMessage = 'Compact the response')] 13 | [switch]$Compact, 14 | [parameter(Mandatory = $false, HelpMessage = 'Exceptions')] 15 | [string[]]$Exception = '' 16 | ) 17 | 18 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 19 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Object Type: $Typename" 20 | 21 | # Deal with the exceptions! UnityVMwareLUn and UnityVMwareNFS are in fact UnityLUN and UnityFilesystem objects 22 | Switch ($Typename) { 23 | 'UnityVMwareLUN' {$type = 'LUN'} 24 | 'UnityVMwareNFS' {$type = 'Filesystem'} 25 | default {$type = $TypeName -replace 'Unity',''} 26 | } 27 | 28 | ($Session.types | where-object {$_.name -eq $type}).Attributes | foreach-object {$fields += $_.Name + ','} 29 | 30 | #Remove last , 31 | $fields = $fields -replace '.$' 32 | 33 | #Build URL 34 | $URL = 'https://'+$($Session.Server)+$URI+'?fields='+$fields 35 | 36 | #Add filter if needed 37 | If ($Filter) { 38 | $URL = $URL + '&filter=' + $Filter 39 | } 40 | 41 | #Add compact if needed 42 | If ($Compact) { 43 | $URL = $URL + '&compact=true' 44 | } 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Returning URL: $URL" 47 | 48 | return $URL 49 | } 50 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/New-UnityObject.ps1: -------------------------------------------------------------------------------- 1 | function New-UnityObject { 2 | [CmdletBinding()] 3 | Param ( 4 | [parameter(Mandatory = $true)] 5 | [Object[]]$Data, 6 | [parameter(Mandatory = $true)] 7 | [String]$TypeName 8 | ) 9 | 10 | Write-Debug -Message "[$($MyInvocation.MyCommand.Name)] Executing function" 11 | Write-Debug -Message "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)" 12 | Write-Debug -Message "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" 13 | 14 | #Building the result collection 15 | Foreach ($D in $Data) { 16 | 17 | # Create a new empty object of type $Typename 18 | Try { 19 | $Object = New-Object -TypeName $TypeName 20 | } 21 | Catch { 22 | Throw "$TypeName is an invalid object" 23 | } 24 | 25 | # Loop through all the object properties and add to it the data 26 | $Object | Get-Member -MemberType Property | ForEach-Object { 27 | If ($D."$($_.name)" -notlike $null) { 28 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Add key: $($_.name) with value: $($D.$($_.name))" 29 | $Object."$($_.name)" = $D."$($_.name)" 30 | } else { 31 | Write-Debug -Message "[$($MyInvocation.MyCommand)] No value to add to Key: $($_.name)" 32 | } 33 | } 34 | 35 | Return $Object 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/Show-RequestException.ps1: -------------------------------------------------------------------------------- 1 | Function Show-RequestException { 2 | [CmdletBinding()] 3 | Param( 4 | [parameter(Mandatory = $true)] 5 | $Exception 6 | ) 7 | 8 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 9 | 10 | #Exception catch when there's a connectivity problem with the array 11 | If ($Exception.Exception.InnerException) { 12 | Write-Host "Please verify the connectivity with the array" -foreground yellow 13 | Write-Host 14 | Write-Host "Error details: $($Exception.Exception.InnerException.Message)" -foreground yellow 15 | Write-Host 16 | } 17 | 18 | #Exception catch when the rest request return an error 19 | If ($Exception.Exception.Response) { 20 | 21 | $result = $Exception.Exception.Response.GetResponseStream() 22 | $reader = New-Object System.IO.StreamReader($result) 23 | $responseBody = $reader.ReadToEnd() 24 | $JSON = $responseBody | ConvertFrom-Json 25 | 26 | Write-Host "The array sends an error message:" -foreground yellow 27 | Write-Host 28 | Write-Host "Error code: $($Exception.Exception.Response.StatusCode)" -foreground yellow 29 | Write-Host "Error description: $($Exception.Exception.Response.StatusDescription)" -foreground yellow 30 | Write-Host "Error details: $responseBody" -foreground yellow 31 | Write-Host 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/Test-CompressionUnsupported.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Test if Pool is compatible with compression 4 | .DESCRIPTION 5 | Test if Pool is compatible with compression. 6 | Test if OS version is -ge 4.1 7 | Test if compression licence is available 8 | Test if compression feature is enabled 9 | Test if Pool is Extreme_Performance only 10 | #> 11 | 12 | 13 | Function Test-CompressionUnsupported { 14 | [CmdletBinding()] 15 | Param( 16 | [parameter(Mandatory = $true)] 17 | $Session, 18 | [parameter(Mandatory = $true)] 19 | $Pool 20 | ) 21 | 22 | Process { 23 | 24 | [bool]$Result = $True 25 | 26 | If ($Session.SoftwareVersion -lt [version]'4.1') { 27 | #Write-Verbose "Software version lesser than 4.1.0" 28 | $Result = $false 29 | } 30 | If ($Session.isUnityVSA()) { 31 | #Write-Verbose "Array is an UnityVSA" 32 | $Result = $false 33 | } 34 | If (-not (Get-UnityPool -Session $Session -Id $Pool -ErrorAction SilentlyContinue).isExtremePerformance()) { 35 | #Write-Verbose "Pool is not Extreme Performance only" 36 | $Result = $false 37 | } 38 | If ((Get-UnityFeature -Session $Session -id INLINE_COMPRESSION -ErrorAction SilentlyContinue).State -ne 'FeatureStateEnabled') { 39 | #Write-Verbose "Feature INLINE_COMPRESSION is disabled" 40 | $Result = $false 41 | } 42 | If ((Get-UnityLicense -Session $Session -id INLINE_COMPRESSION -ErrorAction SilentlyContinue).isValid -ne $True) { 43 | #Write-Verbose "Licence INLINE_COMPRESSION is not valid" 44 | $Result = $false 45 | } 46 | 47 | Write-Verbose "Is compression supported: $Result" 48 | Return $Result 49 | } 50 | } -------------------------------------------------------------------------------- /Unity-Powershell/Private/Test-UnityConnection.ps1: -------------------------------------------------------------------------------- 1 | Function Test-UnityConnection { 2 | [CmdletBinding()] 3 | Param ( 4 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 5 | [Array]$session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 6 | ) 7 | Begin { 8 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 9 | } 10 | 11 | Process { 12 | Foreach ($Sess in $session) { 13 | 14 | Write-Verbose "Processing Array: $($sess.Server)" 15 | 16 | $URI = 'https://'+$sess.Server+'/api/types/system/instances' 17 | 18 | Write-Verbose "URI: $URI" 19 | 20 | Try { 21 | $request = Invoke-WebRequest -Uri $URI -ContentType "application/json" -Websession $sess.Websession -Headers $sess.headers -Method 'GET' -UseBasicParsing 22 | } 23 | 24 | Catch { 25 | $global:DefaultUnitySession | 26 | where-object {$_.SessionId -eq $sess.SessionId} | 27 | foreach { 28 | $currentObject = $_ 29 | $currentObject.IsConnected = $false 30 | $currentObject 31 | } | Out-Null 32 | Return $false 33 | } 34 | } 35 | Return $True 36 | } 37 | End {} 38 | } 39 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/Unblock-UnityCerts.ps1: -------------------------------------------------------------------------------- 1 | Function Unblock-UnityCerts { 2 | 3 | # Hack for allowing untrusted SSL certs with https connections 4 | Add-Type -TypeDefinition @" 5 | using System.Net; 6 | using System.Security.Cryptography.X509Certificates; 7 | public class TrustAllCertsPolicy : ICertificatePolicy { 8 | public bool CheckValidationResult( 9 | ServicePoint srvPoint, X509Certificate certificate, 10 | WebRequest request, int certificateProblem) { 11 | return true; 12 | } 13 | } 14 | "@ 15 | 16 | [System.Net.ServicePointManager]::CertificatePolicy = New-Object -TypeName TrustAllCertsPolicy 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Unity-Powershell/Private/Update-TitleBarForUnityConnection.ps1: -------------------------------------------------------------------------------- 1 | <# .Description 2 | Set PowerShell title bar to reflect currently connected Unity servers' names 3 | #> 4 | function Update-TitleBarForUnityConnection { 5 | $strOrigWindowTitle = $host.ui.RawUI.WindowTitle 6 | ## the window titlebar text without the "connected to.." Unity info 7 | $strWinTitleWithoutOldUnityConnInfo = $strOrigWindowTitle -replace "(; )?Connected to( \d+)? Unity.+", "" 8 | ## the number of Unity servers to which still connected 9 | $intNumConnectedUnityServers = ($Global:DefaultUnitySession | Measure-Object).Count 10 | $strNewWindowTitle = "{0}{1}{2}" -f $strWinTitleWithoutOldUnityConnInfo, $(if ((-not [System.String]::IsNullOrEmpty($strWinTitleWithoutOldUnityConnInfo)) -and ($intNumConnectedUnityServers -gt 0)) {"; "}), $( 11 | if ($intNumConnectedUnityServers -gt 0) { 12 | if ($intNumConnectedUnityServers -eq 1) {"Connected to Unity {0} as {1}" -f $Global:DefaultUnitySession[0].Server, $Global:DefaultUnitySession[0].User} 13 | else {"Connected to {0} Unity servers: {1}." -f $intNumConnectedUnityServers, (($Global:DefaultUnitySession | Foreach-Object {$_.Server}) -Join ", ")} 14 | } ## end if 15 | #else {"Not Connected to Unity"} 16 | ) ## end -f call 17 | $host.ui.RawUI.WindowTitle = $strNewWindowTitle 18 | } ## end fn 19 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Disable-UnityFastCache.ps1: -------------------------------------------------------------------------------- 1 | Function Disable-UnityFastCache { 2 | 3 | <# 4 | .SYNOPSIS 5 | Disable FAST Cache. 6 | .DESCRIPTION 7 | Disable FAST Cache. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .EXAMPLE 16 | Disable-UnityFastCache 17 | 18 | Disable FAST Cache. 19 | #> 20 | 21 | [CmdletBinding(SupportsShouldProcess = $True,ConfirmImpact = 'High')] 22 | Param ( 23 | #Default Parameters 24 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 25 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 26 | ) 27 | 28 | Begin { 29 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 30 | } 31 | 32 | Process { 33 | 34 | Foreach ($sess in $session) { 35 | 36 | Write-Debug -Message "Processing Session: $($sess.Server) with SessionId: $($sess.SessionId)" 37 | 38 | If ($Sess.TestConnection()) { 39 | 40 | #Building the URI 41 | $URI = 'https://'+$sess.Server+'/api/instances/fastCache/0/action/disable?timeout=0' #run async 42 | Write-Verbose "URI: $URI" 43 | 44 | #Sending the request 45 | If ($pscmdlet.ShouldProcess($($Sess.Server),"Disable Fast Cache")) { 46 | $request = Send-UnityRequest -uri $URI -Session $Sess -Method 'POST' -Body $Body 47 | } 48 | 49 | If ($request.StatusCode -eq '202') { 50 | Write-Host "Fast Cache is currently disabling" 51 | } 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityAlert.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityAlert { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about alerts generated by the storage system. 6 | .DESCRIPTION 7 | Information about alerts generated by the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityAlert 19 | 20 | Retrieve Information about alerts generated by the storage system. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Alert ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/alert/instances' #URI for the ressource (example: /api/types/lun/instances) 36 | $TypeName = 'UnityAlert' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityAlertConfig.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityAlertConfig { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the Alert Configs in the storage system. 6 | .DESCRIPTION 7 | Information about the Alert Configs in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityAlertConfig 19 | 20 | Retrieve informations about all the Alert Configs. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Alert Config ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/alertConfig/instances' 36 | $TypeName = 'UnityAlertConfig' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityDnsServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityDNSServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about DNS Servers. 6 | .DESCRIPTION 7 | Information about DNS Servers. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityDNSServer 19 | 20 | Retrieve informations about the DNS server. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'DNS ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/dnsServer/instances' #URI for the ressource (example: /api/types/lun/instances) 36 | $TypeName = 'UnityDnsServer' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityFileDnsServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityFileDNSServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about File DNS Servers. 6 | .DESCRIPTION 7 | Information about File DNS Servers. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityFileDnsServer 19 | 20 | Retrieve informations about all file dns servers with an active session. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'File DNS Server ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/fileDNSServer/instances' #URI for the ressource (example: /api/types/lun/instances) 36 | $TypeName = 'UnityFileDnsServer' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityHostIPPort.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityHostIPPort { 2 | 3 | <# 4 | .SYNOPSIS 5 | View details about host IP Port configuration on the system. 6 | .DESCRIPTION 7 | View details about host IP Port configuration on the system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityHostIPPort 19 | 20 | Retrieve information about all hosts 21 | .EXAMPLE 22 | Get-UnityHostIPPort -ID 'ESX01' 23 | 24 | Retrieves information about host IP Port named 'ESX01' 25 | #> 26 | 27 | [CmdletBinding(DefaultParameterSetName="ID")] 28 | Param ( 29 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 30 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 31 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Host IP Port ID')] 32 | [String[]]$ID 33 | ) 34 | 35 | Begin { 36 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 37 | 38 | #Initialazing variables 39 | $URI = '/api/types/hostIPPort/instances' #URI 40 | $TypeName = 'UnityHostIPPort' 41 | } 42 | 43 | Process { 44 | Foreach ($sess in $session) { 45 | 46 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 47 | 48 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 49 | 50 | } # End Foreach ($sess in $session) 51 | } # End Process 52 | } # End Function -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityIpInterface.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityIpInterface { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about network interfaces in the storage system. 6 | .DESCRIPTION 7 | Information about network interfaces in the storage system. 8 | Network interfaces enable and control access between the system, network, and configured hosts. 9 | You need to have an active session with the array. 10 | .NOTES 11 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 12 | .LINK 13 | https://github.com/equelin/Unity-Powershell 14 | .PARAMETER Session 15 | Specifies an UnitySession Object. 16 | .PARAMETER ID 17 | Specifies the object ID. 18 | .EXAMPLE 19 | Get-UnityIpInterface 20 | 21 | Retrieve informations about all the management interface. 22 | #> 23 | 24 | [CmdletBinding(DefaultParameterSetName="ID")] 25 | Param ( 26 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 27 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 28 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'IP Interface ID')] 29 | [String[]]$ID 30 | ) 31 | 32 | Begin { 33 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 34 | 35 | #Initialazing variables 36 | $URI = '/api/types/ipInterface/instances' #URI for the ressource (example: /api/types/lun/instances) 37 | $TypeName = 'UnityIpInterface' 38 | } 39 | 40 | Process { 41 | Foreach ($sess in $session) { 42 | 43 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 44 | 45 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 46 | 47 | } # End Foreach ($sess in $session) 48 | } # End Process 49 | } # End Function 50 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityIscsiPortal.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityIscsiPortal { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the iSCSI portals in the storage system. 6 | .DESCRIPTION 7 | Information about the iSCSI portals in the storage system. 8 | iSCSI portals are used for controlling access to iSCSI storage 9 | You need to have an active session with the array. 10 | .NOTES 11 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 12 | .LINK 13 | https://github.com/equelin/Unity-Powershell 14 | .PARAMETER Session 15 | Specifies an UnitySession Object. 16 | .PARAMETER ID 17 | Specifies the object ID. 18 | .EXAMPLE 19 | Get-UnityIscsiPortal 20 | 21 | Retrieve informations about all the iSCSI portal. 22 | #> 23 | 24 | [CmdletBinding(DefaultParameterSetName="ID")] 25 | Param ( 26 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 27 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 28 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'iSCSI portal ID')] 29 | [String[]]$ID 30 | ) 31 | 32 | Begin { 33 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 34 | 35 | #Initialazing variables 36 | $URI = '/api/types/iscsiPortal/instances' #URI for the ressource (example: /api/types/lun/instances) 37 | $TypeName = 'UnityIscsiPortal' 38 | } 39 | 40 | Process { 41 | Foreach ($sess in $session) { 42 | 43 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 44 | 45 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 46 | 47 | } # End Foreach ($sess in $session) 48 | } # End Process 49 | } # End Function 50 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityMgmtInterface.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityMgmtInterface { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about management interfaces in the storage system. 6 | .DESCRIPTION 7 | Information about management interfaces in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityMgmtInterface 19 | 20 | Retrieve informations about all the management interface. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Mgmt interface ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/mgmtInterface/instances' #URI for the ressource (example: /api/types/lun/instances) 36 | $TypeName = 'UnityMgmtInterface' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityMgmtInterfaceSetting.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityMgmtInterfaceSetting { 2 | 3 | <# 4 | .SYNOPSIS 5 | Informations about global settings for the management interfaces. 6 | .DESCRIPTION 7 | Informations about global settings for the management interfaces. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .EXAMPLE 16 | Get-UnityMgmtInterfaceSetting 17 | 18 | Retrieve informations about global settings for the management interfaces. 19 | #> 20 | 21 | [CmdletBinding(DefaultParameterSetName="Name")] 22 | Param ( 23 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 24 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 25 | ) 26 | 27 | Begin { 28 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 29 | 30 | #Initialazing variables 31 | $URI = '/api/types/mgmtInterfaceSettings/instances' #URI for the ressource (example: /api/types/lun/instances) 32 | $TypeName = 'UnityMgmtInterfaceSettings' 33 | } 34 | 35 | Process { 36 | Foreach ($sess in $session) { 37 | 38 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 39 | 40 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 41 | 42 | } # End Foreach ($sess in $session) 43 | } # End Process 44 | } # End Function 45 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityNFSServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityNFSServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the NFS Servers in the storage system. 6 | .DESCRIPTION 7 | Information about the NFS Servers in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityNFSServer 19 | 20 | Retrieve informations about all the NFS Servers. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'NFS Server ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/nfsServer/instances' 36 | $TypeName = 'UnityNfsServer' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnityNTPServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityNTPServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about NTP Servers. 6 | .DESCRIPTION 7 | Information about NTP Servers. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .EXAMPLE 16 | Get-UnityNTPServer 17 | 18 | Retrieve informations about the NTP Servers. 19 | #> 20 | 21 | [CmdletBinding(DefaultParameterSetName="Name")] 22 | Param ( 23 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 24 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 25 | ) 26 | 27 | Begin { 28 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 29 | 30 | #Initialazing variables 31 | $URI = '/api/types/ntpServer/instances' #URI for the ressource (example: /api/types/lun/instances) 32 | $TypeName = 'UnityNTPServer' 33 | } 34 | 35 | Process { 36 | Foreach ($sess in $session) { 37 | 38 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 39 | 40 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 41 | 42 | } # End Foreach ($sess in $session) 43 | } # End Process 44 | } # End Function -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnitySession.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitySession { 2 | 3 | <# 4 | .SYNOPSIS 5 | List the existing sessions. 6 | .DESCRIPTION 7 | List the existing sessions. 8 | .NOTES 9 | Written by Erwan Quelin under MIT licence 10 | .LINK 11 | https://github.com/equelin/Unity-Powershell 12 | .PARAMETER Server 13 | IP or FQDN of the Unity array. 14 | .EXAMPLE 15 | Get-UnitySession 16 | 17 | List all the existing sessions. 18 | .EXAMPLE 19 | Get-UnitySession -Server 192.0.2.1' 20 | 21 | Lists sessions connected the the array '192.0.2.1' 22 | #> 23 | 24 | [CmdletBinding()] 25 | Param ( 26 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity IP or FQDN')] 27 | [String]$Server 28 | ) 29 | 30 | Begin { 31 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 32 | } 33 | 34 | Process { 35 | If ($Server) { 36 | Write-Verbose "Return DefaultUnitySession matching the Server IP or FQDN: $Server" 37 | return $global:DefaultUnitySession | where-object {$_.Server -match $Server} 38 | } else { 39 | Write-Verbose "Return DefaultUnitySessionclear" 40 | return $global:DefaultUnitySession 41 | } 42 | } 43 | 44 | End {} 45 | } 46 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Get-UnitySmtpServer.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnitySMTPServer { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about the SMTP servers in the storage system. 6 | .DESCRIPTION 7 | Information about the SMTP servers in the storage system. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnitySMTPServer 19 | 20 | Retrieve informations about all the SMTP servers. 21 | #> 22 | 23 | [CmdletBinding(DefaultParameterSetName="ID")] 24 | Param ( 25 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 26 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 27 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'SMTP Server ID')] 28 | [String[]]$ID 29 | ) 30 | 31 | Begin { 32 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 33 | 34 | #Initialazing variables 35 | $URI = '/api/types/smtpServer/instances' #URI 36 | $TypeName = 'UnitySmtpServer' 37 | } 38 | 39 | Process { 40 | Foreach ($sess in $session) { 41 | 42 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 43 | 44 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 45 | 46 | } # End Foreach ($sess in $session) 47 | } # End Process 48 | } # End Function 49 | -------------------------------------------------------------------------------- /Unity-Powershell/Public/Hardware/Get-UnityEncryption.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UnityEncryption { 2 | 3 | <# 4 | .SYNOPSIS 5 | Information about Encryption. 6 | .DESCRIPTION 7 | Information about Encryption. 8 | You need to have an active session with the array. 9 | .NOTES 10 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 11 | .LINK 12 | https://github.com/equelin/Unity-Powershell 13 | .PARAMETER Session 14 | Specifies an UnitySession Object. 15 | .PARAMETER ID 16 | Specifies the object ID. 17 | .EXAMPLE 18 | Get-UnityEncryption 19 | 20 | 21 | Retrieve Information about Encryption. 22 | #> 23 | 24 | [CmdletBinding(DefaultParameterSetName="ID")] 25 | Param ( 26 | [Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')] 27 | $session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}), 28 | [Parameter(Mandatory = $false,ParameterSetName="ID",ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True,HelpMessage = 'Encryption ID')] 29 | [String[]]$ID 30 | ) 31 | 32 | Begin { 33 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Executing function" 34 | 35 | #Initialazing variables 36 | $URI = '/api/types/encryption/instances' #URI for the ressource (example: /api/types/lun/instances) 37 | $TypeName = 'UnityEncryption 38 | ' 39 | } 40 | 41 | Process { 42 | Foreach ($sess in $session) { 43 | 44 | Write-Debug -Message "[$($MyInvocation.MyCommand)] Processing Session: $($Session.Server) with SessionId: $($Session.SessionId)" 45 | 46 | Get-UnityItemByKey -Session $Sess -URI $URI -Typename $Typename -Key $PsCmdlet.ParameterSetName -Value $PSBoundParameters[$PsCmdlet.ParameterSetName] 47 | 48 | } # End Foreach ($sess in $session) 49 | } # End Process 50 | } # End Function 51 | -------------------------------------------------------------------------------- /Unity-Powershell/en-US/about_Unity-Powershell.help.txt: -------------------------------------------------------------------------------- 1 | PSTOPIC 2 | about_Unity-Powershell 3 | 4 | SHORT DESCRIPTION 5 | Unity-Powershell is a Powershell's module for working with EMC Unity array 6 | 7 | LONG DESCRIPTION 8 | Unity-Powershell is a Powershell's module for working with EMC Unity array 9 | 10 | Source of the module is available at: 11 | https://github.com/equelin/Unity-Powershell 12 | 13 | DETAILED DESCRIPTION 14 | Unity-Powershell is a Powershell's module for working with EMC Unity array 15 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | #---------------------------------# 2 | # environment configuration # 3 | #---------------------------------# 4 | version: 1.0.{build} 5 | os: WMF 5 6 | install: 7 | - ps: Import-Module .\AppVeyor\Functions\AppVeyor-Util.psm1 | Out-Null 8 | - ps: . .\AppVeyor\install.ps1 9 | 10 | environment: 11 | NuGetApiKey: 12 | secure: UIr9SZkDLqMe2EjAP2CBmvomalY6sRAenwlLYR3fRDdyUhB1/RO7nsvYFRGM36RD 13 | GHToken: 14 | secure: 5jmXah8zuXr+gjrG1WkD1uZ/jk9q7W+foC793X8//rJN5vdye5tice7j83mPuuwU 15 | ModuleName: PSDummy 16 | 17 | #Build will be started only if one of the modified files was inside the Unity-Powershell folder 18 | only_commits: 19 | files: 20 | - Unity-Powershell/ 21 | 22 | #---------------------------------# 23 | # build configuration # 24 | #---------------------------------# 25 | build: off 26 | 27 | #---------------------------------# 28 | # test configuration # 29 | #---------------------------------# 30 | test_script: 31 | - ps: . .\AppVeyor\test.ps1 32 | 33 | #---------------------------------# 34 | # deployment configuration # 35 | #---------------------------------# 36 | deploy_script: 37 | - ps: . .\AppVeyor\deploy.ps1 38 | 39 | #Skip build when pushing a new tags 40 | skip_tags: true 41 | 42 | #GitHub Pull Request notifications 43 | notifications: 44 | - provider: GitHubPullRequest 45 | auth_token: 46 | secure: 5jmXah8zuXr+gjrG1WkD1uZ/jk9q7W+foC793X8//rJN5vdye5tice7j83mPuuwU 47 | template: "{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})" 48 | 49 | 50 | -------------------------------------------------------------------------------- /docs/References/Disable-UnityFastCache.md: -------------------------------------------------------------------------------- 1 | # Disable-UnityFastCache 2 | 3 | ## SYNOPSIS 4 | Disable FAST Cache. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Disable-UnityFastCache [[-session] ] [-WhatIf] [-Confirm] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Disable FAST Cache. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Disable-UnityFastCache 21 | ``` 22 | 23 | Disable FAST Cache. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: 1 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -WhatIf 43 | Shows what would happen if the cmdlet runs. 44 | The cmdlet is not run. 45 | 46 | ```yaml 47 | Type: SwitchParameter 48 | Parameter Sets: (All) 49 | Aliases: wi 50 | 51 | Required: False 52 | Position: Named 53 | Default value: None 54 | Accept pipeline input: False 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ### -Confirm 59 | Prompts you for confirmation before running the cmdlet. 60 | 61 | ```yaml 62 | Type: SwitchParameter 63 | Parameter Sets: (All) 64 | Aliases: cf 65 | 66 | Required: False 67 | Position: Named 68 | Default value: None 69 | Accept pipeline input: False 70 | Accept wildcard characters: False 71 | ``` 72 | 73 | ## INPUTS 74 | 75 | ## OUTPUTS 76 | 77 | ## NOTES 78 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 79 | 80 | ## RELATED LINKS 81 | 82 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 83 | 84 | -------------------------------------------------------------------------------- /docs/References/Get-UnityAlert.md: -------------------------------------------------------------------------------- 1 | # Get-UnityAlert 2 | 3 | ## SYNOPSIS 4 | Information about alerts generated by the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityAlert [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about alerts generated by the storage system. 14 | 15 | You need to have an active session with the array. 16 | 17 | ## EXAMPLES 18 | 19 | ### -------------------------- EXAMPLE 1 -------------------------- 20 | ``` 21 | Get-UnityAlert 22 | ``` 23 | 24 | Retrieve Information about alerts generated by the storage system. 25 | 26 | ## PARAMETERS 27 | 28 | ### -session 29 | Specifies an UnitySession Object. 30 | 31 | ```yaml 32 | Type: Object 33 | Parameter Sets: (All) 34 | Aliases: 35 | 36 | Required: False 37 | Position: Named 38 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 39 | Accept pipeline input: False 40 | Accept wildcard characters: False 41 | ``` 42 | 43 | ### -ID 44 | Specifies the object ID. 45 | 46 | ```yaml 47 | Type: String[] 48 | Parameter Sets: (All) 49 | Aliases: 50 | 51 | Required: False 52 | Position: Named 53 | Default value: None 54 | Accept pipeline input: True (ByPropertyName, ByValue) 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ## INPUTS 59 | 60 | ## OUTPUTS 61 | 62 | ## NOTES 63 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 64 | 65 | ## RELATED LINKS 66 | 67 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 68 | 69 | -------------------------------------------------------------------------------- /docs/References/Get-UnityAlertConfig.md: -------------------------------------------------------------------------------- 1 | # Get-UnityAlertConfig 2 | 3 | ## SYNOPSIS 4 | Information about the Alert Configs in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityAlertConfig [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about the Alert Configs in the storage system. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityAlertConfig 21 | ``` 22 | 23 | Retrieve informations about all the Alert Configs. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | Specifies the object ID. 44 | 45 | ```yaml 46 | Type: String[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: Named 52 | Default value: None 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Get-UnityBasicSystemInfo.md: -------------------------------------------------------------------------------- 1 | # Get-UnityBasicSystemInfo 2 | 3 | ## SYNOPSIS 4 | Queries the EMC Unity array to retrieve basic informations about arrays. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityBasicSystemInfo [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityBasicSystemInfo [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Queries the EMC Unity array to retrieve basic informations about arrays. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityBasicSystemInfo 27 | ``` 28 | 29 | Retrieve basic information about arrays 30 | 31 | ## PARAMETERS 32 | 33 | ### -session 34 | Specifies an UnitySession Object. 35 | 36 | ```yaml 37 | Type: Object 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: Named 43 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### -Name 49 | Specifies the object name. 50 | 51 | ```yaml 52 | Type: String[] 53 | Parameter Sets: Name 54 | Aliases: 55 | 56 | Required: False 57 | Position: Named 58 | Default value: None 59 | Accept pipeline input: True (ByPropertyName, ByValue) 60 | Accept wildcard characters: False 61 | ``` 62 | 63 | ### -ID 64 | Specifies the object ID. 65 | 66 | ```yaml 67 | Type: String[] 68 | Parameter Sets: ID 69 | Aliases: 70 | 71 | Required: False 72 | Position: Named 73 | Default value: None 74 | Accept pipeline input: True (ByPropertyName, ByValue) 75 | Accept wildcard characters: False 76 | ``` 77 | 78 | ## INPUTS 79 | 80 | ## OUTPUTS 81 | 82 | ## NOTES 83 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 84 | 85 | ## RELATED LINKS 86 | 87 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 88 | 89 | -------------------------------------------------------------------------------- /docs/References/Get-UnityDNSServer.md: -------------------------------------------------------------------------------- 1 | # Get-UnityDNSServer 2 | 3 | ## SYNOPSIS 4 | Information about DNS Servers. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityDNSServer [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about DNS Servers. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityDNSServer 21 | ``` 22 | 23 | Retrieve informations about the DNS server. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | Specifies the object ID. 44 | 45 | ```yaml 46 | Type: String[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: Named 52 | Default value: None 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Get-UnityDae.md: -------------------------------------------------------------------------------- 1 | # Get-UnityDae 2 | 3 | ## SYNOPSIS 4 | Information about Disk Array Enclosure (DAE) components in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ### ID (Default) 9 | ``` 10 | Get-UnityDae [-session ] [-ID ] 11 | ``` 12 | 13 | ### Name 14 | ``` 15 | Get-UnityDae [-session ] [-Name ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Information about Disk Array Enclosure (DAE) components in the storage system. 20 | 21 | You need to have an active session with the array. 22 | 23 | ## EXAMPLES 24 | 25 | ### -------------------------- EXAMPLE 1 -------------------------- 26 | ``` 27 | Get-UnityDae 28 | ``` 29 | 30 | Retrieve Information about Disk Array Enclosure (DAE) components in the storage system. 31 | 32 | ## PARAMETERS 33 | 34 | ### -session 35 | Specifies an UnitySession Object. 36 | 37 | ```yaml 38 | Type: Object 39 | Parameter Sets: (All) 40 | Aliases: 41 | 42 | Required: False 43 | Position: Named 44 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 45 | Accept pipeline input: False 46 | Accept wildcard characters: False 47 | ``` 48 | 49 | ### -Name 50 | Specifies the object name. 51 | 52 | ```yaml 53 | Type: String[] 54 | Parameter Sets: Name 55 | Aliases: 56 | 57 | Required: False 58 | Position: Named 59 | Default value: None 60 | Accept pipeline input: True (ByPropertyName, ByValue) 61 | Accept wildcard characters: False 62 | ``` 63 | 64 | ### -ID 65 | Specifies the object ID. 66 | 67 | ```yaml 68 | Type: String[] 69 | Parameter Sets: ID 70 | Aliases: 71 | 72 | Required: False 73 | Position: Named 74 | Default value: None 75 | Accept pipeline input: True (ByPropertyName, ByValue) 76 | Accept wildcard characters: False 77 | ``` 78 | 79 | ## INPUTS 80 | 81 | ## OUTPUTS 82 | 83 | ## NOTES 84 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 85 | 86 | ## RELATED LINKS 87 | 88 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 89 | 90 | -------------------------------------------------------------------------------- /docs/References/Get-UnityDisk.md: -------------------------------------------------------------------------------- 1 | # Get-UnityDisk 2 | 3 | ## SYNOPSIS 4 | View details about disks on the system. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityDisk [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityDisk [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | View details about disk on the system. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityDisk 27 | ``` 28 | 29 | Retrieve information about all disks 30 | 31 | ## PARAMETERS 32 | 33 | ### -session 34 | Specifies an UnitySession Object. 35 | 36 | ```yaml 37 | Type: Object 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: Named 43 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### -Name 49 | Specifies the object name. 50 | 51 | ```yaml 52 | Type: String[] 53 | Parameter Sets: Name 54 | Aliases: 55 | 56 | Required: False 57 | Position: Named 58 | Default value: None 59 | Accept pipeline input: True (ByPropertyName, ByValue) 60 | Accept wildcard characters: False 61 | ``` 62 | 63 | ### -ID 64 | Specifies the object ID. 65 | 66 | ```yaml 67 | Type: String[] 68 | Parameter Sets: ID 69 | Aliases: 70 | 71 | Required: False 72 | Position: Named 73 | Default value: None 74 | Accept pipeline input: True (ByPropertyName, ByValue) 75 | Accept wildcard characters: False 76 | ``` 77 | 78 | ## INPUTS 79 | 80 | ## OUTPUTS 81 | 82 | ## NOTES 83 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 84 | 85 | ## RELATED LINKS 86 | 87 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 88 | 89 | -------------------------------------------------------------------------------- /docs/References/Get-UnityDpe.md: -------------------------------------------------------------------------------- 1 | # Get-UnityDpe 2 | 3 | ## SYNOPSIS 4 | Information about Disk Processor Enclosures (DPEs) in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ### ID (Default) 9 | ``` 10 | Get-UnityDpe [-session ] [-ID ] 11 | ``` 12 | 13 | ### Name 14 | ``` 15 | Get-UnityDpe [-session ] [-Name ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Information about Disk Processor Enclosures (DPEs) in the storage system. 20 | 21 | You need to have an active session with the array. 22 | 23 | ## EXAMPLES 24 | 25 | ### -------------------------- EXAMPLE 1 -------------------------- 26 | ``` 27 | Get-UnityDpe 28 | ``` 29 | 30 | Retrieve Information about Disk Processor Enclosures (DPEs) in the storage system. 31 | 32 | ## PARAMETERS 33 | 34 | ### -session 35 | Specifies an UnitySession Object. 36 | 37 | ```yaml 38 | Type: Object 39 | Parameter Sets: (All) 40 | Aliases: 41 | 42 | Required: False 43 | Position: Named 44 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 45 | Accept pipeline input: False 46 | Accept wildcard characters: False 47 | ``` 48 | 49 | ### -Name 50 | Specifies the object name. 51 | 52 | ```yaml 53 | Type: String[] 54 | Parameter Sets: Name 55 | Aliases: 56 | 57 | Required: False 58 | Position: Named 59 | Default value: None 60 | Accept pipeline input: True (ByPropertyName, ByValue) 61 | Accept wildcard characters: False 62 | ``` 63 | 64 | ### -ID 65 | Specifies the object ID. 66 | 67 | ```yaml 68 | Type: String[] 69 | Parameter Sets: ID 70 | Aliases: 71 | 72 | Required: False 73 | Position: Named 74 | Default value: None 75 | Accept pipeline input: True (ByPropertyName, ByValue) 76 | Accept wildcard characters: False 77 | ``` 78 | 79 | ## INPUTS 80 | 81 | ## OUTPUTS 82 | 83 | ## NOTES 84 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 85 | 86 | ## RELATED LINKS 87 | 88 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 89 | 90 | -------------------------------------------------------------------------------- /docs/References/Get-UnityEncryption.md: -------------------------------------------------------------------------------- 1 | # Get-UnityEncryption 2 | 3 | ## SYNOPSIS 4 | Information about Encryption. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityEncryption [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about Encryption. 14 | 15 | You need to have an active session with the array. 16 | 17 | ## EXAMPLES 18 | 19 | ### -------------------------- EXAMPLE 1 -------------------------- 20 | ``` 21 | Get-UnityEncryption 22 | ``` 23 | 24 | Retrieve Information about Encryption. 25 | 26 | ## PARAMETERS 27 | 28 | ### -session 29 | Specifies an UnitySession Object. 30 | 31 | ```yaml 32 | Type: Object 33 | Parameter Sets: (All) 34 | Aliases: 35 | 36 | Required: False 37 | Position: Named 38 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 39 | Accept pipeline input: False 40 | Accept wildcard characters: False 41 | ``` 42 | 43 | ### -ID 44 | Specifies the object ID. 45 | 46 | ```yaml 47 | Type: String[] 48 | Parameter Sets: (All) 49 | Aliases: 50 | 51 | Required: False 52 | Position: Named 53 | Default value: None 54 | Accept pipeline input: True (ByPropertyName, ByValue) 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ## INPUTS 59 | 60 | ## OUTPUTS 61 | 62 | ## NOTES 63 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 64 | 65 | ## RELATED LINKS 66 | 67 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 68 | 69 | -------------------------------------------------------------------------------- /docs/References/Get-UnityFastCache.md: -------------------------------------------------------------------------------- 1 | # Get-UnityFastCache 2 | 3 | ## SYNOPSIS 4 | View the FAST Cache parameters. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityFastCache [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | View the FAST Cache parameters. 14 | Physical deployments only. 15 | You need to have an active session with the array. 16 | 17 | ## EXAMPLES 18 | 19 | ### -------------------------- EXAMPLE 1 -------------------------- 20 | ``` 21 | Get-UnityFastCache 22 | ``` 23 | 24 | Retrieve information about Fast Cache. 25 | 26 | ### -------------------------- EXAMPLE 2 -------------------------- 27 | ``` 28 | Get-UnityFastCache -Name '200 GB SAS Flash 2' 29 | ``` 30 | 31 | Retrieves information about disk groups names '200 GB SAS Flash 2' 32 | 33 | ## PARAMETERS 34 | 35 | ### -session 36 | Specifies an UnitySession Object. 37 | 38 | ```yaml 39 | Type: Object 40 | Parameter Sets: (All) 41 | Aliases: 42 | 43 | Required: False 44 | Position: Named 45 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 46 | Accept pipeline input: False 47 | Accept wildcard characters: False 48 | ``` 49 | 50 | ### -ID 51 | Specifies the object ID. 52 | 53 | ```yaml 54 | Type: String[] 55 | Parameter Sets: (All) 56 | Aliases: 57 | 58 | Required: False 59 | Position: Named 60 | Default value: None 61 | Accept pipeline input: True (ByPropertyName, ByValue) 62 | Accept wildcard characters: False 63 | ``` 64 | 65 | ## INPUTS 66 | 67 | ## OUTPUTS 68 | 69 | ## NOTES 70 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 71 | 72 | ## RELATED LINKS 73 | 74 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 75 | 76 | -------------------------------------------------------------------------------- /docs/References/Get-UnityFeature.md: -------------------------------------------------------------------------------- 1 | # Get-UnityFeature 2 | 3 | ## SYNOPSIS 4 | Queries the EMC Unity array to retrieve informations about features. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityFeature [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityFeature [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Querries the EMC Unity array to retrieve informations about features. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityFeature 27 | ``` 28 | 29 | Retrieve information about all features 30 | 31 | ## PARAMETERS 32 | 33 | ### -session 34 | Specifies an UnitySession Object. 35 | 36 | ```yaml 37 | Type: Object 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: Named 43 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### -Name 49 | Specifies the object name. 50 | 51 | ```yaml 52 | Type: String[] 53 | Parameter Sets: Name 54 | Aliases: 55 | 56 | Required: False 57 | Position: Named 58 | Default value: None 59 | Accept pipeline input: True (ByPropertyName, ByValue) 60 | Accept wildcard characters: False 61 | ``` 62 | 63 | ### -ID 64 | Specifies the object ID. 65 | 66 | ```yaml 67 | Type: String[] 68 | Parameter Sets: ID 69 | Aliases: 70 | 71 | Required: False 72 | Position: Named 73 | Default value: None 74 | Accept pipeline input: True (ByPropertyName, ByValue) 75 | Accept wildcard characters: False 76 | ``` 77 | 78 | ## INPUTS 79 | 80 | ## OUTPUTS 81 | 82 | ## NOTES 83 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 84 | 85 | ## RELATED LINKS 86 | 87 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 88 | 89 | -------------------------------------------------------------------------------- /docs/References/Get-UnityFileDNSServer.md: -------------------------------------------------------------------------------- 1 | # Get-UnityFileDNSServer 2 | 3 | ## SYNOPSIS 4 | Information about File DNS Servers. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityFileDNSServer [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about File DNS Servers. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityFileDnsServer 21 | ``` 22 | 23 | Retrieve informations about all file dns servers with an active session. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | Specifies the object ID. 44 | 45 | ```yaml 46 | Type: String[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: Named 52 | Default value: None 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Get-UnityFileInterface.md: -------------------------------------------------------------------------------- 1 | # Get-UnityFileInterface 2 | 3 | ## SYNOPSIS 4 | Queries the EMC Unity array to retrieve informations about File Interfaces. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityFileInterface [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityFileInterface [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Queries the EMC Unity array to retrieve informations about File Interfaces. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityFileInterface 27 | ``` 28 | 29 | Retrieve information about all interfaces 30 | 31 | ## PARAMETERS 32 | 33 | ### -session 34 | Specifies an UnitySession Object. 35 | 36 | ```yaml 37 | Type: Object 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: Named 43 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### -Name 49 | Specifies the object name. 50 | 51 | ```yaml 52 | Type: String[] 53 | Parameter Sets: Name 54 | Aliases: 55 | 56 | Required: False 57 | Position: Named 58 | Default value: None 59 | Accept pipeline input: True (ByPropertyName, ByValue) 60 | Accept wildcard characters: False 61 | ``` 62 | 63 | ### -ID 64 | Specifies the object ID. 65 | 66 | ```yaml 67 | Type: String[] 68 | Parameter Sets: ID 69 | Aliases: 70 | 71 | Required: False 72 | Position: Named 73 | Default value: None 74 | Accept pipeline input: True (ByPropertyName, ByValue) 75 | Accept wildcard characters: False 76 | ``` 77 | 78 | ## INPUTS 79 | 80 | ## OUTPUTS 81 | 82 | ## NOTES 83 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 84 | 85 | ## RELATED LINKS 86 | 87 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 88 | 89 | -------------------------------------------------------------------------------- /docs/References/Get-UnityHostIPPort.md: -------------------------------------------------------------------------------- 1 | # Get-UnityHostIPPort 2 | 3 | ## SYNOPSIS 4 | View details about host IP Port configuration on the system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityHostIPPort [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | View details about host IP Port configuration on the system. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityHostIPPort 21 | ``` 22 | 23 | Retrieve information about all hosts 24 | 25 | ### -------------------------- EXAMPLE 2 -------------------------- 26 | ``` 27 | Get-UnityHostIPPort -ID 'ESX01' 28 | ``` 29 | 30 | Retrieves information about host IP Port named 'ESX01' 31 | 32 | ## PARAMETERS 33 | 34 | ### -session 35 | Specifies an UnitySession Object. 36 | 37 | ```yaml 38 | Type: Object 39 | Parameter Sets: (All) 40 | Aliases: 41 | 42 | Required: False 43 | Position: Named 44 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 45 | Accept pipeline input: False 46 | Accept wildcard characters: False 47 | ``` 48 | 49 | ### -ID 50 | Specifies the object ID. 51 | 52 | ```yaml 53 | Type: String[] 54 | Parameter Sets: (All) 55 | Aliases: 56 | 57 | Required: False 58 | Position: Named 59 | Default value: None 60 | Accept pipeline input: True (ByPropertyName, ByValue) 61 | Accept wildcard characters: False 62 | ``` 63 | 64 | ## INPUTS 65 | 66 | ## OUTPUTS 67 | 68 | ## NOTES 69 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 70 | 71 | ## RELATED LINKS 72 | 73 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 74 | 75 | -------------------------------------------------------------------------------- /docs/References/Get-UnityIPPort.md: -------------------------------------------------------------------------------- 1 | # Get-UnityIPPort 2 | 3 | ## SYNOPSIS 4 | Queries the EMC Unity array to retrieve informations about IP Ports. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityIPPort [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityIPPort [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Queries the EMC Unity array to retrieve informations about IP Ports. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityIpPort 27 | ``` 28 | 29 | Retrieve information about all IP Ports 30 | 31 | ## PARAMETERS 32 | 33 | ### -session 34 | Specifies an UnitySession Object. 35 | 36 | ```yaml 37 | Type: Object 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: Named 43 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### -Name 49 | Specifies the object name. 50 | 51 | ```yaml 52 | Type: String[] 53 | Parameter Sets: Name 54 | Aliases: 55 | 56 | Required: False 57 | Position: Named 58 | Default value: None 59 | Accept pipeline input: True (ByPropertyName, ByValue) 60 | Accept wildcard characters: False 61 | ``` 62 | 63 | ### -ID 64 | Specifies the object ID. 65 | 66 | ```yaml 67 | Type: String[] 68 | Parameter Sets: ID 69 | Aliases: 70 | 71 | Required: False 72 | Position: Named 73 | Default value: None 74 | Accept pipeline input: True (ByPropertyName, ByValue) 75 | Accept wildcard characters: False 76 | ``` 77 | 78 | ## INPUTS 79 | 80 | ## OUTPUTS 81 | 82 | ## NOTES 83 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 84 | 85 | ## RELATED LINKS 86 | 87 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 88 | 89 | -------------------------------------------------------------------------------- /docs/References/Get-UnityInstalledSoftwareVersion.md: -------------------------------------------------------------------------------- 1 | # Get-UnityInstalledSoftwareVersion 2 | 3 | ## SYNOPSIS 4 | Information about installed system software and language packs in the VNXe system. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityInstalledSoftwareVersion [-session ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityInstalledSoftwareVersion [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Information about installed system software and language packs in the VNXe system. 20 | 21 | You need to have an active session with the array. 22 | 23 | ## EXAMPLES 24 | 25 | ### -------------------------- EXAMPLE 1 -------------------------- 26 | ``` 27 | Get-UnityInstalledSoftwareVersion 28 | ``` 29 | 30 | Retrieve information about all UnityinstalledSoftwareVersion 31 | 32 | ### -------------------------- EXAMPLE 2 -------------------------- 33 | ``` 34 | Get-UnityInstalledSoftwareVersion -ID 'id01' 35 | ``` 36 | 37 | Retrieves information about a specific UnityinstalledSoftwareVersion 38 | 39 | ## PARAMETERS 40 | 41 | ### -session 42 | Specifies an UnitySession Object. 43 | 44 | ```yaml 45 | Type: Object 46 | Parameter Sets: (All) 47 | Aliases: 48 | 49 | Required: False 50 | Position: Named 51 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 52 | Accept pipeline input: False 53 | Accept wildcard characters: False 54 | ``` 55 | 56 | ### -ID 57 | Specifies the object ID. 58 | 59 | ```yaml 60 | Type: String[] 61 | Parameter Sets: ID 62 | Aliases: 63 | 64 | Required: False 65 | Position: Named 66 | Default value: None 67 | Accept pipeline input: True (ByPropertyName, ByValue) 68 | Accept wildcard characters: False 69 | ``` 70 | 71 | ## INPUTS 72 | 73 | ## OUTPUTS 74 | 75 | ## NOTES 76 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 77 | 78 | ## RELATED LINKS 79 | 80 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 81 | 82 | -------------------------------------------------------------------------------- /docs/References/Get-UnityIpInterface.md: -------------------------------------------------------------------------------- 1 | # Get-UnityIpInterface 2 | 3 | ## SYNOPSIS 4 | Information about network interfaces in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityIpInterface [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about network interfaces in the storage system. 14 | Network interfaces enable and control access between the system, network, and configured hosts. 15 | 16 | You need to have an active session with the array. 17 | 18 | ## EXAMPLES 19 | 20 | ### -------------------------- EXAMPLE 1 -------------------------- 21 | ``` 22 | Get-UnityIpInterface 23 | ``` 24 | 25 | Retrieve informations about all the management interface. 26 | 27 | ## PARAMETERS 28 | 29 | ### -session 30 | Specifies an UnitySession Object. 31 | 32 | ```yaml 33 | Type: Object 34 | Parameter Sets: (All) 35 | Aliases: 36 | 37 | Required: False 38 | Position: Named 39 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 40 | Accept pipeline input: False 41 | Accept wildcard characters: False 42 | ``` 43 | 44 | ### -ID 45 | Specifies the object ID. 46 | 47 | ```yaml 48 | Type: String[] 49 | Parameter Sets: (All) 50 | Aliases: 51 | 52 | Required: False 53 | Position: Named 54 | Default value: None 55 | Accept pipeline input: True (ByPropertyName, ByValue) 56 | Accept wildcard characters: False 57 | ``` 58 | 59 | ## INPUTS 60 | 61 | ## OUTPUTS 62 | 63 | ## NOTES 64 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 65 | 66 | ## RELATED LINKS 67 | 68 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 69 | 70 | -------------------------------------------------------------------------------- /docs/References/Get-UnityIscsiPortal.md: -------------------------------------------------------------------------------- 1 | # Get-UnityIscsiPortal 2 | 3 | ## SYNOPSIS 4 | Information about the iSCSI portals in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityIscsiPortal [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about the iSCSI portals in the storage system. 14 | iSCSI portals are used for controlling access to iSCSI storage 15 | You need to have an active session with the array. 16 | 17 | ## EXAMPLES 18 | 19 | ### -------------------------- EXAMPLE 1 -------------------------- 20 | ``` 21 | Get-UnityIscsiPortal 22 | ``` 23 | 24 | Retrieve informations about all the iSCSI portal. 25 | 26 | ## PARAMETERS 27 | 28 | ### -session 29 | Specifies an UnitySession Object. 30 | 31 | ```yaml 32 | Type: Object 33 | Parameter Sets: (All) 34 | Aliases: 35 | 36 | Required: False 37 | Position: Named 38 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 39 | Accept pipeline input: False 40 | Accept wildcard characters: False 41 | ``` 42 | 43 | ### -ID 44 | Specifies the object ID. 45 | 46 | ```yaml 47 | Type: String[] 48 | Parameter Sets: (All) 49 | Aliases: 50 | 51 | Required: False 52 | Position: Named 53 | Default value: None 54 | Accept pipeline input: True (ByPropertyName, ByValue) 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ## INPUTS 59 | 60 | ## OUTPUTS 61 | 62 | ## NOTES 63 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 64 | 65 | ## RELATED LINKS 66 | 67 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 68 | 69 | -------------------------------------------------------------------------------- /docs/References/Get-UnityLicense.md: -------------------------------------------------------------------------------- 1 | # Get-UnityLicense 2 | 3 | ## SYNOPSIS 4 | Queries the EMC Unity array to retrieve informations about licenses. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityLicense [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityLicense [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Querries the EMC Unity array to retrieve informations about licenses. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityLicense 27 | ``` 28 | 29 | Retrieve information about all licenses 30 | 31 | ## PARAMETERS 32 | 33 | ### -session 34 | Specifies an UnitySession Object. 35 | 36 | ```yaml 37 | Type: Object 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: Named 43 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### -Name 49 | Specifies the object name. 50 | 51 | ```yaml 52 | Type: String[] 53 | Parameter Sets: Name 54 | Aliases: 55 | 56 | Required: False 57 | Position: Named 58 | Default value: None 59 | Accept pipeline input: True (ByPropertyName, ByValue) 60 | Accept wildcard characters: False 61 | ``` 62 | 63 | ### -ID 64 | Specifies the object ID. 65 | 66 | ```yaml 67 | Type: String[] 68 | Parameter Sets: ID 69 | Aliases: 70 | 71 | Required: False 72 | Position: Named 73 | Default value: None 74 | Accept pipeline input: True (ByPropertyName, ByValue) 75 | Accept wildcard characters: False 76 | ``` 77 | 78 | ## INPUTS 79 | 80 | ## OUTPUTS 81 | 82 | ## NOTES 83 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 84 | 85 | ## RELATED LINKS 86 | 87 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 88 | 89 | -------------------------------------------------------------------------------- /docs/References/Get-UnityMetricQueryResult.md: -------------------------------------------------------------------------------- 1 | # Get-UnityMetricQueryResult 2 | 3 | ## SYNOPSIS 4 | A set of values for one or more metrics for a given period of time. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityMetricQueryResult [[-session] ] [-queryId] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | A set of values for one or more metrics for a given period of time. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityMetricQueryResult -queryId 5 21 | ``` 22 | 23 | Retrieve informations about query who's ID is 5. 24 | 25 | ### -------------------------- EXAMPLE 2 -------------------------- 26 | ``` 27 | $query = New-UnityMetricRealTimeQuery -paths 'sp.*.cpu.core.*.busyTicks' -interval 30 28 | ``` 29 | 30 | $query | Get-UnityMetricQueryResult 31 | 32 | Get query results using pipeline. 33 | 34 | ## PARAMETERS 35 | 36 | ### -session 37 | Specifies an UnitySession Object. 38 | 39 | ```yaml 40 | Type: Object 41 | Parameter Sets: (All) 42 | Aliases: 43 | 44 | Required: False 45 | Position: 1 46 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 47 | Accept pipeline input: False 48 | Accept wildcard characters: False 49 | ``` 50 | 51 | ### -queryId 52 | Queries ID or object. 53 | 54 | ```yaml 55 | Type: Object[] 56 | Parameter Sets: (All) 57 | Aliases: 58 | 59 | Required: True 60 | Position: 2 61 | Default value: None 62 | Accept pipeline input: True (ByPropertyName, ByValue) 63 | Accept wildcard characters: False 64 | ``` 65 | 66 | ## INPUTS 67 | 68 | ## OUTPUTS 69 | 70 | ## NOTES 71 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 72 | 73 | ## RELATED LINKS 74 | 75 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 76 | 77 | -------------------------------------------------------------------------------- /docs/References/Get-UnityMetricRealTimeQuery.md: -------------------------------------------------------------------------------- 1 | # Get-UnityMetricRealTimeQuery 2 | 3 | ## SYNOPSIS 4 | Information about real times metric queries. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityMetricRealTimeQuery [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about real times metric queries. 14 | It represents a query to obtain real-time information for one or more metrics, including a specified sampling frequency. 15 | You need to have an active session with the array. 16 | 17 | ## EXAMPLES 18 | 19 | ### -------------------------- EXAMPLE 1 -------------------------- 20 | ``` 21 | Get-UnityMetricRealTimeQuery 22 | ``` 23 | 24 | Retrieve informations about all queries. 25 | 26 | ## PARAMETERS 27 | 28 | ### -session 29 | Specifies an UnitySession Object. 30 | 31 | ```yaml 32 | Type: Object 33 | Parameter Sets: (All) 34 | Aliases: 35 | 36 | Required: False 37 | Position: Named 38 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 39 | Accept pipeline input: False 40 | Accept wildcard characters: False 41 | ``` 42 | 43 | ### -ID 44 | Queries ID. 45 | 46 | ```yaml 47 | Type: String[] 48 | Parameter Sets: (All) 49 | Aliases: 50 | 51 | Required: False 52 | Position: Named 53 | Default value: None 54 | Accept pipeline input: True (ByPropertyName, ByValue) 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ## INPUTS 59 | 60 | ## OUTPUTS 61 | 62 | ## NOTES 63 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 64 | 65 | ## RELATED LINKS 66 | 67 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 68 | 69 | -------------------------------------------------------------------------------- /docs/References/Get-UnityMetricValue.md: -------------------------------------------------------------------------------- 1 | # Get-UnityMetricValue 2 | 3 | ## SYNOPSIS 4 | Historical values for requested metrics. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityMetricValue [[-session] ] [[-Path] ] [[-Count] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Historical values for requested metrics. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityMetricValue -Path 'sp.*.cpu.summary.utilization' 21 | ``` 22 | 23 | Retrieves information about metrics who's path is 'sp.*.cpu.summary.utilization' 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: 1 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -Path 43 | Stat path for the metric. 44 | A stat path identifies the metric's location in the stats namespace. 45 | 46 | ```yaml 47 | Type: Object[] 48 | Parameter Sets: (All) 49 | Aliases: 50 | 51 | Required: False 52 | Position: 2 53 | Default value: None 54 | Accept pipeline input: True (ByPropertyName, ByValue) 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ### -Count 59 | Specifies the number of samples to display. 60 | 61 | ```yaml 62 | Type: Int64 63 | Parameter Sets: (All) 64 | Aliases: 65 | 66 | Required: False 67 | Position: 3 68 | Default value: 20 69 | Accept pipeline input: False 70 | Accept wildcard characters: False 71 | ``` 72 | 73 | ## INPUTS 74 | 75 | ## OUTPUTS 76 | 77 | ## NOTES 78 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 79 | 80 | ## RELATED LINKS 81 | 82 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 83 | 84 | -------------------------------------------------------------------------------- /docs/References/Get-UnityMgmtInterface.md: -------------------------------------------------------------------------------- 1 | # Get-UnityMgmtInterface 2 | 3 | ## SYNOPSIS 4 | Information about management interfaces in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityMgmtInterface [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about management interfaces in the storage system. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityMgmtInterface 21 | ``` 22 | 23 | Retrieve informations about all the management interface. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | Specifies the object ID. 44 | 45 | ```yaml 46 | Type: String[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: Named 52 | Default value: None 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Get-UnityMgmtInterfaceSetting.md: -------------------------------------------------------------------------------- 1 | # Get-UnityMgmtInterfaceSetting 2 | 3 | ## SYNOPSIS 4 | Informations about global settings for the management interfaces. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityMgmtInterfaceSetting [[-session] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Informations about global settings for the management interfaces. 14 | 15 | You need to have an active session with the array. 16 | 17 | ## EXAMPLES 18 | 19 | ### -------------------------- EXAMPLE 1 -------------------------- 20 | ``` 21 | Get-UnityMgmtInterfaceSetting 22 | ``` 23 | 24 | Retrieve informations about global settings for the management interfaces. 25 | 26 | ## PARAMETERS 27 | 28 | ### -session 29 | Specifies an UnitySession Object. 30 | 31 | ```yaml 32 | Type: Object 33 | Parameter Sets: (All) 34 | Aliases: 35 | 36 | Required: False 37 | Position: 1 38 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 39 | Accept pipeline input: False 40 | Accept wildcard characters: False 41 | ``` 42 | 43 | ## INPUTS 44 | 45 | ## OUTPUTS 46 | 47 | ## NOTES 48 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 49 | 50 | ## RELATED LINKS 51 | 52 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 53 | 54 | -------------------------------------------------------------------------------- /docs/References/Get-UnityNFSServer.md: -------------------------------------------------------------------------------- 1 | # Get-UnityNFSServer 2 | 3 | ## SYNOPSIS 4 | Information about the NFS Servers in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityNFSServer [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about the NFS Servers in the storage system. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityNFSServer 21 | ``` 22 | 23 | Retrieve informations about all the NFS Servers. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | Specifies the object ID. 44 | 45 | ```yaml 46 | Type: String[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: Named 52 | Default value: None 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Get-UnityNTPServer.md: -------------------------------------------------------------------------------- 1 | # Get-UnityNTPServer 2 | 3 | ## SYNOPSIS 4 | Information about NTP Servers. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnityNTPServer [[-session] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about NTP Servers. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnityNTPServer 21 | ``` 22 | 23 | Retrieve informations about the NTP Servers. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: 1 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ## INPUTS 43 | 44 | ## OUTPUTS 45 | 46 | ## NOTES 47 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 48 | 49 | ## RELATED LINKS 50 | 51 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 52 | 53 | -------------------------------------------------------------------------------- /docs/References/Get-UnitySMTPServer.md: -------------------------------------------------------------------------------- 1 | # Get-UnitySMTPServer 2 | 3 | ## SYNOPSIS 4 | Information about the SMTP servers in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnitySMTPServer [-session ] [-ID ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Information about the SMTP servers in the storage system. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Get-UnitySMTPServer 21 | ``` 22 | 23 | Retrieve informations about all the SMTP servers. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specifies an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | Specifies the object ID. 44 | 45 | ```yaml 46 | Type: String[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: Named 52 | Default value: None 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Get-UnityServiceInfo.md: -------------------------------------------------------------------------------- 1 | # Get-UnityServiceInfo 2 | 3 | ## SYNOPSIS 4 | Service-related storage system information. 5 | You can use this information for servicing the storage system. 6 | 7 | ## SYNTAX 8 | 9 | ``` 10 | Get-UnityServiceInfo [-session ] [-ID ] 11 | ``` 12 | 13 | ## DESCRIPTION 14 | Service-related storage system information. 15 | You can use this information for servicing the storage system. 16 | You need to have an active session with the array. 17 | 18 | ## EXAMPLES 19 | 20 | ### -------------------------- EXAMPLE 1 -------------------------- 21 | ``` 22 | Get-UnityServiceInfo 23 | ``` 24 | 25 | Retrieve information about all UnityserviceInfo 26 | 27 | ### -------------------------- EXAMPLE 2 -------------------------- 28 | ``` 29 | Get-UnityServiceInfo -ID 'id01' 30 | ``` 31 | 32 | Retrieves information about a specific UnityserviceInfo 33 | 34 | ## PARAMETERS 35 | 36 | ### -session 37 | Specifies an UnitySession Object. 38 | 39 | ```yaml 40 | Type: Object 41 | Parameter Sets: (All) 42 | Aliases: 43 | 44 | Required: False 45 | Position: Named 46 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 47 | Accept pipeline input: False 48 | Accept wildcard characters: False 49 | ``` 50 | 51 | ### -ID 52 | Specifies the object ID. 53 | 54 | ```yaml 55 | Type: String[] 56 | Parameter Sets: (All) 57 | Aliases: 58 | 59 | Required: False 60 | Position: Named 61 | Default value: None 62 | Accept pipeline input: True (ByPropertyName, ByValue) 63 | Accept wildcard characters: False 64 | ``` 65 | 66 | ## INPUTS 67 | 68 | ## OUTPUTS 69 | 70 | ## NOTES 71 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 72 | 73 | ## RELATED LINKS 74 | 75 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 76 | 77 | -------------------------------------------------------------------------------- /docs/References/Get-UnitySession.md: -------------------------------------------------------------------------------- 1 | # Get-UnitySession 2 | 3 | ## SYNOPSIS 4 | List the existing sessions. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Get-UnitySession [[-Server] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | List the existing sessions. 14 | 15 | ## EXAMPLES 16 | 17 | ### -------------------------- EXAMPLE 1 -------------------------- 18 | ``` 19 | Get-UnitySession 20 | ``` 21 | 22 | List all the existing sessions. 23 | 24 | ### -------------------------- EXAMPLE 2 -------------------------- 25 | ``` 26 | Get-UnitySession -Server 192.0.2.1' 27 | ``` 28 | 29 | Lists sessions connected the the array '192.0.2.1' 30 | 31 | ## PARAMETERS 32 | 33 | ### -Server 34 | IP or FQDN of the Unity array. 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 1 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ## INPUTS 49 | 50 | ## OUTPUTS 51 | 52 | ## NOTES 53 | Written by Erwan Quelin under MIT licence 54 | 55 | ## RELATED LINKS 56 | 57 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 58 | 59 | -------------------------------------------------------------------------------- /docs/References/Get-UnitySsc.md: -------------------------------------------------------------------------------- 1 | # Get-UnitySsc 2 | 3 | ## SYNOPSIS 4 | Information about System Status Cards (SSCs) in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ### ID (Default) 9 | ``` 10 | Get-UnitySsc [-session ] [-ID ] 11 | ``` 12 | 13 | ### Name 14 | ``` 15 | Get-UnitySsc [-session ] [-Name ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Information about System Status Cards (SSCs) in the storage system. 20 | Applies to physical deployments only. 21 | 22 | You need to have an active session with the array. 23 | 24 | ## EXAMPLES 25 | 26 | ### -------------------------- EXAMPLE 1 -------------------------- 27 | ``` 28 | Get-UnitySsc 29 | ``` 30 | 31 | Retrieve Information about System Status Cards (SSCs) in the storage system. 32 | 33 | ## PARAMETERS 34 | 35 | ### -session 36 | Specifies an UnitySession Object. 37 | 38 | ```yaml 39 | Type: Object 40 | Parameter Sets: (All) 41 | Aliases: 42 | 43 | Required: False 44 | Position: Named 45 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 46 | Accept pipeline input: False 47 | Accept wildcard characters: False 48 | ``` 49 | 50 | ### -Name 51 | Specifies the object name. 52 | 53 | ```yaml 54 | Type: String[] 55 | Parameter Sets: Name 56 | Aliases: 57 | 58 | Required: False 59 | Position: Named 60 | Default value: None 61 | Accept pipeline input: True (ByPropertyName, ByValue) 62 | Accept wildcard characters: False 63 | ``` 64 | 65 | ### -ID 66 | Specifies the object ID. 67 | 68 | ```yaml 69 | Type: String[] 70 | Parameter Sets: ID 71 | Aliases: 72 | 73 | Required: False 74 | Position: Named 75 | Default value: None 76 | Accept pipeline input: True (ByPropertyName, ByValue) 77 | Accept wildcard characters: False 78 | ``` 79 | 80 | ## INPUTS 81 | 82 | ## OUTPUTS 83 | 84 | ## NOTES 85 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 86 | 87 | ## RELATED LINKS 88 | 89 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 90 | 91 | -------------------------------------------------------------------------------- /docs/References/Get-UnitySsd.md: -------------------------------------------------------------------------------- 1 | # Get-UnitySsd 2 | 3 | ## SYNOPSIS 4 | Information about internal Flash-based Solid State Disks (SSDs, mSATAs) in the storage system. 5 | 6 | ## SYNTAX 7 | 8 | ### ID (Default) 9 | ``` 10 | Get-UnitySsd [-session ] [-ID ] 11 | ``` 12 | 13 | ### Name 14 | ``` 15 | Get-UnitySsd [-session ] [-Name ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Information about internal Flash-based Solid State Disks (SSDs, mSATAs) in the storage system. 20 | Applies to physical deployments only. 21 | 22 | You need to have an active session with the array. 23 | 24 | ## EXAMPLES 25 | 26 | ### -------------------------- EXAMPLE 1 -------------------------- 27 | ``` 28 | Get-UnitySsd 29 | ``` 30 | 31 | Retrieve Information about SSD. 32 | 33 | ## PARAMETERS 34 | 35 | ### -session 36 | Specifies an UnitySession Object. 37 | 38 | ```yaml 39 | Type: Object 40 | Parameter Sets: (All) 41 | Aliases: 42 | 43 | Required: False 44 | Position: Named 45 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 46 | Accept pipeline input: False 47 | Accept wildcard characters: False 48 | ``` 49 | 50 | ### -Name 51 | Specifies the object name. 52 | 53 | ```yaml 54 | Type: String[] 55 | Parameter Sets: Name 56 | Aliases: 57 | 58 | Required: False 59 | Position: Named 60 | Default value: None 61 | Accept pipeline input: True (ByPropertyName, ByValue) 62 | Accept wildcard characters: False 63 | ``` 64 | 65 | ### -ID 66 | Specifies the object ID. 67 | 68 | ```yaml 69 | Type: String[] 70 | Parameter Sets: ID 71 | Aliases: 72 | 73 | Required: False 74 | Position: Named 75 | Default value: None 76 | Accept pipeline input: True (ByPropertyName, ByValue) 77 | Accept wildcard characters: False 78 | ``` 79 | 80 | ## INPUTS 81 | 82 | ## OUTPUTS 83 | 84 | ## NOTES 85 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 86 | 87 | ## RELATED LINKS 88 | 89 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 90 | 91 | -------------------------------------------------------------------------------- /docs/References/Get-UnityStorageProcessor.md: -------------------------------------------------------------------------------- 1 | # Get-UnityStorageProcessor 2 | 3 | ## SYNOPSIS 4 | Information about Storage Processor. 5 | 6 | ## SYNTAX 7 | 8 | ### ID (Default) 9 | ``` 10 | Get-UnityStorageProcessor [-session ] [-ID ] 11 | ``` 12 | 13 | ### Name 14 | ``` 15 | Get-UnityStorageProcessor [-session ] [-Name ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | Information about Storage Processor. 20 | 21 | You need to have an active session with the array. 22 | 23 | ## EXAMPLES 24 | 25 | ### -------------------------- EXAMPLE 1 -------------------------- 26 | ``` 27 | Get-UnityStorageProcessor 28 | ``` 29 | 30 | Retrieve Information about Storage Processor. 31 | 32 | ## PARAMETERS 33 | 34 | ### -session 35 | Specifies an UnitySession Object. 36 | 37 | ```yaml 38 | Type: Object 39 | Parameter Sets: (All) 40 | Aliases: 41 | 42 | Required: False 43 | Position: Named 44 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 45 | Accept pipeline input: False 46 | Accept wildcard characters: False 47 | ``` 48 | 49 | ### -Name 50 | Specifies the object name. 51 | 52 | ```yaml 53 | Type: String[] 54 | Parameter Sets: Name 55 | Aliases: 56 | 57 | Required: False 58 | Position: Named 59 | Default value: None 60 | Accept pipeline input: True (ByPropertyName, ByValue) 61 | Accept wildcard characters: False 62 | ``` 63 | 64 | ### -ID 65 | Specifies the object ID. 66 | 67 | ```yaml 68 | Type: String[] 69 | Parameter Sets: ID 70 | Aliases: 71 | 72 | Required: False 73 | Position: Named 74 | Default value: None 75 | Accept pipeline input: True (ByPropertyName, ByValue) 76 | Accept wildcard characters: False 77 | ``` 78 | 79 | ## INPUTS 80 | 81 | ## OUTPUTS 82 | 83 | ## NOTES 84 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 85 | 86 | ## RELATED LINKS 87 | 88 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 89 | 90 | -------------------------------------------------------------------------------- /docs/References/Get-UnityVM.md: -------------------------------------------------------------------------------- 1 | # Get-UnityVM 2 | 3 | ## SYNOPSIS 4 | View details about virtual machines. 5 | 6 | ## SYNTAX 7 | 8 | ### Name (Default) 9 | ``` 10 | Get-UnityVM [-session ] [-Name ] 11 | ``` 12 | 13 | ### ID 14 | ``` 15 | Get-UnityVM [-session ] [-ID ] 16 | ``` 17 | 18 | ## DESCRIPTION 19 | View details about virtual machines. 20 | You need to have an active session with the array. 21 | 22 | ## EXAMPLES 23 | 24 | ### -------------------------- EXAMPLE 1 -------------------------- 25 | ``` 26 | Get-UnityVM 27 | ``` 28 | 29 | Retrieve information about all hosts 30 | 31 | ### -------------------------- EXAMPLE 2 -------------------------- 32 | ``` 33 | Get-UnityVM -Name 'VM01' 34 | ``` 35 | 36 | Retrieves information about VM named 'VM01' 37 | 38 | ## PARAMETERS 39 | 40 | ### -session 41 | Specifies an UnitySession Object. 42 | 43 | ```yaml 44 | Type: Object 45 | Parameter Sets: (All) 46 | Aliases: 47 | 48 | Required: False 49 | Position: Named 50 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 51 | Accept pipeline input: False 52 | Accept wildcard characters: False 53 | ``` 54 | 55 | ### -Name 56 | Specifies the object name. 57 | 58 | ```yaml 59 | Type: String[] 60 | Parameter Sets: Name 61 | Aliases: 62 | 63 | Required: False 64 | Position: Named 65 | Default value: None 66 | Accept pipeline input: True (ByPropertyName, ByValue) 67 | Accept wildcard characters: False 68 | ``` 69 | 70 | ### -ID 71 | Specifies the object ID. 72 | 73 | ```yaml 74 | Type: String[] 75 | Parameter Sets: ID 76 | Aliases: 77 | 78 | Required: False 79 | Position: Named 80 | Default value: None 81 | Accept pipeline input: True (ByPropertyName, ByValue) 82 | Accept wildcard characters: False 83 | ``` 84 | 85 | ## INPUTS 86 | 87 | ## OUTPUTS 88 | 89 | ## NOTES 90 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 91 | 92 | ## RELATED LINKS 93 | 94 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 95 | 96 | -------------------------------------------------------------------------------- /docs/References/Get-UnityVMwareNasPEServer.md: -------------------------------------------------------------------------------- 1 | # Get-UnityVMwareNasPEServer 2 | 3 | ## SYNOPSIS 4 | A resource representing NAS VMware Protocol Endpoint Server. 5 | Only one instance per NAS Server can be created. 6 | 7 | ## SYNTAX 8 | 9 | ### Name (Default) 10 | ``` 11 | Get-UnityVMwareNasPEServer [-session ] 12 | ``` 13 | 14 | ### ID 15 | ``` 16 | Get-UnityVMwareNasPEServer [-session ] [-ID ] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | A resource representing NAS VMware Protocol Endpoint Server. 21 | Only one instance per NAS Server can be created. 22 | 23 | You need to have an active session with the array. 24 | 25 | ## EXAMPLES 26 | 27 | ### -------------------------- EXAMPLE 1 -------------------------- 28 | ``` 29 | Get-UnityVMwareNasPEServer 30 | ``` 31 | 32 | Retrieve information about all UnityvmwareNasPEServer 33 | 34 | ### -------------------------- EXAMPLE 2 -------------------------- 35 | ``` 36 | Get-UnityVMwareNasPEServer -ID 'id01' 37 | ``` 38 | 39 | Retrieves information about a specific UnityvmwareNasPEServer 40 | 41 | ## PARAMETERS 42 | 43 | ### -session 44 | Specifies an UnitySession Object. 45 | 46 | ```yaml 47 | Type: Object 48 | Parameter Sets: (All) 49 | Aliases: 50 | 51 | Required: False 52 | Position: Named 53 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 54 | Accept pipeline input: False 55 | Accept wildcard characters: False 56 | ``` 57 | 58 | ### -ID 59 | Specifies the object ID. 60 | 61 | ```yaml 62 | Type: String[] 63 | Parameter Sets: ID 64 | Aliases: 65 | 66 | Required: False 67 | Position: Named 68 | Default value: None 69 | Accept pipeline input: True (ByPropertyName, ByValue) 70 | Accept wildcard characters: False 71 | ``` 72 | 73 | ## INPUTS 74 | 75 | ## OUTPUTS 76 | 77 | ## NOTES 78 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 79 | 80 | ## RELATED LINKS 81 | 82 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 83 | 84 | -------------------------------------------------------------------------------- /docs/References/Get-UnityX509Certificate.md: -------------------------------------------------------------------------------- 1 | # Get-UnityX509Certificate 2 | 3 | ## SYNOPSIS 4 | Information about the X.509 certificates installed on the storage system. 5 | The X.509 certificate format is described in RFC 5280. 6 | 7 | ## SYNTAX 8 | 9 | ``` 10 | Get-UnityX509Certificate [-session ] [-ID ] 11 | ``` 12 | 13 | ## DESCRIPTION 14 | Information about the X.509 certificates installed on the storage system. 15 | The X.509 certificate format is described in RFC 5280. 16 | 17 | You need to have an active session with the array. 18 | 19 | ## EXAMPLES 20 | 21 | ### -------------------------- EXAMPLE 1 -------------------------- 22 | ``` 23 | Get-UnityX509Certificate 24 | ``` 25 | 26 | Retrieve information about all Unityx509Certificate 27 | 28 | ### -------------------------- EXAMPLE 2 -------------------------- 29 | ``` 30 | Get-UnityX509Certificate -ID 'id01' 31 | ``` 32 | 33 | Retrieves information about a specific Unityx509Certificate 34 | 35 | ## PARAMETERS 36 | 37 | ### -session 38 | Specifies an UnitySession Object. 39 | 40 | ```yaml 41 | Type: Object 42 | Parameter Sets: (All) 43 | Aliases: 44 | 45 | Required: False 46 | Position: Named 47 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 48 | Accept pipeline input: False 49 | Accept wildcard characters: False 50 | ``` 51 | 52 | ### -ID 53 | Specifies the object ID. 54 | 55 | ```yaml 56 | Type: String[] 57 | Parameter Sets: (All) 58 | Aliases: 59 | 60 | Required: False 61 | Position: Named 62 | Default value: None 63 | Accept pipeline input: True (ByPropertyName, ByValue) 64 | Accept wildcard characters: False 65 | ``` 66 | 67 | ## INPUTS 68 | 69 | ## OUTPUTS 70 | 71 | ## NOTES 72 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 73 | 74 | ## RELATED LINKS 75 | 76 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 77 | 78 | -------------------------------------------------------------------------------- /docs/References/Test-UnityEmailAlert.md: -------------------------------------------------------------------------------- 1 | # Test-UnityEmailAlert 2 | 3 | ## SYNOPSIS 4 | Test email alert notification by sending a test alert to all configured email destinations. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Test-UnityEmailAlert [-session ] [[-ID] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Test email alert notification by sending a test alert to all configured email destinations. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Test-UnityEmailAlert 21 | ``` 22 | 23 | Test email alert notification by sending a test alert to all configured email destinations. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specify an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | ID or Object of a Alert Config.. 44 | 45 | ```yaml 46 | Type: Object[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: 1 52 | Default value: 0 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Test-UnityUCAlert.md: -------------------------------------------------------------------------------- 1 | # Test-UnityUCAlert 2 | 3 | ## SYNOPSIS 4 | Test Unisphere Central alert notification by sending a test alert to a Unisphere Central destination. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Test-UnityUCAlert [-session ] [[-ID] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Test Unisphere Central alert notification by sending a test alert to a Unisphere Central destination. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Test-UnityUCAlert 21 | ``` 22 | 23 | Test Unisphere Central alert notification by sending a test alert to a Unisphere Central destination. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specify an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | ID or Object of a Alert Config.. 44 | 45 | ```yaml 46 | Type: Object[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: 1 52 | Default value: 0 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/References/Test-UnityUIAlert.md: -------------------------------------------------------------------------------- 1 | # Test-UnityUIAlert 2 | 3 | ## SYNOPSIS 4 | Test GUI alert notification by sending a test alert to all open CEM GUIs. 5 | 6 | ## SYNTAX 7 | 8 | ``` 9 | Test-UnityUIAlert [-session ] [[-ID] ] 10 | ``` 11 | 12 | ## DESCRIPTION 13 | Test GUI alert notification by sending a test alert to all open CEM GUIs. 14 | You need to have an active session with the array. 15 | 16 | ## EXAMPLES 17 | 18 | ### -------------------------- EXAMPLE 1 -------------------------- 19 | ``` 20 | Test-UnityUIAlert 21 | ``` 22 | 23 | Test GUI alert notification by sending a test alert to all open CEM GUIs. 24 | 25 | ## PARAMETERS 26 | 27 | ### -session 28 | Specify an UnitySession Object. 29 | 30 | ```yaml 31 | Type: Object 32 | Parameter Sets: (All) 33 | Aliases: 34 | 35 | Required: False 36 | Position: Named 37 | Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}) 38 | Accept pipeline input: False 39 | Accept wildcard characters: False 40 | ``` 41 | 42 | ### -ID 43 | ID or Object of a Alert Config.. 44 | 45 | ```yaml 46 | Type: Object[] 47 | Parameter Sets: (All) 48 | Aliases: 49 | 50 | Required: False 51 | Position: 1 52 | Default value: 0 53 | Accept pipeline input: True (ByPropertyName, ByValue) 54 | Accept wildcard characters: False 55 | ``` 56 | 57 | ## INPUTS 58 | 59 | ## OUTPUTS 60 | 61 | ## NOTES 62 | Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE 63 | 64 | ## RELATED LINKS 65 | 66 | [https://github.com/equelin/Unity-Powershell](https://github.com/equelin/Unity-Powershell) 67 | 68 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | # Unity-Powershell documentation 2 | 3 | Welcome to the documentation page of Unity-Powershell! 4 | 5 | Unity-Powershell is a PowerShell module for managing EMC Unity arrays (physical or virtual). Unity-Powershell is a member of the DevHigh5 program from [{code} by Dell EMC(tm)](https://github.com/codedellemc/codedellemc.github.io/wiki/DevHigh5-Program-Overview-and-FAQ). 6 | 7 | The Unity-Powershell project is hosted on [GitHub](https://github.com/equelin/Unity-Powershell) and can also be found on the [Powershell Gallery](https://www.powershellgallery.com/packages/Unity-Powershell/). 8 | 9 | ### Functionalities 10 | 11 | With this module (version 0.11.0) you can manage: 12 | 13 | - System (DNS,NTP...), 14 | - Pools (Virtual and physical deployment), 15 | - Fast Cache (Physical deployment only), 16 | - LUN (block), 17 | - VMware LUN (block and NFS), 18 | - NASServer, 19 | - Filesystem, 20 | - CIFS Server and Shares, 21 | - NFS Server and Shares, 22 | - vCenter and ESXi servers, 23 | - iSCSI parameters, 24 | - Snapshots and snapshots schedules. 25 | 26 | More functionalities will be added later. 27 | 28 | ### Usage 29 | 30 | This module try to mimic VMware PowerCLI usage. All resources management functions are available with the powershell's verbs `GET`, `NEW`, `SET` and `REMOVE`. 31 | 32 | For example, you can manage Pools with the following commands: 33 | 34 | - `Get-UnityPool` 35 | - `New-UnityPool` 36 | - `Set-UnityPool` 37 | - `Remove-UnityPool` -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | ### Powershell Gallery (Recommended method) 4 | 5 | Unity-Powershell is available on the Powershell Gallery. It can be easily installed from there with some powershell commands. 6 | 7 | * Install the module from the gallery 8 | ``` Powershell 9 | Install-Module Unity-Powershell -Scope CurrentUser 10 | ``` 11 | 12 | * Import the module in your powershell session 13 | ``` Powershell 14 | Import-Module Unity-Powershell 15 | ``` 16 | 17 | * Verify that the module is available by listing all the exported commands 18 | ``` Powershell 19 | Get-Command -Module Unity-Powershell 20 | ``` 21 | 22 | ### Manual installation 23 | 24 | Alternatively you can download the module from GitHub. 25 | 26 | * Download the repository 27 | * Unblock the zip 28 | * Extract the Unity-Powershell folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\) 29 | * Import the module in your powershell session 30 | ``` Powershell 31 | Import-Module Unity-Powershell 32 | ``` 33 | * Verify that the module is available by listing all the exported commands 34 | ``` Powershell 35 | Get-Command -Module Unity-Powershell 36 | ``` 37 | -------------------------------------------------------------------------------- /docs/prerequisites.md: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | 3 | You need to fulfill some requirements before being able to start using the module: 4 | 5 | - Powershell 5 is mandatory 6 | - You need an EMC Unity array ! 7 | 8 | ### Powershell 5 9 | 10 | This module is only compatible with the 5th version of Powershell. The reason is that the module is built around classes taht are pnly available in Powershell 5. 11 | Please consider to upgrade to the latest version in order to avoid some bugs. 12 | 13 | ### EMC Unity array 14 | 15 | The module can manage all the EMC Unity portfolio (physical and virtual, hybrid and full-flash). 16 | You'll need to have a valid account to connect to the array. 17 | -------------------------------------------------------------------------------- /header-mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: Unity-Powershell Documentation 2 | repo_url: https://github.com/equelin/Unity-Powershell 3 | site_author: Erwan Quelin 4 | theme: readthedocs 5 | copyright: "Unity-Powershell is licensed under the MIT license" 6 | pages: 7 | - Home: index.md 8 | - Introduction: 9 | - Prerequisites: prerequisites.md 10 | - Installation: installation.md 11 | - Getting Started: gettingstarted.md 12 | - FAQ: FAQ.md --------------------------------------------------------------------------------