Novell is now a part of Micro Focus

Is there a "master" list of all login variables that can be used in login scripts?

Articles and Tips: qna

01 Mar 1997


Q.

Dear Ab-end: s there a "master" list of all login variables that can be used in login scripts? Any help would be appreciated.

--Variable-Obsessed in Vancouver

A.

Dear Variable: Randy Cook at Novell provides the following list, taken from the NetWare GUI Login Design Specification version 1.1 Draft 0.5 dated August 1996.

DAY - Day number (01 through 31)

DAY_OF_WEEK - Day of week (Monday, Tuesday, etc.)

MONTH - Month number (01 through 12)

MONTH_NAME - Month Name (January, February, etc.)

NDAY_OF_WEEK - Weekday number (1 through 7, with 1=Sunday)

SHORT_YEAR - Last two digits of year (93, 94, 95, etc.)

YEAR - All four digits of year (1993, 1994, 1995, etc.)

AM_PM - Day or night (am or pm)

GREETING_TIME - Time of day (morning, afternoon, or evening)

HOUR - 24 Hour (24-hour scale; 00 through 23, 00=midnight)

MINUTE - Minute (00 through 59)

SECOND - Second (00 through 59)

FILE_SERVER - NetWare server name

NETWORK_ADDRESS - Network number of the cabling system (8-digit hexadecimal number)

FULL_NAME - User's complete name in the Directory context, or full name in bindery-based NetWare

LAST_NAME - User's last name (surname) in NDS, or full name in bindery-based NetWare

LOGIN_NAME - User's unique login name. (Long names are truncated to eight characters)

MEMBER OF "group" - Group object that the user is assigned to.

NOT MEMBER OF "group" - Group object that the user isn't assigned to.

PASSWORD_EXPIRES - Number of days before password expires.

USER_ID - Number assigned to each user.

MACHINE - Type of computer (IBM_PC, etc.). (Not available for OS/2.)

NETWARE_REQUESTER - Version of the NetWare Requester for OS/2 (2.01, etc.)

OS - Type of DOS on the workstation (DRDOS, MSDOS, etc.)

P_STATION - Workstation's node address (12-digit hex)

SHELL_TYPE - Version of the workstation's DOS shell (1.02, etc.). Supports NetWare 2 and NetWare 3 shells and NetWare 4 Requester for DOS.

SMACHINE - Short machine name (IBM, etc.); not available under OS/2.

STATION - Workstation's connection number.

ACCESS_SERVER - Shows whether the access server is functional (TRUE=functional, FALSE=not functional)

ERROR_LEVEL - An error number (0=No errors)

<variable< - Any DOS environment variable can be used in angle brackets (<path<, etc.). To use a DOS environment variable in a MAP command, add a percent sign (%) in front of the variable, such as MAP S16:=%<path<.

%n - Replaced by parameters the user enters at the command line with the LOGIN utility.

property name - You can use any property of NDS objects as a variable. Use the property's name just as you do any other identifier variable. If the propery name includes a space, enclose the name in quotation marks.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates