Skip to main content

xyz Stuff

Arista | Command to transfer the tech-support bundle to FTP server
copy flash:/EOS-4.18.2F.swi ftp:/user:password@192.168.10.15/EOS-4.18.2F.swi

Explanation -
user = username of ftp server account

password = password of ftp server account

192.168.10.15 = IP address of ftp server

EOS-4.18.2F.swi = tech-support bundle file name 

Powershell | How to encrypt a PowerShell script
https://drive.google.com/open?id=19Bvik1FcSTC57eJ0CZPE4D-8hnQfyCi-

Reboot Windows with below PowerShell command 
powershell.exe -encodedCommand cwBoAHUAdABkAG8AdwBuACAALQByACAALwB0ACAAMAAxACAA

To create a digital clock

Download the script and run in PowerShell

EST Clock -
https://drive.google.com/open?id=1brxNydXejSaG3eOnWsbzrFgkUJk5dISE
CST Clock -
https://drive.google.com/open?id=1yoIsUzCoQauOdNSUX53UqRxea9qI6SIL
IST Clock -
https://drive.google.com/open?id=1PyRozTf19uVqoDft5BiB3tS31amVfu7P

Free Training and Certification Courses

https://www.vcnotes.in/2020/04/hi-all-free-training-and-certification.html

Command to check Kernel version in Linux

#Rpm -qa | grep -I kernel

NSX-T 2.4 administration guide 

https://docs.vmware.com/en/VMware-NSX-T-Data-Center/2.4/nsxt_24_admin.pdf


IP address configuration commands in Linux
To change IP on an interface - ifconfig eth1 192.168.2.2 netmask 255.255.255.0
To set or change DG of any VM - route add default gw 192.168.2.1


How to ping with the MTU value

ping www.yahoo.com -f -l 1492 

What all you can add and how in vRNI
https://docs.vmware.com/en/VMware-vRealize-Network-Insight-Cloud/services/com.vmware.vrni.using.doc/GUID-AB342101-8A47-4F24-9EC3-4273E1E4EAFB.html 

How to encode and decode Base64 script

https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/encode-and-decode-text-as-base64


To create scroll in google blog. 
In HTML view, enter your text as shown below
<center><div style="text-align:left;width:50px;height:150px;overflow:scroll;padding:750px;">
WRITE YOUR TEXT HERE. 
</div>
</center
>
 

Powershell command to extract DRS rules with VM names
Connect-VIServer “Enter VC Name here”
$DRSRules = Get-Cluster | Get-DrsRule
$Results = ForEach ($DRSRule in $DRSRules)
     {
    "" | Select-Object -Property @{N="Cluster";E={(Get-View- Id $DRSRule.Cluster.Id).Name}},
    @{N="Name";E={$DRSRule.Name}},
    @{N="Enabled";E={$DRSRule.Enabled}},
    @{N="DRS Type";E={$DRSRule.KeepTogether}},
    @{N="VMs";E={$VMIds=$DRSRule.VMIds -split ","
     $VMs = ForEach ($VMId in $VMIds)
        {
        (Get-View -Id $VMId).Name
        }
      $VMs -join ","}}
     }
$Results | out-gridview

Command to check speed and other info of HBA card 

esxcli storage san fc list   > Run in esxi cli

vCloud API Guide for NSX

Click here

PS Command to create NoSleep action to prevent idle session time out in windows 

 param($minutes = 60)

 

$myshell = New-Object -com "Wscript.Shell"

 

for ($i = 0; $i -lt $minutes; $i++) {

  Start-Sleep -Seconds 60

  $myshell.sendkeys("{F13}")

}


PS Command to put static routes in multiple esxi hosts

$esxcli = Get-EsxCli -VMHost $esx -V2
$parms = @{
  network = '192.168.102.0/24'
  gateway = '192.168.3.1'
}
$esxcli.network.ip.route.ipv4.add.Invoke($parms)
$esxcli.network.ip.route.ipv4.list.Invoke()


Comments

Popular posts from this blog

Network Migration | VLAN to VXLAN

NSX-T | Getting Started with PowerCLI

NSX-T | Security

Automate Power on Operations using PS