Pages

Wednesday, November 1, 2017

VMWare vSphere VCSA/PSC Appliances 6.0 - 'Appliance Shell' Tips



You can switch to Appliance Shell from Bash Shell using below command:
     Permanent Switch to Appliance Shell: chsh -s /bin/appliancesh root
     Temporary Switch to Appliance Shell: appliancesh

Example usage of Appliance Shell: Check/Configure NTP Settings

While in Appliance Shell mode:

Command > ntp.get
Output: Shows the current NTP service status

Command > ntp.server.set --servers timeserver1,timeserver2

Start the NTP service:

Command > timesync.set --mode NTP  (This starts the NTP service with new settings)

Check the status now:

Command> ntp.get


Wednesday, March 1, 2017

Command to Retrieve Physical Switch Name and Port Numbers to which a particular ESXi host vmnics are connected

vim-cmd hostsvc/net/query_networkhint  | grep -i [Dp][eo][vr][It] |grep -v Capa | grep -v connected

Output format would be:

device = "vmnicX",
         devId = "SwitchName",
         portId = "GigabitEthernetX/Y"