Awk is phenomenal in that you can cat or grep a big log file and print just the columns you're interested in. It makes scanning logs with very long lines so much quicker. <div><br></div><div>I'm just picking up python myself. It looks to be very handy for scripting.</div>
<div><br></div><div>Brian<br><br><div class="gmail_quote">On Tue, Mar 20, 2012 at 11:22 AM, James Sumners <span dir="ltr"><<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bash scripting, or the preferred shell of the location, is definitely<br>
a must. But that also means being familiar with the tool set available<br>
to you when you are actively interacting with Bash. Tools that I use<br>
frequently (in no particular order):<br>
<br>
* `nc` (netcat): a must if you're working with network services<br>
* `awk`<br>
* `sed`<br>
* `grep`<br>
* `cut`<br>
* `sort`<br>
* `screen`: e.g. <a href="https://bitbucket.org/jsumners/scripts/src/tip/screen_daemon.sh" target="_blank">https://bitbucket.org/jsumners/scripts/src/tip/screen_daemon.sh</a><br>
* `ps`<br>
<br>
That's a shorter list than I thought it would be. But it is off the<br>
top of my head. Still, you can do a lot with just those.<br>
<br>
I'd also recommend getting familiar with a scripting language that is<br>
a bit more robust than Bash. There are situations that I find are more<br>
easily handled with Python. I'm no Python guru (I code by manual with<br>
Python), but it certainly makes some things easier.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, Mar 20, 2012 at 11:06, Jim Butler <<a href="mailto:jimbutler1234567890@gmail.com">jimbutler1234567890@gmail.com</a>> wrote:<br>
> Hi..<br>
> I have many years of experience with Linux, but I'm finding out lately<br>
> that apparently there is a good deal of mainstream knowledge that I've<br>
> missed somewhere. Most Linux System Admin positions require that you<br>
> know how to script so you can automate processes, and set up monitoring,<br>
> etc..<br>
> Usually when I wanted to monitor a system, I set up Nagios for host<br>
> monitoring, and then if I found a problem, I logged in manually to the<br>
> host in questionn and used tools like top, vmstat, iftop, iostat, etc.<br>
> for finding the cause of bottlenecks. But apparently when working on<br>
> large deployments like where you have large clusters or other types of<br>
> large setups, there need to be tools and/or scripts in place for<br>
> monitoring. I need to learn this stuff! I'm teaching myself BASH<br>
> scripting now, and so I have that under way. Also I know about using<br>
> MRTG and CACTI and the like, for monitoring network traffic on switches.<br>
> So let me ask everything this:<br>
> What "monitoring tools" or "automation tools" should a guy like me be<br>
> learning to use, in order to be a good and marketable System<br>
> Administrator? Where would you send a guy like me to learn the pieces he<br>
> is missing? If you were in my shoes, what would you do to get up to<br>
> speed most quickly? I'm looking for wisdom and guidance from Linux<br>
> System Admins who are, well, better than me and more experienced than me.<br>
><br>
> Thank you in advance,<br>
> Jim Butler<br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
James Sumners<br>
<a href="http://james.roomfullofmirrors.com/" target="_blank">http://james.roomfullofmirrors.com/</a><br>
<br>
"All governments suffer a recurring problem: Power attracts<br>
pathological personalities. It is not that power corrupts but that it<br>
is magnetic to the corruptible. Such people have a tendency to become<br>
drunk on violence, a condition to which they are quickly addicted."<br>
<br>
Missionaria Protectiva, Text QIV (decto)<br>
CH:D 59<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><dt style="font-size:17px;color:rgb(69,69,69);font-family:'Times New Roman',Times,serif;line-height:19px;background-color:rgb(255,255,255)">
The more laws and order are made prominent,<br>The more thieves and robbers there will be.</dt><dd style="font-size:15px;margin-top:8px;margin-right:10px;margin-bottom:10px;margin-left:4em;color:rgb(69,69,69);font-family:'Times New Roman',Times,serif;line-height:19px;background-color:rgb(255,255,255)">
<b>Lao-tzu</b>, <i>The Way of Lao-tzu</i><br><i>Chinese philosopher (604 BC - 531 BC)</i></dd><br>
</div>