IBM IntelliStation POWER 285 Technical Overview And Introduction page 52

Hide thumbs Also See for IntelliStation POWER 285:
Table of Contents

Advertisement

Example 4-2 NIM collect script
*****************************************************************************************
IBM DOES NOT WARRANT OR REPRESENT THAT THE CODE PROVIDED IS COMPLETE OR UP-TO-DATE. IBM
DOES NOT WARRANT, REPRESENT OR IMPLY RELIABILITY, SERVICEABILITY OR FUNCTION OF THE CODE.
IBM IS UNDER NO OBLIGATION TO UPDATE CONTENT NOR PROVIDE FURTHER SUPPORT. ALL CODE IS
PROVIDED "AS IS," WITH NO WARRANTIES OR GUARANTEES WHATSOEVER.
*****************************************************************************************
#!/bin/ksh
# Created by Gregor Linzmeier, IBM Deutschland GmbH
#
#
#######################################################################
# Define outfiles
#######################################################################
OUTFILEL=/home/v4/linzi/LISTE".out"
OUTFILEH=/home/v4/linzi/LISTE".htm"
#######################################################################
# Define Functions
#######################################################################
function Check_Disks
{
for i in `lsdev -C|grep hdi`
do
echo $i|grep hdi |awk '{print $1}'
done
}
#######################################################################
# Check single or multi processor
#######################################################################
if [ `bootinfo -z` -gt 0 ]
then
MULTI="mp"
else
MULTI="up"
fi
#######################################################################
# Check system information
#######################################################################
HOSTNAME=`hostname`
MODEL=`lsattr -l sys0 -E|grep modelname|cut -d, -f2|awk '{print $1}'`
UNAME=`uname -m`
PROC=`lsdev -C|grep -i processor|wc|awk '{print $1}'`
SYSID=`lsattr -l sys0 -E|grep systemid|cut -d, -f2|awk '{print $1}'`
MCODE=`lsattr -l sys0 -E|grep fwversion|cut -d, -f2|awk '{print $1}'`
MEM=`lsattr -l mem0 -E|tail -1|awk '{print $2}'`
IPADDR=`lsattr -l en0 -E|grep "netaddr "|awk '{print $2}'`
MAC=`lscfg -v -l ent0|grep Netw|rpl "\." " "| awk '{ print $3 }'`
NETMASK=`lsattr -l en0 -E|grep "netmask "|awk '{print $2}'`
DUPLEX=`lsattr -l ent0 -E|grep "media_speed"|awk '{print $2}'`
OSLEVEL=`oslevel`
BOSLVL=`lslpp -L| grep bos.$MULTI|awk '{print $2}'`
GRAPHIC=`lsdev -C|grep -i gxt|awk '{print $4}'`
DISKS=`Check_Disks`
#######################################################################
# Create a HTML Table Data
#######################################################################
echo "<TR><TD NOWRAP>"$HOSTNAME"</TD>" >> $OUTFILEH
if [ `echo $MODEL | grep 150` ]
then
42
IBM IntelliStation POWER 285 Technical Overview and Introduction
pSeries Technical Support Workstation and entry Server
Systems and Technology Group - Northeast Europe - IMT

Advertisement

Table of Contents
loading

Table of Contents