ESXi command to find Free Available used memory

 

ssh esxi

run below command:

vsish -e get /memory/comprehensive | sed 's/:/ /' | awk '
    /Phys/ { phys = $(NF-1); units = $NF; width = length(phys) }
    /Free/ { free = $(NF-1) }
    END    { print width, units, phys, phys-free, free }' |
    while read width units phys used free; do
        printf "Phys %*d %s\n" $width $phys $units
        printf "Used %*d %s\n" $width $used $units
        printf "Free %*d %s\n" $width $free $units
    done

output will be like:
Phys 217940540 KB
Used  36864312 KB
Free 181076228 KB

No comments:

Post a Comment

Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...