Create Device Desc (NWSH) (CRTDEVNWSH)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Create Device Description (NWSH) (CRTDEVNWSH) command creates a device description for a network server host adapter (NWSH) device.

Top

Parameters

Keyword Description Choices Notes
DEVD Device description Name Required, Key, Positional 1
RSRCNAME Resource name Name Required, Key, Positional 2
LCLIFC Local interface Element list Required, Positional 3
Element 1: Subnet mask Character value
Element 2: Port speed *AUTO
Element 3: Duplex *AUTO
Element 4: Local SCSI interface Element list
Element 1: Internet address Character value
Element 2: Gateway address Character value
Element 3: SCSI TCP port 1024-65535, 3260, 860
Element 5: Local LAN interface Element list
Element 1: Internet address Character value
Element 2: Gateway address Character value
Element 3: Virtual Ethernet base UDP port 1024-65471, 8801
ONLINE Online at IPL *NO, *YES Optional
MSGQ Message queue Single values: *SYSOPR
Other values: Qualified object name
Optional
Qualifier 1: Message queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
CMNRCYLMT Recovery limits Single values: *SYSVAL
Other values: Element list
Optional
Element 1: Count limit 0-99, 2
Element 2: Time interval 0-120, 5
TEXT Text 'description' Character value, *BLANK Optional
AUT Authority Name, *CHANGE, *ALL, *USE, *EXCLUDE, *LIBCRTAUT Optional
Top

Device description (DEVD)

Specifies the name of the device description being created.

This is a required parameter.

Top

Resource name (RSRCNAME)

Specifies the resource name that identifies the hardware this description represents. Use the Work with Hardware Resources (WRKHDWRSC) command with *CMN specified for the TYPE parameter to determine the resource name.

This is a required parameter.

name
Specify the resource name of the network server host adapter.
Top

Local interface (LCLIFC)

Specifies the local interface for a network server host adapter, which consists of a subnet mask, port speed, duplex, a local Small Computer System Interface (SCSI) configuration and a local Local Area Network (LAN) configuration.

This is a required parameter.

Element 1: Subnet mask

character-value
Specify the subnet mask associated with the local interface. See the TCP/IP Fastpath Setup book for general information about subnets.

Subnetting provides the capability to partition an internet domain. Specify the mask for the network subnet and host address fields of the internet address that defines a subnet. The subnet mask is in the form, nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. The subnet mask must mask off all bits of the network class's network ID portion of the internet address. For example, a subnet mask of 255.255.255.0 defines a Class B subnet consisting of all bits in the network portion of the internet address (this is a given) and consisting of all bits in the third byte of an internet address. If the subnet mask is entered from a command line, it must be enclosed in apostrophes.

Element 2: Port speed

Specifies the speed of the physical port described by this local interface.

*AUTO
The hardware automatically determines the port speed.

Element 3: Duplex

Specifies the duplex mode used by the physical port described by this local interface.

*AUTO
The hardware automatically determines the duplex.

Element 4: Local SCSI interface

Specifies the local SCSI interface configuration.

Element 1: Internet address

character-value
Specify the local internet address which the SCSI interface on the network server host adapter responds to. The internet address is specified in the form, nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. An internet address that has a binary value of all ones or all binary zeros for the network identifier (ID) portion or the host ID portion of the internet address is not valid. The internet address selected must be unique across the i5/OS TCP/IP configuration. If the local internet address is entered from a command line, the address must be enclosed in apostrophes.

Element 2: Gateway address

character-value
Specify the default gateway address for the internet address associated with the SCSI interface, in the form ddd.ddd.ddd.ddd where ddd is a decimal number ranging from 0 to 255. If the gateway address is entered from a command line, the address must be enclosed in apostrophes.

Element 3: SCSI TCP port

3260
Port 3260 will be used as the local SCSI TCP port.
port-number
Specify the local SCSI TCP port that the local SCSI interface will listen on for iSCSI traffic. The local SCSI interface internet address and TCP port together define an iSCSI target portal. The well-known TCP port number for iSCSI connections assigned by Internet Assigned Numbers Authority (IANA) is 3260 and this is the default iSCSI port number. The TCP port assigned by IANA as the iSCSI system port is 860. Valid values are 860 and the range 1024 through 65535.

Element 5: Local LAN interface

Specifies the local LAN interface configuration.

Element 1: Internet address

character-value
Specify the local internet address which the LAN interface on the network server host adapter responds to. The internet address is specified in the form, nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. An internet address that has a binary value of all ones or all binary zeros for the network identifier (ID) portion or the host ID portion of the internet address is not valid. The internet address selected must be unique across the i5/OS TCP/IP configuration. If the local internet address is entered from a command line, the address must be enclosed in apostrophes.

Element 2: Gateway address

character-value
Specify the default gateway address for the internet address associated with the LAN interface, in the form ddd.ddd.ddd.ddd where ddd is a decimal number ranging from 0 to 255. If the gateway address is entered from a command line, the address must be enclosed in apostrophes.

Element 3: Virtual Ethernet base UDP port

8801
Port 8801 will be used as the Virtual Ethernet base UDP port.
1024-65471
Specify the lowest numbered User Datagram Protocol (UDP) port that the local LAN interface will use for virtual Ethernet communication with the remote server. Virtual Ethernet communication is encapsulated in UDP packets. Each virtual Ethernet adapter is automatically assigned a UDP port from a range that begins at the specified base port number and ends at the base port number plus the number of configured virtual Ethernet adapters.
Top

Online at IPL (ONLINE)

Specifies whether this object is automatically varied on at initial program load (IPL).

*NO
This device is not varied on automatically at IPL.
*YES
This device is varied on automatically at IPL.
Top

Message queue (MSGQ)

Specifies the message queue to which operational messages for this device are sent.

Single values

*SYSOPR
Messages are sent to the system operator message queue (QSYS/QSYSOPR).

Qualifier 1: Message queue

name
Specify the name of the message queue to which operational messages are sent.

Qualifier 2: Library

*LIBL
All libraries in the job's library list are searched until the first match is found.
*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
name
Specify the name of the library to be searched.
Top

Recovery limits (CMNRCYLMT)

Specifies the communications recovery limits to be used for this device description.

Single values

*SYSVAL
The recovery limits specified in the system value QCMNRCYLMT are used.

Element 1: Count limit

2
Two recovery attempts are made within the specified time interval.
0-99
Specify the number of recovery attempts to be performed by the system.

Element 2: Time interval

5
The specified number of recovery attempts are made within a 5-minute interval.
0-120
Specify the number of minutes within which recovery attempts are made.
Top

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*BLANK
No text is specified.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Authority (AUT)

Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.

*CHANGE
The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
*ALL
The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
*USE
The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
*EXCLUDE
The user cannot access the object.
*LIBCRTAUT
The system determines the authority for the object by using the value specified for the Create authority (CRTAUT) parameter on the Create Library (CRTLIB) command for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
name
Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
Top

Examples

CRTDEVNWSH   DEVD(DEVNWSH)  RSRCNAME(LIN03)
             LCLIFC('255.255.255.128' *AUTO *AUTO
                    ('9.5.149.241' '9.5.149.129' 3260)
                    ('9.5.149.245' '9.5.149.122' 8801) )

This command creates a network server host adapter description named DEVNWSH. DEVNWSH has an associated resource named LIN03. The local SCSI and the local LAN interfaces will have the specified TCP/IP internet addresses assigned. The local SCSI interface will use the default TCP port value, which is the well-known user TCP port number for iSCSI connections assigned by IANA. The local LAN interface will use the default Virtual Ethernet base UDP port value. The hardware will determine the port speed and duplex. DEVNWSH will not be varied on automatically at IPL.

Top

Error messages

*ESCAPE Messages

CPF261A
Device description &1 not created due to errors.
Top