Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Persistent NFS Exports on Solaris

bash-3.00# cat /etc/dfs/dfstab
share -F nfs -o rw,root=* /nfsexport
https://snipt.net/embed/6ba70af4cf97068760681ebdfc0fc94c/
https://snipt.net/raw/6ba70af4cf97068760681ebdfc0fc94c/
6ba70af4cf97068760681ebdfc0fc94c
bash
Bash
2
2016-12-07T17:54:02
True
False
False
/api/public/snipt/5729/
persistant-nfs-exports-on-solaris-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>bash-3.00# cat /etc/dfs/dfstab </span><span id="L-2"><a name="L-2"></a>share -F nfs -o rw,root<span class="o">=</span>* /nfsexport </span></pre></div> </td></tr></table>
nfs, server, solaris

Bash

Enable NFS Server on Solaris

svcadm -v enable -r network/nfs/server
https://snipt.net/embed/3a02b4765e935a3bc8a9870ee4a3cebc/
https://snipt.net/raw/3a02b4765e935a3bc8a9870ee4a3cebc/
3a02b4765e935a3bc8a9870ee4a3cebc
bash
Bash
1
2016-12-07T17:54:07
True
False
False
/api/public/snipt/5717/
enabling-nfs-server-on-solaris
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svcadm -v <span class="nb">enable</span> -r network/nfs/server </span></pre></div> </td></tr></table>
nfs, server, solaris

Bash

Installing Perl Module on Solaris

1
2
3
4
/usr/perl5/bin/perlgcc Makefile.PL
/usr/sfw/bin/gmake
/usr/sfw/bin/gmake test
/usr/sfw/bin/gmake install
https://snipt.net/embed/d2498754cefad50e8cdf3ba1a154f573/
https://snipt.net/raw/d2498754cefad50e8cdf3ba1a154f573/
d2498754cefad50e8cdf3ba1a154f573
bash
Bash
4
2016-12-08T20:45:54
True
False
False
/api/public/snipt/5696/
installing-perl-module-on-solaris
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>/usr/perl5/bin/perlgcc Makefile.PL </span><span id="L-2"><a name="L-2"></a>/usr/sfw/bin/gmake </span><span id="L-3"><a name="L-3"></a>/usr/sfw/bin/gmake <span class="nb">test</span> </span><span id="L-4"><a name="L-4"></a>/usr/sfw/bin/gmake install </span></pre></div> </td></tr></table>
install, module, perl, solaris

Bash

Solaris Configuration Reset

sys-unconfig
https://snipt.net/embed/ec1a10b654dab3b8c43d7e7054d20d68/
https://snipt.net/raw/ec1a10b654dab3b8c43d7e7054d20d68/
ec1a10b654dab3b8c43d7e7054d20d68
bash
Bash
1
2016-12-07T19:00:19
True
False
False
/api/public/snipt/5644/
solaris-configuration-reset
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sys-unconfig </span></pre></div> </td></tr></table>
configuration, hostname, network, reset, solaris

Bash

Show Solaris CPU Status

psrinfo | awk {'print $1" "$2'}
https://snipt.net/embed/34a3c902b25f8bae038aae760009f3e5/
https://snipt.net/raw/34a3c902b25f8bae038aae760009f3e5/
34a3c902b25f8bae038aae760009f3e5
bash
Bash
1
2016-12-09T13:03:27
True
False
False
/api/public/snipt/1148/
show-solaris-cpu-status
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>psrinfo <span class="p">|</span> awk <span class="o">{</span><span class="s1">&#39;print $1&quot; &quot;$2&#39;</span><span class="o">}</span> </span></pre></div> </td></tr></table>
awk, cpu, opensolaris, solaris, status
Copyrighted, illegal, or inappropriate content? Email [email protected].