Nfscheck() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Syntax
telnetNFS ipaddr
Input parameters
String $ipaddr
Return values
String "FALSE|TRUE"

NFScheck()

Checks the NFS status of mounts on a UNIX-based system.
Purpose
This function takes a path as input and calls the mount command to get the list of
mounted file systems. It calls the uname command to determine the operating
system. It next calls the ping command to ping each mounted system and if it can
ping, it then calls the telnetNFS function to check whether a remote connection can
be performed. If either the ping or telnet actions fail, the function returns a
"FALSE" value; otherwise, it returns a "PASS" value.
Syntax
NFScheck path
Input parameters
String $path
Return values
Boolean value TRUE or FALSE
Example
This example of its usage is from the mes4Path() function:
# check if it's a path
140
Prerequisite Scanner: User's Guide
The IP address to check whether a telnet can be performed.
Returns the result of the telnet check. It returns "TRUE" if the check is
successful; otherwise it returns "FALSE".
Takes a valid path to a directory as its input.
Returns TRUE if the NFS check is successful, that is, if it successfully pings the
associated IP address or can use telnet to connect to the associated IP address
for each filesystem; otherwise, it returns FALSE.
path=`echo "$1" | sed -n '/^\//p'`
if [ -z "$path" ];then
return 2;
else
nfs_check_status=`NFScheck $path`
if [ "$nfs_check_status" = "TRUE" ]; then
case `uname` in
...

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Prerequisite Scanner and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents