System configuration script?

System configuration script?

Post by Gary Stran » Wed, 16 Sep 1998 04:00:00



Many moons ago I got the following from SunExpert magazine:
#!/bin/csh -f
echo -n 'Name and OS Version: ' ; /bin/uname -a
echo -n 'Processor type     : ' ; /usr/ucb/mach
echo -n 'Architecture type  : ' ; /usr/ucb/arch
echo -n 'Host ID            : ' ; /usr/ucb/hostid
echo -n 'NIS domain name    : ' ; /bin/domainname
echo -n 'Ethernet address   : ' ; /bin/dmesg | grep Ether
echo -n 'Hostname           : ' ; /usr/ucb/hostname
echo -n 'NIS server         : ' ; /bin/ypwhich
echo -n 'Physical memory    : ' ; /bin/dmesg | grep mem
echo -n 'TCP/IP host address: ' ; /usr/sbin/ifconfig -a
echo -n 'Floating point HW  : ' ; /opt/SUNWspro/bin/fpversion
echo -n 'GX accelerator     : ' ; /bin/dmesg | grep six
echo -n 'Color monitor      : ' ; /bin/dmesg | grep cg
exit

Alas, a lot of it doesn't work any more. Any suggestions on fixes? It's a nice
little thing to run on an unfamiliar machine.

Thanks!
--
Gary Strand

 
 
 

System configuration script?

Post by martin+use.. » Thu, 17 Sep 1998 04:00:00



> echo -n 'Name and OS Version: ' ; /bin/uname -a
> echo -n 'Processor type     : ' ; /usr/ucb/mach
> echo -n 'Architecture type  : ' ; /usr/ucb/arch
> echo -n 'Host ID            : ' ; /usr/ucb/hostid
> echo -n 'NIS domain name    : ' ; /bin/domainname
> echo -n 'Ethernet address   : ' ; /bin/dmesg | grep Ether
> echo -n 'Hostname           : ' ; /usr/ucb/hostname
> echo -n 'NIS server         : ' ; /bin/ypwhich
> echo -n 'Physical memory    : ' ; /bin/dmesg | grep mem
> echo -n 'TCP/IP host address: ' ; /usr/sbin/ifconfig -a
> echo -n 'Floating point HW  : ' ; /opt/SUNWspro/bin/fpversion
> echo -n 'GX accelerator     : ' ; /bin/dmesg | grep six
> echo -n 'Color monitor      : ' ; /bin/dmesg | grep cg
> exit

> Alas, a lot of it doesn't work any more. Any suggestions on fixes? It's a nice
> little thing to run on an unfamiliar machine.

most of them still work (Sol 2.6). /opt/SUNWspro depends on
a SunCompiler installation in this directory though. For more
exact information I'd recommend sysinfo:

http://www.magnicomp.com/sysinfo/sysinfo.shtml

(Although this has the disadvantage that you may have to
compile it on the target machine/architecture, but the paths
in your script aren't portable either ..).

hth, mp.
--
                         Martin Paul | Systems Administrator

                and Parallel Systems | Tel: 01-3105608-84
Liechtensteinstrasse 22, A-1090 Wien | Fax: 01-3105608-88

 
 
 

1. System Configuration Script

Hello, All...

I just started a new job administering systems in a varied Unix environment
and was wondering if anyone knew where I can find a script
that will quickly tell me all the system's vital configuration information
for Solaris 2.4 boxes...

I'm hoping for something that will tell me how much memory is on the system,
swap space configuration, SCSI adapters, disks, etc...  I'm frustrated
because I know that given enough time I could write the script myself, but
I need to know this stuff now and time's short.

Thanks very much.

Regards,

Bob

--

2. How to setup PC with Linux AND Win95

3. Scripts for gathering system harware configurations

4. Firewall & Sparc

5. List system configuration of a Solaris system

6. patch 05/38: CLIENT: change CONFIG_NFS_V3 to CONFIG_NFS_V3 || CONFIG_NFS_V4

7. CVS Configuration Management UNIX Scripts

8. PII-233 running 100 httpd and 100 pop3 daemons?

9. Trickey configuration for cgi-scripts

10. AIX configuration scripts

11. Patch to make shbang scripts a configuration option

12. KDE menu configuration script?

13. pppd script / configuration question