Delete claimrules via PowerCLI

Posted Leave a commentPosted in ESXi, Script

Had to mask storage in an older environment. As soon as that was done and storage were removed, then the clean up starts. I could have done all this by hand, but where is the fun in that. Instead I created this little script below which removes all claimrules with a rule number greater than 101 and lower than 65535. Of course this should go without saying. You need to know what you are doing and that there is no claimrules between 101-65535 that is crucial to your environment. Deleting claimrules like this shouldn’t be taking lightly. Well, I had […]

ESXi IOStats – vmkmgmt_keyval

Posted Leave a commentPosted in ESXi, Log Insight, Script, vRops

Just wanted to do a short post about vmkmgmt_keyval, as I think most admins only uses this tool for getting HBA driver/firmware versions, but you get so much more than just that. There is different forms of statistics in there, per target, per lun and block size. So first what is vmkmgmt_keyval ? vmkmgmt_keyval is an ESXi command which can be executed from ESXi’s direct console user interface (DCUI) or via SSH, in both examples you get access to ESXi Shell. The way I’m going to use vmkmgmt_keyval, is with an “-a”, after, just like in the example here: “/usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval […]