NCS_ScanForNewDevices

Causes all nodes in a cluster to run the /opt/novell/ncs/bin/device_scan.sh script.

Syntax

 #include <ncssdk.h> 
  
 NCS_RETURN NCS_ScanForNewDevices (
   NCS_HANDLE   Handle);
 

Parameters

Handle

(IN) Specifies the NCS version number.

Return Values

Name

Description

SUCCESS

NCS_SUCCESS.

NCS_BAD_PARAMETER

See NDS Error Codes.

NCS_TRYLOCK_HELD

Indicates that another application on another node has a lock.

NCS_OBJECT_NOT_FOUND

Indicates that an error occurred while trying to run the script.

Remarks

NCS_ScanForNewDevices is MP-safe.

It runs the device_scan.sh script on all nodes that are currently in a cluster on Linux.

By default, the script is empty so that administrators can add the commands they need to refresh their systems. Any changes that are made won’t be overridden when NCS is upgraded to the next version.