seiburii

ESXI_COMMAND_dump

Apr 30th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. esxcli storage core adapter list | tee /tmp/trial.txt | awk '{print $2}' | awk 'NR>2' | xargs -t -n 1 esxcli system module get -m | grep VIB: | uniq| sed 's;.*: ;;g' | xargs -t -n 1 esxcli software vib get -n | tee -a /tmp/trial.txt
  2.  
  3. ### Netowrking drivers and devices
  4. esxcli network nic list | tee /tmp/trial.txt | awk '{print $1}' | awk 'NR>2' | xargs -t -n 1 esxcli network nic get -n | grep 'Driver:' | uniq | sed 's;.*: ;;g' | xargs -t -n 1 esxcli software vib get -n | tee -a /tmp/trial.txt
  5.  
  6. esxcli storage core adapter list | \
  7. awk '{print $2}' | \
  8. awk 'NR>2' | \
  9. xargs -t -n 1 esxcli system module get -m | \
  10. grep VIB: | \
  11. sed 's;.*: ;;g' | \
  12. xargs -t -n 1 esxcli software vib get -n
  13.  
  14.  
  15. esxcli system module set -e false -m vmw_ahci
  16. esxcli software vib remove -n scsi-hpvsa
  17. esxcli
  18.  
  19.  
  20. esxcli software acceptance set --level=CommunitySupported
  21. esxcli network firewall ruleset set -e true -r httpClient
  22. esxcli network firewall ruleset set -e true -r dns
  23.  
  24. View the current available bundles by running:
  25. esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
  26.  
  27. esxcli software vib install -d https://vibsdepot.v-front.de -n net55-r8168
  28.  
  29. esxcli network firewall ruleset set -e false -r httpClient
  30.  
  31.  
  32. esxcli software sources profile list -d http://vibsdepot.hpe.com/hpq/latest/index-drv.xml
  33.  
  34. esxcli system module list | sort | less
  35.  
  36. esxcli storage core adapter list | awk '{print $2}' | awk 'NR>2' | xargs -t -n 1 esxcli system module get -m | grep VIB: | sed 's;.*: ;;g' | xargs -t -n 1 esxcli software vib get -n
  37.  
  38.  
  39.  
  40.  
  41. esxcli network nic list | awk '{print $1}' | awk 'NR>2' | xargs -t -n 1 esxcli network nic get -n
  42.  
  43.  
  44. ### Re-registering VMFS with esxi install
  45. esxcli storage vmfs snapshot list
  46. esxcfg-volume -M <<VMFS UUID| label>>
  47.  
  48. esxcli storage core device list | grep -v "Queue\|Settable" | grep "Display Name:\|Model:\|Size:\|Device Type\|Is"
  49.  
  50. esxcli hardware pci list
  51.  
  52. esxcli device driver list
  53. esxcli network firewall ruleset list | sort
  54.  
  55. esxcli storage core adapter list
  56.  
  57. esxcfg-info > /tmp/esxcfg-info.txt (lots of info
Add Comment
Please, Sign In to add comment