售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Mastering PowerCLI
Table of Contents
Mastering PowerCLI
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. PowerShell and PowerCLI Refresher
The essence of PowerShell and PowerCLI
The history of scripting
PowerShell
PowerCLI
The vSphere PowerCLI package
The vCloud PowerCLI package
Implementing programming constructs in PowerShell
Conditional logic
Conditional logic using loops
The difference between Foreach and Foreach-object
Automation through PowerShell scripts
Running and scheduling scripts
Using version control with GitHub
The fork & pull model
The shared repository model
Branch
Testing your scripts using Pester
Connecting to a vCenter and other VMware environments using PowerCLI cmdlets
Summary
2. Reusable Advanced Functions and Scripts
Specifying function attributes
Specifying parameter attributes
Using parameter validation attributes
Dynamic parameters
Switch parameters
PowerShell help files
Creating comment-based help
Error handling in PowerShell
Summary
3. Deploying vSphere Hosts
Image Builder with PowerCLI
Using host profiles
Configuring Auto Deploy for ESXi hosts
Adding hosts to a vCenter server
Summary
4. Managing Networks
Managing vSphere standard switches
Managing networking for ESXi
Managing vSphere distributed switches
Managing port groups
Creating private VLANs
Configuring vSphere network I/O control
Configuring Netflow
Working with ports
Configuring traffic shaping
Configuring port blocking
Configuring the security policy
Configuring the teaming policy
Summary
5. Managing Storage
Managing datastores
Configuring Fibre Channel storage
Configuring iSCSI storage
Configuring NFS storage
Configuring virtual SAN
Using datastore clusters
Using Raw Device Mapping
Managing storage using storage policy-based management
Cmdlets related to policy rules
Cmdlets related to storage policy
Cmdlets related to Spbm capabilities and compatible storage
Cmdlets related to policy application
Cmdlets related to policy backup and migration
Applying VMFS resignaturing
Configuring vFLASH using PowerCLI Extensions
Summary
6. Managing Clusters and Other Constructs
Configuring vCenter logical constructs
Folder
Datacenter
Cluster
Configuring the Enhanced vMotion Compatibility mode
Configuring High Availability
Using Dynamic Resource Scheduling
Using the DRS affinity and anti-affinity rules
Managing resource pools
Managing alarms
Summary
7. Managing Virtual Machines
Creating virtual machines
Modifying virtual machines
Hard disks
Network adapters and USB devices
Passthrough devices
Snapshots
Resource configuration and policies
Managing VMware tools in a VM
Managing templates
Managing OS customization specifications
Managing the guest OS
Managing vApps
Summary
8. Managing vSphere Security, SRM, vCloud Air, and vROps
The vSphere Security Hardening Guide
Managing vSphere Update Manager
Configuring a firewall and services in an ESXi host
Managing host profiles
Managing vCenter Site Recovery Manager
Managing vCloud Air
Managing vRealize Operations Manager
Summary
9. Managing the vSphere API
Using the Get-View cmdlet to return .NET View objects
Using the ExtensionData property to return .NET View objects
Using the vSphere API
Creating a vSphere scheduled task
Configuring Distributed Power Management
Configuring Fault Tolerance
Managing Content Libraries
Managing SRM advanced configurations
Generating PowerCLI code using Onyx
PowerActions for vSphere Web Client
Summary
10. Using REST APIs
Introducing REST APIs
Introducing JSON
Syntax rules
Values
The Invoke-RestMethod cmdlet
vRealize Automation REST APIs
Authenticating and getting a vRA token
Managing tenants
Creating a tenant
Listing identity stores for a tenant
Linking an identity store to a tenant
Managing machines
Listing shared and private catalog items
Managing approvals
Managing provisioned resources
Managing network profiles
Summary
11. Creating Windows GUI
Different ways to create a Windows GUI
Building a GUI using Windows Forms
Creating a button
Creating a TextBox
Creating ListBox
Creating CheckBox
Using SAPIEN PowerShell Studio
Building GUI using WPF
Summary
12. Best Practices and Sample Scripts
Best practices
Security Hardening Script
Capacity check report
Parameter descriptions
Using a proper editor
Sublime Text
ISESteroids
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜