AddIsnsServer

AddIsnsServer function

The AddIsnsServer function adds a new server to the list of Internet Storage Name Service (iSNS) servers that the iSCSI initiator service uses to discover targets.

Syntax


HRESULT WINAPI AddIsnsServer(
  _In_ PTCHAR Address
);

Parameters

Address [in]

IP address or the DNS name of the server.

Return value

Returns ERROR_SUCCESS if the operation succeeds. If the operation fails, because of a problem with a socket connection, AddIsnsServer returns a Winsock error code. If the Address parameter does not point to a valid iSNS server name, the AddIsnsServer routine returns ERROR_INVALID_PARAMETER.

Remarks

When the iSCSI initiator service receives a request from the AddIsnsServer user-mode library function to add an iSNS server, the initiator service saves relevant data about the iSNS server in non-volatile storage. The iSCSI initiator service queries the newly added server for discovered targets immediately after adding it. From that point forward, the iSCSI initiator service automatically queries the iSNS server whenever the initiator service refreshes the target list of the iSNS server. The initiator service also refreshes the target list of the iSNS server at startup or whenever the iSNS server indicates a change.

If management software does not call AddIsnsServer to manually add the new iSNS servers to the service list of the iSCSI initiator service, the initiator service must rely on automatic discovery mechanisms, such as DHCP, to add new iSNS servers to the list.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Iscsidsc.h

Library

Iscsidsc.lib

DLL

Iscsidsc.dll

Unicode and ANSI names

AddIsnsServerW (Unicode) and AddIsnsServerA (ANSI)

See also

RefreshIsnsServer
RemoveIsnsServer
ReportIsnsServerList

 

 

Community Additions

ADD
Show:
© 2016 Microsoft