Gathering system information: The SCRIPT

2007-12-24 19:30:00

I've gotten quite a number of requests for the script that produced the
output mentioned in my previous question. First, to refresh, the output
of the latest version (which can be modified by simple changes to the
script):

# telnet snowball 12000
Trying 204.122.158.123...
Connected to snowball.fun.com.
Escape character is '^]'.
Machine : snowball
Host ID : 80a661a0
OS Ver : Solaris 5.5.1 Generic_103640-34
Model : SUNW,Ultra-Enterprise-10000 (16 X UltraSPARC cpus)
CPUs : 16
CPUSpeed: 249.8 MHz
Memory : 10240 Megabytes
Video : No Video Card
Bootprom: OBP 3.2.120 2000/09/11 16:32
VXfs Ver: 3.3.1 Advanced for Solaris 2.5.1 and 2.6
VXvm Ver: 2.5.5
ADSM Ver: Version 2 Release 1 Level 0.7
Tivoli : Yes
BGS : Yes - 1_6.3
Connection closed by foreign host.
#

A number of things. First, I'm not done with the script. Second, my goal
was to answer commonly asked questions about a system (from groups
outside the sysadmin group) and to provide information that is commonly
scanned for when doing upgrades (patch level of the kernel, obp level,
etc). The idea wasn't disaster recovery, or to provide complete
information. Just to grab the common stuff.

The script itself is a modification of the "sunmodel" script, which some
of you may be familiar with. But I've changed the output, and added a
number of things -- mostly specific to my site (adsm, tivoli, bgs).

The thing you also may have seen is that it answers to a PORT on a box.
You simply telnet to port 12000 and it gives this response. This is not
quite the most secure thing to do, giving anyone the ability to see your
kernel rev, and to tell how big of a 'goodie' this box can be (cpus,
memory). I'll probably put a password feature in here later.

You can either download this script, and simply run it on a box to get
the output. To have it answer to a TCP/IP port, you'll need to do the
following:

ADD THE FOLLOWING LINE TO "/etc/services":
sunmodel 12000/tcp

ADD THE FOLLOWING LINE TO "/etc/inetd.conf":
sunmodel stream tcp nowait nobody /usr/local/bin/sunmodel-new
sunmodel-new

Of course, change the path as needed.

You can download the script at the following URL:
http://www.galstar.com/~jmccorm/sunmodel-new

As time permits, I'll provide an update to this.

Enjoy.

Comments

Got something to say?

You must be logged in to post a comment.