isnstgtd Command

Purpose

Manages an Internet Storage Name Service (iSNS) daemon.

Syntax

isnstgtd -t targetname [ -d debuglevel ]

isnstgtd -s

isnstgtd -h

Description

The isnstgtd command manages the iSNS daemon. The iSNS daemon refreshes the iSNS registration with the period set into the iSNS configuration stanza file /etc/tmiscsi/isns_servers. It also responds to Heartbeat messages sent by a new iSNS server when it starts.

Use isnstgtd command with the -t flag to start the iSNS daemon. You can also start it with SRC through the following command:
startsrc -s isnstgtd -a '-t targetname'.

To kill the daemon, you have to kill the process or stop it with SRC.

Restriction
Do not run more than one isnstgtd daemons on the same machine.
Requirement
The -t or -s flags are mandatory.

The isnstgtd iSNS daemon can be used only if an iSCSI Target Mode Target is defined in the ODM database. This target must have the reg_policy attribute set to isns or slp&isns to be taken into account.

Note: When the command specifies to start the daemon in debug mode (isnstgtd -t targetname -d debuglevel) with a debuglevel greater than zero, the command is not run as a daemon.

Flags

Item Description
-t targetname Specifies the ODM defined iSCSI Target Mode Target use for iSNS communication.
-d level Specifies the debug level use by isnstgtd. The debug level is between 0 (important) and 7 (debug).
-s Prints the iSNS servers configuration (defined in the iSNS configuration stanza file /etc/tmiscsi/isns_servers) on stdout with the SMIT menu format.
-h Display the help: command usage.

Examples

  1. To run the command as a daemon for the defined iSCSI target tgt, enter the following command:
    isnstgtd -t tgt
  2. To run the command in debug mode with all debug traces, enter the following command:
    isnstgtd -t target -d 7 &

System Ressource Controler (SRC)

The isnstgtd daemon can also be managed with SRC:

Item Description
startsrc -s isnstgtd -a '-t targetname [ -d debuglevel ]' Used to start the iSNS daemon under SRC control.
stopsrc -s isnstgtd Used to stop the iSNS daemon started with SRC.
refresh -s isnstgtd Used to ask the iSNS daemon under SRC control to refresh its iSNS registration refresh period set in the iSNS configuration stanza file /etc/tmiscsi/isns_servers.