Saturday, May 30, 2020

vsantop command

What is vsantop?

vsantop is a new vSAN related command that first appeared on vSphere 6.7U3. Similar to the esxtop command, vsantop has lots of interesting options that can show all sorts of vSAN related information.
This utility can be run in batch mode by using the "-b" option combined with the "-d" option to specify the delay plus the "-n" option to specify the number of iterations.

1. putty into an esxi host and type "vsantop" to see the default "host-domclient" view (entity).


2. type "h" or "?" to get help



3. type "s" to change the seconds to delay (refresh rate)




4. type "E" to change entieties/views



5. Type "f" or "F" to potentially add or remove columns




6. type "o" to potentially change the order of the columns



Examples:

system-pmem option:



cache-disk option (the host has 1 cache disk):


capacity-disk option (the host has 2 capacity disks):


vsan-pnic-net option (the host is using 1 nic):


disk-group option (the host has 1 disk group):


6. Type "q" for quit

Friday, May 22, 2020

The psql command

1. Use to psql command to start using postgres commands



2. Use \h to view all sql commands



3. Use the \h option followed by a command to learn how to use such command



4. Use \? to view all postgres commands


5.  Type \l+ to check the sizes of the databases



6. Connect to the vCenter database and verify connectivity



7.  Use \dt to list all tables



8. Use \z to view all tables, views and sequences



9. Use the following command to view the size of a particular table


10. Use \du to view all users and their roles



11 . Use \s to view previously executed commands


12.  Use \q to quit




service-control examples

service-control examples

1. Use the --help option to view available subcommands


 2. Use the --list option to learn about what these services are for


3. Use the --status option to view which ones are running

 4. Use the following options to learn about dependencies and start the services