Article Content

InstructionsVCF on VxRail: How do you collect SDDC Manager postgres DB through CLI
  1. Connect to the SDDC Manager through SSH.
  2. Execute the command on SDDC manager cli:
    • "for DB in $(psql -h localhost -U postgres -c "\l" | grep UTF.*Tc | cut -d ' ' -f2); do for TABLE in $(psql -h localhost -U postgres -d $DB -c "\dt;" | grep table | cut -d '|' -f 2); do echo $DB"."$TABLE; psql -h localhost -U postgres -d $DB -c "select * from $TABLE;" ; done; done > /tmp/postgres.txt "
  3. Copy it through winscp and upload it to an FTP.