* Re: Sysadmin favorite commands list
2002-07-12 3:19 ` Dave Uhring
@ 2002-07-12 4:55 ` Adam Price
2002-07-12 10:30 ` Dave Uhring
2002-07-12 15:33 ` Dan Riley
` (2 subsequent siblings)
3 siblings, 1 reply; 18+ messages in thread
From: Adam Price @ 2002-07-12 4:55 UTC (permalink / raw)
I think I read somewhere that Dave Uhring <dmuhring@yahoo.com> wrote
... :
> Sylvain Robitaille wrote:
>
>> With any Unix (or "Unix-like") system, there's really only one
>> command you need to know how to use: man. Everything else you can
>> look up. ("man man" to learn how to use man, of course! :-)
>>
>> I hope you realize I'm being serious. I've never seen much point in
>> giving users' "cheat sheets", since the information they need is
>> available in much more complete form in the manual pages. Users will
>> remember the commands they use most, and hopefully those will more
>> often than not include "man" ...
>>
>> I hope that helps...
>>
>
> That is really not very helpful at all. I am just beginning to get
> used to Tru64 Unix and I have found it to be quite different from
> other Unices and BSDs, not to mention Linux.
>
> Solaris, for instance, has a totally different setup for network
> configuration. Tru64's is more similar to FreeBSD.
>
> How do you expect a new user to figure out where the machine's IP
> address is to be set without knowing the name of the file where it is
> set? rcmgr(8) just does not exist in any BSD, Solaris or Linux.
No but it is fairly trivial to start at /etc/inittab and work through
to /sbin/rc3.d and then on to the network startup scripts.
From there you fin out about /etc/rc.config and man -k will tell you
the rest.
My favorite sysadmin commands ksh,man,ed and more.
Adam
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Sysadmin favorite commands list
2002-07-12 4:55 ` Adam Price
@ 2002-07-12 10:30 ` Dave Uhring
2002-07-12 17:12 ` Heather Wesley
0 siblings, 1 reply; 18+ messages in thread
From: Dave Uhring @ 2002-07-12 10:30 UTC (permalink / raw)
Adam Price wrote:
> I think I read somewhere that Dave Uhring <dmuhring@yahoo.com> wrote
>>
>> That is really not very helpful at all. I am just beginning to get
>> used to Tru64 Unix and I have found it to be quite different from
>> other Unices and BSDs, not to mention Linux.
>>
>> Solaris, for instance, has a totally different setup for network
>> configuration. Tru64's is more similar to FreeBSD.
>>
>> How do you expect a new user to figure out where the machine's IP
>> address is to be set without knowing the name of the file where it is
>> set? rcmgr(8) just does not exist in any BSD, Solaris or Linux.
> No but it is fairly trivial to start at /etc/inittab and work through
> to /sbin/rc3.d and then on to the network startup scripts.
> From there you fin out about /etc/rc.config and man -k will tell you
> the rest.
Indeed! But the arrogant assertion that "man man" is all that is
required is pure hubris.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 10:30 ` Dave Uhring
@ 2002-07-12 17:12 ` Heather Wesley
2002-07-12 18:14 ` Adam Price
2002-07-13 13:07 ` Michael Heiming
0 siblings, 2 replies; 18+ messages in thread
From: Heather Wesley @ 2002-07-12 17:12 UTC (permalink / raw)
Dave Uhring <dmuhring@yahoo.com> wrote in message news:<uitbta6dti82cf@corp.supernews.com>...
> Adam Price wrote:
>
> > I think I read somewhere that Dave Uhring <dmuhring@yahoo.com> wrote
>
> >>
> >> That is really not very helpful at all. I am just beginning to get
> >> used to Tru64 Unix and I have found it to be quite different from
> >> other Unices and BSDs, not to mention Linux.
> >>
> >> Solaris, for instance, has a totally different setup for network
> >> configuration. Tru64's is more similar to FreeBSD.
> >>
> >> How do you expect a new user to figure out where the machine's IP
> >> address is to be set without knowing the name of the file where it is
> >> set? rcmgr(8) just does not exist in any BSD, Solaris or Linux.
> > No but it is fairly trivial to start at /etc/inittab and work through
> > to /sbin/rc3.d and then on to the network startup scripts.
> > From there you fin out about /etc/rc.config and man -k will tell you
> > the rest.
>
> Indeed! But the arrogant assertion that "man man" is all that is
> required is pure hubris.
If all that were required was the man pages, none of us would have
jobs =0
When I was a new sysadmin (not long ago) I compiled this and still use
it. Here is my list of useful commands:
Setld �i Displays a list of installed subsets
Netconfig Manage network configuration processes
Boot /gen/vmunix Standard kernel
Touch /etc/nologin Prevent all users except root from logging in when
this file exists
Bcheckrc Checks and mounts all
Disklabel �r # Make changes to disk labels. With �r, reads and outputs
the label directly from disk.
Diskconfig Brings up disk config manager
/sbin/sysconfig �s Queries and lists state of all subsystems
Sizer Displays info about system, creates a sys configuration file
Kopt Kernel options
/etc/vdumpdates Timestamp entry from start of backup
dupatch Install a patch
Dupatch �track �type patch Lists all patches installed on system
Top Shows top 10 processes
/usr/bin/X11./dtadvfs Opens Advanced File System Manager
Sys_check Outputs system information into and html file.
Also useful is the following website. You can choose your flavors and
compare commands.
http://bhami.com/rosetta.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 17:12 ` Heather Wesley
@ 2002-07-12 18:14 ` Adam Price
2002-07-12 22:41 ` Dave Uhring
2002-07-13 13:07 ` Michael Heiming
1 sibling, 1 reply; 18+ messages in thread
From: Adam Price @ 2002-07-12 18:14 UTC (permalink / raw)
Heather Wesley <heatherwesley@hotmail.com> wrote ... :
SNIP
>
> When I was a new sysadmin (not long ago) I compiled this and still use
> it. Here is my list of useful commands:
>
See inline notes....
> Setld -i Displays a list of installed subsets
All commands should be in all lower case...
> Netconfig Manage network configuration processes
sysman network to manage the nework..
sysman lprsetup to manage printers...
sysman users to manage users...
And many more...
> Boot /gen/vmunix Standard kernel
from the chevron prompt (>>>)
boot -file /genvmunix to boot the 'generic' kernel
boot -flags s to boot to single user mode...
> Touch /etc/nologin Prevent all users except root from logging in when
> this file exists
If you add text to /etc/nologin it will be displayed to users when they
try to log in.
> Bcheckrc Checks and mounts all
However if bcheckrc fails, it is worth noting that it is a shell script and
you can read it for help on what to do...
Also if you need to remount / read write then mount -u / is the command for you.
> Disklabel -r # Make changes to disk labels. With -r, reads and outputs
> the label directly from disk.
Really usefull but really dangerous, take care....
> Diskconfig Brings up disk config manager
> /sbin/sysconfig -s Queries and lists state of all subsystems
> Sizer Displays info about system, creates a sys configuration file
> Kopt Kernel options
> /etc/vdumpdates Timestamp entry from start of backup
> dupatch Install a patch
> Dupatch -track -type patch Lists all patches installed on system
> Top Shows top 10 processes
but may not be installed....
> /usr/bin/X11/dtadvfs Opens Advanced File System Manager
sysman advfs....
> Sys_check Outputs system information into and html file.
>
sysman lsm for the logical storage manager (software raid)...
> Also useful is the following website. You can choose your flavors and
> compare commands.
> http://bhami.com/rosetta.html
This is indeed a good website...
With the sysman commands, if there is no X display available then a
menu system is used instead.
Hope this helps some
Adam
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 18:14 ` Adam Price
@ 2002-07-12 22:41 ` Dave Uhring
0 siblings, 0 replies; 18+ messages in thread
From: Dave Uhring @ 2002-07-12 22:41 UTC (permalink / raw)
Adam Price wrote:
> Heather Wesley <heatherwesley@hotmail.com> wrote ... :
> SNIP
>>
>> When I was a new sysadmin (not long ago) I compiled this and still
>> use
>> it. Here is my list of useful commands:
>
> Hope this helps some
It does, indeed, help a Tru64 newcomer. This Unix is quite a bit
different from Solaris - or *BSD/Linux, for that matter.
Thanks to you and Heather :-)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 17:12 ` Heather Wesley
2002-07-12 18:14 ` Adam Price
@ 2002-07-13 13:07 ` Michael Heiming
2002-07-14 0:43 ` Dave Uhring
1 sibling, 1 reply; 18+ messages in thread
From: Michael Heiming @ 2002-07-13 13:07 UTC (permalink / raw)
Heather Wesley (<1455fbd7.0207120912.346abc4e@posting.google.com>):
> Dave Uhring <dmuhring@yahoo.com> wrote in message
> news:<uitbta6dti82cf@corp.supernews.com>...
>> Adam Price wrote:
>>
>> > I think I read somewhere that Dave Uhring <dmuhring@yahoo.com>
>> > wrote
>>
>> >>
>> >> That is really not very helpful at all. I am just beginning
>> >> to get used to Tru64 Unix and I have found it to be quite
>> >> different from other Unices and BSDs, not to mention Linux.
Don't think it's that different, it's mostly much faster, thanks to
the Alpha CPU. For starters there are numeorous dx* tools to help
you, if you have C2 security enabled, dxaccounts is always
helpfull. Just be carefull with the one for LSM...;-)
[..]
> Top Shows top 10 processes
While really one of the most usefull tools, it does not come with
Tru64. Luckily, Tru64 comes with a real C compiler, enabling you to
compile it. A former sysadmin may have done it.
Another "must have" is lsof, it may help lots were you get stuck
with fuser.
[..]
> Sys_check Outputs system information into and html file.
Usefull while running from cron once in a while and sending the
output to a different machine, may help if there's trouble. But
boaring to read just for the sake of it...
> Also useful is the following website. You can choose your flavors
> and compare commands.
> http://bhami.com/rosetta.html
Always keep a local copy of this file on your desktop, if happen
you happen to work in a multi vendor store.
In addition, there is a Software Documentation CD available from
Compaq, it has lots of usefull info/guides and contains all man
pages. (Don't bother if the package says to use it from some M$
desktop, it's only .html and .pdf and works just fine on other
systems.
Michael Heiming
--
Remove the +SIGNS case mail bounces.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 3:19 ` Dave Uhring
2002-07-12 4:55 ` Adam Price
@ 2002-07-12 15:33 ` Dan Riley
2002-07-12 21:09 ` Peter da Silva
2002-07-16 19:03 ` Sylvain Robitaille
3 siblings, 0 replies; 18+ messages in thread
From: Dan Riley @ 2002-07-12 15:33 UTC (permalink / raw)
Dave Uhring <dmuhring@yahoo.com> writes:
> That is really not very helpful at all. I am just beginning to get used
> to Tru64 Unix and I have found it to be quite different from other
> Unices and BSDs, not to mention Linux.
Unfortunately, just about every Unix has its own ideas about
organizing the boot process. While Tru64 userland is mostly
BSDish, the boot process looks more SysVish.
> Solaris, for instance, has a totally different setup for network
> configuration. Tru64's is more similar to FreeBSD.
Thank goodness it isn't like Solaris--Solaris network configuration is
a twisty maze of mostly undocumented files (e.g. /etc/notrouter, or
the mess that decides how router discovery is done). Tru64 at least
has some semblance of organization.
> How do you expect a new user to figure out where the machine's IP
> address is to be set without knowing the name of the file where it is
> set?
HPQ expects you to use the netconfig command. The netconfig man page
does tell you about rc.config, and the rc.config man page tells you
about rcmgr.
However, I've found that with just about every Unix system, at some
point you have to follow the boot process, figure out where the boot
scripts are, and read a few of them. With Tru64, once you find
/sbin/init.d the rest is pretty simple--the boot scripts are
straightforward, and having most configuration in /etc/rc.config
simplifies figuring out a system's configuration.
> rcmgr(8) just does not exist in any BSD, Solaris or Linux.
Some other systems do have something similar--/etc/rc.conf on NetBSD
and chkconfig on IRIX, for example--but the details all are always
different.
-dan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 3:19 ` Dave Uhring
2002-07-12 4:55 ` Adam Price
2002-07-12 15:33 ` Dan Riley
@ 2002-07-12 21:09 ` Peter da Silva
2002-07-16 19:03 ` Sylvain Robitaille
3 siblings, 0 replies; 18+ messages in thread
From: Peter da Silva @ 2002-07-12 21:09 UTC (permalink / raw)
In article <uisim48f9rqc27@corp.supernews.com>,
Dave Uhring <dmuhring@yahoo.com> wrote:
> Solaris, for instance, has a totally different setup for network
> configuration. Tru64's is more similar to FreeBSD.
That's not surprising. Tru64 is based on 4.3-Reno, the last 4.3 release.
FreeBSD is based on 4.4.
In fact you can get quite a long way by treating Tru64 as FreeBSD with
a System V inittab and rc*.d directories. The biggest difference you're
likely to run into with any great frequency is AdvFS.
I'm getting into quite a love-hate relationship with AdvFS. :)
> How do you expect a new user to figure out where the machine's IP
> address is to be set without knowing the name of the file where it is
> set? rcmgr(8) just does not exist in any BSD, Solaris or Linux.
All rcmgr does is safely edit /etc/rc.config, which is very similar to
/etc/rc.conf on FreeBSD.
Let's say you have a machine with two interfaces to /24 subnets, with
an Intel EtherExpress card and a DEC de500 and addresses 10.0.0.43 and
10.1.0.43 respectively.
In FreeBSD you set the IP address like this:
/etc/rc.conf:
network_interfaces="fxp0 lo0 dc0"
ifconfig_lo0="inet 127.0.0.1"
ifconfig_fxp0="inet 10.0.0.43 media autoselect netmask 255.255.255.0"
ifconfig_dc0="inet 10.1.0.43 media autoselect netmask 255.255.255.0"
In Tru64 you do this:
/etc/rc.config:
NUM_NETCONFIG="2"
NETDEV_0="ee0"
NETDEV_1="tu0"
IFCONFIG_0="10.0.0.43 netmask 255.255.255.0"
IFCONFIG_1="10.1.0.43 netmask 255.255.255.0"
It should be pretty obvious what else goes in there.
--
I've seen things you people can't imagine. Chimneysweeps on fire over the roofs
of London. I've watched kite-strings glitter in the sun at Hyde Park Gate. All
these things will be lost in time, like chalk-paintings in the rain. `-_-'
Time for your nap. | Peter da Silva | Har du kramat din varg, idag? 'U`
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sysadmin favorite commands list
2002-07-12 3:19 ` Dave Uhring
` (2 preceding siblings ...)
2002-07-12 21:09 ` Peter da Silva
@ 2002-07-16 19:03 ` Sylvain Robitaille
3 siblings, 0 replies; 18+ messages in thread
From: Sylvain Robitaille @ 2002-07-16 19:03 UTC (permalink / raw)
I wrote:
>> With any Unix (or "Unix-like") system, there's really only one command
>> you need to know how to use: man. Everything else you can look up.
On Thu, 11 Jul 2002 22:19:30 -0500, Dave Uhring responded:
> That is really not very helpful at all.
I'm sorry you feel that way, but I stand by my statement.
> I am just beginning to get used to Tru64 Unix and I have found it to
> be quite different from other Unices and BSDs, not to mention Linux.
Indeed it is, but then again, not all Linux distributions are the same
either, let alone BSD vs Solaris or what have you. What you'll find,
though, is that the basic components are indeed the same.
> Solaris, for instance, has a totally different setup for network
> configuration. Tru64's is more similar to FreeBSD.
Well, I suppose it does *look* different, but ifconfig is ifconfig is
ifconfig...
> How do you expect a new user to figure out where the machine's IP
> address is to be set without knowing the name of the file where it
> is set? rcmgr(8) just does not exist in any BSD, Solaris or Linux.
To tell the truth, I don't expect a "new user" to even want that
information, and I do expect a sys-admin, regardless of experience with
the specific OS to at least be able to take steps towards looking it up.
That specific question is answered in the OS installation documentation.
I wouldn't define a "good" sys-admin as someone who has memorized a
handful of commands for a particular OS, but rather as someone who has
demonstrated an ability to find information (among a number of other
attributes, of course).
My boss did write a program some years ago, called "fsr" (find string
recursively), which behaves pretty much like a recursive "grep -l" (this
was written before GNU grep). I use that quite extensively.
If I wanted to find out in which startup script ifconfig was called, for
instance, I might call "fsr /sbin/init.d ifconfig".
So alright, to that end, some of my favorites include (it might be worth
looking for newer versions than I have):
fsr: Locally written recursive grep
top: ftp://ftp.groupsys.com/pub/top/top-3.5beta9.tar.gz
lsof: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_4.40_W.tar.gz
perl: ftp://ftp.perl.org
pt: ftp://convex.com/pub/perl/scripts/pt.shar.Z
vim: ftp://ftp.vim.org/pub/editors/vim/unix/vim-5.7-src.tar.gz
tcsh: ftp://tesla.ee.cornell.edu/pub/tcsh/tcsh-6.06.tar.gz
Others have already mentioned top and lsof; perl is pretty much
ubiquitous these days; pt is a perl script which prints a process tree.
Very handy for finding parent processes in one easy step; vim is about
the best text editor out there; tcsh is just a very good shell for
interactive use.
Other favorites (in no particular order) include Gnu's diff and patch
(unified context diffs are easiest to read), Ssh, Tripwire, awk,
Tcp_Wrappers, trace, procmail, and a number of locally written programs
and scripts...
Sample pt output:
: alcor[syl] ~/tmp; pt $$
USER PID TTY TIME COMMAND
root 0 ?? 23:49:12 [kernel idle]
root 1 ?? 13:22.62 /sbin/init -a
root 724 ?? 7:53.48 /local/bin/sshd
root 32607 ?? 0:00.46 /local/bin/sshd
syl 31497 ttyw0 0:00.34 -tcsh (tcsh)
syl 9365 ttyw0 0:00.04 perl -wT /local/bin/pt 31497
root 4144 ttyw0 0:00.04 /usr/bin/ps axlww
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
: alcor[syl] ~; man -k configur
(output trimmed for clarity...)
...
ifconfig (8) - Configures or displays network interface parameters
inetd.conf (4) - The default configuration file for the inetd daemon
...
netconfig (8X) - Manages network configuration processes
...
rcmgr, rc.config (8) - Gets and sets run-time configuration variables stored in the files /etc/rc.config and /etc/rc.config.site
...
resolv.conf (4) - Resolver configuration file
...
sysconfig (8) - Maintains the kernel subsystem configuration
...
sysconfigtab (4) - Configurable subsystem definition database file
...
(you probably get the idea...)
^ permalink raw reply [flat|nested] 18+ messages in thread