2 SetLACState Utility
If a server contains more than one server adapter, and at least one of those adapters is not
connected, the server can display as failed on some network management consoles. SNMP traps
can also be triggered. Use the SetLACState utility (SetLACState) to disable the Local Area
Connection containing the unused adapter. This stops the server from displaying as failed and
prevents the SNMP traps.
NOTE: The server adapter identified by the local area connection must be an adapter supported
by HP. Also, you cannot use this utility to enable or disable adapter teams.
The SetLACState utility is installed as part of the Network Configuration Utility (NCU) component
package for Windows Server 2003. Upon installation, SetLACState.exe is copied into the
%SystemRoot%\System32\ directory.
Tool usage
You can run the SetLACState utility from the command prompt use it during RDP installations.
You can also add it to the [GuiRunOnce] section of unattend.txt for use in unattended
installations.
Command-line syntax
Use the following format at the command line:
SetLACState <Local Area Connection> [Enable | Disable] [/l
<logfile>][LINEBREAK][/? | /help]
Command-line arguments
Use the command line arguments listed in Table 2-1.
Table 2-1 SetLACState command line arguments
FunctionArgument
Specify the name or ID of the LAN connection (for example, Local Area
Connection or 1, 2, or 3).
NOTE: If you use this utility in the [GuiRunOnce] section of
unattend.txt, specify the ID of the local area connection. Specifying just
the name of the local area connection results in an error. For example, Local
Area Connection has an ID of 1. Local Area Connection 2 has an ID of 2, and
so on. Local area connections that have been renamed no longer have an ID.
<Local Area Connection>
Enables or disables the specified local area connection.
[Enable | Disable]
Lets you to specify where the logfile is saved. The default location is on the
system drive at: %SystemRoot%\cpqsystem\log\setlacstate.log.
[/l <logfile>]
Displays utility usage (optional).
/?
Displays utility usage (optional).
/help
Command-line examples
The following valid SetLACState command-line examples achieve the same result:
SetLACState 2 disable
SetLACState “Local Area Connection 2” disable
What they do:
Tool usage 15