Scripts

This page is a reference for many of the scripts that we’ve published here at practical-admin. This list is not exhaustive, so please use the search function, or leave a comment asking for something!

PowerShell OnTAP Scripts
Pass-Through authentication to a Filer
Report all shares and exports on mixed volumes
Get all cifs shares, with permissions
Monitor reconstruction status
Powershell Reflection OnTap Style

VI Perl Toolkit Scripts
Physical NIC to vSwitch Map and other information
Portgroup Information: Is it a Kernel, Console, VM?
NFS snapshot fix via rCLI
Adjust Active/Standby NICs for Virtual Switches and Port Groups
vMotion configuration from the ESX host command line and remotely using the Perl Toolkit
VMware Tools Update Policy Updating
Adjusting Console OS RAM via rCLI
Change vSwitch security policies

VI Windows Toolkit Scripts
Remove Virtual Machine resource limits
Change the VMotion vNic
Adjusting Console OS RAM via Powershell
Change vSwitch security policies from Powershell

General PowerShell
Ping a subnet
Format-Comments
Fix Orphaned Standby hosts after vCenter reboot
Using –SupportsShouldProcess in Powershell V2 ScriptCmdlets
Run PowerShell script as a scheduled task

Other (bash, etc.)
Bash script to apply NFS snapshot fix
Active Directory and ESX integration
ESX User Authentication and Password Management
Change COS memory from command line

2 thoughts on “Scripts

    • Hello Anindra,

      I don’t have a 7-mode system to test with, but you should be able to use the Get-NaVfiler cmdlet to get all of them, then simply loop over them…

      foreach ($vserver in Get-NaVfiler) {
          # do some actions here
      }

      Hope that helps.

      Andrew

Leave a Reply

c67bb1d2ae88fa4f5ba63c2379e46224##############