<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi all <br><br>I have updated this script on Xymonton.<br><a href="https://wiki.xymonton.org/doku.php/monitors:memstat">https://wiki.xymonton.org/doku.php/monitors:memstat</a><br><br></div>Couple of "bugs" came up.<br></div>Firstly, Solaris 11 no longer supports setUID for root owned scripts. You now need to use sudo, which, thankfully, is installed by default.<br></div>Then came a real interesting one when we upgrades to Solaris 11.2<br><br></div>The memstat script uses <br><span style="font-family:courier new,monospace">echo "::memstat" | mdb -k</span><br></div>to collect the memory usage snapshot.<br></div>Except, in Solaris 11.2, there are a few new values.<br></div>The most interesting is, ZFS File Data has been split into ZFS File Data and ZFS Metadata, which is great, except that graphing sees both as haivng the NCV same index. So I had to make a change for that.<br></div>Then there's a real odd-ball. Another entry appears, called Guest. I have never seen it ahve any other value besides 0, but it's there nonetheless.<br></div>And every so often, I also get an entry "In temporary use". I kid you not!<br></div>And it messes up the graphs.<br><br></div>The changes should make it all work nicely on Solaris 10, 11, and 11.2<br></div>And it should work with setUID and sudo. Take your pick.<br><br></div>Regards<br>Vernon<br><br clear="all"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>