Syntax
telnetNFS ipaddr
Input parameters
String
$ipaddr
The IP address to check whether a telnet can be performed.
Return values
String
"FALSE|TRUE"
Returns the result of the telnet check. It returns "TRUE" if the check is
successful; otherwise it returns "FALSE".
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
Takes a valid path to a directory as its input.
Return values
Boolean value
TRUE
or
FALSE
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.
Example
This example of its usage is from the mes4Path() function:
# check if it’s a path
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
...
140
Prerequisite Scanner: User's Guide
Содержание Prerequisite Scanner
Страница 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Страница 2: ......
Страница 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Страница 8: ...vi Prerequisite Scanner User s Guide ...
Страница 10: ...viii Prerequisite Scanner User s Guide ...
Страница 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Страница 46: ...36 Prerequisite Scanner User s Guide ...
Страница 68: ...58 Prerequisite Scanner User s Guide ...
Страница 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Страница 84: ...74 Prerequisite Scanner User s Guide ...
Страница 88: ...78 Prerequisite Scanner User s Guide ...
Страница 92: ...82 Prerequisite Scanner User s Guide ...
Страница 116: ...106 Prerequisite Scanner User s Guide ...
Страница 122: ...112 Prerequisite Scanner User s Guide ...
Страница 136: ...126 Prerequisite Scanner User s Guide ...
Страница 138: ...128 Prerequisite Scanner User s Guide ...
Страница 140: ...130 Prerequisite Scanner User s Guide ...
Страница 158: ...148 Prerequisite Scanner User s Guide ...
Страница 164: ...154 Prerequisite Scanner User s Guide ...
Страница 166: ...156 Prerequisite Scanner User s Guide ...
Страница 170: ...160 Prerequisite Scanner User s Guide ...
Страница 171: ......
Страница 172: ... Printed in USA ...