Re: Servers configuration description

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-02-02 at 08:20 -0400, Rodolfo Alcazar wrote:
> On Thu, 2006-02-02 at 12:06 +0000, Paul Howarth wrote:
> > Rodolfo Alcazar wrote:
> > > Hi. 
> > > 
> > > Im trying to get a detailed configuration description of everyone of my
> > > Fedora servers. I wrote this script. Any ideas of something i could be
> > > missing or any other helpful command? Any suggestion helps. TIA!
> > > 
> > > #!/bin/bash
> > > function runcommand {
> > >   echo "Command: $1"
> > >   bash -c "$1"
> > >   echo
> > > }
> > > runcommand 'uname -a'
> > > runcommand 'cat /etc/issue'
> > > runcommand 'mount'
> > > runcommand 'df -h'
> > > runcommand 'hostname'
> > > runcommand 'chkconfig --list | grep 3:on'
> > > runcommand 'fdisk -l'
> > > runcommand 'crontab -l'
> > > runcommand 'ifconfig | grep "encap\|addr\|^$"'
> > > runcommand 'iptables-save'
> > > runcommand 'route -n'
> > > runcommand 'cat /etc/fstab'
> > > runcommand 'cat /etc/grub.conf'

I would tend to avoid symbolic link references in case they are broken
and grab the actual file, /boot/grub/grub.conf, in this case.

> > > runcommand 'for a in /etc/sysconfig/network-scripts/ifcfg-*; do echo
> > > ----- $a -----; cat $a; done'
> > > runcommand 'cat /etc/sysconfig/network'
> > > runcommand 'for a in /etc/sysconfig/network-scripts/route-*; do echo
> > > ----- $a -----; cat $a; done'
> > > runcommand 'cat /etc/named.conf'
> 
> > if non-standard zone files exist under /var/named, you might to to add them.
> 
> runcommand 'for a in /var/named/*; do echo ----- $a -----; cat $a; done'

This might be another symbolic link thing that is unused.  Any chance
that the bind-chroot package in installed, at which point the files are
normally, /var/named/chroot/{etc/named.conf,var/named/*}....  The
location is stored in /etc/sysconfig/named as a variable ROOTDIR, so you
could perhaps conditional on that....

> 
> > > runcommand 'rpm -qa --last'
> > > runcommand 'netstat -an'
> > > runcommand 'cat /etc/resolv.conf'
> > > runcommand 'cat /etc/rc.local'

Technically, /etc/rc.d/rc.local <big grin>....

> > > runcommand 'cat /proc/interrupts'
> > > runcommand 'cat /proc/ioports'
> > > runcommand 'cat /proc/modules'
> > > runcommand 'cat /proc/partitions'
> > > runcommand 'cat /proc/mounts'
> > > runcommand 'cat /proc/pci |grep -v "Latency\|Non-prefetchable"'
> > > runcommand 'cat /proc/cpuinfo'
> > > runcommand 'cat /proc/meminfo'
> > > runcommand 'cat /proc/version'
> > > runcommand 'uptime'
> 
> runcommand 'cat /etc/modprobe.conf' ?
> Essential!!
> 
> Good!

--Rob


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux