In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Define Users and Their Privileges
Granting Privileges
Check all the permissions that vCenter has
Get-VIPrivilege | Select Name, Description
Check the number of managed sub-objects that you can manage
Get-VIPrivilege | Measure-Object
You can check your permissions on a specific object
Get-VIPrivilege-Name * Host*
Get-VIPrivilege-Name * vm*
View permission group
Get-VIPrivilege-PrivilegeGroup | select name, description
Creating New Roles
View the roles already defined by vCenter
Get-VIRole | Select Name, Description
Define a new role and give the appropriate permissions
PowerCLI C:\ > New-VIRole-Name "New Custom Role"-Privilege (Get-VIPrivilege-PrivilegeGroup Datacenter)
Create a new role, New Custom Role, with all privileges for the Datacenter operation group:
PowerCLI C:\ > New-VIRole-Name "New Custom Role1"-Privilege (Get-VIPrivilege-PrivilegeItem "create datacenter")
Create a new role: New Custom Role1 with new sub-permissions on Datacenter:
Note: you can see the relevant results on vCenter:
Roles can be defined at a smaller granularity and given appropriate permissions.
$MyPriv = "Host Profile" (define the permissions you need)
New-VIRole "New Custom Role3"-Privilege $MyPriv (define new roles and grant appropriate permissions)
Delegate roles to users
Grammar
New-VIPermission [- Entity] [- Principal] [- Role] [- Propagate []] [- Server] [- WhatIf] [- Confirm] []
The three most basic parameters:
Role The role which you will assign to the user
Principal The user or group to which you wish to assign permissions
Entity The object, folder, cluster, datacenter, or resource pool for which you would like to grant permissions to the user
Premise: first of all, the user you want to authorize already exists on your vCenter, which can be local or a member of the domain.
New-VIPermission-Entity (Get-Datacenter)-Principal Virtual\ test2-Role "New Custom Role"-Propagate 1
Result: on Datacenter, the Virtual\ test2 user has permissions for the New Custom Role role, that is, permission to operate on Datacenter.
2. Configure Datacenters and Clusters
Creating Datacenters
Http://www.vmware.com/support/developer/PowerCLI/PowerCLI51R2/html/New-Datacenter.html
Necessary parameters: location, name
First create a folder, and then put the new data center in it.
$folder = Get-Folder-NoRecursion | New-Folder-Name DC_Folder
New-Datacenter-Location $folder-Name ITC_Test_DC
The result of the script execution is as follows:
Creating Clusters
New-Cluster-Name ITC_Test-Location ITC_Test_DC
By default: both HA and DRS are not enabled, if you do not choose to enable this option
The result of the script execution:
Configuring High Availability
Create a new cluster and enable HA to the cluster
$ProductionCluster = New-Cluster
-Location $BostonDC
-Name Production
-HAEnabled-HAAdmissionControlEnabled
-HAFailoverLevel 1
-HARestartPriority Medium
HA existing clusters
Set-Cluster
The result of the script implementation:
Configuring Distributed Resource Scheduler
Configuring DRS on a new cluster (create and enable DRS)
Configuring DRS on an existing cluster (operate on what exists)
Set-Cluster
Result of the script action:
Configuring DPM on a cluster
To use scripts to customize
Viewing License Information
Licensing a Host
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 244
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.