<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Sun solaris admin</title><description>Solaris Interview Questions and Answers, sun solaris commands, sun solaris certification, sun solaris versions, sun solaris patches, sun solaris support, sun solaris training, sun solaris tutorial</description><managingEditor>noreply@blogger.com (Unknown)</managingEditor><pubDate>Thu, 5 Sep 2024 03:17:27 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">610</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://sunadmintools.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><copyright>sunadmintools</copyright><itunes:keywords>solaris,interview,solaris,interview,tips,solaris,questions,solaris,interview,questions,solaris,interview,questions,and,answers</itunes:keywords><itunes:summary>solaris interview, solaris interview tips, solaris questions, solaris interview questions, solaris interview questions and answers</itunes:summary><itunes:subtitle>solaris interview, solaris interview tips, solaris questions, solaris interview questions, solaris interview questions and answers</itunes:subtitle><itunes:category text="Technology"><itunes:category text="Tech News"/></itunes:category><itunes:category text="Technology"><itunes:category text="Software How-To"/></itunes:category><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Sun solaris E-Book - system administration</title><link>http://sunadmintools.blogspot.com/2011/08/sun-solaris-e-book-system.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Tue, 9 Aug 2011 10:47:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-2710354783261330542</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt; Rules to Download :-&lt;br /&gt;
&lt;br /&gt;
1)Always Donate the user who created this site.&lt;br /&gt;
2)Most of the Files are in zip, winrar, wmv format so use appropiates software to extract the files.&lt;br /&gt;
3)All files are shared on a Third Party website so register with them for free to download the files.&lt;br /&gt;
4)Distribute this site to other so that every one gain free knowledge.&lt;br /&gt;
5)Leave a comment of the site which encourge me to devop more.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6uEbZrhkvE1-8NC126vs_MPGw3nicmX5_iOzXe6ghpLFNmWbU7DjLRY9QDI-aFXNMns9DaY44bhvJl0n_BNF-7690HoInVbxydDh3xmyeItyrnTPcZg5Xz0yKChK64u-pjK1ynRV6Txx8/s1600-h/310-016.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6uEbZrhkvE1-8NC126vs_MPGw3nicmX5_iOzXe6ghpLFNmWbU7DjLRY9QDI-aFXNMns9DaY44bhvJl0n_BNF-7690HoInVbxydDh3xmyeItyrnTPcZg5Xz0yKChK64u-pjK1ynRV6Txx8/s320/310-016.png" vi="true" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Download - &lt;a href="http://www.4shared.com/file/30640709/803f6e6a/Sun_-_Solaris_10_Basic_Admin_Guide_2005_.html"&gt;Sun solaris system administration E-Book&lt;/a&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6uEbZrhkvE1-8NC126vs_MPGw3nicmX5_iOzXe6ghpLFNmWbU7DjLRY9QDI-aFXNMns9DaY44bhvJl0n_BNF-7690HoInVbxydDh3xmyeItyrnTPcZg5Xz0yKChK64u-pjK1ynRV6Txx8/s72-c/310-016.png" width="72"/></item><item><title>By Using Veritas NetBackup To Add A Changed-Robot-And-Drive On The Solaris Unix Command Line</title><link>http://sunadmintools.blogspot.com/2011/04/by-using-veritas-netbackup-to-add.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Fri, 15 Apr 2011 11:14:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-8809501657027900414</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Your old tape robot, along with the drives inside it has inexplicably  gone bad, you've spent hours and exhausted your support contract trying  to fix it somehow, but, ultimately, you're left facing the fact that  your trusty old &lt;strong&gt;steel-and-plastic-jukebox&lt;/strong&gt; just isn't  going to come back.  Ever.  If you're lucky, your warranty allows for  replacement of the tape robot (A Tape Loading Device or &lt;strong&gt;TLD&lt;/strong&gt;) and its internal drives (2, for now, to keep things simple - &lt;strong&gt;hcart2&lt;/strong&gt;  drives, just because).  Worst case you've purchased suitable  replacements that match the specifications listed in the previous  sentence.&lt;br /&gt;
&lt;br /&gt;
Probably, your &lt;strong&gt;/dev/rmt&lt;/strong&gt; directory is populated and you may even have some other logical paths created on your &lt;strong&gt;Solaris&lt;/strong&gt; system that are no longer valid.  Once you've connected your &lt;strong&gt;"MaxTape24" TLD&lt;/strong&gt; (which exists only in my imagination, with it's two internal &lt;strong&gt;"FACTOTUM-TD2"&lt;/strong&gt; drives, both working properly according to the &lt;strong&gt;on-board&lt;/strong&gt; diagnostics), you should be able to verify that your system (at the very least) can recognize the &lt;strong&gt;TLD&lt;/strong&gt;  and, hopefully, the drives inside it.  Assuming all of the equipment is  good, and that it's been hooked up (however you like to &lt;strong&gt;daisy-chain&lt;/strong&gt; it) properly, this shouldn't be an issue.  You may choose to run:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # devfsadm -C&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
before proceeding, to check for new symbolic links that need to made in your hardware device tree (and, with the &lt;strong&gt;-C&lt;/strong&gt; option, remove ones you no longer need - Operating System's discretion, unfortunately), although it may not be necessary.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;FINDING THE NEW HARDWARE WITH NETBACKUP FIRST:&lt;/strong&gt;  Now, contrary to what it seemed like I was leading in to, we're going to try to get &lt;strong&gt;NetBackup&lt;/strong&gt; to do all the &lt;strong&gt;OS-work&lt;/strong&gt;  for us today (because, if it works, it's f'ing brilliant.  Good job.   Go home and relax :)  Actually, you could probably look at this more as a  way of giving &lt;strong&gt;NetBackup&lt;/strong&gt; a good kick in the arse.  The  kind of kick that makes it stand up and take account of its surroundings  ;)  A good way to get started is to run the following at the command  line (Oh yes, there will be no &lt;strong&gt;GUI&lt;/strong&gt; instruction in these posts.  If you use the &lt;strong&gt;GUI&lt;/strong&gt;  - which is okay - just right click on the type of thing you want to do  something to and select whatever seems to be the most reasonable option  from the &lt;strong&gt;drop-down&lt;/strong&gt; menu.  ...last on that:)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # /usr/openv/volmgr/bin/sgscan&lt;/strong&gt;  &amp;lt;-- I would recommend including &lt;strong&gt;/usr/openv/volmgr/bin&lt;/strong&gt;, &lt;strong&gt;/usr/openv/netbackup/bin&lt;/strong&gt; and &lt;strong&gt;/usr/openv/netbackup/bin/admincmd&lt;/strong&gt; in your &lt;strong&gt;PATH&lt;/strong&gt; variable if you spend a lot of time working with NetBackup at the command line.&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;pre&gt;&lt;blockquote&gt;&lt;strong&gt;/dev/sg/c0t0l0: Disk (/dev/rdsk/c0t0d0): "SUZUKI MBB2147RCSUN146G"
/dev/sg/c0t1l0: Disk (/dev/rdsk/c0t1d0): "SUZUKI MBB2147RCSUN146G"
/dev/sg/c0t2l0: Tape (/dev/rmt/1): "BMI     FACTOTUM-TD2"
/dev/sg/c0t3l0: Cdrom: "Hyundai    DV-W28E-R"
/dev/sg/c1t0l0: Changer: "TLDHAUS    MaxTape24"
/dev/sg/c1t1l0: Tape (/dev/rmt/0): "BMI     FACTOTUM-TD2"&lt;/strong&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Your  output may differ (even if you run this command on the same box, since I  faked up the output to protect the guilty ;), but basically, this  output is positive.  You'll notice that &lt;strong&gt;sgscan&lt;/strong&gt; has picked up a bit more than just your new &lt;strong&gt;TLD&lt;/strong&gt; and its drives but that's okay.  As it stands, this output is very positive, in that you can see that &lt;strong&gt;/dev/rmt/0&lt;/strong&gt; and &lt;strong&gt;/dev/rmt/1&lt;/strong&gt; have been properly mapped to the &lt;strong&gt;TLD&lt;/strong&gt;'s internal tape drives and the &lt;strong&gt;"TLDHAUS MaxTape24" TLD&lt;/strong&gt; has been properly identified.&lt;br /&gt;
&lt;br /&gt;
Other commands you could use to, basically, get the same information (or peace of mind) would include (but not be limited to) &lt;strong&gt;vmoprcmd&lt;/strong&gt;, &lt;strong&gt;tpconfig&lt;/strong&gt; and &lt;strong&gt;tpautoconf&lt;/strong&gt;.   A few examples at the bottom of the post, with the same setup as above  (some whitespace has been clipped to save the virtual trees).&lt;br /&gt;
&lt;br /&gt;
And  that's it for today.  Tomorrow we'll look at several commands  (including some we're using today, but with different options) that can  be used to "&lt;strong&gt;find&lt;/strong&gt;" those drives if the system doesn't discover them automatically (the first thing you can try is "&lt;strong&gt;devfsadm -C&lt;/strong&gt;" as noted above, followed by another &lt;strong&gt;sgscan&lt;/strong&gt;).&lt;br /&gt;
&lt;br /&gt;
Until then, enjoy the output and we'll continue on tomorrow.  Here are a couple of handy &lt;strong&gt;anchor-href's&lt;/strong&gt;  for you, so you don't have to try to figure out where the command  you're interested in is hiding out amongst all the flotsam below :)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;vmoprcmd&lt;br /&gt;
tpconfig -d&lt;br /&gt;
tpconfig -dl&lt;br /&gt;
tpautoconf -t&lt;br /&gt;
tpautoconf -a&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;</description></item><item><title>How to Locate New Backup Hardware Using Veritas NetBackup On The Solaris Unix Command Line</title><link>http://sunadmintools.blogspot.com/2011/04/how-to-locate-new-backup-hardware-using.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Thu, 14 Apr 2011 23:13:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-8765491365514069568</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;For some reason (and this hardly ever happens ...not sure which word to  emphasize to obtain the maximum sarcastic drippage) after we connected  our new Tape Loading Device (&lt;strong&gt;TLD &lt;/strong&gt;or Tape Robot), and the two drives it contains, to our backup server, &lt;strong&gt;NetBackup &lt;/strong&gt;-  and, possibly, the server itself, is failing to recognize the new  device(s).  Again, we're going to assume that both the server, &lt;strong&gt;TLD&lt;/strong&gt;, drives and all other hardware are absolutely fine and that all required connections between the devices are set up properly.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;NOTE:&lt;/strong&gt; Today's post is going to assume that some tried and true methods will get you to "&lt;strong&gt;good&lt;/strong&gt;."  Tomorrow's post will look at some other ways to make &lt;strong&gt;NetBackup &lt;/strong&gt;recognize and work with your "&lt;strong&gt;known good&lt;/strong&gt;" (and compliant) setup.&lt;br /&gt;
&lt;br /&gt;
If we take the same direct route to initial discovery that we did yesterday, we'd run the same &lt;strong&gt;sgscan &lt;/strong&gt;(which is, as one reader noted, shorthand for "&lt;strong&gt;sgscan all&lt;/strong&gt;")  command initially, like so (pardon the error output.  I can't afford to  create the situation I want to display so I'm doing it from memory):&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;pre&gt;&lt;blockquote&gt;&lt;strong&gt;host # /usr/openv/volmgr/bin/sgscan
/dev/sg/c0t0l0: Disk (/dev/rdsk/c0t0d0): "SUZUKI MBB2147RCSUN146G"
/dev/sg/c0t1l0: Disk (/dev/rdsk/c0t1d0): "SUZUKI MBB2147RCSUN146G"
/dev/sg/c0t2l0: Tape (???): "Unknown"
/dev/sg/c0t3l0: Cdrom: "Hyundai    DV-W28E-R"
/dev/sg/c1t0l0: Changer: "Unknown"
/dev/sg/c1t1l0: Tape (???): "Unknown"&lt;/strong&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Basically, every line where it says "&lt;strong&gt;Unknown&lt;/strong&gt;" is where we're interested in looking.  The system can't find our &lt;strong&gt;TLD &lt;/strong&gt;or its drives, so now we have to try to discover them ourselves (with and/or without &lt;strong&gt;NetBackup&lt;/strong&gt;) and then come back around and use &lt;strong&gt;NetBackup &lt;/strong&gt;to  verify that we're okay.  These steps are pretty dry, but I think if you  follow them in a somewhat linear order (skipping some or doing some  before others, if you're comfortable) they should get you to where you  want to be.  Fat, happy and with a &lt;strong&gt;TLD &lt;/strong&gt;your backup server recognizes.  Okay, maybe not happy ;)   &lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;
Note:&lt;/strong&gt;   If you feel uncomfortable about running any of the commands below,  please enlist the assistance of someone who is either able to provide  guidance (since each case is unique) and/or will get in trouble instead  of you if things to go to Hell ;)   &lt;strong&gt;j.k.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
And,  here we go.  These steps won't be numbered, so I can't possibly screw  that aspect up, but should be easy to follow since each command will be  separated by space and begin with the "&lt;strong&gt;host # &lt;/strong&gt;" prompt.  Some of these commands, as the title of today's post suggests, may not exist on a flavour of &lt;strong&gt;Unix &lt;/strong&gt;or &lt;strong&gt;Linux &lt;/strong&gt;that isn't &lt;strong&gt;Solaris&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
First, we'll take a look at our device tree.  Do the device links listed in &lt;strong&gt;sgscan &lt;/strong&gt;exist?  Also, is &lt;strong&gt;/dev/rmt &lt;/strong&gt;populated at all?&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;pre&gt;&lt;blockquote&gt;host # ls /dev/sg/c0t2l0 /dev/sg/c1t1l0 /dev/sg/c1t0l0 /dev/rmt
/dev/sg/c0t2l0  /dev/sg/c1t0l0  /dev/sg/c1t1l0

/dev/rmt:
0     0cb   0hb   0lb   0mb   0u    1     1cb   1hb   1lb   1mb   1u
0b    0cbn  0hbn  0lbn  0mbn  0ub   1b    1cbn  1hbn  1lbn  1mbn  1ub
0bn   0cn   0hn   0ln   0mn   0ubn  1bn   1cn   1hn   1ln   1mn   1ubn
0c    0h    0l    0m    0n    0un   1c    1h    1l    1m    1n    1un&lt;/blockquote&gt;&lt;/pre&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
They appear to be there, but they're probably bad.  Let's try &lt;strong&gt;devfsadm&lt;/strong&gt;, all on its lonesome and check &lt;strong&gt;sgscan &lt;/strong&gt;again  (From now on we'll just assume the output is the same as the  train-wreck we witnessed above, until we get to the end.  Hopefully,  your journey will come to a close sooner!):&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # devfsadm&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
If this fails to produce results, you can try to run the same command with the &lt;strong&gt;"-C"&lt;/strong&gt; option to remove stale links that no longer point to a valid physical device path:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # devfsadm -C&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Of course, if you know that you only had two tape drives before &lt;strong&gt;(/dev/rmt/0&lt;/strong&gt; and &lt;strong&gt;1&lt;/strong&gt;) and believe &lt;strong&gt;sgscan &lt;/strong&gt;when  it says it can't recognize the paths we listed, you can delete all of  that stuff and try those two steps again.  Sometimes it helps to force &lt;strong&gt;Solaris &lt;/strong&gt;to recreate the dev links:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # rm /dev/rmt/*&lt;br /&gt;
host # devfsadm -C&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
should be enough, but you can almost certainly do this, as well:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;pre&gt;&lt;blockquote&gt;host # rm /dev/rmt/* /dev/sg/c0t2l0 /dev/sg/c1t1l0 /dev/sg/c1t0l0
host # devfsadm -C&lt;/blockquote&gt;&lt;/pre&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Running the "&lt;strong&gt;ls /dev/sg/c0t2l0 /dev/sg/c1t1l0 /dev/sg/c1t0l0 /dev/rmt&lt;/strong&gt;" listed above will, almost always, give you the same results once you've completed these steps.&lt;br /&gt;
&lt;br /&gt;
You might also run this command if you have the drivers installed:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # cfgadm -al&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
If you find a section with &lt;strong&gt;/dev/rmt1, /dev/rmt0 &lt;/strong&gt;and the &lt;strong&gt;/dev/sg &lt;/strong&gt;path to your Changer in it, and one or some of them are showing &lt;strong&gt;unconfigured &lt;/strong&gt;(all the sections start with a controller number and a colon - in our setup the output is "&lt;strong&gt;c2:xxxx&lt;/strong&gt;")  you can either specifically configure any of the entries listed behind  the controller number, by using the entire device name your rmt and disk  changer devices are listed beside, or you can just configure the whole  shebang.  Why not?:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # cfgadm -c configure c2&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Listing it again with "&lt;strong&gt;cfgadm -al&lt;/strong&gt;" should show all the appropriate devices as "&lt;strong&gt;configured&lt;/strong&gt;."  If it doesn't; don't worry.  It probably doesn't matter, but was worth a shot.&lt;br /&gt;
&lt;br /&gt;
Both "&lt;strong&gt;tpconfig-d&lt;/strong&gt;" and "&lt;strong&gt;tpconfig -dl&lt;/strong&gt;" will give you back the same results as &lt;strong&gt;sgscan &lt;/strong&gt;(although formatted differently and limited to the tape and &lt;strong&gt;TLD &lt;/strong&gt;information) if the problem still hasn't resolved.  To save space and prevent &lt;strong&gt;carpal-knuckle &lt;/strong&gt;syndrome,  full versions of the output of these commands, as run against a working  setup, are located at the bottom of yesterday's posts as &lt;strong&gt;a series of in-page hyperlinks.&lt;/strong&gt;  The only things that will be different in your execution of:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # tpconfig -d&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # tpconfig -dl&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
output will be that the drives will usually either show up as &lt;strong&gt;DOWN &lt;/strong&gt;( possibly with an identifier - for us, &lt;strong&gt;hcart2 &lt;/strong&gt;- and path like &lt;strong&gt;/dev/rmt/0&lt;/strong&gt;) or you will get virtually no output at all  ...yeah, I guess that's a "&lt;strong&gt;huge&lt;/strong&gt;" difference :)  If you notice that &lt;strong&gt;tpconfig &lt;/strong&gt;returns a listing for you, this is positive, even if it shows your drives as "&lt;strong&gt;down&lt;/strong&gt;."  We won't go crazy yet, since we were going to run the next command, regardless:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # vmoprcmd&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Now we may get results that show "&lt;strong&gt;HOST STATUS&lt;/strong&gt;" as &lt;strong&gt;&lt;none&gt;&lt;/none&gt;&lt;/strong&gt; or, hopefully &lt;strong&gt;ACTIVE &lt;/strong&gt;(good to go!), &lt;strong&gt;ACTIVE-DISK &lt;/strong&gt;(can do local disk backups), &lt;strong&gt;ACTIVE-TAPE&lt;/strong&gt; (can backup to tape, but, for some reason, can't backup to local disk) or even &lt;strong&gt;DEACTIVATED &lt;/strong&gt;(either it's off or &lt;strong&gt;NetBackup &lt;/strong&gt;thinks it is) or &lt;strong&gt;OFFLINE &lt;/strong&gt;(Same as the last, except substitute offline for off ;)  Your drives will also show as either non-existent, &lt;strong&gt;UP&lt;/strong&gt;, &lt;strong&gt;UP-TLD, RESTART &lt;/strong&gt;or &lt;strong&gt;DOWN &lt;/strong&gt;(perhaps a few others, but all of them self-explanatory).  As long as the tape drive type (&lt;strong&gt;hcart2 &lt;/strong&gt;for us) is shown, you're on the way.&lt;br /&gt;
&lt;br /&gt;
And the final things we'll try today will be to react to the output produced for the Tape Drives.  If your &lt;strong&gt;TLD &lt;/strong&gt;is still not showing, that's something for tomorrow.  If you see your tapes in a &lt;strong&gt;DOWN &lt;/strong&gt;state, but correctly identified as the types of tapes they are, this will probably do the trick for you:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # vmoprcmd -up 0&lt;br /&gt;
host # vmoprcmd -up 1&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
for the first &lt;strong&gt;(0)&lt;/strong&gt; and second &lt;strong&gt;(1)&lt;/strong&gt; instance of the drive, listed in the first "&lt;strong&gt;Id&lt;/strong&gt;" column of "&lt;strong&gt;tpconfig -d&lt;/strong&gt;".  You can also do this, which is easier (at least for me) to remember, since you can directly map it from the &lt;strong&gt;vmoprcmd &lt;/strong&gt;output without squinting ;)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # vmoprcmd -upbyname Drive000&lt;br /&gt;
host # vmoprcmd -upbyname Drive001&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
from the &lt;strong&gt;vmoprcmd &lt;/strong&gt;output in the "&lt;strong&gt;Drive Name&lt;/strong&gt;" column, which also happens to be the first column in the "&lt;strong&gt;vmoprcmd&lt;/strong&gt;" output.&lt;br /&gt;
&lt;br /&gt;
When you're done with that, or if your tape drives show as &lt;strong&gt;RESTART&lt;/strong&gt;, do yourself a favor and stop and start &lt;strong&gt;NetBackup&lt;/strong&gt;.  You may not get a chance once you let everyone know it's fixed.  If you don't have other startup scripts set up, you can use:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # /usr/openv/netbackup/bin/goodies/netbackup stop&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
then run:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # /usr/openv/netbackup/bin/bpps -a&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
and, if everything is gone (unless you're running the &lt;strong&gt;GUI &lt;/strong&gt;- it's okay to not kill those &lt;strong&gt;PID's&lt;/strong&gt;), start 'er up again, like so:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # /usr/openv/netbackup/bin/goodies/netbackup start&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
and do another "&lt;strong&gt;bpps -a&lt;/strong&gt;"  to make sure all of the appropriate daemons are running.  Then, just to  make yourself feel better, and so you're absolutely sure, do one more "&lt;strong&gt;sgscan&lt;/strong&gt;."   All should look as it did in yesterday's post (see link-back above)  and you should be all set.  At least, you'll be ready to test some  backups and pray that your troubles are over ;)&lt;/div&gt;</description></item><item><title>DiskSuite/VolumeManager or Zpool Mirroring On Solaris: Pros and Cons</title><link>http://sunadmintools.blogspot.com/2011/04/disksuitevolumemanager-or-zpool.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Thu, 14 Apr 2011 11:09:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-4437346351563055520</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Using the &lt;strong&gt;Solaris&lt;/strong&gt; &lt;strong&gt;DiskSuite&lt;/strong&gt; set of tools (meta-whathaveyou ;), which was, at one point, changed to &lt;strong&gt;Solaris&lt;/strong&gt;  Volume Manager (which introduced some feature enhancements, but not the  kind I was expecting.  The name Volume Manager has a direct connection  in my brain to Veritas and the improvements weren't about coming closer  to working seamlessly with that product).&lt;br /&gt;
&lt;br /&gt;
The somewhat-new way (using the &lt;strong&gt;zpool&lt;/strong&gt; command) won't work - to my knowledge - on any OS prior to &lt;strong&gt;Solaris&lt;/strong&gt; 10, but with &lt;strong&gt;Solaris&lt;/strong&gt; 8 and 9 reaching end of life in the not-too-distant future, every &lt;strong&gt;Solaris&lt;/strong&gt; Sysadmin will have some measure of choice.&lt;br /&gt;
&lt;br /&gt;
With that in mind let's take a look at a simple two disk &lt;strong&gt;mirror&lt;/strong&gt;.  We'll look at how to create one and review it in terms of &lt;strong&gt;ease-of-implementation&lt;/strong&gt; and &lt;strong&gt;cost&lt;/strong&gt;  (insofar as work is considered expensive if it takes a long time...   which leaves one to wonder why I'm not comparing the two methods in  terms of time ;)&lt;br /&gt;
&lt;br /&gt;
Both setups will assume that you've already  installed your operating system, and all required packages, and that the  only task before you is to create a &lt;strong&gt;mirror&lt;/strong&gt; of your root disk and have it available for failover (which it should be by default)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The &lt;strong&gt;DiskSuite&lt;/strong&gt;/&lt;strong&gt;VolumeManager&lt;/strong&gt; Way:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1.  Since you just installed your OS, you wouldn't need to check if your disks were &lt;strong&gt;mirror&lt;/strong&gt;ed.   In the event that you're picking up where someone else left off (and  it isn't blatantly obvious - I mean "as usual" ;), you can check the  status of your &lt;strong&gt;mirror&lt;/strong&gt; using the metastat command:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # metastat -p&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
You'll get errors because nothing is set up.  Cool :)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2.&lt;/strong&gt;   The first thing you'll want to do is to ensure that both disks have  exactly the same partition table.  The same-ness has to be "exact," as  in down to the cylinder.  If you're off even slightly, you could be  causing yourself major headaches.  Luckily, it's very easy to make your  second (soon to be a &lt;strong&gt;mirror&lt;/strong&gt;) layout exactly the same as your base OS disk.  You actually have at least two options:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;a.&lt;/strong&gt;   You can run format, select the disk you have the OS installed on, type  label (if format tells you the disk isn't labeled), then select your  second disk, type partition, type select and pick the number of the  label of your original disk.  A lot of times these labels will be very  generic (especially if you just typed "y" when format asked you to label  the disk or format already did it for you during install) and you may  have more than one to choose from.  It's simple enough to figure out  which one is the right one though (as long as you remember your  partition map from the original disk and have made is sufficiently  different from the default 2 or 3 partition layout).  Just choose  select, pick one, then choose print.  If you've got the right one, then  type label.  Otherwise, repeat until you've gone through all of your  selections.  One of them has to be it, unless you never labeled your  primary disk.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;b.&lt;/strong&gt;  You can use two command (fmthard and prtvtoc) and just get it over with:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # prtvtoc /dev/rdsk/c0t0d0s2 |fmthard -s - /dev/rdsk/c1t0d0s2&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3.&lt;/strong&gt;  Then you'll want to &lt;strong&gt;mirror&lt;/strong&gt;  all of your "slices" (or partitions; whatever you want to call them.   We'll assume you have 6 slices set up (s0, s1, s3, s4, s5 and s6) for  use and slice 7 (s7) partitioned with about 5 Mb of space.  You can  probably get away with less.  You just need to set this up for &lt;strong&gt;DiskSuite&lt;/strong&gt;/&lt;strong&gt;VolumeManager&lt;/strong&gt; to be able to keep track of itself.&lt;br /&gt;
&lt;br /&gt;
Firstly, you'll need to initialize the minimum number of "&lt;strong&gt;databases&lt;/strong&gt;," set up the &lt;strong&gt;mirror&lt;/strong&gt; group and add the primary disk slices as the first &lt;strong&gt;mirror&lt;/strong&gt;s in the &lt;strong&gt;mirror&lt;/strong&gt;-set (even though, at this point, they're not &lt;strong&gt;mirror&lt;/strong&gt;ing anything, nor are they &lt;strong&gt;mirror&lt;/strong&gt;s of anything ;)  Note that it's considered best practice to not attach the secondary &lt;strong&gt;mirror&lt;/strong&gt; slices to the &lt;strong&gt;mirror&lt;/strong&gt;  device, even though you can do it for some of your slices.  You'll have  to reboot to get root to work anyway, so you may as well do them all at  once and be as efficient as is possible:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # metadb -a -f /dev/rdsk/c0t0d0s7&lt;br /&gt;
host # metadb -a /dev/rdsk/c1t0d0s7&lt;br /&gt;
host # metainit -f d10 1 1 c0t0d0s0&lt;br /&gt;
host # metainit -f d20 1 1 c1t0d0d0&lt;br /&gt;
host # metainit -d0 -m d10&lt;br /&gt;
host # metainit -f d11 1 1 c0t0d0s1&lt;br /&gt;
host # metainit -f d21 1 1 c1t0d0d1&lt;br /&gt;
host # metainit -d1 -m d11&lt;br /&gt;
host # metainit -f d13 1 1 c0t0d0s3&lt;br /&gt;
host # metainit -f d23 1 1 c1t0d0d3&lt;br /&gt;
host # metainit -d3 -m d13&lt;br /&gt;
host # metainit -f d14 1 1 c0t0d0s4&lt;br /&gt;
host # metainit -f d24 1 1 c1t0d0d4&lt;br /&gt;
host # metainit -d4 -m d14&lt;br /&gt;
host # metainit -f d15 1 1 c0t0d0s5&lt;br /&gt;
host # metainit -f d25 1 1 c1t0d0d5&lt;br /&gt;
host # metainit -d5 -m d15&lt;br /&gt;
host # metainit -f d16 1 1 c0t0d0s6&lt;br /&gt;
host # metainit -f d26 1 1 c1t0d0d6&lt;br /&gt;
host # metainit -d6 -m d16&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;4.&lt;/strong&gt;   Now you'll run the "metaroot" command, which will add some lines to  your /etc/system file and modify your /etc/vfstab to list the metadevice  for your root slice, rather than the plain old slice  (/dev/dsk/c0t0d0s0, /dev/rdsk/c0t0d0s0):&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # metaroot&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;5.&lt;/strong&gt;   Then, you'll need to manually edit /etc/vfstab to replace all of the  other slices' regular logical device entries with the new metadevice  entries.  You can use the root line (done for you) as an example.  For  instance, this line:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;pre&gt;&lt;blockquote&gt;&lt;strong&gt;/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /users ufs 1 yes -&lt;/strong&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
would need to be changed to:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;pre&gt;&lt;blockquote&gt;/dev/md/dsk/d6 /dev/md/rdsk/d6 /users ufs 1 yes -&lt;/blockquote&gt;&lt;/pre&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
and, once that's done you can reboot.  If you didn't make any mistakes, everything will come up normally.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;6.&lt;/strong&gt;  Once you're back up and logged in, you need to attach the secondary &lt;strong&gt;mirror&lt;/strong&gt;  slices.  This is fairly simple and where the actual syncing up of the  disk begins.  Continuing from our example above, you'd just need to  type:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # metattach d0 d20&lt;br /&gt;
host # metattach d1 d21&lt;br /&gt;
host # metattach d3 d23&lt;br /&gt;
host # metattach d4 d24&lt;br /&gt;
host # metattach d5 d25&lt;br /&gt;
host # metattach d6 d26&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The  syncing work will go on in the background, and may take some time  depending upon how large your hard drives and slices are.  Note that, if  you reboot during a sync, that sync will fail and it will start from 0%  on reboot with the affected primary &lt;strong&gt;mirror&lt;/strong&gt; slices remaining intact and the secondary &lt;strong&gt;mirror&lt;/strong&gt; slices automatically resyncing.  You can use the "metastat" command to check out the progress of your syncing slices.&lt;br /&gt;
&lt;br /&gt;
And, oh yeah... I almost forgot this part of the post:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The Zpool way:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1.&lt;/strong&gt;  First you'll want to do exactly what you did with &lt;strong&gt;DiskSuite&lt;/strong&gt;/&lt;strong&gt;VolumeManager&lt;/strong&gt;  (since both disks have to be exactly the same).  We'll assume you're  insanely practical, and will just use this command to make sure your  disks are both formatted exactly the same (just like above):&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # prtvtoc /dev/rdsk/c0t0d0s2 |fmthard -s - /dev/rdsk/c1t0d0s2&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2.&lt;/strong&gt;  Now we'll need create a pool, add your disks to it (all slices as one) and &lt;strong&gt;mirror&lt;/strong&gt; them:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # &lt;strong&gt;zpool&lt;/strong&gt; create mypool &lt;strong&gt;mirror&lt;/strong&gt; c0t0d0 c1t0d0&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3.&lt;/strong&gt;  Wait for the &lt;strong&gt;mirror&lt;/strong&gt; to sync up all the slices.  You can check the progress with "&lt;strong&gt;zpool&lt;/strong&gt; status POOLNAME" - like:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;host # &lt;strong&gt;zpool&lt;/strong&gt; status mypool&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
And that's that.  The choice is yours, unless you're still using &lt;strong&gt;Solaris&lt;/strong&gt; 9 or older.  This post isn't meant to condemn the &lt;strong&gt;SDS/SVM &lt;/strong&gt;way.   It works reliably and is really easy to script out (and when both of  these methods are scripted out, they're just as easy to run and the only  hassle the old way gets you is the forced reboot).&lt;br /&gt;
&lt;/div&gt;</description></item><item><title>Basic Root Disk Mirroring With Solaris Volume Manager</title><link>http://sunadmintools.blogspot.com/2011/04/basic-root-disk-mirroring-with-solaris.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 13 Apr 2011 23:08:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-5136271633571107770</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Solaris Volume Manager &lt;/strong&gt;(&lt;strong&gt;SVM&lt;/strong&gt; - Used to be called &lt;strong&gt;Solaris Disk Suite &lt;/strong&gt;- &lt;strong&gt;SDS &lt;/strong&gt;- pretty much only the name changed) is an excellent OS standard software &lt;strong&gt;RAID &lt;/strong&gt;management tool used by a lot of IT shops.   Even shops that use &lt;strong&gt;Veritas Volume Manager &lt;/strong&gt;software for serious storage management, still use &lt;strong&gt;SVM &lt;/strong&gt;to take care of the base disks.&lt;br /&gt;
&lt;br /&gt;
The reason most shops utilize &lt;strong&gt;SVM &lt;/strong&gt;to manage the root disks is that it's easier to manage than &lt;strong&gt;Veritas&lt;/strong&gt; for this limited purpose.  Another reason is that, in coordination with its ease of use, it's integrated into &lt;strong&gt;Solaris&lt;/strong&gt;.  The thinking around this is generally:  Why not use &lt;strong&gt;Solaris' &lt;/strong&gt;tool to manage our &lt;strong&gt;Solaris &lt;/strong&gt;OS root disk(s)?  If you've ever had to deal with &lt;strong&gt;Sun &lt;/strong&gt;support, you know another reason why using their product on their product is a good thing :)&lt;br /&gt;
&lt;br /&gt;
Setting up &lt;strong&gt;RAID &lt;/strong&gt;groups,  and managing them, is generally very simple and doesn't require  rebooting the machine, etc, when you want to add new disk (with some  exceptions).  One of the exceptions to this rule is when you use &lt;strong&gt;SVM &lt;/strong&gt;to set up management of your root disks.&lt;br /&gt;
&lt;br /&gt;
Managing your root disks with &lt;strong&gt;SVM &lt;/strong&gt;is  a two-part process.  Generally, it's used for mirorring the root disk  for quick failover and is configured right after installation.    Configuring it after is also easy, but I like to get my necessary  reboots completed before I hand over product to a customer.&lt;br /&gt;
&lt;br /&gt;
The process is fairly simple and is accomplished like this:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1.&lt;/strong&gt;  The two disks that will be used for mirroring have to be formatted "&lt;strong&gt;exactly&lt;/strong&gt;" alike.  The easiest way to do this is to partition one root disk and then either use the output from "&lt;strong&gt;prtvtoc&lt;/strong&gt;" to seed "&lt;strong&gt;fmthard&lt;/strong&gt;" or, more simply, use &lt;strong&gt;Solaris' &lt;/strong&gt;"&lt;strong&gt;format&lt;/strong&gt;" command to format the initial disk and then "&lt;strong&gt;select&lt;/strong&gt;"  the same layout from the list of available partition setups when  formatting the second disk (labeling the first makes its partition table  a selectable option!)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2.&lt;/strong&gt;  &lt;strong&gt;Meta Databases &lt;/strong&gt;need  to be created on both disks.   The first needs to be forced, and any  additional do not.  We're using slice 7 for our example here:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;metadb -a -f /dev/dsk/c0t0d0s7&lt;br /&gt;
metadb -a /dev/dsk/c0t1d0s7&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3.&lt;/strong&gt;  Next, the &lt;strong&gt;metadevices &lt;/strong&gt;need to be setup.  For each slice that we want to mirror, we need to create two &lt;strong&gt;stripe-concat metadevices&lt;/strong&gt;,  as such (shown for only two, here, but done for every slice we want to  mirror - which should be every slice on the disk except slice 2!):&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;metainit -f d10 1 1 c0t0d0s0&lt;br /&gt;
metainit -f d20 1 1 c0t1d0s0&lt;br /&gt;
&lt;br /&gt;
metainit -f d11 1 1 c0t0d0s1&lt;br /&gt;
metainit -f d21 1 1 c0t1d0s1&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;4.&lt;/strong&gt;  Next, the &lt;strong&gt;metadevice &lt;/strong&gt;that will be composed of the two mirrors needs to be created.  You can do this by attaching one of the mirrors to the new &lt;strong&gt;metadevice&lt;/strong&gt;.   Note that, you can do this all at once, normally, but for the root  disk, you can only attach one mirror slice at this point for each slice,  as such:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;metainit d0 -m d10&lt;br /&gt;
metainit d1 -m d11&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;5.&lt;/strong&gt;  The root partition is special in that &lt;strong&gt;SVM &lt;/strong&gt;actually has a command to change its value to the &lt;strong&gt;metadevice &lt;/strong&gt;value (&lt;strong&gt;d0&lt;/strong&gt;) in &lt;strong&gt;/etc/vfstab&lt;/strong&gt;.  It also adds some information in &lt;strong&gt;/etc/system &lt;/strong&gt;for you.  That command is:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;metaroot d0&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;6.&lt;/strong&gt;  Now, sadly enough you'll need to edit your &lt;strong&gt;/etc/vfstab &lt;/strong&gt;to reflect the new &lt;strong&gt;metadevices&lt;/strong&gt;.  So for the entry for metadevice &lt;strong&gt;d1&lt;/strong&gt;, you'd change:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;/dev/dsk/c0t0d0s1 &lt;/strong&gt;to &lt;strong&gt;/dev/md/dsk/d1&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;/dev/rdsk/c0t0d0s1 &lt;/strong&gt;to &lt;strong&gt;/dev/md/rdsk/d1&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;7.&lt;/strong&gt;  Once that's completed and all commands have returned successfully (you can check that all's well by running "&lt;strong&gt;metastat -p&lt;/strong&gt;") you will need to reboot.  I would suggest actually shutting your machine down to &lt;strong&gt;init level 0&lt;/strong&gt; so that you can change your alternate boot device to the secondary (mirror) disk from the default of "&lt;strong&gt;net&lt;/strong&gt;."  This way, once you're set up, if your primary disk fails your system will automatically boot off of the mirror.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;8.&lt;/strong&gt;  Now to the final step.  You need to attach that second mirror slice to your mirror &lt;strong&gt;metadevice&lt;/strong&gt;, as such:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;metattach d0 d20&lt;br /&gt;
metattach d1 d21&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Again, as long as you receive no errors, you should be all set.  It will take &lt;strong&gt;SVM &lt;/strong&gt;a  little while to sync up the two disk (the actual mirroring process from  the first disk to the second).  You can check on the status by running "&lt;strong&gt;metastat&lt;/strong&gt;" on its own.  I personally prefer to run a command line loop to keep me up to date, like:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;while true;do metastat -t|grep -i sync;sleep 60;done&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
then, when all the &lt;strong&gt;sync's &lt;/strong&gt;are complete, I'll know right away.&lt;/div&gt;</description></item><item><title>How to Check the State of Your DNS Setup Externally!</title><link>http://sunadmintools.blogspot.com/2011/04/how-to-check-state-of-your-dns-setup.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 13 Apr 2011 11:06:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-2148878680546665708</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;One of the areas that seems to require looking over more consistently, is your &lt;strong&gt;DNS&lt;/strong&gt;  setup.  New versions are released regularly, bugs are found just as  regulary, and acceptable syntax can sometime change between releases  and/or &lt;strong&gt;RFC&lt;/strong&gt;'s.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Note for today's script -  It is intended only for your benefit, and I strongly urge you to use any  free DNS reporting service you can find to accomplish what we're  accomplishing here.  I neither work for, nor do I do any afilliate  marketing for, www.dnsstuff.com.&lt;/strong&gt;  We only use it where I work,  because it's the standard.  Probably, most readers already know about  it.  The site tools require a free registration, if you're not a paying  member, but also require a payment for use after 30 DNS Reports.  I have  placed a very obvious "&lt;strong&gt;COMMENT&lt;/strong&gt;" in the script above the only line you'd need to change to use another service.  If you "&lt;strong&gt;do&lt;/strong&gt;" find something equal, or better, I would recommend that you use it (and, maybe, send me an email to let me know the &lt;strong&gt;URL&lt;/strong&gt;  so I can check it out and update my scripts, too :)  That being said,  I'm not trashing them either.  If you have to do this sort of thing a  lot(for your employer, lets say), the company can probably shell out a  few bucks a month for the service.  It's worth the price if you need to  use it regularly.&lt;br /&gt;
&lt;br /&gt;
Aside from your own internal auditing, it's good to get a fair and objective third-party assessment of the state of your &lt;strong&gt;DNS&lt;/strong&gt; setup.  A great site to get this accomplished on the web is located at &lt;strong&gt;http://www.dnsstuff.com&lt;/strong&gt;.  They have a tool called "&lt;strong&gt;DNS Report&lt;/strong&gt;" (which used to be its own domain - &lt;strong&gt;www.dnsreport.com&lt;/strong&gt;)  which can be used very effectively, even if you choose not to be a  paying member of the site.  A long long time ago, it was available to  everyone for free, but since it's &lt;strong&gt;pay-for&lt;/strong&gt; now, you really have to be careful not to deluge it with requests to check your &lt;strong&gt;DNS&lt;/strong&gt; zones (all 30 of them, if you're doing this for free), or you'll get dumped on their &lt;strong&gt;blacklist&lt;/strong&gt; and barred from using the service at all.&lt;br /&gt;
&lt;br /&gt;
The little &lt;strong&gt;Perl&lt;/strong&gt; script I've written below will help you to automate the usage of that web service for all of your &lt;strong&gt;DNS&lt;/strong&gt; zones.  The reports are nice and easy to understand, even for the highest of higher-ups (&lt;strong&gt;green = good, red = bad&lt;/strong&gt; ;) and the service does a very good job of pointing out weaknesses, or areas that don't conform to current &lt;strong&gt;RFC&lt;/strong&gt; expectations, in your &lt;strong&gt;DNS&lt;/strong&gt; zones.  This script does require that you have &lt;strong&gt;Perl&lt;/strong&gt; installed (although it's just a script I whipped up so it's submitted under &lt;strong&gt;GPL&lt;/strong&gt; (&lt;strong&gt;Gnu Public License&lt;/strong&gt;), at best, and you can feel free to rewrite it to suite your own needs).  It also makes use of &lt;strong&gt;curl&lt;/strong&gt;.  You can substitute &lt;strong&gt;lynx&lt;/strong&gt; or &lt;strong&gt;wget&lt;/strong&gt; or any other program that can download and save web pages to your &lt;strong&gt;Unix/Linux&lt;/strong&gt; hard drive.  And here it is, below (Please read the comments regarding use of dnsstuff's dnsreport tool):&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" rel="license"&gt;&lt;br /&gt;
&lt;img alt="Creative Commons License" src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/88x31.png" style="border-width: 0pt;" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This work is licensed under a &lt;br /&gt;
&lt;a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" rel="license"&gt;Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# 2007 - Mike Golvach - eggi@comcast.net&lt;br /&gt;
#&lt;br /&gt;
# &lt;a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" rel="license"&gt;Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License&lt;/a&gt;&lt;br /&gt;
#&lt;br /&gt;
# Registration is now required to use this tool - It used to be free.&lt;br /&gt;
# When/If you register, be sure to uncheck the two opt-in mail&lt;br /&gt;
# checkboxes at the bottom unless you want to receive those emails.&lt;br /&gt;
#&lt;br /&gt;
# Login to dnsstuff.com before running this script or it will just return&lt;br /&gt;
# a page indicating that you need to log in before submitting a full request&lt;br /&gt;
# without that request being linked to from one of their pages&lt;br /&gt;
#&lt;br /&gt;
# Simple Error Checking here, just want to be sure that a file exists at all.&lt;br /&gt;
# Disregard everything else on the command line. This script will fail if the&lt;br /&gt;
# file named on the command line doesn't include one URL per line, anyway :)&lt;br /&gt;
&lt;br /&gt;
if ( ! -f $ARGV[0] )    {&lt;br /&gt;
print "Usage: $0 fileWithUrls\n";&lt;br /&gt;
exit(1);&lt;br /&gt;
}&lt;br /&gt;
$dns_file = $ARGV[0];&lt;br /&gt;
&lt;br /&gt;
open(URL_FILE, "&amp;lt; $dns_file");&lt;br /&gt;
@url_file = &lt;url_file&gt;;&lt;br /&gt;
close(URL_FILE);&lt;br /&gt;
$counter = 120;&lt;br /&gt;
&lt;br /&gt;
foreach $url (@url_file) {&lt;br /&gt;
print "$url";&lt;br /&gt;
$| = 1;&lt;br /&gt;
if ($pid = fork) {&lt;br /&gt;
if ( $counter = 900 ) {&lt;br /&gt;
$counter = 120;&lt;br /&gt;
} else {&lt;br /&gt;
$counter = $counter+60;&lt;br /&gt;
}&lt;br /&gt;
print "next\n";&lt;br /&gt;
} else {&lt;br /&gt;
close (STDOUT);&lt;br /&gt;
chomp($url);&lt;br /&gt;
#&lt;br /&gt;
# COMMENT &amp;lt;--- The Obvious One :)&lt;br /&gt;
# CHANGE THE URL ON THIS LINE TO THE URL OF ANY OTHER SITE YOU FIND THAT&lt;br /&gt;
# PROVIDES AN EQUAL SERVICE!&lt;br /&gt;
#&lt;br /&gt;
@output = `curl http://www.dnsstuff.com/tools/dnsreport.ch?domain=$url`;&lt;br /&gt;
open(OUTPUT, "&amp;gt;$url.htm");&lt;br /&gt;
print OUTPUT @output;&lt;br /&gt;
close(OUTPUT);&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
if ( $counter = 900 ) {&lt;br /&gt;
$counter = 120;&lt;br /&gt;
} else {&lt;br /&gt;
$counter = $counter + 60;&lt;br /&gt;
}&lt;br /&gt;
sleep $counter;&lt;br /&gt;
}&lt;br /&gt;
exit(0);&lt;/url_file&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
And that's that!  As I mentioned before, this tool will blacklist you if you hit &lt;strong&gt;dnsstuff&lt;/strong&gt; too hard.  My script assumes that you can hit the site at the rate I used last time I used it.  Since it's a &lt;strong&gt;pay-for&lt;/strong&gt;  service now, I would recommend changing the wait times to at least  twice as much.  To give you an idea, I ran this when the service was  free and ended up getting blacklisted in a under a few hours.  Granted,  there were certain other factors that contributed to my getting the  boot; most prominently that I was checking the &lt;strong&gt;DNS&lt;/strong&gt; for  about 300 to 400 zones we were hosting.  It could have been left at  checking one and making sure all the others were the same, but, as noted  above, some bosses like to see reports with lots of colors and lots of  pages.&lt;br /&gt;
&lt;br /&gt;
Also, just so you don't feel like I'm leaving you in a lurch, if you do happen to get blacklisted, just go to their &lt;strong&gt;member forums&lt;/strong&gt; (you get access to &lt;strong&gt;post&lt;/strong&gt; to these since you had to do the free registration - you can only &lt;strong&gt;browse&lt;/strong&gt; them if you're not registered) at &lt;strong&gt;http://member.dnsstuff.com/forums/&lt;/strong&gt; and do a search on "&lt;strong&gt;banned&lt;/strong&gt;," "&lt;strong&gt;blacklist&lt;/strong&gt;" or "&lt;strong&gt;black list&lt;/strong&gt;."  Most folks just have to start a thread and request their access back in order to get off the blacklist.&lt;/div&gt;</description></item><item><title>How to find out your NIC's speed and duplex on Solaris</title><link>http://sunadmintools.blogspot.com/2011/04/how-to-find-out-your-nics-speed-and.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Tue, 12 Apr 2011 23:06:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-7426603735057341851</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If there's ever an issue with networking, you need to be able to confidently say that your &lt;strong&gt;NIC &lt;/strong&gt;is up at &lt;strong&gt;1Gb full duplex &lt;/strong&gt;(or whatever your network admin insists).&lt;br /&gt;
&lt;br /&gt;
The  way to check this has changed somewhat in Solaris 10, but the old way  to check is still available; although not totally reliable.&lt;br /&gt;
&lt;br /&gt;
For instance, you can use "&lt;strong&gt;ndd&lt;/strong&gt;" in all flavors of Solaris (at least from &lt;strong&gt;2.6&lt;/strong&gt; up) to get information from &lt;strong&gt;/dev/hme &lt;/strong&gt;(or whatever your &lt;strong&gt;NIC's &lt;/strong&gt;device driver is).   Generally, you would look at the &lt;strong&gt;speed &lt;/strong&gt;and &lt;strong&gt;duplex &lt;/strong&gt;settings using the following commands (slight variation depending on &lt;strong&gt;NIC's&lt;/strong&gt; - e.g.  &lt;strong&gt;100Mb hme's &lt;/strong&gt;don't have values for the &lt;strong&gt;1000 Mb &lt;/strong&gt;queries)&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://sunadmintools.blogspot.com/"&gt;The  following commands are pretty useful, and non-destructive, for any  device driver, even though you'll get errors for all the stuff that  isn't supported:&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;/usr/sbin/ndd -set /dev/ce instance 0&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_1000fdx_cap&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_1000hdx_cap&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_100fdx_cap&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_100hdx_cap&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_10fdx_cap&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_10hdx_cap&lt;br /&gt;
/usr/sbin/ndd -get /dev/ce adv_autoneg_cap&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Of course, replace the "&lt;strong&gt;/dev/ce&lt;/strong&gt;" with your particular driver.  The only downside to this &lt;strong&gt;hack-and-slash &lt;/strong&gt;method is that you may see &lt;strong&gt;1's &lt;/strong&gt;(indicating that the parameter is set) rather than &lt;strong&gt;0's &lt;/strong&gt;(indicating that the paramet is not set) in more than one place (like in &lt;strong&gt;adv_1000fdx_cap &lt;/strong&gt;, &lt;strong&gt;adv_100hdx_cap &lt;/strong&gt;and &lt;strong&gt;adv_autoneg_cap &lt;/strong&gt;all at once ???)&lt;br /&gt;
&lt;br /&gt;
The best way to do it, in my experience is to use either "&lt;strong&gt;netstat -k&lt;/strong&gt;" (In Solaris up to, and including, version 9) or "&lt;strong&gt;kstat -p&lt;/strong&gt;."&lt;br /&gt;
&lt;br /&gt;
In Solaris 9, assuming the same &lt;strong&gt;NIC &lt;/strong&gt;driver and instance "&lt;strong&gt;ce0&lt;/strong&gt;," you can do the following to find out the status of your &lt;strong&gt;NIC&lt;/strong&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;netstat -k ce|grep 0|egrep 'link_speed|link_dupl'&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
On Solaris 10, you'd do this:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;kstat -p|grep ce0|egrep 'speed|dupl'&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Basically, the speed should be &lt;strong&gt;1000&lt;/strong&gt; for &lt;strong&gt;Gb&lt;/strong&gt;, &lt;strong&gt;100 &lt;/strong&gt;for &lt;strong&gt;100Mb&lt;/strong&gt;, etc.   Your duplex is represented numerically as either &lt;strong&gt;0&lt;/strong&gt;, &lt;strong&gt;1 &lt;/strong&gt;or &lt;strong&gt;2&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;0 = No Duplex (or Down)&lt;br /&gt;
1 = Half Duplex&lt;br /&gt;
2 = Full Duplex&lt;/strong&gt;&lt;/div&gt;</description></item><item><title>Linux Basic for Ease of Use and Management of a Hosted Website: Getting Started!</title><link>http://sunadmintools.blogspot.com/2011/04/linux-basic-for-ease-of-use-and.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Thu, 7 Apr 2011 08:48:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-7534844821046420166</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;These are both links to the first installment: Getting Started.&lt;br /&gt;
&lt;br /&gt;
You can go directly to them through the links below.   Hopefully,  you will find it informative and, at least somewhat, helpful.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.goarticles.com/cgi-bin/showa.cgi?C=624313"&gt;Getting Started&lt;/a&gt; on goarticles.com&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://ezinearticles.com/?Basic-Linux-for-Ease-of-Use-and-Management-of-a-Hosted-Website----Getting-Started%21&amp;amp;id=749459"&gt;Getting Started&lt;/a&gt; on ezinearticles.com&lt;/div&gt;</description></item><item><title>ZFS Internals</title><link>http://sunadmintools.blogspot.com/2011/01/zfs-internals.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Mon, 10 Jan 2011 18:52:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-3698334325248091305</guid><description>&lt;h3&gt;&lt;/h3&gt;Max Bruning wrote an &lt;a href="http://www.osdevcon.org/2008/files/osdevcon2008-proceedings.pdf"&gt; excellent paper&lt;/a&gt; on how to examine the internals of a ZFS data structure. (Look for the article on the ZFS On-Disk Data Walk.)  The structure is defined in &lt;a href="http://www.opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf"&gt; ZFS On-Disk Specification&lt;/a&gt;. &lt;br /&gt;
Some key structures: &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;code&gt;uberblock_t&lt;/code&gt;:  The starting point when examining a ZFS file system.  128k array of 1k &lt;code&gt;uberblock_t&lt;/code&gt; structures, starting at  0x20000 bytes within a vdev label.  Defined in  &lt;code&gt;uts/common/fs/zfs/sys/uberblock_impl.h&lt;/code&gt; Only one uberblock is  active at a time; the active uberblock can be found with&lt;br /&gt;
&lt;code&gt;zdb -uuu &lt;i&gt;zpool-name&lt;/i&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;blkptr_t&lt;/code&gt;:  Locates, describes, and verifies blocks on a disk. Defined in &lt;code&gt;uts/common/fs/zfs/sys/spa.h&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dnode_phys_t&lt;/code&gt;:  Describes an object.  Defined by  &lt;code&gt;uts/common/fs/zfs/sys/dmu.h&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;objset_phys_t&lt;/code&gt;:  Describes a group of objects. Defined by  &lt;code&gt;uts/common/fs/zfs/sys/dmu_objset.h&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;ZAP Objects:  Blocks containing name/value pair attributes. ZAP stands for ZFS Attribute Processor.  Defined by  &lt;code&gt;uts/common/fs/zfs/sys/zap_leaf.h&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Bonus Buffer Objects: &lt;ul&gt;&lt;li&gt;&lt;code&gt;dsl_dir_phys_t&lt;/code&gt;:  Contained in a DSL directory &lt;code&gt;dnode_phys_t&lt;/code&gt;; contains object ID for a DSL dataset &lt;code&gt;dnode_phys_t&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dsl_dataset_phys_t&lt;/code&gt;:  Contained in a DSL dataset &lt;code&gt;dnode_phys_t&lt;/code&gt;; contains a &lt;code&gt;blkprt_t&lt;/code&gt; pointing indirectly at a second array of &lt;code&gt;dnode_phys_t&lt;/code&gt; for objects within a ZFS file system.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;znode_phys_t&lt;/code&gt;:  In the bonus buffer of dnode_phys_t structures for files and directories; contains attributes of the file or directory.  Similar to a UFS inode in a ZFS context.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;</description><enclosure length="2734888" type="application/pdf" url="http://www.osdevcon.org/2008/files/osdevcon2008-proceedings.pdf"/><itunes:explicit>no</itunes:explicit><itunes:subtitle>Max Bruning wrote an excellent paper on how to examine the internals of a ZFS data structure. (Look for the article on the ZFS On-Disk Data Walk.) The structure is defined in ZFS On-Disk Specification. Some key structures: uberblock_t: The starting point when examining a ZFS file system. 128k array of 1k uberblock_t structures, starting at 0x20000 bytes within a vdev label. Defined in uts/common/fs/zfs/sys/uberblock_impl.h Only one uberblock is active at a time; the active uberblock can be found with zdb -uuu zpool-name blkptr_t: Locates, describes, and verifies blocks on a disk. Defined in uts/common/fs/zfs/sys/spa.h. dnode_phys_t: Describes an object. Defined by uts/common/fs/zfs/sys/dmu.h objset_phys_t: Describes a group of objects. Defined by uts/common/fs/zfs/sys/dmu_objset.h ZAP Objects: Blocks containing name/value pair attributes. ZAP stands for ZFS Attribute Processor. Defined by uts/common/fs/zfs/sys/zap_leaf.h Bonus Buffer Objects: dsl_dir_phys_t: Contained in a DSL directory dnode_phys_t; contains object ID for a DSL dataset dnode_phys_t dsl_dataset_phys_t: Contained in a DSL dataset dnode_phys_t; contains a blkprt_t pointing indirectly at a second array of dnode_phys_t for objects within a ZFS file system. znode_phys_t: In the bonus buffer of dnode_phys_t structures for files and directories; contains attributes of the file or directory. Similar to a UFS inode in a ZFS context.</itunes:subtitle><itunes:author>noreply@blogger.com (Unknown)</itunes:author><itunes:summary>Max Bruning wrote an excellent paper on how to examine the internals of a ZFS data structure. (Look for the article on the ZFS On-Disk Data Walk.) The structure is defined in ZFS On-Disk Specification. Some key structures: uberblock_t: The starting point when examining a ZFS file system. 128k array of 1k uberblock_t structures, starting at 0x20000 bytes within a vdev label. Defined in uts/common/fs/zfs/sys/uberblock_impl.h Only one uberblock is active at a time; the active uberblock can be found with zdb -uuu zpool-name blkptr_t: Locates, describes, and verifies blocks on a disk. Defined in uts/common/fs/zfs/sys/spa.h. dnode_phys_t: Describes an object. Defined by uts/common/fs/zfs/sys/dmu.h objset_phys_t: Describes a group of objects. Defined by uts/common/fs/zfs/sys/dmu_objset.h ZAP Objects: Blocks containing name/value pair attributes. ZAP stands for ZFS Attribute Processor. Defined by uts/common/fs/zfs/sys/zap_leaf.h Bonus Buffer Objects: dsl_dir_phys_t: Contained in a DSL directory dnode_phys_t; contains object ID for a DSL dataset dnode_phys_t dsl_dataset_phys_t: Contained in a DSL dataset dnode_phys_t; contains a blkprt_t pointing indirectly at a second array of dnode_phys_t for objects within a ZFS file system. znode_phys_t: In the bonus buffer of dnode_phys_t structures for files and directories; contains attributes of the file or directory. Similar to a UFS inode in a ZFS context.</itunes:summary><itunes:keywords>solaris,interview,solaris,interview,tips,solaris,questions,solaris,interview,questions,solaris,interview,questions,and,answers</itunes:keywords></item><item><title>NIS Master Server Configurations</title><link>http://sunadmintools.blogspot.com/2010/12/nis-master-server-configurations.html</link><category>NIS</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sun, 5 Dec 2010 23:26:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-4669521992851161520</guid><description>&lt;i&gt;&lt;b&gt;NIS Master Server Config&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
NIS maps are located in /var/yp/domainname directory(where domainname is the name of the NIS domain). There are two files (.pag and .dir files) for each map in this directory. Eg.&lt;br /&gt;
/var/yp/training/hosts.byname.pag file&lt;br /&gt;
/var/yp/training/hosts.byname.dir file&lt;br /&gt;
/var/yp/training/hosts.byaddr.pag file&lt;br /&gt;
/var/yp/training/hosts.byaddr.dir file&lt;br /&gt;
&lt;br /&gt;
The syntax for the NIS map is map.key.pag and map.key.dir&lt;br /&gt;
&lt;br /&gt;
Ypcat [-k] mname -- To retrieve values from NIS name service map, mname can be either a&lt;br /&gt;
map name or a map nickname&lt;br /&gt;
# ypcat hosts&lt;br /&gt;
localhost 127.0.0.1 localhost&lt;br /&gt;
sysprint 192.168.30.70 sysprint&lt;br /&gt;
sys44 192.168.30.44 sys44 loghost&lt;br /&gt;
&lt;br /&gt;
ypmatch [-k] value mname -- Prints values associated with one or more keys from the NIS&lt;br /&gt;
name services map specified by the mname argument.&lt;br /&gt;
# ypmatch sys44 hosts&lt;br /&gt;
sys44: 192.168.30.44 sys44 loghost&lt;br /&gt;
# ypmatch usera passwd&lt;br /&gt;
usera: usera:LojyTdiQev5i:3001:10::/export/home/usera:/bin/ksh&lt;br /&gt;
&lt;br /&gt;
NIS Domain Contains&lt;br /&gt;
One NIS Master Server&lt;br /&gt;
NIS Slave Servers (Optional)&lt;br /&gt;
NIS Clients&lt;br /&gt;
&lt;br /&gt;
The NIS Master Server&lt;br /&gt;
&lt;br /&gt;
Contains the original /etc/ASCII files used to build the NIS maps&lt;br /&gt;
Contains the NIS maps generated from the ASCII files&lt;br /&gt;
Provides a single point-of control for the entire NIS domain&lt;br /&gt;
&lt;br /&gt;
NIS Slave Servers&lt;br /&gt;
&lt;br /&gt;
Do not contain the original /etc/ASCII files&lt;br /&gt;
Contains copied of the NIS maps copied from the NIS Master Server&lt;br /&gt;
Provides a a backup repository for NIS map information&lt;br /&gt;
Provides redundancy in case of server failure&lt;br /&gt;
Provides load sharing on large networks&lt;br /&gt;
&lt;br /&gt;
NIS Clients&lt;br /&gt;
&lt;br /&gt;
Do not contain original /etc/ASCII files&lt;br /&gt;
Do not contain any NIS maps&lt;br /&gt;
Bind to the master server or to a Slave Server to obtain access to the administrative file information contained in that server’s NIS maps&lt;br /&gt;
Dynamically rebind to another server in case of server failure&lt;br /&gt;
Make all appropriate system calls aware of NIS&lt;br /&gt;
&lt;br /&gt;
NIS Processes&lt;br /&gt;
&lt;br /&gt;
The main daemons involved in the running of an NIS domain are&lt;br /&gt;
The ypserv daemon -- Responds to client information requests&lt;br /&gt;
The ypbind daemon -- Client to server binding&lt;br /&gt;
The rpc.yppasswd daemon -- Password change update in master server&lt;br /&gt;
The ypxfrd daemon -- Push the map to slave servers (sync)&lt;br /&gt;
The rpc.ypupdated domain -- Update NIS maps using the config stored in /var/yp/updates&lt;br /&gt;
&lt;br /&gt;
The NIS Slave Server contains upserv and ypbind daemon&lt;br /&gt;
&lt;br /&gt;
The NIS Clients contains only ypbind daemon&lt;br /&gt;
&lt;br /&gt;
The three most common search orders are&lt;br /&gt;
Search files and then NIS&lt;br /&gt;
Search NIS and then files&lt;br /&gt;
Forward hosts lookup requests from NIS to DNS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Introducing NIS Security&lt;br /&gt;
&lt;br /&gt;
The /var/yp/securenets file to restrict access to a single host or to a subnetwork, and using the passwd.adjunct file to limit access to the password information across the network.&lt;br /&gt;
&lt;br /&gt;
The /var/yp/securenets File&lt;br /&gt;
&lt;br /&gt;
If exist on an NIS server, the server only answers queries or supplies maps to hosts and networks whose IP Address exist in the file. The server must be part of the subnet to access itself.&lt;br /&gt;
# cat /var/yp/securenets&lt;br /&gt;
# Two methods of giving access to a system. Using the netmask followed by the IP Address&lt;br /&gt;
# or host keyword followed by the IP Address&lt;br /&gt;
host 127.0.0.1&lt;br /&gt;
255.255.255.0 150.10.1.0&lt;br /&gt;
host 13.13.14.1&lt;br /&gt;
host 13.13.14.2&lt;br /&gt;
&lt;br /&gt;
If you modify entries in the /var/yp/securenets file. You must kill and restart the ypserv and ypxfrd daemons.&lt;br /&gt;
# /usr/lib/netsvc/yp/ypstop (or) ypstart&lt;br /&gt;
&lt;br /&gt;
The passwd.adjunct File&lt;br /&gt;
&lt;br /&gt;
Encrypted password are normally hidden from the user in the /etc/shadow file. With the default NIS configuration, however the encrypted password string is shown as part of passwd maps. This file prevents unauthorized users from seeing the encrypted passwords.&lt;br /&gt;
# ypmatch –k usera passwd&lt;br /&gt;
usera: usera:LojyTdiQev512:3001:10:/export/home/usera:/bin/ksh&lt;br /&gt;
&lt;br /&gt;
The passwd.adjunct file contains the account name preceded by ## in the password field. Subsequent attempts to gain account ino, using the ypcat or ypmatch commands, returnds the password entry from the passwd adjunct file.&lt;br /&gt;
# ypmatch –k usera passwd&lt;br /&gt;
usera: usera:##usera:3001:10:/export/home/usera:/bin/ksh&lt;br /&gt;
&lt;br /&gt;
Configuring NIS Domain&lt;br /&gt;
&lt;br /&gt;
To locate the source file in another directory, modify the /var/yp/Makefile file:&lt;br /&gt;
Change the DIR=/etc line to DIR=Your choice&lt;br /&gt;
Change the PWDIR=/etc line to PWDIR=/your-choice&lt;br /&gt;
&lt;br /&gt;
Before you make any modification to the /var/yp/Makefile, save a copy of the original Makefile file.&lt;br /&gt;
&lt;br /&gt;
The NIS configuration script /usr/sbin/ypinit and the make utility generate NIS maps. The ypinit command reads the Makefile for source file locations, and converts ASCII scource files into NIS maps.The /etc/defaultdomain file sets the NIS domain name during system boot.&lt;br /&gt;
&lt;br /&gt;
Important files on the NIS Master (Part 1) -- hosts, passwd &amp;amp; shadow&lt;br /&gt;
&lt;br /&gt;
Important files on the NIS Master (Part 2)&lt;br /&gt;
The /var/yp/domainname directory is the repository for the NIS maps created by the ypinit script.&lt;br /&gt;
The /var/yp/binding/domainname directory contains the ypservers file where the names of NIS Master server and NIS Slave server are stored.&lt;br /&gt;
&lt;br /&gt;
Important files on the NIS Master (Part 3) -- The /usr/netsvc/yp directory contains the ypstop and ypstart commands that stop and start NIS services respectively&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/ypinit –m -- This command prompts for a list of other machies to become NIS&lt;br /&gt;
slave servers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuring the NIS Master Server&lt;br /&gt;
&lt;br /&gt;
Core, End User or Developer software configuration cluster do not have all necessary files in the /usr/lib/netsvc/yp directory to allow a host to function as an NIS server.&lt;br /&gt;
&lt;br /&gt;
1. Copy the /etc/nsswitch.nis file to the /etc/nsswitch.conf file. If necessary, modify the file&lt;br /&gt;
2. Enter the domainname command to set the local NIS domain&lt;br /&gt;
# domainname classroom.central.sun.com&lt;br /&gt;
3. Create an /etc/defaultdomain file with the domain name&lt;br /&gt;
4. If the files do not already exist, use the touch command to create zero-length files.&lt;br /&gt;
/etc/ethers, /etc/bootparams, /etc/locale, /etc/timezone, /etc/netgroup and /etc/netmasks.&lt;br /&gt;
These files are necessary for the creation of the complete set of NIS maps.&lt;br /&gt;
5. Install and update Makefile file in the /var/yp directory.&lt;br /&gt;
6. Create or populate the /etc/locale file, and make an entry for each domain on your network&lt;br /&gt;
using the following format&lt;br /&gt;
domainname locale eg. Classroom.central.sun.com en_us&lt;br /&gt;
7. Initialize the master server by using the local /etc files&lt;br /&gt;
# ypinit –m -- Provide slave server names and Ctrl+D to save the details. Press n for&lt;br /&gt;
“Terminate it on the first fatal error”&lt;br /&gt;
Note: If you have to restart the ypinit program, You are prompted to destroy the&lt;br /&gt;
/var/yp/domainname directory. Answer Y&lt;br /&gt;
8. # /usr/lib/netsvc/yp/ypstart&lt;br /&gt;
&lt;br /&gt;
Testing the NIS Service&lt;br /&gt;
&lt;br /&gt;
$ ypcat hosts -- Prints value from an NIS map&lt;br /&gt;
# ypmatch sys41 localhost hosts&lt;br /&gt;
192.168.30.41 sys41&lt;br /&gt;
127.0.0.1 localhost loghost&lt;br /&gt;
$ ypwhich -- To identify the master server&lt;br /&gt;
sys41&lt;br /&gt;
&lt;br /&gt;
Configure the NIS Client&lt;br /&gt;
&lt;br /&gt;
1. Copy the /etc/nsswitch.nis file to the /etc/nsswitch.conf file&lt;br /&gt;
2. Edit the /etc/inet/hosts file to ensure NIS master and slave servers have been defined.&lt;br /&gt;
3. # domainname domainname -- To set the local NIS domain&lt;br /&gt;
4. Create and populate the /etc/defaultdomain file with the domain name&lt;br /&gt;
5. # ypinit –c -- To initialize the system as an NIS client&lt;br /&gt;
6. Enter the names of the NIS Master and all Slave Servers&lt;br /&gt;
7. # /usr/lib/netsvc/yp/ypstart&lt;br /&gt;
8. # ypwhich –m -- To test the functionality&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuring NIS Slave Server&lt;br /&gt;
&lt;br /&gt;
Follow the client configuration steps and perform the below command&lt;br /&gt;
# ypinit –s master -- Command to initialize the system as an NIS slave server. Where master is the name of the NIS master. Start the service and test the functionality&lt;br /&gt;
&lt;br /&gt;
Updating the NIS Map&lt;br /&gt;
&lt;br /&gt;
1. Updates the text files in your source directory (typically /etc, unless it was changed in the Makefile file)&lt;br /&gt;
2. # cd /var/yp&lt;br /&gt;
3. # /usr/ccs/bin/make -- Refresh the NIS database maps using the make utility&lt;br /&gt;
&lt;br /&gt;
Updating NIS Password Map&lt;br /&gt;
&lt;br /&gt;
If the NIS master is running the rpc.yppasswdd daemon, any client system can update the NIS password map by using the yppasswd or passwd commands.&lt;br /&gt;
1. Run the rpc.yppasswdd daemon on the NIS master server&lt;br /&gt;
# /usr/lib/netsvc/yp/rpc.yppassed /$PWDIR/passwd –m passwd&lt;br /&gt;
&lt;br /&gt;
Updating the NIS Slave Server Map&lt;br /&gt;
&lt;br /&gt;
The following steps manually update the NIS timezone map on the master server and propagate all maps to the slave servers&lt;br /&gt;
1. Edit the source file on the NIS Master&lt;br /&gt;
# vi /etc/timezone&lt;br /&gt;
2. Remake and push the NIS maps to slave servers&lt;br /&gt;
# cd /var/yp; /usr/ccs/bin/make&lt;br /&gt;
3. If the push fails. Manually pull only the timezone map from the master server by&lt;br /&gt;
performing the below command in Slave server&lt;br /&gt;
# /usr/lib/netsvc/yp/ypxfr timezone.byname&lt;br /&gt;
# ypinit –s nis_master -- To pull all of the maps at once&lt;br /&gt;
&lt;br /&gt;
Sometimes maps fail to propagate, and you must manually use the ypxfr command to retrieve new map information. You can use shell scripts to run cron jobs for automatic update. The Solaris OE provides several template scripts in the /usr/lib/netsvc/yp directory that you can use and modify to meet your local site requirement.&lt;br /&gt;
&lt;br /&gt;
ypxfr_lperhour script -- To sync NIS Slave Servers passwd map&lt;br /&gt;
ypxfr_lperday script -- To sync NIS Slave Servers NIS maps for the group, protocols,&lt;br /&gt;
networks, services, and upservers keys.&lt;br /&gt;
Ypxfr_2perday script -- To sync NIS Slave servers nIS maps for the hosts, ethers, netfroups keys, and mail aliases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Quick Reference&lt;br /&gt;
&lt;br /&gt;
# domainname digit.com -- Create domain name&lt;br /&gt;
&lt;br /&gt;
# domainname &amp;gt; /etc/defaultdomain -- Creating domainname file&lt;br /&gt;
&lt;br /&gt;
# cp /etc/nsswitch.nis /etc/nsswitch.conf&lt;br /&gt;
&lt;br /&gt;
# /var/yp/Makefie -- Config file&lt;br /&gt;
&lt;br /&gt;
Makefile 4 parts&lt;br /&gt;
&lt;br /&gt;
1 – Declaration&lt;br /&gt;
2 – Details of centralization&lt;br /&gt;
3 – Coding for mapping&lt;br /&gt;
4 – Declaration of original path&lt;br /&gt;
&lt;br /&gt;
# cd /var/yp&lt;br /&gt;
&lt;br /&gt;
# ypinit –m -- Initializing the master server&lt;br /&gt;
# ypinit –s -- Initializing the slave server&lt;br /&gt;
# ypinit –c -- Initializing the client&lt;br /&gt;
Ctrl+D -- To save the file&lt;br /&gt;
Is this correct? [y/n] y&lt;br /&gt;
Non fatal error [y/n] n&lt;br /&gt;
&lt;br /&gt;
 If there is any error follow the below procedure&lt;br /&gt;
&lt;br /&gt;
# cd /etc&lt;br /&gt;
# touch ethers bootparams netgroup netmasks timezone&lt;br /&gt;
# cd /var/yp&lt;br /&gt;
# ypinit –m&lt;br /&gt;
# /usr/lib/netsvc/yp/ypstart -- To start the daemons&lt;br /&gt;
&lt;br /&gt;
# ypwhich -- Shows the map server details&lt;br /&gt;
Solaris&lt;br /&gt;
&lt;br /&gt;
# ypwhich –m -- Full details of map&lt;br /&gt;
&lt;br /&gt;
 A directory will be created with domain name&lt;br /&gt;
&lt;br /&gt;
# cd /var/yp/digit.com -- Contains all config file with .pag &amp;amp; .dir extensions&lt;br /&gt;
&lt;br /&gt;
# ypcat to read the file&lt;br /&gt;
&lt;br /&gt;
# ypcat –k passwd -- With arguments print keys as well as values&lt;br /&gt;
&lt;br /&gt;
# ypmatch –k root passwd</description></item><item><title>Solaris Zones configuration and set up</title><link>http://sunadmintools.blogspot.com/2010/12/solaris-zones-configuration-and-set-up.html</link><category>Zones</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 4 Dec 2010 23:23:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-1634118560156804970</guid><description>&lt;u&gt;&lt;b&gt;Solaris Zones Features :-&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1.Virtualization like VMware&lt;br /&gt;
2.Solaris Zones can hosts only instances of solaris. Not other Os's&lt;br /&gt;
3.Limit of 8192 Zones per solaris Host&lt;br /&gt;
4.Primary Zone(Global) has access to all zones&lt;br /&gt;
5.non-global zones, do not have access to other non-global zones&lt;br /&gt;
6.Default non global zones derive oackages from global Zone&lt;br /&gt;
7.Program Isolation like zone1 for apache zone2 for mysql zone3 for databases.&lt;br /&gt;
8.Provides 'Z' commands to manage Zones : Zlogin zonecfg zoneadm zonename&lt;br /&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;
Features of Global Zone&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;
1.Solaris Always boots(cold/warm) to the global zone.&lt;br /&gt;
2.Knows about All Hardware devices attach to system&lt;br /&gt;
3.Knows about all non global Zones&lt;br /&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;
Features of Non-Global Zones.&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;
1.Installed at a location on the filesystem of the Global Zone&lt;br /&gt;
'Zone root path' /export/home/zones/zones1 {Zone2,Zone3----} this is as root directory for this zones.&lt;br /&gt;
2.Share Packages with Global Zone.&lt;br /&gt;
3.Manage distinct hostname and table files.&lt;br /&gt;
4.cannot communicate with other non-global zones by default.NIC must be used, which means use standard network API(TCP)&lt;br /&gt;
5.Global Zone admin can delegatenon-global zone administration&lt;br /&gt;
&lt;br /&gt;
Zones Commands example :-&lt;br /&gt;
&lt;br /&gt;
#which zonename - to check if you os has zonename commands&lt;br /&gt;
/usr/bin/zonename&lt;br /&gt;
&lt;br /&gt;
#zonename - by default will show global zonename.&lt;br /&gt;
global&lt;br /&gt;
&lt;br /&gt;
#z - "z' commands&lt;br /&gt;
&lt;br /&gt;
Zone Configuration.&lt;br /&gt;
&lt;br /&gt;
#zonecfg - to configure zones&lt;br /&gt;
&lt;br /&gt;
note - zonecfg can run interactively , non -interactively, command-file modes&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;Requirements for non-global zones;&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;
1.Hostname of&lt;br /&gt;
2.Zone root path ie /export/home/zones/testzone1&lt;br /&gt;
3.IP Adress - bound to logical or physical interfaces.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;u&gt;Zones Types:-&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.sparse Root Zones - share key fileswith global zones.&lt;br /&gt;
2.Whole Root Zones - require more storage&lt;br /&gt;
&lt;br /&gt;
#df -k and select a slice which has more space lets example /export/home has 5GB&lt;br /&gt;
&lt;i&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;
Steps for Configuring non-global-zone:&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
1.mkdir /export/home/zones/testzone1&lt;br /&gt;
2.chmod 700 /export/home/zones/testzone1 - for user restriction of global zone users.&lt;br /&gt;
3.ls -ltr /export/homes/zones&lt;br /&gt;
&lt;br /&gt;
4#zonecfg -z testzone1&lt;br /&gt;
no such zone configured create one This error will pop when you first create a zone&lt;br /&gt;
&amp;gt;create - to create a zone&lt;br /&gt;
&amp;gt;set zonepath=/export/home/zones/testzone1 - This is the Root path for zone&lt;br /&gt;
&amp;gt;add net&lt;br /&gt;
&amp;gt;set address=192.168.1.0 - ip address&lt;br /&gt;
&amp;gt;set physocal=el000g0 - physical name of network card check with 'ifconfig -a'&lt;br /&gt;
&amp;gt; - If you are ready with you parameters press end before you can exit&lt;br /&gt;
&amp;gt;info- to see what we have set&lt;br /&gt;
&amp;gt;set autoboot=true - test zone will started automatically when system start&lt;br /&gt;
&amp;gt;info&lt;br /&gt;
&amp;gt;add attr - to add some extra parameters&lt;br /&gt;
attr&amp;gt;set name=commnet&lt;br /&gt;
attr&amp;gt;set type=string&lt;br /&gt;
attr&amp;gt;value =TestZone1&lt;br /&gt;
&amp;gt;end&lt;br /&gt;
&amp;gt;verify - verify if any error check the parameter again.&lt;br /&gt;
&amp;gt;commit - commit changes&lt;br /&gt;
&amp;gt;exit.&lt;br /&gt;
&lt;br /&gt;
#list -iv - to list zones&lt;br /&gt;
&lt;br /&gt;
#zoneadmin -z testzone1 install&lt;br /&gt;
&lt;br /&gt;
Zone testzone1 in to installed in not ready for production so we have to get it in ready state now&lt;br /&gt;
&lt;br /&gt;
#zoneadm list -iv - still u can see testzone1 has not got any id assigned like global one so now&lt;br /&gt;
&lt;br /&gt;
#zoneadm -z testzone1 boot - boots the zone , changing its state from installed to ready&lt;br /&gt;
&lt;br /&gt;
Simple is we are restarting the Testzone1&lt;br /&gt;
&lt;br /&gt;
#zoneadm list -iv - now you can see an id is assigned and status is running.&lt;br /&gt;
&lt;br /&gt;
#ps -ef | grep z&lt;br /&gt;
zoneadmd -z testzone1 - this process is responsible for this zone to run.&lt;br /&gt;
&lt;br /&gt;
zlogin - is used to login to zones&lt;br /&gt;
Note - each non - global maintain a console, use 'zlogin -C testzone1' to acces that zone.&lt;br /&gt;
&lt;br /&gt;
Note - zlogin permits login to non - global zone via the following messages&lt;br /&gt;
1.Interactive - i.e zlogin -l username zonename&lt;br /&gt;
2.Non -Interactive - zlogin options command&lt;br /&gt;
3.Console Mode - zlogin -C zonename&lt;br /&gt;
4.Safe Mode - zlogin -S&lt;br /&gt;
&lt;br /&gt;
#zoneadm list -iv&lt;br /&gt;
&lt;br /&gt;
#zlogin -C testzone1&lt;br /&gt;
select a laguage - 0 English&lt;br /&gt;
Vt100 - terminal&lt;br /&gt;
testzone1 press F2&lt;br /&gt;
Configure Kerbose - yes&lt;br /&gt;
name service - nis&lt;br /&gt;
&lt;br /&gt;
Enter from this procure its same like installation of solaris so specify all details as required.&lt;br /&gt;
like dns names, nis services location places etc etc&lt;br /&gt;
&lt;br /&gt;
#enter with root user and passwd&lt;br /&gt;
#zonename&lt;br /&gt;
testzone1&lt;br /&gt;
&lt;br /&gt;
#zoneadm list -iv - shows all zones global and non - global&lt;br /&gt;
&lt;br /&gt;
# once u r in testzone1 check /etc/passwd file u can see the system user but not users of the main system&lt;br /&gt;
&lt;br /&gt;
#netstat -anp tcp&lt;br /&gt;
&lt;br /&gt;
#Zoneadm -z testzone1 reboot - reboots the zone&lt;br /&gt;
&lt;br /&gt;
#zlogin testzone1 shutdown - to shutdown the zone&lt;br /&gt;
&lt;br /&gt;
Once Zones are created you can ssh or telnet from remote machine to connect that zone</description></item><item><title>How to Configure Name Service Clients</title><link>http://sunadmintools.blogspot.com/2010/12/how-to-configure-name-service-clients.html</link><category>Name Service</category><author>noreply@blogger.com (Unknown)</author><pubDate>Fri, 3 Dec 2010 23:21:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-2690075387005475456</guid><description>&lt;u&gt;&lt;b&gt;Configuring a DNS Client&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
The client resolver code is controlled by the following files&lt;br /&gt;
/etc/resolv.conf -- Contains directive to specify the scope of a query&lt;br /&gt;
/etc/nsswitch.conf -- Contains the reference to DNS for the hosts entry&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Configuring the DNS Client During Installation&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
-- Select DNS -- Give Domain Name -- Enter IP Address -- Enter search Domains -- Confirm&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Editing DNS Client Configuration Files&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
# vi /etc/resolv.conf&lt;br /&gt;
domain digigeeks.com&lt;br /&gt;
nameserver 140.40.40.152&lt;br /&gt;
search digigeeks.com -- List the local domain as the first argument to the search&lt;br /&gt;
&lt;br /&gt;
Copying the /etc/nsswitch.dns File to the /etc/nsswitch.conf&lt;br /&gt;
&lt;br /&gt;
# cp /etc/nsswitch.dns /etc/nsswitch.conf&lt;br /&gt;
# cat /etc/nsswitch.conf&lt;br /&gt;
………&lt;br /&gt;
hosts files dns&lt;br /&gt;
……..&lt;br /&gt;
&lt;br /&gt;
If you want to add DNS name resolution to a system currently running a name service, such as NIS or NIS+. You must place the dns keyword on the hosts line in the specific location, along with other keywords.&lt;br /&gt;
&lt;br /&gt;
# cat /etc/nsswitch.conf&lt;br /&gt;
…..&lt;br /&gt;
hosts: nfs files dns&lt;br /&gt;
…..&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Setting up an LDAP Client&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
The LDAP server cannot be a client of itself. Getting this configuration to work properly requires changes to the LDAP server and the LDAP client. The ldap_cachemgr daemon is responsible for maintaining and updating the changes to the client profile information.&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&gt;
Configuring LDAP Client During Installation&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
-- Select LDAP -- Enter Domain Name -- Enter Profile Name &amp;amp; Profile Server IP Address -- Confirm&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&gt;
Initializing the Native LDAP Client&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
You execute the ldapclient command on the client system once to initiate the client as a native LDAP client. The ldapclient command creates two files in the ./var/ldap directory on the LDAP client. These files contain info that the LDAP client use when binding to and accessing LDAP data.&lt;br /&gt;
/var/ldap/ldap_client_cred -- The proxy agent info that the client uses for LDAP authentication&lt;br /&gt;
/var/ldap/ldap_client_file -- The config info from the client profile in the LDAP server DB&lt;br /&gt;
&lt;br /&gt;
# ldapclient init –a proxy password=proxy –a proxy DN=cn=proxyagent, ou=profile, dc=suned.com, dc=sun –a domainname=suned.com 192.168.0.100&lt;br /&gt;
&lt;br /&gt;
# ldapclient list&lt;br /&gt;
&lt;br /&gt;
Copying the /etc/nsswitch.ldap to the /etc/nsswitch.conf&lt;br /&gt;
&lt;br /&gt;
During LDAP client initialization the /etc/nsswitch.ldap file is copied over the /etc/nsswitch.conf file&lt;br /&gt;
&lt;br /&gt;
# ldaplist -- To list naming info from LDAP server&lt;br /&gt;
&lt;br /&gt;
# ldapclient uninit -- Unconfiguring LDAP Client</description></item><item><title>Jump start and Boot Only Server</title><link>http://sunadmintools.blogspot.com/2010/12/jump-start-and-boot-only-server.html</link><category>Jump start</category><author>noreply@blogger.com (Unknown)</author><pubDate>Thu, 2 Dec 2010 23:19:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-2644535033141615679</guid><description>Four Main Services - Boot Services, Identification Services, Configuration Services, Installation Services&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Implementing a Basic Jumpstart Server&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Spool the OS image&lt;br /&gt;
2. Edit the sysidcfg file&lt;br /&gt;
3. Edit the rules and profile files&lt;br /&gt;
4. Run the check script&lt;br /&gt;
5. Run the add_install_client scripts&lt;br /&gt;
6. Boot the client&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cd /export&lt;br /&gt;
# mkdir config&lt;br /&gt;
# mkdir sol_dump&lt;br /&gt;
# cd /cdrom/cdrom0/s0/Solaris_9/Misc/Jumpstart_sample/&lt;br /&gt;
# cp –r * /export/config/&lt;br /&gt;
# cd /cdrom/cdrom0/s0/Solaris_8/Tools&lt;br /&gt;
# ./setup_install_server /export/home/sol_dump -- Copying solaris dump to local directory&lt;br /&gt;
# cd /cdrom/cdrom0/Solaris_9/Tools/&lt;br /&gt;
# ./add_to_install_server /export/home/sol_dump -- Appending 2nd CD content&lt;br /&gt;
# cd /etc&lt;br /&gt;
&lt;br /&gt;
# vi ethers&lt;br /&gt;
8:0:20:a6:aa:2b ultra5 (hostname)&lt;br /&gt;
&lt;br /&gt;
# vi /etc/hosts&lt;br /&gt;
140.40.40.154 ultra5&lt;br /&gt;
&lt;br /&gt;
# vi /etc/timezone&lt;br /&gt;
Asia/Calcutta ultra5&lt;br /&gt;
&lt;br /&gt;
# cd /export/config/&lt;br /&gt;
&lt;br /&gt;
# vi rules&lt;br /&gt;
hostname ultra5 - host_class finish_script&lt;br /&gt;
&lt;br /&gt;
- Pre Install script&lt;br /&gt;
host_class -- Config details like partition&lt;br /&gt;
finish_script -- Post install scripts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# vi host_class&lt;br /&gt;
install_type initial_install&lt;br /&gt;
system_type standalone&lt;br /&gt;
partitioning explicit&lt;br /&gt;
Cluster SUNWXall&lt;br /&gt;
filesys c0t0d0s0 10000 /&lt;br /&gt;
filesys c0t0d0s1 550 swap&lt;br /&gt;
filesys c0t0d0s7 free /export/home&lt;br /&gt;
&lt;br /&gt;
# vi finish_script&lt;br /&gt;
touch /a/noaushutdown&lt;br /&gt;
rm /a/etc/defaultdomain&lt;br /&gt;
rm –r /a/var/yp/digit.com&lt;br /&gt;
cp /a/etc/nsswitch.files /a/etc/nsswitch.conf&lt;br /&gt;
&lt;br /&gt;
# vi sysidcfg -- System identification &amp;amp; configuration. Timezone can also be given here&lt;br /&gt;
security_policy=none&lt;br /&gt;
name_service=none&lt;br /&gt;
network_interface=primary [netmask=255.255.0.0 protocol_ipv6=no]&lt;br /&gt;
timezone= Asia/Calcutta&lt;br /&gt;
system_locale=en_US&lt;br /&gt;
&lt;br /&gt;
-- Time zone are listed in the directory structure below the /usr/share/lib/zoneinfo directory.&lt;br /&gt;
-- Locales are listed in the /usr/lib/locale directory&lt;br /&gt;
&lt;br /&gt;
# chmod 755 finish_script&lt;br /&gt;
# ./check -- To check the config&lt;br /&gt;
&lt;br /&gt;
# vi /etc/dfs/dfstab&lt;br /&gt;
share –o anon=0 /export/home/sol_dump&lt;br /&gt;
share –o anon=o /export/config&lt;br /&gt;
&lt;br /&gt;
# cd /var/yp&lt;br /&gt;
# /usr/ccs/bin/Make&lt;br /&gt;
# cd /export/home/sol_dump/solaris_9/Tools&lt;br /&gt;
# ./add_install_client –c 140.40.40.151:/export/config –p 140.40.40.151:/export/config ultra5(hostname) sun4u&lt;br /&gt;
# update the NIS file with make command&lt;br /&gt;
&lt;br /&gt;
From Client&lt;br /&gt;
&lt;br /&gt;
ok boot net –install -- Will search the network and start the installation automatically&lt;br /&gt;
&lt;br /&gt;
-- Before a Jumpstart client can boot and obtain all of the NFS resourctes it requires, every directory listed as an argument to the add_install_client script must be shared by the server on which it resides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Setting Up a Boot-Only Server&lt;br /&gt;
&lt;br /&gt;
A boot server responds to RARP, TFTP, and bootparams requests from jumpstart clients and provides a boot image using the NFS service.&lt;br /&gt;
1. Running the setup_install_server script with the –b option to spool a boot image from CD-Rom or DVD&lt;br /&gt;
2. Running the add_install_client script with options and argument that shows a list of servers and the identification config, and installation services that they provide.&lt;br /&gt;
&lt;br /&gt;
Executing the setup_install_server script&lt;br /&gt;
# mkdir /export/install&lt;br /&gt;
# cd /cdrom/cdrom0/s0/Solaris_9/Tools&lt;br /&gt;
# ./setup_install_server –b /export/install&lt;br /&gt;
Executing the add_install_client script&lt;br /&gt;
Before you run the script, update the hosts and ethers information for the jumpstart client&lt;br /&gt;
&lt;br /&gt;
/etc/inet/hosts&lt;br /&gt;
192.10.10.4 client1&lt;br /&gt;
&lt;br /&gt;
/etc/ethers&lt;br /&gt;
8:0:20:9c:88:5b client1&lt;br /&gt;
&lt;br /&gt;
The boot server must have entry in /etc/inet/hosts file for each server you specify while you run add_install_client script.&lt;br /&gt;
# cd /export/install/Solaris_9/Tools&lt;br /&gt;
# ./add_install_client –c server1:/export/config –p server1:/export/config client1 sun4u</description></item><item><title>Name Services / Using</title><link>http://sunadmintools.blogspot.com/2010/12/name-services-using.html</link><category>DNS</category><category>LDAP</category><category>Name Services</category><category>NIS</category><category>NIS+</category><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 1 Dec 2010 23:17:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-8859609326821578717</guid><description>/etc/rc2.d/S72inetsvc script -- Starts DNS during system boot.&lt;br /&gt;
/etc/rc2.d/S71rpc script -- Starts NIS &amp;amp; NIS+ during system boot&lt;br /&gt;
/etc/rc2.d/S72directory script -- Starts iPlanet Server during system boot.&lt;br /&gt;
&lt;br /&gt;
Name Services -- DNS, NIS, NIS+, LDAP&lt;br /&gt;
&lt;br /&gt;
The name service switch file determines which services a system users to search for information and in which order the name services are searched. All Solaris OE systems uses the /etc/nsswitch.conf file as the name service switch file. The nsswitch.conf is loaded with the contents of a template file during the installation of the Solaris OE depending on the name service that is selected.&lt;br /&gt;
&lt;br /&gt;
Name Service Name Service Template&lt;br /&gt;
Local Files /etc/nsswitch.files&lt;br /&gt;
DNS /etc/nsswitch.dns&lt;br /&gt;
NIS /etc/nsswitch.nis&lt;br /&gt;
NIS+ /etc/nsswitch.nisplus&lt;br /&gt;
LDAP /etc/nsswitch.ldap&lt;br /&gt;
&lt;br /&gt;
Configuring the Name Service Cache Daemo (nscd)&lt;br /&gt;
&lt;br /&gt;
The nscd daemon is a process that provides a cache for the most common name service requests. The /etc/nscd.conf file controls the behavior of the nscd daemon. The nscd daemon provides caching for passwd, group, hosts, ipnodes, exec_attr, prof_attr and user_attr databases. Each line specifies either an attribute and a value or an attribute, a cache name, and a value.&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d.nscd stop (or) start&lt;br /&gt;
&lt;br /&gt;
The getent command provides generic retrieval interface to search many name service database. As a system administrator, you can query name service information sources with tools, such as the&lt;br /&gt;
ypcat NIS namespace&lt;br /&gt;
nslookup DNS&lt;br /&gt;
ldaplist LDAP&lt;br /&gt;
Bt these tools are not consulting nsswitch.conf file. Whereas getent command searches the information sources in the order in which they are configured in the name service switch file. So if there is any error in the file will be identified with this command.&lt;br /&gt;
&lt;br /&gt;
getent database [key]…..&lt;br /&gt;
database -- The name of the database to be examined. This name can be passwd, group, hosts, ipnodes, services, protocols, ethers, networkds, or netmasks.&lt;br /&gt;
&lt;br /&gt;
# getent passwd lp&lt;br /&gt;
lp:x:71:8:Line Printer Admin:/usr/spool/lp:&lt;br /&gt;
&lt;br /&gt;
# getent group 10&lt;br /&gt;
staff::10:&lt;br /&gt;
&lt;br /&gt;
# getent hosts sys44&lt;br /&gt;
192.168.38.44 sys44 loghost (loghost will be absent if the NIS is searched first)</description></item><item><title>Replace a Disk Drive in solaris</title><link>http://sunadmintools.blogspot.com/2010/11/replace-disk-drive-in-solaris.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Tue, 30 Nov 2010 05:00:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-1696104747069540582</guid><description>Use this procedure to replace a failed disk drive in a running cluster.&lt;br /&gt;
1.    Does replacing the disk drive affect any LUN's availability?&lt;br /&gt;
If no, proceed to Step 2.&lt;br /&gt;
&lt;br /&gt;
If yes, remove the LUNs from volume management control. For more information,&lt;br /&gt;
see  your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager&lt;br /&gt;
documentation.&lt;br /&gt;
&lt;br /&gt;
2. Replace the disk drive in the storage array.&lt;br /&gt;
For the procedure about how to replace a disk drive, see the Sun StorEdge&lt;br /&gt;
D1000 Storage Guide.&lt;br /&gt;
&lt;br /&gt;
3. Run Health Check to ensure that the new disk drive is not defective.&lt;br /&gt;
For the procedure about how to run Recovery Guru and Health Check, see the Sun StorEdge RAID&lt;br /&gt;
Manager User's Guide.&lt;br /&gt;
3.&lt;br /&gt;
Does the failed drive belong to a drive group?&lt;br /&gt;
If no, proceed to Step 5.&lt;br /&gt;
If yes, reconstruction starts automatically. If reconstruction does not start automatically for any reason,&lt;br /&gt;
then select Reconstruct from the Manual Recovery application. Do not select Revive. When&lt;br /&gt;
reconstruction is complete, skip to Step 6.&lt;br /&gt;
4.&lt;br /&gt;
Fail the new drive, then revive the drive to update DacStore on the drive.&lt;br /&gt;
For the procedure about how to fail and revive drives, see the Sun StorEdge RAID Manager User's Guide.&lt;br /&gt;
5.&lt;br /&gt;
If you removed LUNs from volume management control in Step 1, return the LUNs to volume management&lt;br /&gt;
control.</description></item><item><title>How to Configure System Messaging</title><link>http://sunadmintools.blogspot.com/2010/11/how-to-configure-system-messaging.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Mon, 29 Nov 2010 23:16:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-4707563729489593025</guid><description>The syslog system messaging features track system activities and events. You can manually generate log messages by using the logger command. The syslog function, the syslogd daemon, and input from the /etc/syslog.conf file work together to facilitate system messaging for the solaris 9 OE.&lt;br /&gt;
&lt;br /&gt;
The /etc/syslog.conf file&lt;br /&gt;
&lt;br /&gt;
This file consists of two tab-separated fields: selector and action. The selector field has two components, a facility and a level written as facility.level. Facility represent categories of system processes that can generate messages. Levels represent the severity or importance of the message. The action field determines whether to send the message.&lt;br /&gt;
&lt;br /&gt;
*.err /var/adm/messages -- Error messages for all facilities are sent to the /var/adm/messages&lt;br /&gt;
&lt;br /&gt;
Only use tabs as white space in the .etc.syslog.conf file. The Solaris OE accesses the /usr/include/sys/syslog.h file to determine the correct facility.level sequencing order.&lt;br /&gt;
&lt;br /&gt;
Selector Fields (facility) Options&lt;br /&gt;
&lt;br /&gt;
kern Messages generated by the kernel&lt;br /&gt;
user Messages generated by user processes and don’t have default priority for messages&lt;br /&gt;
daemon System daemon, such as the in.ftpd and the telnetd daemon&lt;br /&gt;
auth The authorization system, including the login, su, and ttymon commands&lt;br /&gt;
syslog Messages generated internally by the syslogd daemon&lt;br /&gt;
lpr The line printer spooling system, such as the lpr and lpc commands&lt;br /&gt;
news Files reserved for the USENET network news system&lt;br /&gt;
uucp The UNIX to UNIX copy (uucp) system does not use the syslog function&lt;br /&gt;
cron The cron and at facilities, including crontab, at, and cron&lt;br /&gt;
local0-7 Fields reserved for local use.&lt;br /&gt;
mark The time when the message was last saved and produced by the syslogd daemon&lt;br /&gt;
* All facilities, except the mark facility.&lt;br /&gt;
&lt;br /&gt;
You can use the asterisk (*) to select all facilities (for eg. *.err); however, you cannot use * to select all levels of a facility (for eg. Kern.*)&lt;br /&gt;
&lt;br /&gt;
The levels in descending order of severity&lt;br /&gt;
Selector Fields (level) Options&lt;br /&gt;
Level Priority Description&lt;br /&gt;
&lt;br /&gt;
emerg 0 Panic conditions that are normally broadcast to all users&lt;br /&gt;
alert 1 Conditions that should be corrected immediately&lt;br /&gt;
crit 2 Warnings about critical conditions, such as hard device errors&lt;br /&gt;
err 3 Errors other than hard device errors&lt;br /&gt;
warning4 Warning messages&lt;br /&gt;
notice 5 Non-error conditions that might require special handling&lt;br /&gt;
info 6 Informational messages&lt;br /&gt;
debug 7 Messages that are normally used only when debugging a program&lt;br /&gt;
none 8 Messages are not sent from the indicated facility to the selected file&lt;br /&gt;
&lt;br /&gt;
Not all levels of severity are implemented for all facilities in the same way.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Action Field -- The action field defines where to forward the message. This field can have any one of the following entries&lt;br /&gt;
&lt;br /&gt;
/filename The targeted file&lt;br /&gt;
@host The @sign denoted that messages must be forwarded to a remote host.&lt;br /&gt;
Messages are forwarded to the syslogd daemon on the remote host&lt;br /&gt;
user1, user2 The user1 and user2 entries receive messages if they are logged in&lt;br /&gt;
* All logged in users will receive messages&lt;br /&gt;
&lt;br /&gt;
You must restart the syslogd daemon whenever you make any changes to /etc/syslog.conf file&lt;br /&gt;
# /etc/init.d/syslog stop (or) start&lt;br /&gt;
# pkill –HUP syslogd&lt;br /&gt;
&lt;br /&gt;
 Syslogd started -- It’s starting the M4 Macro Processor -- M4 will read the /etc/syslog.conf file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuring syslog Messaging&lt;br /&gt;
&lt;br /&gt;
The inetd daemon uses the syslog command to record incoming network connection requests made by using TCP. You can modify the behavior of the inetd daemon to log TCP connections by using the syslogd daemon. The daemon facility and the notice message level are supported by inetd.&lt;br /&gt;
Use the –t option as an argument to the inetd daemon to enable tracing of TCP services. When you enable the trace option for the inetd daemon, it uses the daemon.notice to log the client’s IP address and TCP port number, and the name of the service. Add the –t option to the entry which activated the inetd daemon in the inetsvc script located in the /etc/init.d directory&lt;br /&gt;
&lt;br /&gt;
# grep inetd /etc/init.d/inetsvc&lt;br /&gt;
/usr/sbin/inetd –s –t -- You must restart the inetd daemon for the new option to take effect&lt;br /&gt;
&lt;br /&gt;
# grep daemon.notice /etc/syslog.conf&lt;br /&gt;
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages&lt;br /&gt;
&lt;br /&gt;
Monitoring a syslog File in Real Time&lt;br /&gt;
&lt;br /&gt;
The tail –f command holds the file open so that you can view messages being written to the file by the syslogd daemon.&lt;br /&gt;
&lt;br /&gt;
# tail –f /var/adm/messages -- Press Ctrl+c to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Adding One-Line Entries to a System Log File&lt;br /&gt;
&lt;br /&gt;
logger [-i](logs PID) [-f file] [-p priority] [-t tag] [message]&lt;br /&gt;
&lt;br /&gt;
# logger system rebooted -- If the user.notice field is configured in the /etc/syslog.conf file, the message is logged to the file designated for the user.notice selector field&lt;br /&gt;
&lt;br /&gt;
# logger –p user.err system rebooted -- Changing the priority of the messages to user.err route the messages to the /var/adm/messages file as indicated in the /etc/syslog.conf file&lt;br /&gt;
# logger –i –p2 “crit”&lt;br /&gt;
&lt;br /&gt;
/dev/sysmsg -- Console</description></item><item><title>How to Performe Smartcard Authentication</title><link>http://sunadmintools.blogspot.com/2010/11/how-to-performe-smartcard.html</link><category>Authentication</category><category>smart card</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sun, 28 Nov 2010 23:14:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-8282452416951465211</guid><description>&lt;div style="text-align: center;"&gt;&lt;b&gt;Smartcard Authentication&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
# /usr/dt/bin/sdtsmartcardadmin &amp;amp; -- To start smartcard console&lt;br /&gt;
&lt;br /&gt;
ATR – Answer to reset Number (unique)&lt;br /&gt;
&lt;br /&gt;
# smartcard –c disable -- Disabling smartcard operation&lt;br /&gt;
# smartcard –c admin -- Display the current client and server configuration&lt;br /&gt;
&lt;br /&gt;
# /etc/smartcard/opencard.properties -- Config File</description></item><item><title>installation of Vmware ESX 3.5 server and client  / Vmware ESX 3.5 server and client installation</title><link>http://sunadmintools.blogspot.com/2010/10/installation-of-vmware-esx-35-server.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 2 Oct 2010 23:12:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-1585834267388781832</guid><description>Vmware Interview questions and answers, vmware CBT, vmware FAQ, vmware e-books, vmware MNC interview questions and answers, vmware Video, vmware tips and tricks @&amp;nbsp; &lt;b style="color: blue;"&gt;http://sunadmintools.blogspot.com/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Vmware ESX 3.5 server and client installation complete presentation click the next button and wait for the ppt to get downloaded completely.&lt;br /&gt;
&lt;br /&gt;
Click the full icon in the botton to see the complete e-book in full mode.&lt;br /&gt;
If you like my blog do comment me&lt;br /&gt;
Donate if this blog really help you to build your career.&lt;br /&gt;
share documents if you have any more stuff with you&lt;br /&gt;
share the blog with friends for better result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id="__ss_5281071" style="width: 425px;"&gt;&lt;b style="display: block; margin: 12px 0pt 4px;"&gt;&lt;a href="http://www.slideshare.net/poustchi/vmware-esx-35" title="VMware ESX 3.5"&gt;VMware ESX 3.5&lt;/a&gt;&lt;/b&gt;&lt;object height="355" id="__sse5281071" width="425"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=vmwareesx3-5-100924180953-phpapp02&amp;amp;stripped_title=vmware-esx-35&amp;amp;userName=poustchi"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed name="__sse5281071" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=vmwareesx3-5-100924180953-phpapp02&amp;amp;stripped_title=vmware-esx-35&amp;amp;userName=poustchi" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/object&gt;&lt;br /&gt;
&lt;div style="padding: 5px 0pt 12px;"&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/poustchi"&gt;poustchi&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description><enclosure length="3332" type="application/x-shockwave-flash" url="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=vmwareesx3-5-100924180953-phpapp02&amp;amp;stripped_title=vmware-esx-35&amp;amp;userName=poustchi"/><itunes:explicit>no</itunes:explicit><itunes:subtitle>Vmware Interview questions and answers, vmware CBT, vmware FAQ, vmware e-books, vmware MNC interview questions and answers, vmware Video, vmware tips and tricks @&amp;nbsp; http://sunadmintools.blogspot.com/ Vmware ESX 3.5 server and client installation complete presentation click the next button and wait for the ppt to get downloaded completely. Click the full icon in the botton to see the complete e-book in full mode. If you like my blog do comment me Donate if this blog really help you to build your career. share documents if you have any more stuff with you share the blog with friends for better result. VMware ESX 3.5 View more presentations from poustchi.</itunes:subtitle><itunes:author>noreply@blogger.com (Unknown)</itunes:author><itunes:summary>Vmware Interview questions and answers, vmware CBT, vmware FAQ, vmware e-books, vmware MNC interview questions and answers, vmware Video, vmware tips and tricks @&amp;nbsp; http://sunadmintools.blogspot.com/ Vmware ESX 3.5 server and client installation complete presentation click the next button and wait for the ppt to get downloaded completely. Click the full icon in the botton to see the complete e-book in full mode. If you like my blog do comment me Donate if this blog really help you to build your career. share documents if you have any more stuff with you share the blog with friends for better result. VMware ESX 3.5 View more presentations from poustchi.</itunes:summary><itunes:keywords>solaris,interview,solaris,interview,tips,solaris,questions,solaris,interview,questions,solaris,interview,questions,and,answers</itunes:keywords></item><item><title>Solaris commands / VI Editor</title><link>http://sunadmintools.blogspot.com/2010/08/solaris-commands-vi-editor.html</link><category>VI</category><author>noreply@blogger.com (Unknown)</author><pubDate>Mon, 23 Aug 2010 08:46:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-6878935858482134754</guid><description>&lt;div style="text-align: left;"&gt;&lt;br /&gt;Inserting and Appending Text&lt;br /&gt;&lt;br /&gt;a - Append text after the cursor&lt;br /&gt;A - Appends text at the end of the line&lt;br /&gt;i - Inserts text before the cursor&lt;br /&gt;I - Inserts text at the beginning of the line&lt;br /&gt;o - Opens a new line below the cursor&lt;br /&gt;O - Opens a new line above the cursor&lt;br /&gt;:r &lt;filename&gt;&lt;/filename&gt;Inserts text from another file into the current file&lt;br /&gt;&lt;br /&gt;Key Sequence for the VI Editor&lt;br /&gt;&lt;br /&gt;n, left arrow or backspace Left one characters&lt;br /&gt;j or down arrow Down one line&lt;br /&gt;k or up arrow Up one line&lt;br /&gt;l, right arrow or spacebar Right one character&lt;br /&gt;w Forward one word&lt;br /&gt;b Back one word&lt;br /&gt;e To the end of the current word&lt;br /&gt;$ To the end of the line&lt;br /&gt;0 (zero) To the beginning of the line&lt;br /&gt;^ To the first non whitespace character on the line&lt;br /&gt;Return Down to the beginning of the next line&lt;br /&gt;G Goes to the last line of the file&lt;br /&gt;1G Goes to the first line of the file&lt;br /&gt;:n Goes to the line n&lt;br /&gt;nG Goes to the line n&lt;br /&gt;Ctrl F Pages forward one screen&lt;br /&gt;Ctrl D Scroll down one half screen&lt;br /&gt;Ctrl B Pages back one screen&lt;br /&gt;Ctrl U Scrolls up one half screen&lt;br /&gt;Ctrl L Refreshes the screen&lt;br /&gt;&lt;br /&gt;Editing files using the VI editing commands&lt;br /&gt;&lt;br /&gt;R Overwrites or replace characters to the right of the cursor&lt;br /&gt;C Changes or overwrites characters to the end of the line&lt;br /&gt;s Substitute a string for a character at the cursor&lt;br /&gt;x Deletes a character at the cursor&lt;br /&gt;dw Deletes a word or part of the word to the right of the cursor&lt;br /&gt;dd Dletes the line containing the cursor&lt;br /&gt;D Deletes the line from the cursor to the right end of the line&lt;br /&gt;:n,nd Deletes the line n through n&lt;br /&gt;&lt;br /&gt;Using the Text Changing Commands&lt;br /&gt;&lt;br /&gt;u Undoes the previous command&lt;br /&gt;U Undoes all changes to the current line&lt;br /&gt;. Repeats the previous command&lt;br /&gt;&lt;br /&gt;Search and Replace Command&lt;br /&gt;/string Searches forward for the string&lt;br /&gt;?string Searches backward for the string&lt;br /&gt;n Searches the next occurrence of the string&lt;br /&gt;N Searches for the previous occurrence of the string&lt;br /&gt;:%s/old/new/g Searches for the old string and replace it with the new string globally&lt;br /&gt;&lt;br /&gt;Using the text copying and Text Pasting Commands&lt;br /&gt;&lt;br /&gt;yy Yanks a copy of a line&lt;br /&gt;p Puts yanked or deleted text under the line containing the cursor&lt;br /&gt;P Puts yanked or deleted text before the line containing the cursor&lt;br /&gt;:n,n co n Copies lines n through n and puts them after line n&lt;br /&gt;:n,n m n Moves lines n through n to line n &lt;/div&gt;</description></item><item><title>Booting process in Solaris</title><link>http://sunadmintools.blogspot.com/2010/08/booting-process-in-solaris.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 11 Aug 2010 04:56:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-1049767493201140454</guid><description>Booting process in Solaris can be divided in to different phases for ease of study . First phase starts at the time of switching on the machine and is boot prom level , it displays a identification banner mentioning machine host id serial no , architecture type memory and Ethernet address This is followed by the self test of various systems in the machine.&lt;br /&gt;&lt;br /&gt;This process ultimately looks for the default boot device and reads the boot program from the boot block which is located on the 1-15 blocks of boot device. The boot block contains the ufs file system reader which is required by the next boot processes.&lt;br /&gt;&lt;br /&gt;The ufs file system reader opens the boot device and loads the secondary boot program from /usr/platform/`uname –i`/ufsboot ( uname –i expands to system architecture type)&lt;br /&gt;&lt;br /&gt;The boot program above loads a platform specific kernel along with a generic solaris kernel&lt;br /&gt;&lt;br /&gt;The kernel initialize itself and load modules which are required to mount the root partition for continuing the booting process.</description></item><item><title>SSA - how to create state database replica</title><link>http://sunadmintools.blogspot.com/2010/03/ssa-how-to-create-state-database.html</link><category>solaris interview questions</category><category>solaris interview questions and answers</category><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 31 Mar 2010 19:48:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-2655450449913794653</guid><description>#metabd –a –f c0t0d0s1</description></item><item><title>SSA - How to see the state databases replica.</title><link>http://sunadmintools.blogspot.com/2010/03/ssa-how-to-see-state-databases-replica.html</link><category>solaris interview questions</category><category>solaris interview questions and answers</category><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 31 Mar 2010 17:49:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-4301222296161512012</guid><description>A) # metabd</description></item><item><title>SSA - what are raid0,raid1 and raid5</title><link>http://sunadmintools.blogspot.com/2010/03/ssa-what-are-raid0raid1-and-raid5.html</link><category>solaris interview questions</category><category>solaris interview questions and answers</category><author>noreply@blogger.com (Unknown)</author><pubDate>Wed, 31 Mar 2010 07:48:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-7871863041757382345</guid><description>&lt;strong&gt;Q) what are raid0,raid1 and raid5&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;A) Raid 0&lt;/strong&gt; is concatenation or stripping&lt;br /&gt;Concatenation means writing data in disk one after another&lt;br /&gt;Stripping means writing data of 32kbs interlease value in to disk&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Raid 1&lt;/strong&gt; – mirroring that means writing data on two disk parallely or duplicatiung the data on two disk.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Raid 5&lt;/strong&gt; – stipping with parity the data of 2 disk is duplicated in the third disk with parity information</description></item><item><title>SSA - How to configure newly attached hardware like hardsik network card.</title><link>http://sunadmintools.blogspot.com/2010/03/ssa-how-to-configure-newly-attached.html</link><category>solaris interview questions</category><category>solaris interview questions and answers</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sun, 28 Mar 2010 22:45:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-1438143222948762211</guid><description># devfsadm&lt;br /&gt;&lt;br /&gt;Or drvconfig</description></item><item><title>SSA -  How to set environment variable in NVRAM</title><link>http://sunadmintools.blogspot.com/2010/03/ssa-how-to-set-environment-variable-in.html</link><category>l</category><category>solaris interview questions</category><category>solaris interview questions and answers</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sun, 28 Mar 2010 11:44:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752339975323641757.post-4675675631836522007</guid><description># nvalias /pci---/rarp – to set scsi for booting of client&lt;br /&gt;&lt;br /&gt;# nvalias net dhcp – to boot from dhcp&lt;br /&gt;&lt;br /&gt;# nvunalias net – remove the alias</description></item></channel></rss>