Appendix I. Common functions for UNIX systems
Prerequisite Scanner has a set of common functions in the
/lib/common_function.sh
file for running checks on UNIX-based systems.
Table 41. Functions in common_function.sh
Function
Description
“AddMG()” on page 136
Checks whether the input parameters are in
MBs or GBs and adds the parameters.
“changeMG()”
Converts the input parameter to MBs or GBs
for disk space or memory prerequisite
properties.
“compare()” on page 136
Parses the input parameters that represent
the actual and expected values for a
prerequisite property and compares them to
determine whether the first value (real) is
less than the second value (expected).
“cutdown()” on page 137
Parses the input parameters that represent
the actual and expected values for a
prerequisite property and compares them to
determine whether the first value (real) is
less than the second value (expected). It then
prints the difference between the two values
if the first value is not less than the second
value.
“findOSInfo()” on page 139
Finds the operating system version, OS
release level and version, and hardware
implementation data for the system.
“mes4path()” on page 138
Finds the free disk space for each mounted
file system.
“mes4Path1()” on page 138
Finds the free disk space for each mounted
file system on a Solaris system only.
“NFScheck()” on page 140
Checks the NFS status of mounts on a
UNIX-based system.
“telnetNFS()” on page 139
Checks whether can telnet to the IP address
of a mounted file system on the default port
2049.
changeMG()
Converts the input parameter to MBs or GBs for disk space or memory
prerequisite properties.
Purpose
This function checks first that the function receives an input parameter. If receives
an input parameter, it determines whether the value is in MBs or GBs and then
converts the value to GBs or MBs respectively.
© Copyright IBM Corp. 2009, 2012
135
Summary of Contents for Prerequisite Scanner
Page 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 2: ......
Page 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 8: ...vi Prerequisite Scanner User s Guide ...
Page 10: ...viii Prerequisite Scanner User s Guide ...
Page 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Page 46: ...36 Prerequisite Scanner User s Guide ...
Page 68: ...58 Prerequisite Scanner User s Guide ...
Page 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Page 84: ...74 Prerequisite Scanner User s Guide ...
Page 88: ...78 Prerequisite Scanner User s Guide ...
Page 92: ...82 Prerequisite Scanner User s Guide ...
Page 116: ...106 Prerequisite Scanner User s Guide ...
Page 122: ...112 Prerequisite Scanner User s Guide ...
Page 136: ...126 Prerequisite Scanner User s Guide ...
Page 138: ...128 Prerequisite Scanner User s Guide ...
Page 140: ...130 Prerequisite Scanner User s Guide ...
Page 158: ...148 Prerequisite Scanner User s Guide ...
Page 164: ...154 Prerequisite Scanner User s Guide ...
Page 166: ...156 Prerequisite Scanner User s Guide ...
Page 170: ...160 Prerequisite Scanner User s Guide ...
Page 171: ......
Page 172: ... Printed in USA ...