{"id":4793,"date":"2020-01-02T08:48:14","date_gmt":"2020-01-02T07:48:14","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=4793"},"modified":"2024-03-05T11:08:55","modified_gmt":"2024-03-05T10:08:55","slug":"vmware-memoryused-sh","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/vmware-memoryused-sh\/","title":{"rendered":"vmware-memoryused.sh"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<div class=\"maint-error\">\n  <img decoding=\"async\" src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\"><\/p>\n<p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<\/p>\n<\/div>\n<p><\/p>\n<p>#!\/bin\/bash<\/p>\n<p># Cor van Wandelen<\/p>\n<p># percentage memory used on VMware host<\/p>\n<p>if [ $# -eq 0 ] || [ $# -eq 1 ]<br \/>\nthen<br \/>\necho &#8220;Syntax: &lt;ip address&gt; &lt;snmp community&gt;&#8221;<br \/>\nexit -1<br \/>\nfi<\/p>\n<p>USED=`snmpwalk -v2c -c $2 $1 1.3.6.1.2.1.25.5.1.1.2 | cut -d &#8216; &#8216; -f4 | paste -sd+ | bc`<br \/>\nTOTAL=`snmpwalk -v2c -c $2 $1 1.3.6.1.2.1.25.2.2.0 | cut -d &#8216; &#8216; -f4`<\/p>\n<p>echo &#8220;scale=2 ; ($USED \/ $TOTAL) * 100&#8221; | bc[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important Notice: This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support. #!\/bin\/bash # Cor van Wandelen # percentage memory used on VMware host if [ $# -eq 0 ] || [ $# -eq 1 ] then echo [&hellip;]<\/p>\n","protected":false},"author":1060,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<div class=\"maint-error\">\r\n  <img src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\">\r\n  <p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<p>\r\n<\/div>\r\n\r\n<br>\r\n\r\n#!\/bin\/bash\r\n\r\n# Cor van Wandelen\r\n\r\n# percentage memory used on VMware host\r\n\r\nif [ $# -eq 0 ] || [ $# -eq 1 ]\r\nthen\r\necho \"Syntax: <ip address> <snmp community>\"\r\nexit -1\r\nfi\r\n\r\nUSED=`snmpwalk -v2c -c $2 $1 1.3.6.1.2.1.25.5.1.1.2 | cut -d ' ' -f4 | paste -sd+ | bc`\r\nTOTAL=`snmpwalk -v2c -c $2 $1 1.3.6.1.2.1.25.2.2.0 | cut -d ' ' -f4`\r\n\r\necho \"scale=2 ; ($USED \/ $TOTAL) * 100\" | bc","_et_gb_content_width":"","footnotes":""},"categories":[40,20],"tags":[260,172,201],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/4793"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/1060"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=4793"}],"version-history":[{"count":2,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/4793\/revisions"}],"predecessor-version":[{"id":8368,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/4793\/revisions\/8368"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=4793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=4793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=4793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}