cc/td/doc/product/iaabu/localdir/ld20rns
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command Reference
Entering Commands
Access Modes
Help Information
Abbreviating Commands
"Type `?' for a list of commands" Message
Commands Listed by Feature
alias
arp
assign
autounfail
backup
bind
blocks
boot
bridge
buddy
casa
channel
clear
color
configure
data
default
delay
dynamic-feedback
disable
enable
enable password
failover
help
hostname
interface
in-service
ip address
kill
maxconns
mtu
multiring
name
names
out-of-service
pager
password
ping
ping-allow
predictor
real
reassign
redirection
reload
replicate
restart
retry
rip
route
secure
service
show
shutdown
snmp-server
static
sticky
syn
synguard
syslog
telnet
tftp-server
threshold
timeout
virtual
weight
who
write

Command Reference


This chapter contains an alphabetical listing of the LocalDirector commands. Documentation for each command includes a brief description of its use, command syntax, usage guidelines, and an example of the command output.

Entering Commands

You can use the following commands to edit or view previously entered commands:

If you are using a VT100-compatible terminal, such as HyperTerminal with Windows 95 or Windows NT, the up and down arrow keys have the same effect as ^p and ^n. In addition, the left arrow key works as a backspace.

Access Modes

The command interpreter provides a command set that emulates Cisco IOS technologies. this command set provides three administrator access modes:

At startup, the console is in unprivileged mode. You can access privileged mode by entering the enable command. LocalDirector then prompts you for a password. When you first configure LocalDirector, a password is not required. Press the Enter key at the prompt. Assign a password to privileged mode with the enable password command. Exit privileged mode by entering the disable command.

Access configuration mode by entering the configure terminal command while in privileged mode. You can then write your settings to Flash memory, diskette, or to the console.

Help Information

Information about each command is available by entering the command name followed by a question mark at the command line prompt.

Example
LocalDirector(config)# route 0.0.0.0 0.0.0.0 ?
usage: [no] route <dest_net> <net_mask> <gateway> [<metric>]

LocalDirector(config)# route 0.0.0.0 0.0.0.0

The syntax of the command is displayed, and the prompt returns with the previous entry on the command line. Use the pager command to control display output.

For a listing of all commands available for the current mode, enter a question mark by itself.

Abbreviating Commands

You can abbreviate most commands down to the fewest unique characters for a command; for example, you can enter conf t (configure terminal) to start configuration mode.

"Type `?' for a list of commands" Message

If you enter a command that the LocalDirector does not recognize, the "Type `?' for a list of commands" message displays for a variety of reasons. This could be caused by the following:

1. Incorrect access mode—Ensure you are in configuration mode before entering configuration mode commands. From unprivileged mode, enter the enable command to start privileged mode. From privileged mode, enter config terminal to start configuration mode.

2. Incorrect number of parameters—Enter the help command to check the syntax of the command that you are entering.

3. Incorrect abbreviations—Try the command again with more characters or the full command name.

Commands Listed by Feature

Table 6-1 lists configuration commands by LocalDirector features:

Table 6-1   Command Feature Summary

Item  Command 

Access modes

  • Enter privileged mode
  • Enter configuration mode
  • Turn off privileged commands

 

enable

configure terminal

disable

ARP cache

  • Adjust
  • Flush

 

arp

no arp

Configuration management

  • Configure from the console, diskette, Flash memory, or TFTP server
  • Remove configuration
  • Reboot and configure from Flash memory
  • Save configuration
  • Identify TFTP server for storing configuration
  • Boot remote software image or configuration

 

configure

clear configuration

reload

write

tftp-server

boot

Display output

  • Display command values
  • Control display output
  • View previous commands

 

show

pager

show history

Connections

  • Set time for dropping idle connections
  • Set number of unanswered SYNs allowed
  • Set number of outstanding connections allowed
  • Connection usage, show
  • Display bytes, packets, and connections for virtual and real servers

 

timeout

synguard

data

show conn

show stats

Failover

  • Configure
  • Maintain state of connections
  • Force LocalDirector to active
  • Reset a failed LocalDirector
  • Set failover IP address
  • Set failover alias IP address
  • Show status

 

failover

replicate

failover active

failover reset

failover ip address

failover alias ip address

show failover

Flash memory access

  • Clear configuration from Flash memory
  • Display configuration
  • Reboot and configure from Flash memory
  • Write to

 

write erase

show configuration

reload

write memory

Floppy disk access

  • Read configuration from diskette
  • Save configuration to diskette

 

configure floppy

write floppy

Help

help, ?

Hot-standby servers

backup

Interface:

  • Ethernet
  • FDDI
  • Set maximum transmission unit (MTU)
  • Configure Fast EtherChannel

 

interface ethernet

interface fddi

mtu

channel

IP address

  • Set system IP address
  • Set alias IP address
  • Set failover IP address
  • Set failover alias IP address


ip address

alias ip address

failover ip address

failover alias ip address

Load balancing

  • Assign type of load balancing
  • Virtual server entries, add or remove
  • Real server entries, add or remove
  • Bindings, associate or disassociate
  • Bindings, show
  • Connection usage, show
  • Send connections to same server
  • Set time for dropping idle connections
  • Weight server connections

 

predictor

virtual

real

bind

show bind

show conn

sticky

timeout

weight

MAC addresses

  • Display associated with ports
  • Flush associated with a bridge

 

show bridge

clear bridge

Names

  • Associate a name with an IP address
  • Turn name viewing on or off

 

name

names

Passwords

  • Change privileged mode access password
  • Modify Telnet password

 

enable password
password

Ping

  • Test connectivity
  • Control ability to ping virtual servers

 

ping

ping-allow

Processes, show thread information

show processes

Prompt host name, change

hostname

Real server adjustments

  • Refused connections before reassigned
  • Time before testing state
  • Reassignments before failed
  • Set number of outstanding connections allowed
  • Set time for dropping idle connections
  • Translate IP address to virtual IP for outbound connections

 

reassign

retry

threshold

data

timeout

static

RIP listening, enable or disable

rip passive

Routing table

  • Adjust
  • Show

 

route

show route

Security

  • Block bridging
  • Control connections based on source IP of client
  • Control ability to ping virtual servers
  • Set number of unanswered SYNs allowed

 

secure

assign

ping-allow

synguard

Service state

  • Put server in-service
  • Take server out-of-service
  • Put failed server back in service
  • Restart a failed server
  • Time before testing state

 

in-service

out-of-service

autounfail

restart

retry

SNMP

  • Identify SNMP contact
  • Identify the SNMP system location
  • Designate up to five SNMP management stations to receive SNMP traps

 

snmp-server contact

snmp-server location

snmp-server host

SYSLOG

  • Dump buffer to console
  • View current hosts
  • Specify the type of SYSLOG messages to accept
  • Assign host to collect SYSLOG messages

 

syslog console

show syslog

syslog output

syslog host

Telnet

  • Enable Telnet access from remote system
  • Terminate a Telnet session
  • View Telnet access
  • Modify Telnet password

 

telnet

kill

who

password

Virtual server adjustments

  • Associate a name to virtual server
  • Assign type of load balancing
  • Send connections to same server

 

name

predictor

sticky

alias

Set an alias IP address. (Configuration and Replication modes.)

[no] alias ip address ip_address [subnet_mask]
Syntax Description

ip_address

Alias IP address for the virtual. A maximum of 8 aliases are allowed.

subnet_mask

Subnet mask for the aliased IP address. By default, the subnet mask is 255.255.255.0.

Usage Guidelines

The alias ip address command assigns multiple IP addresses to the virtual machine. This allows the virtual machine to be placed on a different IP network than the real machines, without using a router.

Use the no alias ip address command to remove an aliased IP address.

Use the show alias ip address command to display the aliased IP addresses.

Examples
localdirector(config)# alias ip address 192.168.34.33
localdirector(config)# show alias ip address
alias ip address 192.168.34.33 255.255.255.0
localdirector(config)#

arp

Add an entry to the LocalDirector ARP table. (Privileged, Configuration, and Replication modes.)

[no] arp ip en interface_number [alias]
Syntax Description

ip

IP address for the ARP table entry.

en

Hardware MAC address for the ARP table entry.

interface_number

The interface number.

alias

Alias entries do not time out and are stored in the configuration with the write command. Alias entries stay in the ARP table after the LocalDirector reboots.

Usage Guidelines

The arp command adds an entry to the LocalDirector ARP table. ARP is a low-level TCP/IP protocol that resolves a node's physical address from its IP address.


Note      All virtuals, whether in-service or out-of-service, respond to ARP requests.


Gratuitous ARPs are supported in LocalDirector version 1.6 and later.

Use no arp to delete alias ARP entries, the clear arp to remove other ARP entries, and the show arp to display ARP entries.

Examples
LocalDirector(config)# arp 192.168.1.42 0000.0101.0202 0
LocalDirector(config)# arp 192.168.1.43 0000.0101.0203 1 alias
LocalDirector(config)# show arp
Interface 0:
        192.168.1.42     (0000.0101.0202)
Interface 1:
        192.168.1.43     (0000.0101.0203)        alias
Interface 2:
LocalDirector(config)# clear arp
LocalDirector(config)# show arp
Interface 0:
Interface 1:
        192.168.1.43     (0000.0101.0203)        alias
Interface 2:
LocalDirector(config)# no arp 192.168.1.43 0000.0101.0203 1
LocalDirector(config)# show arp
Interface 0:
Interface 1:
Interface 2:
LocalDirector(config)#

assign

Directs connection requests to a specific instance of a virtual server. (Configuration and Replication modes.)

[no] assign virtual_id client_ip [netmask]
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

client_ip

The IP address of the client requesting a connection.

netmask

The subnet mask used with the client IP address.

Usage Guidelines

Use the assign command to associate client IP addresses with specific virtual servers. By default, the bind-id when defining a virtual server is 0 and the protocol is TCP. Any client IP address not identified by an assign command statement is directed to the default bind-id of 0. A virtual server with a bind-id of 0 cannot be used with the assign command because the bind-id of 0 is reserved for default traffic.

The show assign command displays the current assign information.

See the definition of Client-Assigned Load Balancing (Traffic Shaping) in Chapter 1, "Introduction" and the example of Client-Assigned Load Balancing (Traffic Shaping) in Chapter 4, "Installing and Configuring LocalDirector" for more information.

Example
LocalDirector(config)# assign 192.9.200.1:80:1:tcp 197.89.1.0 255.255.255.0
LocalDirector(config)# assign 192.9.200.1:80:2:tcp 167.56.6.0 255.255.255.0
LocalDirector(config)#

autounfail

Automatically bring a failed real server back into service. (Configuration and Replication modes.)

[no] autounfail real_id
Syntax Description

real_id

Real server IP address or name, port (if a port-bound server), bind-id, and protocol.

Usage Guidelines

A server is failed when it does not answer the number of connections set with the threshold command, even though it still might answer one of its existing data connections, or when it responds with TCP RSTs. The autounfail command brings a failed server into testing mode if it answers or sends data on a connection that is already established. The autounfail command is on by default.

In testing mode, the real server gets one real incoming connection. If it answers that connection, it is put in service. If it does not answer that connection, it is failed again.

The show autounfail command displays autounfail information about the real machine.

Example
LocalDirector(config)# autounfail 192.168.1.2
LocalDirector(config)#

backup

Assign a backup server for real and virtual servers. (Configuration and Replication modes.)

[no] backup real_id | virtual_id backup_id
Syntax Description

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of the real server to be backed up.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol of the virtual server to be backed up.

backup_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of the real or virtual server that will serve as a backup.

Usage Guidelines

You can back up real servers with virtual addresses, and you can back up virtual servers with a real server. You can use a backup server when the real or virtual server is not in service (for example, it is failed or out of service).

It is important to note that the backup is treated just like any other real or virtual server by the LocalDirector. For example, if the backup is a real server it has the same adjustable parameters (retry, timeout, reassign, etc.) that other real machines have. The predictor for the backup virtual server is used to load balance the servers being backed up by that virtual server.

Use the no backup command to remove a backup server.

A real server bound to a virtual server, cannot also be used as a backup for that virtual. This means that the following configuration:

virtual 1.1.1.1
real 2.2.2.2
real 3.3.3.3
real 4.4.4.4
real 5.5.5.5

backup 2.2.2.2 4.4.4.4
backup 3.3.3.3 5.5.5.5

bind 1.1.1.1 2.2.2.2
bind 1.1.1.1 3.3.3.3

works; however, if you tried to bind real machine 5.5.5.5 to virtual 1.1.1.1, it will not let you since 5.5.5.5 is already serving as a backup for that virtual.

Also, if server 2.2.2.2 fails and it is backed up by 4.4.4.4, it uses that server as long as it is in service; however, if 4.4.4.4 is also failed it does not check the backup for 4.4.4.4.

Use the show backup command to display backup information.

Example
LocalDirector(config)# backup server1 remote1
LocalDirector(config)# backup server2 remote1
LocalDirector(config)# backup server3 remote1
LocalDirector(config)# show backup
        Machine     Port          Backup     Port
        server1  default         remote1  default
        server3  default         remote1  default
        server2  default         remote1  default
LocalDirector(config)#

bind

Associate a virtual server with one or more real servers. (Configuration and Replication modes.)

[no] bind virtual_id real_id [real_id...]
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of a real server.

Usage Guidelines

Use virtual or real to define the virtual and real server addresses before using bind. Use the bind command to direct network traffic from a virtual server to a real server. Use no bind to release an association between a real and virtual server.

Example
LocalDirector(config)# bind 204.31.17.1 80 192.168.1.1 192.168.1.2
LocalDirector(config)# bind 204.31.17.1 192.168.1.3 192.168.1.4
LocalDirector(config)# show bind
               Virtual                      Real
    204.31.17.1      80 (IS)
                              192.168.1.2 (IS)
                              192.168.1.1 (IS)
    204.31.17.1 default (IS)
                              192.168.1.4 (IS)
                              192.168.1.3 (IS)
LocalDirector(config)# no bind 204.31.17.1 192.168.1.3 LocalDirector(config)# show bind
               Virtual                      Real
    204.31.17.1      80 (IS)
                              192.168.1.2 (IS)
                              192.168.1.1 (IS)
    204.31.17.1 default (IS)
                              192.168.1.4 (IS)

blocks

Show system buffer utilization.

show blocks
Example
localdirector(config)# show blocks
  SIZE    MAX    LOW    CNT
     4   1024   1024   1024
    80    256    254    254
   256    128    127    127
  1550   1280    664    677

boot

The boot command enables booting from a remote image.

[no] boot config file tftp_server_ip
boot image image_file tftp_server_ip
Syntax Description

config

Boot a LocalDirector configuration file.

image

Boot a LocalDirector software file.

file

The name of the configuration file stored on the TFTP server.

image_file

The name of the LocalDirector software file stored on the TFTP server.

tftp_server_ip

The IP address of the TFTP server.

Usage Guidelines

LocalDirector configuration files and software can be stored on a TFTP server.

Example

In the following example, the LocalDirector is booted from a remote image, but not reloaded.

localdirector(config) 8# boot image ld210115.bin 171.69.183.249
boot image /usr/users/admin/ldimage 192.168.89.9
confirm boot [N]: y
saving image from flash
copying 274944 bytes
saving config from flash
[no] boot config <filename> <tftp server ip>
        boot image <image filename> <tftp server ip>erasing flash
writing image to flash
wrote 274944 bytes e.size=274944
writing the config to flash
confirm reboot on new image [N]: n
localdirector(config) 9# 

In the following example, the LocalDirector is booted from a remote image and reloaded.

localdirector(config) 2# show version
LocalDirector 410 Version 3.0.0.123
localdirector(config) 3# boot image ld300123.bin 171.69.183.249
confirm boot [N]:
saving image from flash
copying 279040 bytes
saving config from flash
erasing flash
             atmel_erase(): Unsupported!
writing image to flash
wrote 279040 bytes e.size=279040
writing the config to flash
confirm reboot on new image [N]:
remove floppy from drive and hit any key
Rebooting....
Finesse Bios V3.3
Booting Floppy
Loading from Flash
32MB RAM
Flash=AT29C040A @ 0x300
 i82557 rev 2 Ethernet @ irq11 dev 13 index  0 MAC: 00a0.c965.576f
 i82557 rev 2 Ethernet @ irq15 dev 14 index  1 MAC: 00a0.c965.5b33
 i82557 rev 2 Ethernet @ irq 5 dev 15 index  2 MAC: 00a0.c965.56c1

LocalDirector 410 Version 3.0.0.123  Initialization.....done.
Copyright (c) 1998 by Cisco Systems, Inc.

        Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

        Cisco Systems, Inc.
        170 West Tasman Drive
        San Jose, California 95134-1706localdirector 0>

bridge

Manipulate bridge table operations. (Configuration and Replication modes.)

show bridge in
clear bridge in
Syntax Description

in

The interface number.

Examples

buddy

Associate virtuals with one another to create a group. (Configuration and Replication modes.)

[no] buddy buddy_group virtual_id [virtual_id ... ]
Syntax Description

buddy_group

The name of the group the virtuals are associated with.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

Usage Guidelines

Use the buddy command to create a buddy group (named buddy_group), consisting of a list of virtuals. Certain commands and parameters (such as the sticky command) that affect one virtual affect all other virtuals in the buddy group. A virtual can reside in only one buddy group; if it currently exists in a group, it must be removed from that group before it can be added to a new group. The no buddy command removes a virtual from a buddy group and the buddy group itself, if the virtuals have already been removed from it.

The show buddy buddy_group lists the virtuals in a group. The show buddy virtual_id lists the buddy group that virtual resides within.

Example
The following creates the buddy group secure_service and adds two virtuals. The contents of the group are displayed with the show buddy command:

localdirector(config)# buddy secure_service 192.9.200.1:443
localdirector(config)# buddy secure_service 192.9.200.1:80

localdirector(config)# show buddy secure_service

secure_service 192.9.200.1:443:tcp 192.9.200.1:80:tcp

casa

The casa commands configure the LocalDirector for the Cisco Appliance Server Architecture (CASA) environment. (Configuration and Replication modes.)

[no] casa service-manager port sm_port [password password [password_timeout]]
[
no] casa service-manager multicast-ttl value
Syntax Description

service-manager

CASA Service Manager component.

port

Configure the port for Service Manager communications.

sm_port

The address of the Service Manager port. By default, 1638 is used.

password

The password to enable MD5 encryption for Service Manager communications.

password_timeout

The timeout value for the MD5 encryption.

multicast-ttl

Enable the time-to-live interval for IP multicast packet communication between Service Manager and Forwarding Agent components.

value

The ttl value.

Use the casa service-manager port command to configure the UDP port for the Service Manager used for multicast communication between the CASA components. By default, the Service Manager port is 1638. An optional password and password timeout can be used, which is disabled by default. The password is the password to be used in MD5 encryption of packets between the Service Manager and Forwarding Agents. The no form of this command removes the port configuration.

Use the casa service-manager multicast-ttl command to set the time-to-live value for the IP multicast packets that are sent between the CASA components. The default time to live is 3 minutes. The no form of this command disables the time-to-live value.

channel

The channel command is used to assign 2 or 4 ports as Fast EtherChannels. (Configuration and Replication modes.)

[no] channel port two|four
show channel
[port]
Syntax Description

port

The first interface included in the Fast EtherChannel. Two segment channels are 0, 2, 4, etc., and four segment channels are 0, 4, 8, etc.

two|four

The number of interfaces that comprise the channel.

Usage Guidelines

The show channel starting interface command displays the aggregate numbers for the channel, that is, the sum of the numbers from the individual interfaces that comprise the channel.

Example
localdirector 2> show channel
Fast EtherChannel 0-1 is up, line protocol is up ud
  Hardware is rns23x0 ethernet, address is 0000.bc11.3e0c
  MTU 1500 bytes, BW 200000 Kbit full duplex
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     98150 packets output, 5891299 bytes, 0 underruns
localdirector 3> show interface
ethernet 0 is up, line protocol is up
  Hardware is rns23x0 ethernet, address is 0000.bc11.3e0c
  MTU 1500 bytes, BW 100000 Kbit full duplex
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     98156 packets output, 5891685 bytes, 0 underruns
ethernet 1 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.3e0c
  MTU 1500 bytes, BW 100000 Kbit full duplex
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     0 packets output, 0 bytes, 0 underruns
ethernet 2 is down, line protocol is up
  Hardware is rns23x0 ethernet, address is 0000.bc11.3e0e
  MTU 1500 bytes, BW 100000 Kbit full duplex
     98084 packets input, 5885226 bytes, 0 no buffer
     Received 1 broadcasts, 0 runts, 0 giants
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     0 packets output, 0 bytes, 0 underruns
ethernet 3 is up, line protocol is up
  Hardware is rns23x0 ethernet, address is 0000.bc11.3e0f
  MTU 1500 bytes, BW 10000 Kbit half duplex
     337 packets input, 22827 bytes, 0 no buffer
     Received 30 broadcasts, 0 runts, 0 giants
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     35212 packets output, 2114369 bytes, 0 underruns
localdirector 4> 

clear

Combine with other commands to delete information associated with the other commands. (Privileged and Configuration mode.)

clear (variable command)
clear configuration [secondary|primary|all]
Syntax Description

secondary

Clears information about virtual and real servers, server bindings, backup servers, and load balancing.

primary

Clears settings for routing, failover, network interfaces, passwords, error logging, and networking.

all

Clears all configuration information.

Usage Guidelines

Use the clear command with arp, bridge, configuration, route, snmp-server, syslog, and telnet to clear the values associated with those commands.

Use the clear configuration command to delete all or part of the LocalDirector configuration. If you enter the clear configuration command without an optional argument, the default is to clear the secondary configuration.


Note      The clear configuration command clears the running configuration. Once you use the write memory command to save the configuration to Flash memory, any information that has been cleared cannot be restored, unless it was previously saved to diskette with the write floppy command.


Example
LocalDirector(config)# show arp
Interface 0:
        192.168.1.42     (0000.0101.0202)
Interface 1:
LocalDirector(config)# clear arp
LocalDirector(config)# show arp
Interface 0:
Interface 1:

color

Set the IP precedence value for a virtual machine. (Configuration and Replication modes.)

[no] color virtual_id ip_precedence_value
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

ip_precedence_value

The IP precedence value. Permissible values are 0-7 and the keywords listed in the following section.

Usage Guidelines

The color command allows a value to be set on a per-virtual server to allow priotizing of packets for different types of services. Prioritized packets are sent to and from virtual servers. For example, one port may be used for HTTP traffic, using one priority, while another port may handle UDP traffic, with another priority. Use the no color command to remove the IP precedence on a virtual server.

The ip_precedence_value can be within the range 0-7, or can be one of the following keywords.

Keyword

Number

Description

critical

5

Set critical precedence.

flash

3

Set flash precedence.

flash-override

4

Set flash override precedence.

immediate

2

Set immediate precedence.

internet

6

Set internetwork control precedence.

network

7

Set network control precedence.

priority

1

Set priority precedence.

routine

0

Set routine precedence.

Any more info on these precedences? Would 0 be the lowest and 7 the highest?

Example

configure

Define the current configuration. (Privileged and Configuration modes.)

configure {floppy|memory|terminal|net}
Syntax Description

floppy

Merge the current running configuration with the configuration stored on diskette with the write floppy command.

memory

Merge the configuration in Flash memory with the current configuration in RAM.

terminal

Start configuration mode, and merge the current running configuration with commands entered from the keyboard.

net

Configure from a remote TFTP server. To use this option, issue the tftp-server command first, or include the full path name of the file and the IP address of the TFTP server.

Usage Guidelines

Each statement is read into the current configuration and evaluated with these rules:

Example
LocalDirector 4# configure terminal
LocalDirector(config) 5# real 192.168.1.1:0
LocalDirector(config) 6# show real
Real Machines:
                                            No Answer TCP Reset DataIn
   Machine            Connect  State  Thresh Reassigns Reassigns  Conns
  192.168.1.1:0       0     OOS       8         0         0      0
LocalDirector(config) 7#

data

Limit number of connections to a server that has an open connection to a client but is not sending data in response to a request. (Configuration and Replication modes.)

[no] data real_id [numbr_of_connections]
Syntax Description

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of a real server.

number_of_connections

The number of connections to allow to a real server where data has been requested, but no data has been sent by server. The feature is disabled by default with an initial value of 0. To calculate this value, examine the data count during busy periods, and double it.

Usage Guidelines

Some web servers (especially those running Microsoft Windows NT 4.0) continue to establish connections to a real server even though the daemon or application running on that port is dead. The data command can be used to limit the number of connections sent to a server that is not sending data.

There is no time interval associated with the data command, and the following explains the sequence of events that determine whether or not the server is responding:

1. Client sends SYN.

2. Server kernel responds with SYN/ACK.

3. Client sends HTTP GET request (LocalDirector counts this as one data request).

4. If the Server responds, the LocalDirector subtracts 1 from the count.

5. If the count reaches a preset threshold, the LocalDirector fails the server.

Many kernels will not accept a TCP connection (SYN) if there is no process listening on the port that the client is attempting to connect to. Some kernels, though, mistakenly do accept the connection (SYN/ACK). Because the server is responding (with a SYN/ACK, but not with data), the LocalDirector does not recognize this as a real machine failure.

The data command determines the number of connections to allow to a real server where data has been not been sent back to the client, regardless of the SYN/ACK response. Once a real machine reaches this number, the LocalDirector checks to see if other machines bound to the virtual server are also at 80 percent of their threshold capacity (based on DataIn value). If the other machines are close to reaching this value, then the LocalDirector assumes the site is busy and does not fail the machine.

If the other machines are not at this capacity, then the LocalDirector fails the real machine and sends the following SYSLOG/SNMP message:

Real machine 'x' Failed Application

The show real command indicates the number of unanswered connections for each real server, and the show data command indicates the value set with the data command. Use the no data command to return to the default value of 0.

Example
localdirector(config) 5# show real
Real Machines:
                                              No Answer  TCP Reset DataIn
   Machine             Connect   State   Thresh    Reassigns    Reassigns  Conns
192.168.1.1:0:tcp 0     IS       8      0       0     0
localdirector(config) 6# show data
             Machine DataIn
       192.168.1.1:0:tcp      50
localdirector(config) 7# data 192.168.1.1:0:tcp 30
localdirector(config) 8# show data
             Machine DataIn
       192.168.1.1:0:tcp 30
localdirector(config) 9#

default

Set and display LocalDirector tunable parameter defaults. (Configuration and Replication modes.)

default parameter value
show default parameter
Usage Guidelines

You can set new defaults for some LocalDirector parameters. Once a new value is set, it is in effect until set again with the default command. The default parameters for the following commands can be set:

delay

Keep connections in LocalDirector memory for five minutes after TCP ending sequence. (Configuration and Replication modes.)

[no] delay virtual_id time

Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

time

The time value for the delay period. The default value is 5 minutes.

Usage Guidelines

The delay command is used to put connections into a "pending deletion" state instead of removing them immediately when a TCP ending sequence is received. If the delay command is set for a virtual server, the connection remains in memory for approximately five minutes.

If any data arrives for the connection, it is put back in an "active" state. If any other packet comes across for the connection, the packet passes through the virtual server, but the connection is not considered active.

Use this command only when responses to and from clients are often dropped, especially during the closing of TCP connections or for UDP connections. For example, there is a known bug with the Trumpet WinSock stack running on Windows 3.11 where HTTP get requests are sent out of order, and this causes the LocalDirector to drop the connection even though it has not completed.

Example
localdirector(config) 1# virtual 10.10.10.1
localdirector(config) 2# delay 10.10.10.1
localdirector(config) 3# show delay
                  Machine Deletion
           10.10.10.1:0:0 normal
localdirector(config) 4#

dynamic-feedback

Connect to a real server and obtain dynamic feedback. (Configuration and Replication modes.)

[no] dynamic-feedback ip_address port [timeout [password]]
Syntax Description

ip_address

The IP address of the machine.

port

The interface port number of the machine.

timeout

The time value for the timeout period. The default value is ?? minutes.

password

The password for the connection.

What is the default timeout period?

Usage Guidelines

The dynamic-feedback command obtains information about the availability of a real server

Examples

disable

Exit privileged mode and return to unprivileged mode. (Privileged mode.)

disable
Usage Guidelines

The disable command exits privileged mode and returns you to unprivileged mode. Use the enable command to return to privileged mode.

Example
LocalDirector# disable
LocalDirector>

enable

Start privileged mode. (Unprivileged and privileged modes.)

enable
Usage Guidelines

The enable command starts privileged mode. LocalDirector prompts you for your privileged mode password. When you first configure LocalDirector, a password is not required and you can press the Enter key at the prompt. Use disable to exit privileged mode. Use enable password to change the privileged mode password.

In the example below, note that the prompt changes from ">" to "#" when you enter privileged mode.

Example
LocalDirector> enable
Password: #######
LocalDirector# disable
LocalDirector>

enable password

Set the privileged mode password. (Privileged and Configuration modes.)

enable password password
Syntax Description

password

A password of up to 16 alphanumeric characters, which is not case sensitive. LocalDirector converts the password to all lowercase.

Usage Guidelines

The enable password command changes the privileged mode password, for which you are prompted after you enter the enable command. When you first configure LocalDirector, a password is not required and you can press the Enter key at the prompt. Assign a password to privileged mode with the enable password command.

Example
LocalDirector(config)# enable password fnord42
LocalDirector(config)#

failover

Enable access to the optional failover feature. (Configuration and Replication modes.)

[no] failover [active]
failover ip address ip_address
failover alias ip address ip_address [subnet_mask]
failover reset
Syntax Description

active

Make a LocalDirector the active unit. Use this command to make a standby unit active. Either enter no failover active on the active unit to switch service back to the standby unit, or enter failover active on the standby unit.

alias

Create an alias IP address for the active failover unit. A maximum of 8 aliases are allowed.

ip_address

This IP address is used by the standby unit to communicate with the active unit. Use this IP address with the ping command to check the status of the standby unit. This address must be on the same network as the system IP address. For example, if the system IP address is 192.168.1.1, set the failover IP address to 192.168.1.2.

reset

Forces both units back to an unfailed state. Use this command instead of rebooting the LocalDirector. This does not cause a switch to occur, and if the LocalDirector still has problems, it will be failed again.

The failover reset command can be entered from either unit, but it is best to always enter commands at the active unit. Entering the failover reset command at the active unit will "unfail" the standby unit and clear the "Active time" counter displayed in the show failover command output.

subnet_mask

A subnet mask for the aliased IP address.

Usage Guidelines

Failover provides a mechanism for LocalDirector to be redundant by allowing two identical units to serve the same functionality. Both LocalDirector units must run the same version of software, and the failover cable must be used to connect the two units. The failover command without an argument indicates that you have connected the failover cable and intend to use a secondary unit to back up the primary LocalDirector. The default configuration includes the no failover command; however if the failover cable is present at boot-up, it will be detected automatically and failover will be enabled. Use the show failover command to verify the status of the connection and to determine which unit is active. Use the replicate command to maintain connection state on a per-virtual basis.


Note      Turn off unused interfaces with the no interface command, or the LocalDirector unit will be seen as failed.


Failover works by passing control to the secondary unit should the primary unit fail. The switch between units occurs within 30 seconds of the failure event. The markings on the failover cable let you choose which unit is primary and which is secondary.


Note      Use identical LocalDirector units as failover pairs. Make sure that the hardware platform, and the number and type of interfaces on each unit are the same.

Failover works in a switched environment, as long as both units are running LocalDirector software version 1.6.3. or later.

Failover only works with the Cisco failover cable. LocalDirector failover does not work with alternate vendor DB15-to-DB15 cables.

Because configuration replication is automatic from the active unit to the standby unit, configuration changes should only be entered from the active unit.


Example

The following output shows failover on, and the primary unit state is active:

ld-prim(config)# failover ip address 192.168.89.2
ld-prim(config)# show failover
Failover On
Cable status: Normal
This host: Primary - Active
Active time: 6885 (sec)
Interface 0 (192.168.89.1): Normal
Interface 1 (192.168.89.1): Normal
Other host: Secondary - Standby
Active time: 0 (sec)
Interface 0 (192.168.89.2): Normal
Interface 1 (192.168.89.2): Normal

The following example shows the show failover output if failover has not started monitoring the network interfaces:

ld-prim(config)# show failover
Failover On
Cable status: Normal
This host: Primary - Active
Active time: 6930 (sec)
Interface 0 (192.168.89.1): Normal (Waiting)
Interface 1 (192.168.89.1): Normal (Waiting)
Other host: Secondary - Standby
Active time: 15 (sec)
Interface 0 (192.168.89.2): Normal (Waiting)
Interface 1 (192.168.89.2): Normal (Waiting)

Note      Waiting indicates that monitoring of the other unit's network interfaces has not yet started.


help

Display help information. (All modes.)

help
?
Usage Guidelines

The help or ? command displays help information about all commands. You can view help on an individual command by entering the command name followed by a question mark. The command line prompt returns with the command syntax, and the command appears on the command line.

Use the pager command to control the display output.

Enter ? at the command prompt to get a list of all of the commands available for the current mode.

Example
LocalDirector(config)# arp ?
usage: [no] arp <ip> <mac_address> <interface_number> [alias]
LocalDirector(config)# arp

hostname

Change the host name in the LocalDirector command line prompt. (Configuration mode.)

hostname newname
Syntax Description

newname

New host name for the LocalDirector prompt. This name can be up to
16 alphanumeric characters and is not case sensitive. LocalDirector converts the host name to all lowercase.

Usage Guidelines

The hostname command changes the host name label on prompts.

Example
LocalDirector(config)# hostname lab1
lab1(config)#

interface

Configure network interfaces. (Configuration and Replication modes.)

interface ethernet interface_number 10BaseT|100BaseTX|100full|auto
Syntax Description

interface number

The interface number.

10BaseT

Sets 10 Mbit Ethernet and half duplex communications.

100BaseTX

Sets 100 Mbit Ethernet and half duplex communications.

100full

Sets 100 Mbit Ethernet and full duplex communications.

auto

Automatically determines networking speed and sets full duplex communications, if available. This is the recommended full duplex Ethernet option, but the network interface must support auto-detection. The RNS 4-port adapter cards do not support this option.

Usage Guidelines

The interface command identifies the type of network interface boards, and the speed and duplex settings for Ethernet. Use show interface to view information about the interface.

To configure full duplex Ethernet, the auto option is recommended, but your network interface has to support auto-detection. (The RNS 4-port adapter cards do not support the auto option.) You can force the Ethernet argument to accept full duplex with the 100full option if the network accepts full duplex and 100 megabit Ethernet.


Note      In releases prior to version 2.2.1, the no interface command was used to disable and enable access to an interface. This command no longer is used to enable and disable an interface. Use the shutdown command instead.



Note      If a crossover cable is used to connect the LocalDirector to a Cisco 7500 series router, use the 100full option.

Use the 100full option for the 4-port Ethernet interfaces on the LocalDirector 420.


Example
localdirector(config) 9# show interface
ethernet 0 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c68
  MTU 1500 bytes, BW 10000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 1 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c69
  MTU 1500 bytes, BW 10000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 2 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6a
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 3 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6b
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
localdirector(config) 0# interface ethernet 0 100full
localdirector(config) 1# interface ethernet 1 auto
WARNING: setting rns23x0 to autosense mode which
         is incompatible with autonegotiating devices
localdirector(config) 2# show interface
ethernet 0 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c68
  MTU 1500 bytes, BW 100000 Kbit full duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 1 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c69
  MTU 1500 bytes, BW 10000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 2 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6a
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 3 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6b
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
localdirector(config) 3#

in-service

Mark a real or virtual server as being in service (IS). (Configuration and Replication modes.)

in-service {virtual|real} virtual_id|real_id [all]
is {virtual|real} virtual_id|real_id [all]
Syntax Description

virtual

Mark a virtual server as in service.

real

Mark a real server as in service.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol of the virtual server that will be put in service.

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of the real server that will be put in service.

all

Mark all virtual servers or all real servers with the same IP address as in service. Port numbers and bind-ids do not have to be specified.

Usage Guidelines

The in-service command indicates that the virtual server or real server is ready to accept connections.

Example

In following example, the in-service (is) command is used with the all option to put all ports of real server 192.168.1.1 in-service. This puts all ports of the real server (both default and port-bound) in-service with just one command.

Server www.domain.com is put in-service by using the name of the server for server_id. Because no port is specified, only the default ports are put in-service.

When port-bound server 192.168.1.3 80 is put in-service, the remaining ports (both default and port-bound) are left out-of-service.

LocalDirector(config) 0# show real
Real Machines:
                                              No Answer TCP Reset DataIn
             Machine  Connect   State  Thresh Reassigns Reassigns  Conns
       192.168.1.3:0       0     OOS       8         0         0      0
      192.168.1.3:21       0     OOS       8         0         0      0
     192.168.1.3:80       0     OOS       8         0         0      0
    www.domain.com:0       0     OOS       8         0         0      0
   www.domain.com:21       0     OOS       8         0         0      0
   www.domain.com:80       0     OOS       8         0         0      0
       192.168.1.1:0       0     OOS       8         0         0      0
      192.168.1.1:21       0     OOS       8         0         0      0
192.168.1.1:80:tcp       0     OOS       8         0         0      0
LocalDirector(config) 1# is real 192.168.1.1 all
LocalDirector(config) 2# is real www.domain.com
LocalDirector(config) 3# is real 192.168.1.3:80:tcp
LocalDirector(config) 4# show real
Real Machines:
                                              No Answer TCP Reset DataIn
             Machine  Connect   State  Thresh Reassigns Reassigns  Conns
       192.168.1.3:0       0     OOS       8         0         0      0
     192.168.1.3:21       0     OOS       8         0         0      0
    192.168.1.3:80:tcp       0      IS       8         0         0      0
    www.domain.com:0       0      IS       8         0         0      0
   www.domain.com:21       0     OOS       8         0         0      0
   www.domain.com:80       0     OOS       8         0         0      0
       192.168.1.1:0       0      IS       8         0         0      0
      192.168.1.1:21       0      IS       8         0         0      0
      192.168.1.1:80       0      IS       8         0         0      0
LocalDirector(config) 5#

ip address

Assign the system IP address for the LocalDirector. (Configuration and Replication modes.)

ip address ip [subnet_mask]
Syntax Description

ip

System IP address of the LocalDirector.

subnet_mask

Subnet mask of LocalDirector network.

Usage Guidelines

The ip address command assigns an IP address to the LocalDirector. Use the show ip address command to view the address.

In the following example, the system IP address is 192.168.1.1, and the failover IP address is 192.168.1.2. The current IP of 192.168.1.2 indicates that this is the standby unit for failover. If the current IP is the system IP address, the unit is active. If the current IP is the failover IP address, the unit is standby.


Note      You cannot use the traceroute command with the LocalDirector IP address. The traceroute command can only be used with virtual IP addresses.


See also: failover

Example
LocalDirector(config) 4# ip address 192.168.1.1 255.255.255.0
LocalDirector(config) 4# failover ip address 192.168.1.2
LocalDirector(config) 5# show ip address
System IP 192.168.1.1, system subnet 255.255.255.0
Current IP 192.168.1.2
LocalDirector(config) 6#

kill

Terminate a Telnet session. (Privileged and Configuration modes.)

kill id
Syntax Description

id

Telnet session ID.

Usage Guidelines

The kill command terminates a Telnet session. Use who or show who to view the Telnet session ID value. When you kill a Telnet session, LocalDirector lets any active commands terminate and then drops the connection without warning to the user.

See also: telnet, who

Example
LocalDirector(config)# show who
2: From 192.168.2.2
1: From 192.168.1.3
0: On console 
LocalDirector(config)# kill 2
LocalDirector(config)# who
1: From 192.168.1.3
0: On console 

maxconns

Set the maximum number of connections that LocalDirector will send to a real server. (Configuration and Replication modes.)

[no] maxconns real_id number
Syntax Description

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of the real server.

number

The maximum number of connections allowed for the server, or "unlimited" if there is no limit.

Usage Guidelines

You can set the maximum number of connections that a real server accepts to avoid overloading the server. There is no default setting for maxconns, and the value is "unlimited" when viewed with the show maxconns command.

Example
LocalDirector(config)# show maxconns
        Machine    Port     Limit
    192.168.1.1 default unlimited
    192.168.1.2 default unlimited
LocalDirector(config)# maxconns 192.168.1.1 500
LocalDirector(config)# show maxconns
        Machine    Port     Limit
    192.168.1.1 default       500
    192.168.1.2 default unlimited
LocalDirector(config)#

mtu

Specify the maximum transmission unit (MTU) value for the specified network interface. (Configuration and Privileged modes.)

mtu interface_number bytes
Syntax Description

interface_number

The interface number.

bytes

The MTU for the interface. Specify a number between 64 and 65,535.

Usage Guidelines

For Ethernet interfaces, the default MTU should be 1,500 bytes in a block; for FDDI, specify 4,096 bytes.

The value for the mtu command depends on the type of network interface specified in the interface command. The minimum value for bytes is 64 and the maximum is 65,535 bytes.

Example
LocalDirector(config)# show mtu
    mtu 0 1500
    mtu 1 1500
LocalDirector(config)# mtu 0 4096
LocalDirector(config)# show mtu
    mtu 0 4096
    mtu 1 1500

multiring

Enable and disable the Routing Information Field (RIF) for FDDI interfaces. (Configuration and Replication modes.)

[no] multiring [all]
Syntax Description

all

Enable multiring for all frames.

Usage Guidelines

Enables or disables an interface's ability to collect and use source-route information (RIF) for routable protocols. The all keyword enables the multiring for all frames. See the chapter "Configuring Source-Route Bridging" in the document Router Products Configuration and Reference for more information.

In FDDI (and token-ring), if a RIF exists in the IP header it can cause problems. The multiring command, which is on by default in LocalDirector, interprets and uses the RIF field in the header. When this is turned off (suggested for FDDI and token-ring) by using no multiring all, the RIF field is not used in the IP header.

name

Associate a name with an IP address. (Configuration and Replication modes.)

[no] name ip name
Syntax Description

ip

The IP address of the virtual server or real server being named. This does not include port numbers associated with port-bound servers.

name

The name assigned to the IP address.

Usage Guidelines

Use the name command to identify a virtual or real server by a text name. This makes it easier to change the LocalDirector configuration because you can refer to real and virtual servers by name rather than IP address; however, the port number and bind-id must be included with the name when identifying port-bound servers and virtual servers with bind-ids. The name command can be used before or after a server is defined.

The name command is optional, and it is not related to DNS. It provides a means of making LocalDirector servers easier to configure, and the names associated to the configuration do not have to be synchronized with DNS.

Use the no name command to remove an assigned name.

Example

In the example that follows, the name command is used to identify IP address 192.168.1.1 as "v1" and then it is defined as a virtual server with the virtual command. This creates a virtual server with a default port of 0 and a bind-id of 0.

ld(config) 8# name 192.168.1.1 v1
ld(config) 9# virtual v1

Two more virtual servers created using the same name, and they are bound to port 80 with bind-ids of :1 and :2.

ld(config) 0# virtual v1:80:1
ld(config) 1# virtual v1:80:2

A virtual server is created with an IP address of 192.168.1.2 that is bound to port 443 and has a bind-id of :1. The name command is then used to identify IP address 192.168.1.2 as "v2" after the virtual server is defined.

ld(config) 2# virtual 192.168.1.2:443:1
ld(config) 3# name 192.168.1.2 v2
ld(config) 4# show virtual
Virtual Machines:
                  Machine   State  Connect   Sticky    Predictor   Slowstart
                  v1:80:2    OOS        0        0   leastconns  roundrobin*
                  v1:80:1    OOS        0        0   leastconns  roundrobin*
                   v1:0:0    OOS        0        0   leastconns  roundrobin*
                 v2:443:1    OOS        0        0   leastconns  roundrobin*

The name "v1" is used as the virtual_id with the in-service command and the all option to put all virtual servers with IP address 192.168.1.1 in service.

ld(config) 5# is virtual v1 all
ld(config) 6# show virtual
Virtual Machines:
                  Machine   State  Connect   Sticky    Predictor   Slowstart
                  v1:80:2     IS        0        0   leastconns  roundrobin*
                  v1:80:1     IS        0        0   leastconns  roundrobin*
                   v1:0:0     IS        0        0   leastconns  roundrobin*
                 v2:443:1    OOS        0        0   leastconns  roundrobin*

The name "v2" is used to identify a virtual server bound to port 80 with a bind-id of :1.

ld(config) 7# virtual v2:80:1
ld(config) 8# show virtual
Virtual Machines:
                  Machine   State  Connect   Sticky    Predictor   Slowstart
                  v1:80:2     IS        0        0   leastconns  roundrobin*
                  v1:80:1     IS        0        0   leastconns  roundrobin*
                   v1:0:0     IS        0        0   leastconns  roundrobin*
                 v2:443:1    OOS        0        0   leastconns  roundrobin*
                  v2:80:1    OOS        0        0   leastconns  roundrobin*
ld(config) 9#

names

Determine whether IP addresses or server names display in screen output. (Privileged, Configuration, and Replication modes.)

[no] names
Usage Guidelines

You can use either the server name or IP address to configure real and virtual servers regardless of whether the names command is on or off. The status of the names command does not affect the write terminal and show configuration commands. Use the show names command to check the status of names.

Use the no names command to disable the display of names in screen output.

Example
LocalDirector(config)# show names
names are on
LocalDirector(config)# show real
Real Machines:
                                              No Answer TCP Reset DataIn
   Machine      Port  Connect  State  Thresh  Reassigns Reassigns  Conns
   server1   default        0     IS       8          0         0      0
   server2   default        0     IS       8          0         0      0
LocalDirector(config)# no names
LocalDirector(config)# show real
Real Machines:
                                              No Answer TCP Reset DataIn
   Machine      Port  Connect  State  Thresh  Reassigns Reassigns  Conns
192.168.0.1  default        0     IS       8          0         0      0
192.168.0.2  default        0     IS       8          0         0      0
LocalDirector(config)# show names
names are off
LocalDirector(config)#

out-of-service

Mark a virtual or real server as out of service (OOS). (Configuration and Replication modes.)

out-of-service virtual|real real_id|virtual_id [oos|maintenance|sticky|failed] [all]
Syntax Description

virtual

Mark a virtual server as out of service.

real

Mark a real server as out of service.

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of a real server.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

oos

The default state; no new connections are sent to the server. Connections are cleared when put back in service.

maintenance

Similar to oos, but connections to the server are not cleared when put back in service.

sticky

Same as maintenance, but servers with sticky associations continue to receive those connections.

failed

The server is failed by an external source (for example, another device notifies LocalDirector an application is down). For real machines, the retry function is disabled. For virtual machines, no new connections are accepted. Once the real or virtual is put back in service, all connections are cleared

all

Mark all virtual servers or all real servers with the same IP address as out of service. Port numbers, bind-ids, and protocols do not have to be specified.

Usage Guidelines

When you mark a real server as being out of service, LocalDirector does not assign new connections to it, but lets old connections continue to run until they complete. An out-of-service real server can still be accessed by clients specifying its actual IP address. Use show real to watch the status of open connections; when all connections appear as OOS, you can power-off the server or reconfigure it as required.

Example

In following example, the out-of-service (oos) command is used with the all option to take all ports of real server 192.168.1.1 out-of-service. This takes all ports of the real server (both default and port-bound) out-of-service with just one command.

Server www.domain.com is placed out-of-service by using the name of the server for server_id. Because no port is specified, only the default ports are taken out-of-service.

When port-bound server 192.168.1.3 80 is placed out-of-service, the remaining ports (both default and port-bound) are left in-service.

LocalDirector(config) 1# show real
Real Machines:
                                              No Answer TCP Reset DataIn
             Machine  Connect   State  Thresh Reassigns Reassigns  Conns
       192.168.1.3:0       0      IS       8         0         0      0
      192.168.1.3:21       0      IS       8         0         0      0
      192.168.1.3:80       0      IS       8         0         0      0
    www.domain.com:0       0      IS       8         0         0      0
   www.domain.com:21       0      IS       8         0         0      0
   www.domain.com:80       0      IS       8         0         0      0
       192.168.1.1:0       0      IS       8         0         0      0
      192.168.1.1:21       0      IS       8         0         0      0
      192.168.1.1:80       0      IS       8         0         0      0
LocalDirector(config) 2# oos real 192.168.1.1 all
LocalDirector(config) 3# oos real www.domain.com
LocalDirector(config) 4# oos real 192.168.1.3:80
LocalDirector(config) 5# show real
Real Machines:
                                              No Answer TCP Reset DataIn
             Machine  Connect   State  Thresh Reassigns Reassigns  Conns
       192.168.1.3:0       0      IS       8         0         0      0
      192.168.1.3:21       0      IS       8         0         0      0
      192.168.1.3:80       0     OOS       8         0         0      0
    www.domain.com:0       0     OOS       8         0         0      0
   www.domain.com:21       0      IS       8         0         0      0
   www.domain.com:80       0      IS       8         0         0      0
       192.168.1.1:0       0     OOS       8         0         0      0
      192.168.1.1:21       0     OOS       8         0         0      0
      192.168.1.1:80       0     OOS       8         0         0      0
LocalDirector(config) 6#

pager

Control display output. The pager command is on by default. (Configuration, Unprivileged, and Privileged modes.)

[no] pager
pager [lines number]
Syntax Description

lines

Allows setting a new number of lines. To use this option, pager must be turned on first (see Example section).

number

The number of lines to display.

Usage Guidelines

If the pager option is on, only one screen of output displays at a time. Pressing the spacebar displays the next page of information, and pressing Enter displays the next line. Pressing the "q" key stops the output and returns to the system prompt.

If the no pager command is used, screen output scrolls until the end without stopping.

Use the show pager command to see if the pager option is on or off.

Example
LocalDirector(config)# show pager
pager is off
LocalDirector(config)# pager lines 20
turn pager on first
LocalDirector(config)# pager
LocalDirector(config)# pager lines 20
LocalDirector(config)# show pager
pager is on
LocalDirector(config)#

password

Modify Telnet login password. (Configuration and Replication modes.)

password password
Syntax Description

password

A password of up to 16 alphanumeric characters, which is not case sensitive. LocalDirector converts the password to all lowercase.

Usage Guidelines

The password command sets a password for Telnet access. The default password is cisco, and it should be changed from the default.

See also: enable password

Example
LocalDirector(config)# password athensge0rg1a
LocalDirector(config)#

ping

Send a ping request message. (Configuration and Privileged modes.)

ping ip
Syntax Description

ip

The IP address of a host on the network.

Usage Guidelines

The ping command determines if the LocalDirector has connectivity or if a host is available on the network. The command output shows if the response was received; that is, that the host exists on the network. If the host is not responding, ping displays "no response received." Use show interface to ensure that the LocalDirector is connected to the network and has connectivity.

Example

The command displays three attempts that reached the specified address:

LocalDirector(config)# ping 192.168.42.54
192.168.42.54 response received - 10Ms
192.168.42.54 response received - 10Ms
192.168.42.54 response received - 10Ms
LocalDirector(config)#

ping-allow

Turn on or off the ability to ping a virtual address. The default is to not allow a virtual address to be pinged. (Configuration and Replication modes.)

[no] ping-allow interface_number
Syntax Description

interface_number

The interface number.

Usage Guidelines

By default, virtual addresses cannot be pinged. This helps protect virtual addresses from an ICMP echo flood.

Use the ping-allow command to enable a LocalDirector virtual address to respond to a ping request.

Example

The following example allows a virtual address to be pinged from interface 0:

LocalDirector(config)# ping-allow 0
LocalDirector(config)#

predictor

Choose the type of load balancing for each virtual server. (Configuration and Replication modes.)

predictor virtual_id fastest|roundrobin|leastconns|loaded|weighted [roundrobin|none]
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

fastest

Assigns new connections to the physical server with the fastest predicted response time.

roundrobin

Rotates through the list of physical servers bound to virtual, assigning connections to the next server.

leastconns

Assigns new connections to the physical server that has the least number of current connections. This is the default.

loaded

Assigns a weighted portion of connections to a server before moving to the next.

weighted

Assigns new connections based on values set with the weight command. The default weight for each server is one.

none

Disables slowstart for the virtual server.

Usage Guidelines

Each virtual server can have a different predictor option. The show virtual command shows an asterisk (*) next to the active predictor. This indicates whether the virtual server is using the selected predictor value, or is in slowstart mode.

The slowstart option is available for the leastconns or weighted arguments. The LocalDirector rotates through the servers until the number of connections reaches a pre-determined level when slowstart is enabled. This avoids overloading a server with too many requests when it is brought in-service. The slowstart option is enabled by default.

Least Connections

The leastconns predictor option directs network connections to the server with the least number of open connections. Although it may not be intuitively obvious that the leastconns predictor would provide effective load balancing; in fact, it does quite well. At web sites where there is a collection of servers with similar performance, the leastconns option is effective in smoothing distribution in situations where a server gets bogged down for one reason or another. In sites where there are large differences in the capacity of various servers, the leastconns option also performs very well. In maintaining the same amount of connections to all servers, those capable of processing (and thus terminating) connections the fastest will get more connections over time. A server deemed to be twice as powerful as another server does, in fact, get about twice as many connections per second.

Weighted

The weighted predictor option allows you to assign a performance weight to each server. Weighted load balancing is similar to leastconns, but servers with a higher weight value receive a larger percentage of connections at any one time. LocalDirector administrators can assign a weight to each real server, and the LocalDirector uses this weight to determine the percentage of the current number of connections to give each server. The default weight is one.

For example, in a configuration with 5 servers, the percentage of connections is calculated as follows:

weight server1 7
weight server2 8
weight server3 2
weight server4 2
weight server5 5
total weight of all servers = 24

This will result in server1 getting 7/24 of the current number of connections, server2 getting 8/24, server3 getting 2/24, etc. If a new server, server6, is added with a weight of 10, it will get 10/34, and so on.

The weighted predictor gives new connections to the real machine that is in most need of a connection, based on how many connections the virtual machine and real machines bound to it have at that moment.

For example,

Virtual server 1.1.1.1 has 50 connections and is bound to real servers 1.1.1.2, 1.1.1.3, and 1.1.1.4.

real server 1.1.1.2 has 20 connections with a weight of 3

real server 1.1.1.3 has 10 connections with a weight of 2

real server 1.1.1.4 has 15 connections with a weight of 4

Based on weights, the load should be distributed as follows:

real server 1.1.1.2 gets 3/9 of conns, which is 33%

real server 1.1.1.3 gets 2/9 of conns, which is 22%

real server 1.1.1.4 gets 4/9 of conns, which is 44%

The actual percentage of connections to the real servers is as follows:

real server 1.1.1.2 has 20/50 connections, or 40%

real server 1.1.1.3 has 10/50 connections, or 20%

real server 1.1.1.4 has 15/50 connections, or 30%

Thus, real server 1.1.1.4 will receive connections to bring it closer to having 44% of the connections at the time.


Note      The weight command is used to set the weight values for the real servers, and the predictor command is used to set load balancing to the weighted option.


Round Robin

The roundrobin predictor option directs the network connection to the next server, and treats all servers as equals, regardless of number of connections or response time. Although the LocalDirector roundrobin predictor appears similar to DNS round robin, it is superior because there is no propagation delay or caching that hinder the algorithm. Also, the LocalDirector can determine when a server is not responding, and avoid sending connections to that server.

Fastest

The fastest predictor option directs the network connection to the server with the fastest response rate, although it does not perform consistently in varying server configurations. Web-server performance, in particular, does not follow a linear progression of response time to number of connections. Web servers seem to respond flatly to a point, and then at a certain load there is a sharp, dramatic increase in the response time. In these situations, the fastest predictor will tend to overload a particular server before moving on to another.

Loaded

Use the loaded predictor to give each server a weighted number of connections in a row (roundrobin style) before proceeding to the next server on the list. For example:

Server 1 weight 2

Server 2 weight 4

Server 3 weight 1

Server 1 will receive 2 connections, then Server 2 will receive 4 connections, and then Server 3 will receive 1 connection, etc.


Note      The weight command is used to set the weight values for the real servers, and the predictor command is used to set load balancing.


Example
LocalDirector(config) 9# show virtual
Virtual Machines:
                  Machine   State  Connect   Sticky    Predictor   Slowstart
       www.domain.com:0:0    OOS        0        0   leastconns  roundrobin*
LocalDirector(config) 0# predictor www.domain.com weighted none
LocalDirector(config) 1# show virtual
Virtual Machines:
                  Machine   State  Connect   Sticky    Predictor   Slowstart
       www.domain.com:0:0    OOS        0        0     weighted*       none
LocalDirector(config) 2#

real

Define a real server. (Configuration and Replication modes.)

[no] real real_ip|real_name [:[port]:[bind-id]:[protocol]][service-state]
Syntax Description

real_ip

The IP address of a real server.

real_name

The name of a real server.

port

The port to use for traffic to run on the server. Use a colon as a delimiter between the IP address and port number. If you do not identify a specific port, all traffic is allowed to the server and the port is labeled "default." Zero is the same as default. Servers with a port specified are referred to as "port-bound" servers.

bind-id

Used with the assign command to direct traffic to a specific location. Use a colon as a delimiter between the bind-id and port number. If you do not specify a bind-id when defining a real server, the default is :0. Any client IP address not identified by an assign command statement is directed to the default bind-id of 0.

protocol

The protocol to use. The default is TCP, but UDP and GRE are available options.

service-state

In service (is) or out of service (oos). The default is oos.

Usage Guidelines

Real servers are actual host machines with unique IP addresses that provide IP services to the network. Use no real to remove a real server from LocalDirector. Real servers can still be accessed using their actual IP address.

Use the show real command to check the service state of real servers. Possible service states are:

The server is online and accepting connections.

The out-of-service command was used to take the server out of service, and connections are not sent to it via the virtual server. Connections addressed to the server's actual IP address are bridged by the LocalDirector.

The server has not responded to the number of connections set by the threshold command or has responded with the same number of TCP RSTs.

After the time set by the retry command has passed, the LocalDirector puts a failed real server into testing mode where it gets one live connection from a virtual server. If the real server does not respond or responds with TCP RST, then it goes back to a failed state and a SYSLOG message is generated. If the server responds to the connection, then its state is changed to in-service. Note that the LocalDirector does not generate any traffic to test the real server. Instead, a live connection is sent to the server in testing state. If the real server is failed and there is no traffic to the virtual server(s) that it is bound to, it stays in testing mode.

The show real command provides the following information:

Table 6-2   Description of show real Output

Column heading  Description 

Machine

IP address, port (if a port-bound server), bind_id, and protocol, or name of the server.

Connect

The current number of connections to the server. This does not include direct connections to the server that are bridged by the LocalDirector.

State

IS (in-service), OOS (out-of-service), failed, or testing.

Thresh

Threshold value for reassignments before server is marked as failed.

No Answer Reassigns

Number of connections that are not answered by a real server.

TCP Reset Reassigns

Number of connections that are reassigned because a real server responded with a RST on a new connection.

DataIn Conns

Number of clients requesting but not receiving data.

Example

Although a space can be used as a delimiter for port-bound servers, a colon is preferred. Note that the port is 0 by default, and the is (in-service) command is used to put the port 80 server in service when it is defined:

ld(config) 1# real 192.168.1.1
ld(config) 2# real 192.168.1.1:80:tcp is
ld(config) 3# real 192.168.1.1 23
ld(config) 4# show real
Real Machines:
                                              No Answer TCP Reset DataIn
             Machine  Connect   State  Thresh Reassigns Reassigns  Conns
      192.168.1.1:23       0     OOS       8         0         0      0
192.168.1.1:80:tcp       0      IS       8         0         0      0
       192.168.1.1:0       0     OOS       8         0         0      0

reassign

Set number of retries to a real server before the connection is reassigned to another server. (Configuration and Replication modes.)

reassign real_id val
Syntax Description

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of a real server.

val

The number of retries allowed. This value can be a number between
1 and 4. The default is 3.

Usage Guidelines

If reassign is at the default of 3, then TCP will attempt to connect three times before going to another server (TCP SYNs are counted). If threshold is set to 8, this can happen eight times before the server is marked as failed.

Example
LocalDirector(config)# show reassign
        Machine     Port Reassign
 192.168.89.252  default        3
 192.168.89.251  default        3
LocalDirector(config)# reassign 192.168.89.252 4
LocalDirector(config)# show reassign
        Machine     Port Reassign
 192.168.89.252  default        4
 192.168.89.251  default        3
LocalDirector(config)#

redirection

Set the type of load balancing redirection for the virtual machine. (Configuration and Replication modes.)

redirection virtual_id directed|dispatched [local|casa]
Syntax Description

virtual_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of a virtual server.

directed

Uses NAT to pass packets to the real server. (NAT replaces the virtual IP address with IP address of the real server.)

dispatched

The IP address of the virtual machine is aliased on each real server, making address translation unnecessary. (The LocalDirector replaces the MAC address on a packet with that of the real server. Packets are then passed on to a real server, retaining the IP address.)

local

Use the LocalDirector style of architecture; that is, the style used since version 1.0

casa

Use the Cisco Appliance Services Architecture (CASA), introduced in version 3.1.

Usage Guidelines

The redirection command allows you to change the way packets pass through the LocalDirector.

Directed mode uses Network Address Translation (NAT) to translate the IP headers in packets. NAT, supported in LocalDirector since version 1.0, provides quick setup with no network address changes, reducing system administration time.

Using NAT may not always be the best solution though. Since some protocols embed the IP address within the payload, this can be a problem when a packet is encrypted. Additionally, searching though an entire payload for an IP address is processor-intensive and time-consuming. In these cases, performance can be increased using Dispatched mode.

Dispatched mode increases traffic throughput, but requires an additional setup of assigning an aliased IP address on a real server that matches the virtual IP address on the LocalDirector. Dispatched mode should be used for UDP and TCP when the IP address information needs to remain unchanged.

reload

Reboot and reload the configuration. (Privileged mode.)

reload
Usage Guidelines

The reload command reboots the LocalDirector and reloads the configuration from Flash memory.


Note      You are prompted for confirmation before starting with "Proceed with reload?"
Press y or the Enter key to continue with the reboot.


Example
LocalDirector# reload
Proceed with reload?[confirm]

Rebooting...

replicate

The replicate command enables stateful failover. (Configuration and Replication modes.)

[no] replicate virtual_id
replicate interface interface_number
Syntax Description

interface_number

The interface through which the active LocalDirector unit sends connection replication data to the standby unit. The default is interface 0.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol of the virtual server where connections are replicated.

Usage Guidelines

Connection replication is a property of the virtual server, and it is set and cleared with the replicate command. This replicates all established connections to standby unit. In the event of a LocalDirector failure (with failover configured), the standby unit has information for current connections, and keeps connections to the virtual server alive.

This is settable on a per-virtual basis, which means you can turn it on for 3270 and leave it off for HTTP. Because HTTP connections are short-lived, it is not recommended that the LocalDirector maintain state for these connections.

Use the replicate interface command to dedicate an interface to stateful failover.

Example
LocalDirector(config) 6# replicate 10.10.10.10:0:tcp
LocalDirector(config) 7# replicate interface 3
LocalDirector(config) 8# show replicate
replicate interface 3
                  Machine  Replicate
      10.10.10.10:0:0:tcp       on
LocalDirector(config) 9#

restart

Take a server out of service, and then bring it back in service. (Privileged, Configuration, and Replication modes.)

restart real|virtual [real_id|virtual_id]
Syntax Description

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of the real server to be restarted.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol of the virtual server to be restarted.

Usage Guidelines

The restart command takes a server out-of-service and puts it back in-service with one command.

Example
LocalDirector(config)# restart real server1
LocalDirector(config)#

retry

Specify the number of minutes before a failed machine is sent a live connection to check its state. (Configuration and Replication modes.)

retry real_id val
Syntax Description

real_id

Real server IP address or name, port (if a port-bound server), bind-id, and protocol of the real server.

val

The number of minutes before a failed server is retried. The default is one minute.

Usage Guidelines

The retry command sets the number of minutes before a failed real machine is assigned another connection. If the retry is set to zero, the failed server is not retried until the server is brought back into service with the in-service command.


Note      If the retry value for a real server is left at the default setting of one minute, the value does not display with write terminal or show configuration. It does display with the show retry command.


Example
LocalDirector(config)# show retry
        Machine     Port    Retry
        server1  default        1
        server2  default        1
LocalDirector(config)# retry server1 5
LocalDirector(config)# show retry
        Machine     Port    Retry
        server1  default        5
        server2  default        1
LocalDirector(config)#

rip

Enable IP routing table updates from received RIP broadcasts. (Configuration and Replication modes.)

[no] rip passive
Usage Guidelines

If you have RIP on your network, enter the rip passive command. If you are not using RIP on your network, you must assign a static route with the route command. The LocalDirector does not broadcast RIP, it only listens to RIP.

Example
LocalDirector(config)# show rip
no rip passive
LocalDirector(config)# rip passive
LocalDirector(config)# show rip
rip passive
LocalDirector(config)#

route

Add a static route to the IP routing table. (Configuration and Replication modes.)

[no] route dest_net net_mask gateway [metric]
Syntax Description

dest_net

Destination IP network address; if default route, specify as all zeros (0.0.0.0).

net_mask

Subnet mask for the network; if default route, specify as all zeros (0.0.0.0).

gateway

The adjacent gateway to reach dest_net.

metric

Optional distance metric (defaults to one).

Usage Guidelines

If you want to change an existing route, you must first use the no route command to clear the route, and then specify the new route with the route command. Defining a new IP route with the route command does not overwrite a route that is already established.

Example
LocalDirector(config)# route 0.0.0.0 0.0.0.0 192.168.1.1 1
LocalDirector(config)#

secure

The secure command turns bridging on or off per interface. (Configuration and Replication modes.)

[no] secure interface_number
Syntax Description

interface_number

The interface that is secured against bridged traffic. By default, bridging is off.

Usage Guidelines

The secure command blocks bridged traffic bound for a specific interface in the LocalDirector without affecting traffic that is load-balanced through a virtual server. Only traffic being serviced by a virtual server traverses the interface, and no traffic is bridged to or from the interface.


Note      If an interface is secured on the LocalDirector with the secure command, make sure that all real servers on that network have the LocalDirector as their default route. Also, make sure that the LocalDirector has a default route to the router.


Example
LocalDirector(config) 0# secure 0
LocalDirector(config) 1# secure 1
LocalDirector(config) 2# show secure
   secure  0
   secure  1
LocalDirector(config) 3# no secure 0
LocalDirector(config) 4# show secure
no secure  0
   secure  1
LocalDirector(config) 5#

service

Set the type of service provided by the virtual machine. (Configuration and Replication modes.)

[no] service virtual_id ftp-proxy
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol of the virtual server where connections are replicated.

ftp-proxy

 

Usage Guidelines
Example

show

View LocalDirector information. (All modes.)

show (variable command)
show ?
Usage Guidelines

The show command with arguments displays the value assigned to that variable. For example, show real displays all of the real servers defined in the configuration.

Any settings left at their default values do not display with the write terminal command. Use the show command and the command associated with the setting to view the default value in the configuration (for example, show retry). The only exception to this is the show configuration command which displays the configuration stored in Flash memory, and therefore do not include default values either.

Use the show ? command to view the names of the arguments that can be used with show.

The pager command is used to control the display of show command output.

See also: pager

Example
LocalDirector(config)# show real
Real Machines:
                                              No Answer TCP Reset DataIn
   Machine      Port  Connect  State  Thresh  Reassigns Reassigns  Conns
192.168.1.1       80        0     IS       8          0         0      0
192.168.1.1       21        0     IS       8          0         0      0
192.168.1.1  default        0     IS       8          0         0      0
www.domain.com    80        0    OOS       8          0         0      0

shutdown

The shutdown command disables an interface.(Configuration and Replication modes.)

[no] shutdown ethernet|fddi interface_number
Syntax Description

ethernet

The interface is an Ethernet interface.

fddi

The interface is an FDDI interface.

interface_number

The number of the interface.

Usage Guidelines

Use the shutdown command to disable access to the network interface. This is important if failover is configured, because failover will see the unused interfaces as failed if they are not turned off. The no form of the command enables an interface.

Examples

For example, to enable an interface and configure its speed, use the commands:

no shutdown ethernet 0
interface ethernet 0 100full

To disable this same interface, use the commands:

shutdown ethernet 0
interface ethernet 0 100full

Use the write memory command to save configurations to flash memory.

snmp-server

Configure the LocalDirector SNMP agent. (Configuration and Replication modes.)

[no] snmp-server contact text
[no] snmp-server host ipaddr
[no] snmp-server location text
Syntax Description

contact

Your name or that of the LocalDirector system administrator.

host

The IP address of a host to where SNMP traps should be sent. You can specify a maximum of 64 host IP addresses, one per command.

location

The LocalDirector location.

text

When used with contact, specify your name or that of the LocalDirector system administrator. When used with location, specify your LocalDirector location.

ipaddr

When used with host, the IP address of a host where SNMP traps are sent. You can specify a maximum of 64 host IP addresses.

Usage Guidelines

This command configures the SNMP agent on the LocalDirector. LocalDirector converts the contact and location information to lowercase.


Note      LocalDirector does not send SNMP traps until you configure snmp-server host.


Usage Guidelines

To configure SNMP, use the following commands:

MIB Variables

mib2.system
mib2.interfaces
mib2.snmp
Cisco LocalDirector MIB

LocalDirector 2.1 SNMP Private MIB

cisco.ciscoMgmt.ciscoLocalDirectorMIB.ciscoLocalDirectorMIBObjects

ciscoMgmt.*Virtual

ciscoMgmt.*.cldVirtualMachine.cldVirtualTable.cldVirtualTableEntry

VirtuallIpAddress
VirtualPort
VirtualBindID
VirtualState
VirtualTotalConnections
VirtualTotalPackets
TotalBytes
VirtualWeight

ciscoMgmt.*Real

ciscoMgmt.*.cldReallMachine.cldRealTable.cldRealTableEntry

ReallIpAddress
RealPort
RealBindID
RealState
RealTotalConnections
RealTotalPackets
TotalBytes
RealWeight(read/write) - RealWeight can be set using snmp commands.

cisco.failover

FailoverEnabled
FailoverCableStatus
FailoverUnitType
FailoverUnitStatus
FailoverActiveTimeStamp

SNMP Traps

warmStart
linkDown
linkUP
Cisco Syslog Trap
Cisco LocalDirector Traps

MIB-2 Traps

warmStart
linkDown
linkUP

Cisco Syslog Traps

All syslog messages are sent as an enterprise(cisco) trap.

OID{1.3.6.1.4.1.9.9.41.2} Generic trap=6, Specific Trap=1

cisco.ldtraps

ciscoLocalDirectorVirtualStateChange (Virtual State Change)
ciscoLocalDirectorRealStateChange (Real State Change)
ciscoLocalDirectorFailoverEnableChange (Failover is turned on/off)
ciscoLocalDirectorFailoverCableChange (Status of failover serial cable)
ciscoLocalDirectorFailoverUnitStatus (The unit's failover activity: active or standby)

Loading MIBs for HP OpenView

All of the HPOV commands are in the /opt/OV/bin directory. When using HPOV, you must use a name for the LocalDirector, and the name must be listed in the /etc/hosts file.

The xnmbrowser on the command line is recommended for viewing the mibs.


Note      If you do not load the MIBS then you need to use the raw OIDs; however, if you load the MIBS first, you can use MIB names.


Example
LocalDirector(config)# show snmp-server
no snmp-server contact
no snmp-server location
LocalDirector(config)# snmp-server contact System Administrator
LocalDirector(config)# snmp-server location Corporate Headquarters
LocalDirector(config)# snmp-server host 10.10.10.2
LocalDirector(config)# show snmp-server
snmp-server host 10.10.10.2
snmp-server contact  system administrator
snmp-server location corporate headquarters
LocalDirector(config)#

static

The static command translates a real server IP address to that of a virtual server. (Configuration and Replication modes.)

static real_id [real_port] virtual_id
Syntax Description

real_id

The IP address of the real server to be translated.

real_port

The port associated with the real server.

virtual_id

The virtual address that the real server to be translated. The virtual server must exist on the LocalDirector, but it does not have to have real servers bound to it.

Usage Guidelines

Use the static command to translate a real server address to a virtual server address. This allows the real server to make outbound connections, but keeps the IP address hidden outside the LocalDirector network.

For outbound connections that the real server makes (not in response to a user accessing the virtual server), the IP address is translated to the virtual IP address identified by the static command. The outbound connection count is displayed with the show static command.

If the real_port exists as a port-bound server, then the outbound connection is counted towards the number of connections for that real server (that is, it will affect load balancing); otherwise, the connection is only translated and does not affect load balancing.

Example
localdirector(config) 6# static 10.10.10.220:0 192.168.1.1:0:0
localdirector(config) 7# show static
        Real Machine       Static Machine              Connect
      10.10.10.220:0          192.168.1.1:0:0                   0
localdirector(config) 8#

sticky

Set the number of minutes defining the period of inactivity between connections before the client is sent to another server. (Configuration and Replication modes.)

[no] sticky virtual_id minutes [generic|ssl]
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

minutes

The elapsed time of connection inactivity, after which a connection from the same client can be reassigned to a different real server. The default is 0 minutes, and the maximum value is 65535 (45.5 days).

generic

The sticky connection is based on the IP address.

ssl

The sticky connection is based on the sticky session ID. Note SSL version 2 is not supported and produces a fatal error. LocalDirector supports SSL version 3 servers and SSL2/3 (hybrid) clients.

Usage Guidelines

The sticky command ensures that the same client gets the same server for multiple connections. The connection is based on IP address for generic or sticky session ID for ssl. The sticky command is used when applications require a consistent and constant connection to the same server. If you are connecting to a system that keeps state about your connection, sticky allows you to get back to the same real server again and retain the statefulness of the system. For example, if an online form is being completed by a client, the sticky command ensures that multiple connections are sent to the same server to complete the transaction.

The sticky command is not timing how long a client is connected; it is timing periods of inactivity. If sticky is set to five, and the client is active, new requests from the client are not sent to another server via load balancing, even if five minutes has elapsed. However, if five minutes of connection inactivity elapse, the requests from the client could be sent to another real server.

If maxconns will be exceeded by new connection, a new host is chosen and sticky information is updated to reflect new host. Then all future connections (within sticky number of minutes) go to new host.


Note      sticky generic only monitors the source and destination IP address. If a proxy is used to launch connections (all source IP addresses are the same) then use the sticky ssl. The example that follows shows how to setup sticky for proxy requests.


Use show sticky or show virtual to display the sticky value. Use the no sticky command to turn sticky off and return to the default value of 0.

The sticky command can also be used in conjunction with the buddy command to sticky two virtuals together. This would be useful for linking a virtual using port 80 to a virtual handling port 443 (SSL) traffic.

Example

In the following example, the virtual command is used to identify 192.168.1.1:443 as a virtual server accepting traffic on port 443 (SSL), and 192.168.1.1:80 as a virtual server accepting HTTP traffic. The sticky command is used to ensure that SSL requests from the same client will be sent to port 443 on real server 192.168.1.1:443 until 10 minutes of inactivity have elapsed:

ld(config) 5# virtual 192.168.1.1:443:0:tcp
ld(config) 6# virtual 192.168.1.1:80:0:tcp
ld(config) 7# sticky 192.168.1.1:443:0:tcp 10 ssl
ld(config) 8# show sticky
Virtual Machine(s)               Sticky
     192.168.1.1:80:0:tcp       0  generic
    192.168.1.1:443:0:tcp      10      ssl
localdirector(config)#ld(config) 9#

Note      You must set the sticky timeout value as the servers timeout value.


syn

Show inactive connections for the virtual server. (Configuration and Privileged modes.)

show syn virtual_id
Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

Example
localdirector(config)# show syn 192.168.1.1:80:0:tcp
       Virtual Machine(s)      Conns  Syn Count
     192.168.1.1:80:0:tcp        500        100

synguard

Set the number of unanswered SYNs to a virtual server before entering synguard mode. (Configuration and Replication modes.)

[no] synguard virtual_id count
Syntax Description

virtual_id

Virtual server IP address or name, port number, and bind-id.

count

The number of unanswered SYNs allowed before entering synguard mode. The default is 0.

Usage Guidelines

The synguard command provides limited protection against SYN attacks to the virtual IP address. Once the number of unanswered SYNs set with synguard command is reached, the LocalDirector starts to protect the real network and servers from a SYN attack.

A SYSLOG message is sent when the LocalDirector enters synguard mode.


Note      The LocalDirector does not leave synguard mode automatically. Either reset the synguard value to 0, or raise the value.


To use syngaurd effectively, monitor the website to gather statistics about the highest number of SYN counts. Then, set the synguard level to a percentage (perhaps 10 to 15 percent, or whatever is appropriate for the site) above that number.

Use the no synguard command to return to the default value of 0. The show synguard command displays synguard settings and whether or not synguard is active, and the show syn command displays the number of connections and SYN count for the virtual server.

Example
LocalDirector(config) 1# show synguard
       Virtual Machine(s)   SynGuard     Status
       192.168.1.1:80:0:tcp        0        
LocalDirector(config) 2# synguard 192.168.1.1:80:0:tcp 400
LocalDirector(config) 3# show synguard
       Virtual Machine(s)   SynGuard     Status
       192.168.1.1:80:0:tcp      400
LocalDirector(config) 4# show syn
       Virtual Machine(s)     Conns    Syn Count
       192.168.1.1:80:0:tcp     722          400
LocalDirector(config) 5#

syslog

Log messages to SYSLOG server. (Configuration and Replication modes.)

[no] syslog {host|console} ip
syslog output facility.level
Syntax Description

host

Define which hosts are sent SYSLOG messages.

console

Displays SYSLOG messages on the console port. Use no syslog console to stop the display. SYSLOG messages to the console display as they are logged, and may display in the middle of other screen information. SYSLOG messages scroll on the screen without pausing. This command is not stored in the configuration.

output

Set the facility number and error level for messages sent to SYSLOG, hosts, and to the console.

ip

The IP address of the log host.

facility

Eight facilities LOCAL0(16) through LOCAL7(23); the default is LOCAL4(20). Hosts file the messages based on the facility number in the message. The facility number is a unique device number that identifies logging information and is saved in a log file shared by a number of devices.

level

Message type; sets the level above which LocalDirector suppresses messages to the SYSLOG hosts. Setting the level to 3, for example, allows messages with levels 0, 1, 2, and 3 to display. The default is 3. The levels are:

  • 0 — System unusable
  • 1 — Take immediate action
  • 2 — Critical condition
  • 3 — Error message
  • 4 — Warning message
  • 5 — Normal but significant condition
  • 6 — Informational
  • 7 — Debug message

Usage Guidelines

Messages are sent to the SYSLOG host over UDP. Use the syslog host command to specify which systems receive the messages. You can use show syslog to view previously sent messages.

The syslog console command is not stored in the LocalDirector configuration. This is because the console for a Telnet user may not be available when the box is rebooted, thus causing a problem. The syslog console command must be entered each time you want the syslog output to come to your console, whether it is the actual serial line console or a telnet console.

Logging is enabled by configuring the LocalDirector with the IP address of the log host.

To configure SYSLOG, use the following commands:

To configure a UNIX system to accept SYSLOG messages, perform the following steps:


Step 1   Use the LocalDirector syslog host command to configure the LocalDirector to send SYSLOG messages to the UNIX host's IP address.

Step 2   Log into the UNIX system as root (superuser) and execute the following commands; change name to the log file where you want SYSLOG messages to appear:

mkdir /var/log/localdirector
touch /var/log/localdirector/name

Step 3   While still logged in as root, edit the /etc/syslog.conf file with a UNIX editor and add the following selector and action pairs for each message type you want to capture:

Message Priority  UNIX syslog.conf File Keyword  

0 — Emergency

local n.emerg

1 — Immediate action

local n.alert

2 — Critical condition

local n.crit

3 — Error

local n.err

4 — Warning

local n.warning

5 — Notice

local n.notice

6 — Information

local n.info

7 — Debug

local n.debug

In the syslog.conf file, code each selector and action pair for the messages you want to receive. For example, if you want to receive messages in a file called localdirector for message priorities 0, 1, 2, and 3, and you use the default LOCAL4 facility, the syslog.conf statements would be:

# LocalDirector SYSLOG messages
local4.emerg          /var/log/localdirector/ld-emerg
local4.alert          /var/log/localdirector/ld-alert
local4.crit /var/log/localdirector/ld-crit
local4.error /var/log/localdirector/ld-error

This configuration directs LocalDirector SYSLOG messages to the specified file. Alternatively, if you want the message sent to the logging host console or emailed to a system administrator, refer to the UNIX syslog.conf(4) manual page.

Entries in /etc/syslog.conf must obey these rules:

Step 4   Inform the SYSLOG server program on the UNIX system to reread the syslog.conf file by sending it a HUP (hang up) signal with the following commands:

cat /etc/syslog.pid
92
kill -HUP 92

The first command lists the SYSLOG process ID. This number may vary by system. The second command sends SYSLOG the HUP signal to restart.

Example

The following example shows SYSLOG error messages generated by a bridge loop:

LocalDirector(config) 5# show syslog
    OUTPUT ON (20.3)
    CONSOLE OFF
<162> : Switching to OK.
<162> : Switching to OK.
<162> Secondary: Switching to ACTIVE.
<162> Secondary: Cable not connected my side.
<162> Secondary: Switching to OK.
<162> Secondary: Switching to OK.
<163> Config FAILED: reassign 3
<163> Config FAILED: passwd cisco
<163> Bridge Loop, 00a0.2409.4f41 on multiple interfaces.
<163> Bridge Loop, 00a0.24c0.e863 on multiple interfaces.
<163> Bridge Loop, 00a0.c90d.10bd on multiple interfaces.
<163> Bridge Loop, 00a0.c933.287b on multiple interfaces.
<163> Bridge Loop, 00a0.c90d.10bd on multiple interfaces.
LocalDirector(config)6#

telnet

Add authorized IP addresses for Telnet access to LocalDirector. (Configuration and Replication modes.)

[no] telnet ip mask
Syntax Description

ip

The IP address or network of a host that is authorized to access the LocalDirector Telnet management interface.

mask

The subnet mask for the network specified in this command. Use any valid mask, or a network IP address to enable access to all in the subnet; for example if you set mask to 255.255.255.0, all systems in the subnet can access the LocalDirector over Telnet. If you set mask to 255.255.255.255, only the IP address you specify can access the LocalDirector.

Usage Guidelines

The telnet command is used to identify who can configure the LocalDirector via Telnet. Up to 16 hosts or networks are allowed access to the LocalDirector console, four simultaneously. The show telnet command displays the list of IP addresses authorized to access the LocalDirector. Use no telnet or clear telnet to remove Telnet access from an IP address. Use the who command to view IP addresses that are accessing the LocalDirector.

Use the password command to change the access password for Telnet.

Examples
LocalDirector(config)# telnet 192.168.1.3 255.255.255.255 
LocalDirector(config)# telnet 192.168.1.4 255.255.255.255
LocalDirector(config)# telnet 192.168.2.0 255.255.255.0
LocalDirector(config)# show telnet
192.168.1.3 255.255.255.255
192.168.1.4 255.255.255.255
192.168.2.0 255.255.255.0
LocalDirector(config)# no telnet 192.168.1.3
LocalDirector(config)# show telnet
192.168.1.4 255.255.255.255
192.168.2.0 255.255.255.255
LocalDirector(config)#

tftp-server

Set the IP address of the TFTP server for storing secondary configuration information and software image files. (Configuration and Replication modes.)

[no] tftp-server tftp_server_ip tftp_directory
Syntax Description

tftp_server_ip

IP address of the TFTP server.

tftp_directory

The directory where the secondary configuration and software image files are stored. The default directory is /tftp/boot.

Usage Guidelines

The tftp-server command defines the IP address of a TFTP server. When a TFTP server is defined, secondary configuration information can be written to, and read from, a TFTP server with the write net and configure net commands. The secondary configuration contains information about virtual and real servers, server bindings, backup servers, and load balancing.

The commands associated with TFTP are as follows:

Example
LocalDirector(config)# tftp-server 192.168.10.1
LocalDirector(config)#

threshold

Configure the number of consecutive TCP connection reassignments that a real server can exhibit before LocalDirector marks the real server as failed. (Configuration and Replication modes.)

threshold real_id connect_failures
Syntax Description

real_id

Real server IP address or name, port (if a port-bound server), bind-id, and protocol.

connect_failures

The number of consecutive connection reassignments to tolerate; the default is 8. Zero is the same as one and the maximum number of reassigns is limited to 256.

Usage Guidelines

Use show real or show threshold to display real server threshold values. When the number of connection reassignments is equal to the threshold value, the server is failed by the LocalDirector. Connection reassignments may be due to a TCP RST, or no answer from the real server.

Failed real servers are not utilized by virtual servers while in the failed state; however, LocalDirector retests each failed server periodically with a single TCP connection attempt to see if the server has returned to normal behavior. If so, LocalDirector marks the server as in service which makes it available to handle virtual server requests.

See also: reassign, retry

Example
LocalDirector(config)# show threshold
        Machine     Port Threshold
    192.168.1.1  default       8
    192.168.1.1       80       8
    192.168.1.2  default       8
LocalDirector(config)# threshold 192.168.1.1 80 10
LocalDirector(config)# threshold 192.168.1.2 5
LocalDirector(config)# show threshold
        Machine     Port Threshold
    192.168.1.1  default       8
    192.168.1.1       80      10
    192.168.1.2  default       5
LocalDirector(config)#

timeout

Set connection timeout for real machine. (Configuration and Replication modes.)

timeout real_id idle_minutes
Syntax Description

real_id

Real server IP address or name, port (if a port-bound server), bind-id, and protocol.

idle_minutes

The number of minutes the server maintains a connection before dropping it. The default is 120 minutes, and the minimum is
5 minutes. To calculate this value, match the timeout setting in the server's operating system for TCP connections.

Usage Guidelines

Idle connections will be timed out after the number of minutes set with the timeout command for each real server. In addition, every two minutes the LocalDirector will remove a connection that has not been fully established (that is, either the client or server did not complete the TCP handshaking sequence to get the connection established).

Example
LocalDirector(config)# show timeout
        Machine     Port Timeout
    192.168.1.1       80     120
    192.168.1.1  default     120
    192.168.1.2  default     120
LocalDirector(config)# timeout 192.168.1.1 80 360
LocalDirector(config)# timeout 192.168.1.2 200
LocalDirector(config)# show timeout
        Machine     Port Timeout
    192.168.1.1       80     360
    192.168.1.1  default     120
    192.168.1.2  default     200
LocalDirector(config)#

virtual

Create a virtual server to accept a connection from the network. (Configuration mode.)

[no] virtual virtual_ip|virtual_name [:[virtual_port]:[bind-id] [protocol]] [service-state]
Syntax Description

virtual_ip

The IP address of the virtual server being defined.

virtual_name

The name of the virtual server being defined.

virtual_port

The port traffic that runs on the server. Use a colon as a delimiter between the IP address and port number. If you do not identify a specific port, all traffic is allowed to the server and the port is labeled 0. Servers with a port specified are referred to as "port-bound" servers.

bind-id

Used with the assign command to direct traffic to a specific location. Use a colon as a delimiter between the bind-id and port number. If you do not specify a bind-id when defining a virtual server, the default is :0. Any client IP address not identified by an assign command statement will be directed to the default bind-id of 0.

protocol

The protocol to use. Available options are TCP, UDP, and GRE.

service-state

In service (is) or out of service (oos). The default is oos.

Usage Guidelines

The virtual command creates a virtual server to accept a connection from the network. Virtual servers present a single address for a group of real servers and load balance service requests between the real servers in a site. The virtual server IP address is published to the user community, but the real IP address can remain unpublished.

If you are using directed mode, and the published or "advertised" addresses are different from internal addresses, the IP address of the LocalDirector must be on the network from which you want to access the LocalDirector. That is, if your virtual servers are on network 204.31.17.x, and your real servers are on network 192.168.89.x, then the IP address of the LocalDirector should be either 204.31.17.x (if accessing the LocalDirector from outside) or 192.168.89.x (if accessing the LocalDirector from inside). Here "accessing" means using Telnet, SNMP, or SYSLOG to connect to the LocalDirector. Virtual server addresses can only be accessed from the client side of LocalDirector.

If you are using dispatched mode, you can create an alias IP address on the LocalDirector and keep it in a subnet different from the location of the real servers.

Specify the IP address of the LocalDirector with the ip address command before defining virtual servers. If no real servers are bound to the virtual server, the no virtual command can be used to remove the virtual server from LocalDirector.


Note      If you define a port-bound virtual server and there is no real server with that port defined (or a real server configured for default ports), the client is sent a TCP RST when a connection to that port is attempted.


The show virtual command indicates the service state of virtual servers. Possible service states are:

The virtual server accepting connections.

The out-of-service command was used to take the virtual server offline, and it is not accepting traffic for load balancing. Connections addressed to the virtual server will be dropped.

The virtual server is unable to direct traffic to real servers. The real servers bound to the virtual server are either out of service or failed.

All of the real servers bound to the virtual server have reached the value set with the maxconns command, and they are not accepting connections even though the servers are in service.

The show virtual command provides the following information:

Table 6-3   Description of show virtual Output

Column heading  Description 

Machine

IP address and port (if a port-bound server) or name of the server.

Mode

Directed or dispatched mode.

State

IS (in-service), OOS (out-of-service), or Max. Max means the server has reached maximum connections set with the maxconns command.

Connect

Number of connections to the server.

Sticky

Elapsed time of inactivity before connection is sent to another server.

Predictor

Type of load balancing. An asterisk (*) indicates that this predictor is active.

Slowstart

Slowstart option set with predictor command (roundrobin or none). An asterisk (*) indicates that this predictor is active.

Examples

The port and bind-id are optional when defining virtual servers. Although a space can be used as a delimiter for the port, a colon is preferred and must be used with the bind-id. Note that the port and bind-id are 0 by default:

ld(config) 5# virtual 10.10.10.1:80:tcp
ld(config) 6# virtual 10.10.10.1:443:1:tcp
ld(config) 7# virtual 10.10.10.1
ld(config) 8# show virtual

Machines:
Machine               Mode   State  Connect   Sticky  Predictor  Slowstart
  10.10.10.1:80:0:tcp  directed     OOS        0        0         leastconns  roundrobin*
  10.10.10.1:443:1:tcp directed     OOS        0        0         leastconns  roundrobin*
  10.10.10.1:0:0:tcp   directed     OOS        0        0         leastconns  roundrobin*

In the following example, note the use of the name command. The name is used with the port and bind-id to identify the server (virtual_id):

ld(config) 9# name 10.10.10.1 lucky
ld(config) 0# is virtual lucky:80
ld(config) 1# sticky lucky:443:1 10
ld(config) 2# show virtual
Virtual Machines:
 Machine      Mode    State  Connect   Sticky    Predictor   Slowstart
   lucky:80:0  directed   IS        0        0   leastconns  roundrobin*
   lucky:443:1 directed  OOS        0       10   leastconns  roundrobin*
   lucky:0:0   directed  OOS        0        0   leastconns  roundrobin*

To remove a virtual server you have to first remove any bind association to real servers. For example:

LocalDirector(config) 5# show virtual
Virtual Machines:
 Machine          Mode     State  Connect   Sticky    Predictor   Slowstart
 192.168.0.98:0:0  directed  OOS        0        0   leastconns  roundrobin*
 192.168.0.99:0:0     directed     IS        0        0   leastconns  roundrobin*
LocalDirector(config) 6# show bind
               Virtual                      Real
         192.168.0.98:0:0(OOS)
                                 192.168.0.3:0(OOS)
         192.168.0.99:0:0(IS)
                                 192.168.0.1:0(IS)
                                 192.168.0.2:0(IS)
LocalDirector(config) 7# no virtual 192.168.0.98:0:0
Must unbind all reals before removing virtual.
LocalDirector(config) 8# no bind 192.168.0.98:0:0 192.168.0.3:0
LocalDirector(config) 9# no virtual 192.168.0.98:0:0
LocalDirector(config) 0# show virtual
Virtual Machines:
 Machine          Mode    State  Connect   Sticky    Predictor   Slowstart
  2.168.0.99:0:0  directed    IS        0        0   leastconns  roundrobin*
LocalDirector(config) 1#

weight

Assign a relative value to the distribution of connections for real servers. (Configuration and Replication modes.)

[no] weight real_id number
Syntax Description

real_id

The IP address or name, port (if a port-bound server), bind-id, and protocol of a real server.

number

The number that will be averaged to determine the distribution of current connections among real servers. The default is one, and the value can be a whole number from 0 to 65535. A value of 0 is equivalent to placing the server out of service.

Usage Guidelines

Assign a larger number to servers with higher performance. In the following example, the weights of all of the servers equals eight. Therefore, server 192.168.1.1 would receive 4/8 of the connections, or 50%. Server 192.168.1.2 would receive 25% of the connections, and servers 192.168.1.3 and 192.168.1.4 would each receive 12.5% of the connections. Faster servers will still receive more connections because they will service the connection faster, regardless of the percentage of connections that they are assigned at the time.


Note      Weight values will only take effect when the predictor command option for the virtual server to which the real server is bound is set to weighted or loaded.


Example
LocalDirector(config)# show weight
        Machine     Port Weight
    192.168.1.1  default      1
    192.168.1.2  default      1
    192.168.1.3  default      1
    192.168.1.4  default      1
LocalDirector(config)# weight 192.168.1.1 4
LocalDirector(config)# weight 192.168.1.2 2
LocalDirector(config)# show weight
        Machine     Port Weight
    192.168.1.1  default      4
    192.168.1.2  default      2
    192.168.1.3  default      1
    192.168.1.4  default      1
LocalDirector(config)#

who

Show active Telnet administration sessions. (Unprivileged, Privileged, and Configuration modes.)

who [ip]
Syntax Description

ip

An optional IP address to limit the listing to one IP address or to a network IP address.

Usage Guidelines

The who command shows the tty_id and IP address of each Telnet client currently logged in to the LocalDirector. This command is the same as the show who command.

See also: kill, telnet

Example
LocalDirector# who
2: From 192.168.2.2
1: From 192.168.1.3
0: On console 
LocalDirector#

write

Store the current configuration. (Privileged and Configuration modes.)

write erase|floppy|memory|terminal|standby
write net [[tftp_server_ip] file]
Syntax Description

erase

The write erase command clears the Flash memory configuration.

floppy

The write floppy command stores the current running configuration on floppy disk.

memory

The write memory command saves the current running configuration to Flash memory. When using failover, this forces the configuration to be written to Flash memory on the standby unit also.

standby

This copies the active configuration to the standby unit.

terminal

The write terminal command displays the current running configuration on the console computer. Before using this command, you can set your terminal communications program to store the screen display in a log file.

net

Save configuration to a remote TFTP server. To use this option, issue the tftp-server command first, or identify the name of the file and the IP address of the TFTP server. The file must be created on the TFTP server before it can be saved to the TFTP server.

tftp server ip

The IP address of the TFTP server.

file

The name of the file on the TFTP server.

Usage Guidelines

Use the write floppy command to save the current running configuration to floppy disk, and use the write memory command to save to Flash memory. You can save your configuration on the distribution diskette that shipped with your LocalDirector. Use configure memory or configure floppy to restore the saved configuration.

Any settings left at the default value will not be displayed with the write terminal command. Use the show command and the command associated with the setting to view the default value in the configuration (for example, show retry). The only exception to this is the show configuration command which displays the configuration stored in Flash memory, and therefore will not include default values either.

Example
LocalDirector(config)# write floppy
Building configuration...
[OK]
LocalDirector(config)#


hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Oct 17 10:25:23 PDT 2003
All contents are Copyright © 1992--2003 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.