Bluecoat Command Line Interface Reference 4.1.3
Bluecoat Command Line Interface Reference 4.1.3
ProxySG™
Contact Information
http://www.bluecoat.com/support/index.html
bcs.info@bluecoat.com
support@bluecoat.com
http://www.bluecoat.com
Copyright© 1999-2005 Blue Coat Systems, Inc. All rights reserved worldwide. No part of this document may be
reproduced by any means nor modified, decompiled, disassembled, published or distributed, in whole or in part,
or translated to any electronic medium or other means without the written consent of Blue Coat Systems, Inc. All
right, title and interest in and to the Software and documentation are and shall remain the exclusive property of
Blue Coat Systems, Inc. and its licensors. ProxySG™, ProxyAV™, CacheOS™, SGOS™, Spyware Interceptor™,
Scope™ are trademarks of Blue Coat Systems, Inc. and CacheFlow®, Blue Coat®, Accelerating The Internet®,
WinProxy®, AccessNow®, Ositis®, Powering Internet Management®, and The Ultimate Internet Sharing
Solution® are registered trademarks of Blue Coat Systems, Inc. All other trademarks contained in this document
and in the Software are the property of their respective owners.
BLUE COAT SYSTEMS, INC. DISCLAIMS ALL WARRANTIES, CONDITIONS OR OTHER TERMS, EXPRESS
OR IMPLIED, STATUTORY OR OTHERWISE, ON SOFTWARE AND DOCUMENTATION FURNISHED
HEREUNDER INCLUDING WITHOUT LIMITATION THE WARRANTIES OF DESIGN, MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL BLUE
COAT SYSTEMS, INC., ITS SUPPLIERS OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES, WHETHER
ARISING IN TORT, CONTRACT OR ANY OTHER LEGAL THEORY EVEN IF BLUE COAT SYSTEMS, INC.
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Document Number: 231-02779
Document Revision: SGOS 4.1.3—11/11/05
ii
Contents
Contact Information
Chapter 1: Introduction
Audience for this Document..............................................................................................................................7
Organization of this Document .........................................................................................................................7
Related Blue Coat Documentation....................................................................................................................7
Document Conventions......................................................................................................................................8
SSH and Script Considerations .........................................................................................................................8
Standard and Privileged Modes........................................................................................................................8
Accessing Quick Command Line Help ............................................................................................................8
# traceroute .....................................................................................................................................................................54
# upload ..........................................................................................................................................................................55
iv
Contents
v
Blue Coat ProxySG Command Line Interface Reference
vi
Chapter 1: Introduction
To configure and manage your Blue Coat® Systems ProxySG, Blue Coat developed a software suite
that includes an easy-to-use graphical interface called the Management Console and a Command Line
Interface (CLI). The CLI allows you to perform the superset of configuration and management tasks;
the Management Console, a subset.
This reference guide describes each of the commands available in the CLI.
Chapter 1 – Introduction
The organization of this document; conventions used; descriptions of the CLI modes; and instructions
for saving your configuration.
7
Blue Coat ProxySG Command Line Interface Reference
Document Conventions
The following table lists the typographical and CLI syntax conventions used in this manual.
Convention Definition
Italics The first use of a new or Blue Coat-proprietary term.
Courier font Command-line text that will appear on your administrator workstation.
Courier Italics A command-line variable that should be substituted with a literal name or
value pertaining to the appropriate facet of your network system.
Courier Boldface A CLI literal that should be entered as shown.
{} One of the parameters enclosed within the braces must be supplied
[] An optional parameter or parameters.
| Either the parameter before or after the pipe character can or must be
selected, but not both.
Note: You cannot use Telnet until you configure and enable it. (Enabling Telnet introduces a security
risk, so it is not recommended.)
8
Chapter 1: Introduction
The help command displays how to use CLI help. For example:
SGOS> help
Help may be requested at any point in a command
by typing a question mark '?'.
1. For a list of available commands, enter '?' at
the prompt.
2. For a list of arguments applicable to a command,
precede the '?' with a space (e.g. 'show ?')
3. For help completing a command, do not precede
the '?' with a space (e.g. 'sh?')
The ? command displays the available commands. For example:
SGOS> ?
display Display a text based url
enable Turn on privileged commands
exit Exit command line interface
help Information on help
ping Send echo messages
show Show running system information
traceroute Trace route to destination
9
Blue Coat ProxySG Command Line Interface Reference
10
Chapter 2: Standard and Privileged Mode Commands
This chapter describes and provides examples for the Blue Coat ProxySG standard and privileged
mode CLI commands.
Note: For a description of the help command and instructions on using the CLI help, see “Accessing
Quick Command Line Help” on page 8 in Chapter 1: “Introduction”.
> display
Use this command to display the source code (such as HTML or Javascript) used to build the named
URL. This source code is displayed one screen at a time. "—More—" at the bottom of the terminal
screen indicates that there is additional code. Press the Spacebar to display the next batch of code;
press the Enter key to display one additional line of code.
Syntax
display url
where url is a valid, fully-qualified text Web address.
Example
SGOS> display http://www.bluecoat.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Blue Coat Inc.</title>
<meta NAME="KEYWORDS" CONTENT="cache, caching, cache appliance, network cache,
web cache, Blue Coat, internet caching, active, transparent caching,
intelligent, proxy, fast, cache server, Content delivery, streaming, media
streaming, content delivery networks, CDNs, access control, Enterprise Internet
Management, turnkey, web, speed, bandwidth savings, hit rate, internet">
<meta NAME="DESCRIPTION" CONTENT="Blue Coat products are intelligent appliances
specifically architected to accelerate the Internet.">
11
Blue Coat ProxySG Command Line Interface Reference
<!-- __________________________________________________________________
> enable
Use this command to enter Privileged mode. Privileged mode commands enable you to view and
change your configuration settings. In some configurations, you must provide a password.
To set username and password, please refer to the instructions provided in the Blue Coat Configuration
and Management Guide.
Syntax
enable
The enable command does not have any parameters or subcommands.
Example
SGOS> enable
Enable Password:******
SGOS# configure terminal
SGOS(config)
.
.
.
See also
disable (disable is a Privileged mode command).
> exit
Use this command to exit the CLI.
Syntax
exit
The exit command does not have any parameters or subcommands.
Example
SGOS> exit
> help
See “Accessing Quick Command Line Help” on page 8 for information about this command.
12
Chapter 2: Standard and Privileged Mode Commands
> ping
Use this command to verify that a particular IP address exists and can accept requests.
Syntax
ping hostname or ip_address
Example
SGOS> ping 10.25.36.47
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.25.36.47, timeout is 2 seconds:!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
Number of duplicate packets received = 0
> show
Use this command to display system information.
Syntax
option 1: show accelerated-pac
option 2: show access-log
sub-option 1: [default-logging]
sub-option 2: [format [brief | format_name]]
sub-option 3: [log [brief | log_name]]
sub-option 4: [statistics [log_name]]
option 3: show arp-table
option 4: show bandwidth-gain
option 5: show bridge
sub-option 1: configuration [bridge_name]
sub-option 2: fwtable bridge_name
sub-option 3: statistics bridge_name
option 6: show brief
option 7: show bypass-list
option 8: show caching
option 9: show clock
option 10: show commands
sub-option 1: [delimited [all | privileged]]
sub-option 2: [formatted [all | privileged]]
13
Blue Coat ProxySG Command Line Interface Reference
14
Chapter 2: Standard and Privileged Mode Commands
15
Blue Coat ProxySG Command Line Interface Reference
sub-option 9: [msn-im]
sub-option 10: [rtsp]
sub-option 11: [socks]
sub-option 12: [ssh-console]
sub-option 13: [tcp-tunnel]
sub-option 14: [telnet-console]
sub-option 15: [yahoo-im]
option 52: show sessions
option 53: show snmp
option 54: show socks-gateways
option 55: show socks-machine-id
option 56: show socks-proxy
option 57: show sources
sub-option 1: bypass-list
sub-option 2: forwarding
sub-option 3: icp-settings
sub-option 4: license-key
sub-option 5: policy {central | local | forward | vpm-cpl | vpm-xml}
sub-option 6: rip-settings
sub-option 7: socks-gateways
sub-option 8: static-route-table
sub-option 9: wccp-settings
option 58: show ssl
sub-option 1: ccl [list_name]
sub-option 2: ssl-client [ssl_client]
option 59: show static-routes
option 60: show status
option 61: show streaming
sub-option 1: configuration
sub-option 2: quicktime {configuration | statistics}
sub-option 3: real-media {configuration | statistics}
sub-option 4: statistics
sub-option 5: windows-media {configuration | statistics}
option 62: show tcp-rtt
option 63: show telnet-management
option 64: show terminal
option 65: show timezones
option 66: show user-authentication
option 67: show version
16
Chapter 2: Standard and Privileged Mode Commands
17
Blue Coat ProxySG Command Line Interface Reference
18
Chapter 2: Standard and Privileged Mode Commands
19
Blue Coat ProxySG Command Line Interface Reference
20
Chapter 2: Standard and Privileged Mode Commands
Examples
SGOS> show caching
Refresh:
Estimated access freshness is 100.0%
Let the ProxySG Appliance manage refresh bandwidth
Current bandwidth used is 0 kilobits/sec
Policies:
Do not cache objects larger than 1024 megabytes
Cache negative responses for 0 minutes
Let the ProxySG Appliance manage freshness
FTP caching:
Caching FTP objects is enabled
FTP objects with last modified date, cached for 10% of last modified time
FTP objects without last modified date, initially cached for 24 hours
SGOS> show resources
Disk resources:
Maximum objects supported: 1119930
Cached Objects: 0
Disk used by system objects: 537533440
Disk used by access log: 0
Total disk installed: 18210036736
Memory resources:
In use by cache: 699203584
In use by system: 83230176
In use by network: 22872608
Total RAM installed: 805306368
> traceroute
Use this command to trace the route from the current host to the specified destination host.
Syntax
traceroute {ip_address | hostname}
21
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS> traceroute 10.25.36.47
Type escape sequence to abort.
Tracing the route to 10.25.36.47
1 10.25.36.47 0 0 0
Note: The privileged mode subcommand, configure, enables you to manage the ProxySG features.
See Chapter 3: “Privileged Mode Configure Commands” for detailed information about this
command.
Note: For a description of the help command and instructions on using the CLI help, see
“Accessing Quick Command Line Help” on page 8 in Chapter 1: “Introduction”.
# acquire-utc
Use this command to acquire the Universal Time Coordinates (UTC) from a Network Time Protocol
(NTP) server. To manage objects, a ProxySG must know the current UTC time. Your ProxySG comes
pre-populated with a list of NTP servers available on the Internet, and attempts to connect to them in
the order they appear in the NTP server list on the NTP tab. If the ProxySG cannot access any of the
listed NTP servers, the UTC time must be set manually. For instructions on how to set the UTC time
manually, refer to the Blue Coat Configuration and Management Guide.
22
Chapter 2: Standard and Privileged Mode Commands
Syntax
acquire-utc
The acquire-utc command does not have any parameters or subcommands.
Example
SGOS# acquire-utc
ok
# bridge
This command clears bridge data.
Syntax
bridge
Example
SGOS# bridge clear-statistics testbridge
ok
# cancel-upload
This command cancels a pending access-log upload. The cancel-upload command allows you to stop
repeated upload attempts if the Web server becomes unreachable while an upload is in progress. This
command sets log uploading back to idle if the log is waiting to retry the upload. If the log is in the
process of uploading, a flag is set to the log. This flag sets the log back to idle if the upload fails.
Syntax
cancel-upload
Example
SGOS# cancel-upload all
ok
# clear-arp
The clear-arp command clears the Address Resolution Protocol (ARP) table. ARP tables are used to
correlate an IP address to a physical machine address recognized only in a local area network. ARP
23
Blue Coat ProxySG Command Line Interface Reference
provides the protocol rules for providing address conversion between a physical machine address
(also known as a Media Access Control or MAC address) and its corresponding IP address, and vice
versa.
Syntax
clear-arp
The clear-arp command does not have any parameters or subcommands.
Example
SGOS# clear-arp
ok
# clear-cache
The clear-cache command sets all objects in the cache to expired. You can clear the system cache at
any time. Although objects are not immediately removed from memory or disk, all subsequent first
requests for objects are retrieved from the source.
Syntax
clear-cache
Example
SGOS# clear-cache
ok
# clear-statistics
This command clears the bandwidth-management, Windows Media, Real Media, and QuickTime
streaming statistics collected by the ProxySG. To view streaming statistics from the CLI, use either the
show streaming {quicktime | real-media | windows-media} statistics or the show
bandwidth-management statistics [bandwidth_class] commands. To view streaming statistics
from the Management Console, go to either Statistics>Streaming History>Windows Media/Real
Media/Quicktime, or to Statistics>Bandwidth Mgmt.
Syntax
clear-statistics
24
Chapter 2: Standard and Privileged Mode Commands
Example
SGOS# clear-statistics windows-media
ok
# configure
The privileged mode subcommand configure, enables you to manage the ProxySG features. See
Chapter 3: “Privileged Mode Configure Commands” for detailed information about this command.
# disable
The disable command returns you to Standard mode from Privileged mode.
Syntax
disable
The disable command does not have any parameters or subcommands.
Example
SGOS# disable
SGOS>
See also
enable (Standard mode command)
# disk
Use the disk command to take a disk offline or to reinitialize a disk.
On a multi-disk ProxySG, after issuing the disk reinitialize disk_number command, complete
the reinitialization by setting it to empty and copying pre-boot programs, boot programs and starter
programs, and system images from the master disk to the reinitialized disk. The master disk is the
leftmost valid disk. Valid indicates that the disk is online, has been properly initialized, and is not
marked as invalid or unusable.
Note: If the current master disk is taken offline, reinitialized or declared invalid or unusable, the
leftmost valid disk that has not been reinitialized since restart becomes the master disk. Thus
as disks are reinitialized in sequence, a point is reached where no disk can be chosen as the
master. At this point, the current master disk is the last disk. If this disk is taken offline,
reinitialized, or declared invalid or unusable, the ProxySG is restarted.
Reinitialization is done without rebooting the ProxySG. The ProxySG operations, in turn, are not
affected, although during the time the disk is being reinitialized, that disk is not available for caching.
Note that only the master disk reinitialization might restart the ProxySG.
Syntax
option 1: disk offline disk_number
25
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS# disk offline 3
ok
SGOS# disk reinitialize 3
ok
# display
Use this command to display the source code (such as HTML or Javascript) used to build the named
URL. This source code is displayed one screen at a time. "—More—" at the bottom of the terminal
screen indicates that there is additional code. Press the Spacebar to display the next batch of code;
press the Enter key to display one additional line of code.
Syntax
display url
where url is a valid, fully-qualified text Web address.
Example
SGOS# display www.company1.com
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A
HREF="http://lc2.law5.company1.passport.com/cgi-bin/log
in">here</A>.<P>
</BODY></HTML>
# exit
Exits from Configuration mode to Privileged mode, from Privileged mode to Standard mode. From
Standard mode, the exit command closes the CLI session.
Syntax
exit
The exit command does not have any parameters or subcommands.
26
Chapter 2: Standard and Privileged Mode Commands
Example
SGOS# exit
# help
See “Accessing Quick Command Line Help” on page 8 for information about this command.
# hide-advanced
Use this command to disable advanced commands. See “# reveal-advanced” on page 40 for
information about enabling advanced commands that are disabled.
Note: You can also use the configure command SGOS#(config) hide-advanced {all | expand}
to hide commands.
Syntax
option 1: hide-advanced all
option 2: hide-advanced expand
Table 2.8: # hide-advanced
Example
SGOS# hide-advanced expand
ok
SGOS# hide-advanced all
ok
See also
reveal-advanced
# inline
Installs configuration elements based on your console port input. There are several ways to create a
configuration file for your ProxySG. You can use the inline command or you can create a text file to
contain the configuration commands and settings. You can also create the file locally and browse to it
if you use the Management Console.
If you choose to configure using the inline command, see the example below:
SGOS# inline accelerated-pac eof_marker
.
.
.
end
eof_marker
27
Blue Coat ProxySG Command Line Interface Reference
Note: You can also use the configure command SGOS#(config) inline accelerated-pac
eof_marker to create a configuration file.
If you choose to create a text file to contain the configuration commands and settings, be sure to assign
the file the extension .txt. Use a text editor to create this file, noting the following ProxySG
configuration file rules:
• Only one command (and any associated parameters) permitted, per line
• Comments must begin with a semicolon (;)
• Comments can begin in any column, however, all characters from the beginning of the comment
to the end of the line are considered part of the comment and, therefore, are ignored
When entering input for the inline command, you can correct mistakes on the current line using the
backspace key. If you detect a mistake in a line that has already been terminated using the Enter key,
you can abort the inline command by typing <Ctrl-c>. If the mistake is detected after you terminate
input to the inline command, type the same inline command again but with the correct configuration
information. The corrected information replaces the information from the last inline command.
The end-of-input marker is an arbitrary string chosen by the you to mark the end of input for the
current inline command. The string can be composed of standard characters and numbers, but cannot
contain any spaces, punctuation marks, or other symbols.
Take care to choose a unique end-of-input string that does not match any string of characters in the
configuration information.
Syntax
option 1: inline accelerated-pac eof_marker
option 2: inline authentication-form form_name eof_marker
option 3: inline authentication-forms eof_marker
option 4: inline bypass-list
sub-option 1: central eof_marker
sub-option 2: local eof_marker
option 5: inline forwarding eof_marker
option 6: inline icp-settings eof_marker
option 7: inline license-key eof_marker
option 8: inline policy
sub-option 1: central eof_marker
sub-option 2: forward eof_marker
sub-option 3: local eof_marker
sub-option 4: vpm-cpl eof_marker
sub-option 5: vpm-xml eof_marker
option 9: inline rip-settings eof_marker
option 10: inline socks-gateways eof_marker
28
Chapter 2: Standard and Privileged Mode Commands
29
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS# inline icp-settings eof
icp_port 3130
icp_host 127.0.0.0 sibling 8080 3130
eof
30
Chapter 2: Standard and Privileged Mode Commands
# kill
Terminates a CLI session.
Syntax
kill session_number
where session_number is a valid CLI session number.
Example
SGOS# kill 3
ok
# licensing
Use these commands to request or update licenses.
Syntax
option 1: licensing {disable-trial | enable-trial}
option 2: licensing request-key [user_id] [password]
option 3: licensing update-key
Example
SGOS# licensing request-key
User ID: admin
Password: *****
...
ok
where “. . .” represents license download in progress information.
31
Blue Coat ProxySG Command Line Interface Reference
# load
Downloads installable lists or system upgrade images. These installable lists or settings can be
updated using the inline command.
Note: You can also use the configure command SGOS#(config) load to download installable lists
or system upgrade images.
Syntax
option 1: load accelerated-pac
option 2: load authentication-form form_name
option 3: load authentication-forms
option 4: load bypass-list
sub-option 1: central
sub-option 2: local
option 5: load exceptions
option 6: load forwarding
option 7: load icp-settings
option 8: load license-key
option 9: load policy
sub-option 1: central
sub-option 2: forward
sub-option 3: local
sub-option 4: vpm-cpl
sub-option 5: vpm-software
sub-option 6: vpm-xml
option 10: load rip-settings
option 11: load socks-gateways
option 12: load static-route-table
option 13: load upgrade [ignore-warnings]
option 14: load wccp-settings
Table 2.11: # load
32
Chapter 2: Standard and Privileged Mode Commands
Examples
SGOS# load bypass-list central
Downloading from "www.bluecoat.com/support/subscriptions/CentralBypassList.txt
"
The new policy has been successfully downloaded and installed
SGOS# load policy central
Downloading from "download.bluecoat.com/release/SG3/files/CentralPolicy.txt"
The new policy has been successfully downloaded and installed with 1 warning(s)
Policy installation
Compiling new configuration file: download.bluecoat.com/release/SG3/files/Centra
lPolicy.txt
Tue, 15 Jul 2003 21:40:25 UTC
Warning:
Dynamic bypass is enabled. Sites that are added to the dynamic
bypass is enabled. Sites that are added to the dynamic
There were 0 errors and 1 warning
33
Blue Coat ProxySG Command Line Interface Reference
See also
inline
# pcap
This utility enables you to capture packets of Ethernet frames going into or leaving a ProxySG. Packet
capturing allows filtering on various attributes of the frame to limit the amount of data collected. The
collected data can then be transferred to the desktop for analysis.
Note: Packet capturing increases the amount of processor usage performed in TCP/IP.
Before using the pcap utility, consider that packet capturing doubles the amount of processor
usage performed in TCP/IP.
To capture packets, you must have a tool that can read Packet Sniffer Pro 1.1 files (for
example, EtherReal or Packet Sniffer Pro 3.0).
For an in-depth discussion of PCAP, refer to the “Diagnostics” appendix in the Blue Coat Configuration
and Management Guide.
Syntax
option 1: pcap bridge capture-all {enable | disable}
option 2: pcap filter
sub-option 1: [iface {in | out}]
sub-option 2: [iface {in | out} interface_number]
sub-option 3: [iface interface_number]
sub-option 4: [bridge {in | out} name port number]
sub-option 5: [bridge name port number]
sub-option 6: [expr filter_expression]
option 3: pcap info
option 4: pcap coreimage keep n(k)
option 5: pcap start
sub-option 1: [first n]
sub-option 2: [capsize n(k)]
sub-option 3: [trunc n]
sub-option 4: [last n]
option 6: pcap stop
option 7: pcap transfer full_url/filename username password
34
Chapter 2: Standard and Privileged Mode Commands
bridge enable | disable Configures the bridge to capture all packets: disable
capture-all captures packets relevant to this device; enable captures all
packets.
filter <cr> No filtering specified (captures all).
[iface {in | out}] Specifies capture if all specifiers are true either in or out from
the ProxySG.
[iface {in | out} Specifies capture if all specifiers are true either in or out from
interface_number] a particular interface (interface number must be between 0
and 16).
[iface Specifies capture if all specifiers are true both in and out from
interface_number] a particular interface (interface number must be between 0
and 16).
[bridge {in | out} Specifies capture if all specifiers are true either in or out on a
bridge_name port particular bridge port.
port_number]
[bridge bridge_name Specifies capture if all specifiers are true both in and out on a
port port_number] particular bridge port.
[expr Specifies capture if all specifiers are true for the filter
filter_expression] expression. See Table 2.13 for examples.
info Displays the current packet capture information.
coreimage keep kilobytes Specifies kilobytes of packets kept in a core image.
start [first n] The first n parameter collects n (up to 100 MB) packets.
After the number of packets n is reached, capturing stops.
The packet capture file size is limited to 1% of total RAM,
which might be reached before n packets have been captured.
Note: The parameter first n is a specific command; it
captures an exact number of packets. If no parameters are
specified, the default is to capture until the stop
subcommand is issued or the maximum limit reached.
[capsize The capsize n(k) parameter stops the collection after n
n(kilobytes)] kilobytes (up to 100 MB) of packets have been captured. The
packet capture file size is limited to 1% of total RAM, which
might be reached before n packets have been captured.
Note: The parameter capsize n is an approximate
command; it captures an approximate number of packets. If
no parameters are specified, the default is to capture until the
stop subcommand is issued or the maximum limit reached.
[trunc n] The trunc n parameter collects, at most, n bytes of packets
from each frame. This continues until the 1% of total RAM for
file size limitation is reached. Range is 0 to 2147483647.
[last n] The last n parameter capture saves up to n bytes of packets
in memory. (The maximum amount of memory used for
saving packets is limited to 100 MB.) Any packet received
after the memory limit is reached results in the discarding of
the oldest saved packet prior to saving the new packet. The
saved packets in memory are written to disk when the
capture is terminated. The range is 0 to 2147483647.
35
Blue Coat ProxySG Command Line Interface Reference
Note: Once a filter is set, it remains in effect until it is redefined, or until the ProxySG is rebooted,
when filtering is set to off; at this point, you must reset or redefine all filtering options.
The following are examples of the pcap parameters/subcommands filter, info, start, and
transfer.
Example 1
Capture transactions among a ProxySG (10.1.1.1), a server (10.2.2.2), and a client (10.1.1.2).
SGOS# pcap filter expr “host 10.1.1.1 || host 10.2.2.2 || host 10.1.1.2”
Example 2
SGOS# pcap filter expr “port 80”
ok
SGOS# pcap start
ok
This captures outbound packets that have a source port of 80 from the interface using the IP
protocol TCP.
SGOS# pcap info
packet capture information:
Packets captured: 381
Bytes captured: 171552
Packets written: 379
Bytes written: 182088
Max packet ram: 0
Packet ram used: 0
Packets filtered: 0
Bridge capture all: Disabled
Current state: Capturing
Filtering: Off
Filter expression: iface out
This shows relevant information regarding current packet-capturing.
Example 3
The following command stops the capturing of packets after approximately three kilobytes of packets
have been collected.
SGOS# pcap start capsize 3
Example 3
This transfers captured packets to the FTP site 10.25.36.47. Note that the username and password are
provided.
SGOS# pcap transfer ftp://10.25.36.47/path/filename.cap username password
36
Chapter 2: Standard and Privileged Mode Commands
If the folders in the path do not exist, they are not created. An error message is generated.
# ping
Use this command to verify that a particular IP address exists and can accept requests. Ping output
will also tell you the minimum, maximum, and average time it took for the ping test data to reach the
other computer and return to the origin.
Syntax
ping {ip_address | hostname}
where ip_address is the IP address and hostname is the hostname of the remote computer.
Example
SGOS# ping 10.25.36.47
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.25.36.47, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
Number of duplicate packets received = 0
# policy
Use this command to configure policy commands. Use all to trace all transactions by default, and use
none to specify no tracing except as specified in policy files.
Important: Configuring the policy command to trace all transactions by default can significantly
degrade performance.
Syntax
policy trace {all | none}
Example
SGOS# policy trace all
ok
All requests will be traced by default;
Warning: this can significantly degrade performance.
Use 'policy trace none' to restore normal operation
SGOS# policy trace none
ok
# purge-dns-cache
This command clears the DNS cache. You can purge the DNS cache at any time. You might need to do
so if you have experienced a problem with your DNS server, or if you have changed your DNS
configuration.
37
Blue Coat ProxySG Command Line Interface Reference
Syntax
purge-dns-cache
The purge-dns-cache command does not have any parameters or subcommands.
Example
SGOS# purge-dns-cache
ok
# restart
Restarts the system. The restart options determine whether the ProxySG should simply reboot the
ProxySG (regular), or should reboot using the new image previously downloaded using the load
upgrade command (upgrade).
Syntax
restart {abrupt | regular | upgrade}
abrupt Reboots the system abruptly, according to the version of the ProxySG that is
currently installed.
regular Reboots the version of the ProxySG that is currently installed.
upgrade Reboots the entire system image.
Example
SGOS# restart upgrade
ok
SGOS# Read from remote host 10.9.17.159: Connection reset by peer
Connection to 10.9.17.159 closed.
See also
load
# restore-sgos3-config
Restores the ProxySG to settings last used with SGOS 3.x. The ProxySG retains the network settings.
Syntax
restore-sgos3-config
Example
SGOS# restore-sgos3-config
Restoring SGOS 3.x configuration requires a restart to take effect.
The current configuration will be lost and the system will be restarted.
Continue with restoring? (y/n)[n]: y
Restoring configuration ...
38
Chapter 2: Standard and Privileged Mode Commands
See also
restore-defaults
# restore-defaults
Restores the ProxySG to the default configuration. When you restore system defaults, the ProxySG’s IP
address, default gateway, and the DNS server addresses are cleared. In addition, any lists (for
example, forwarding or bypass) are cleared. After restoring system defaults, you need to restore the
ProxySG’s basic network settings, as described in the Blue Coat Configuration and Management Guide,
and reset any customizations.
Syntax
option 1: restore-defaults [factory-defaults]
option 2: restore-defaults [force]
option 3: restore-defaults [keep-console [force]]
Table 2.14: # restore-defaults
Example
SGOS# restore-defaults
Restoring defaults requires a restart to take effect.
The current configuration will be lost and the system will be restarted.
Continue with restoring? (y/n)[n]: n
Existing configuration preserved.
39
Blue Coat ProxySG Command Line Interface Reference
# reveal-advanced
The reveal-advanced command allows you to enable all or a subset of the advanced commands
available to you when using the CLI. See “# hide-advanced” on page 27 for information about
disabling advanced commands that are enabled.
Note: You can also use the configure command SGOS#(config) reveal-advanced {all |
expand} to reveal hidden commands.
Syntax
reveal-advanced {all | expand | tcp-ip}
Example
SGOS# reveal-advanced all
ok
# show
Use this command to display system information.
Note: You can also use the configure command SGOS#(config) show to display system
information.
40
Chapter 2: Standard and Privileged Mode Commands
41
Blue Coat ProxySG Command Line Interface Reference
sub-option 1: disk_number
sub-option 2: all
option 21: show dns
option 22: show download-paths
option 23: show dynamic-bypass
option 24: show efficiency
option 25: show environmental
option 26: show epmapper statistics
option 27: show event-log [configuration]
option 28: show exceptions
sub-option 1: [built-in_id]
sub-option 2: [user-defined_id]
option 29: show external-services [statistics]
option 30: show failover
sub-option 1: configuration [group_address]
sub-option 2: statistics
option 31: show forwarding
option 32: show ftp
option 33: show health-checks
option 34: show hostname
option 35: show http
option 36: show http-stats
option 37: show icp-settings
option 38: show identd
option 39: show im
sub-option 1: aol-statistics
sub-option 2: configuration
sub-option 3: msn-statistics
sub-option 4: yahoo-statistics
option 40: show installed-systems
option 41: show interface
sub-option 1: all
sub-option 2: interface_number
option 42: show ip-default-gateway
option 43: show ip-route-table
option 44: show ip-rts-table
option 45: show ip-stats
sub-option 1: all
42
Chapter 2: Standard and Privileged Mode Commands
sub-option 2: e# (0 - 7)
sub-option 3: ip
sub-option 4: memory
sub-option 5: summary
sub-option 6: tcp
sub-option 7: udp
option 46: show licenses
option 47: show netbios
option 48: show ntp
option 49: show p2p statistics
option 50: show policy
sub-option 1: [listing]
sub-option 2: [order]
sub-option 3: [proxy-default]
option 51: show profile
option 52: show realms
option 53: show resources
option 54: show restart
option 55: show return-to-sender
option 56: show rip
sub-option 1: parameters
sub-option 2: routes
sub-option 3: statistics
option 57: show security
option 58: show services
sub-option 1: [aol-im]
sub-option 2: [dns]
sub-option 3: [ftp]
sub-option 4: [http]
sub-option 5: [https]
sub-option 6: [http-console]
sub-option 7: [https-console]
sub-option 8: [mms]
sub-option 9: [msn-im]
sub-option 10: [rtsp]
sub-option 11: [socks]
sub-option 12: [ssh-console]
sub-option 13: [tcp-tunnel]
sub-option 14: [telnet]
43
Blue Coat ProxySG Command Line Interface Reference
44
Chapter 2: Standard and Privileged Mode Commands
45
Blue Coat ProxySG Command Line Interface Reference
46
Chapter 2: Standard and Privileged Mode Commands
47
Blue Coat ProxySG Command Line Interface Reference
48
Chapter 2: Standard and Privileged Mode Commands
49
Blue Coat ProxySG Command Line Interface Reference
Examples
SGOS# show caching
Refresh:
Estimated access freshness is 100.0%
Let the ProxySG Appliance manage refresh bandwidth
Current bandwidth used is 0 kilobits/sec
Policies:
Do not cache objects larger than 1024 megabytes
50
Chapter 2: Standard and Privileged Mode Commands
51
Blue Coat ProxySG Command Line Interface Reference
216.52.23.101
Alternate DNS servers:
Imputed names:
Resolved names:
Time-to-live: 3600
SGOS# show dynamic-bypass
Dynamic bypass: disabled
Non-HTTP trigger: disabled
HTTP connect error trigger: disabled
HTTP receive error trigger: disabled
HTTP 400 trigger: disabled
HTTP 401 trigger: disabled
HTTP 403 trigger: disabled
HTTP 405 trigger: disabled
HTTP 406 trigger: disabled
HTTP 500 trigger: disabled
HTTP 502 trigger: disabled
HTTP 503 trigger: disabled
HTTP 504 trigger: disabled
52
Chapter 2: Standard and Privileged Mode Commands
# temporary-route
This command is used to manage temporary route entries.
Syntax
temporary-route {add destination_address netmask gateway_address | delete
destination_address}
# test
This command is used to test subsystems. A test http get command to a particular origin server or
URL, for example, can verify Layer 3 connectivity and also verify upper layer functionality.
Syntax
test http {get url | loopback}
53
Blue Coat ProxySG Command Line Interface Reference
Examples
SGOS# test http loopback
Type escape sequence to abort.
Executing HTTP loopback test
Measured throughput rate is 16688.96 Kbytes/sec
HTTP loopback test passed
SGOS# test http get http://www.google.com
Type escape sequence to abort.
Executing HTTP get test
* HTTP request header sent:
GET http://www.google.com/ HTTP/1.0
Host: www.google.com
User-Agent: HTTP_TEST_CLIENT
* HTTP response header recv'd:
HTTP/1.1 200 OK
Connection: close
Date: Tue, 15 Jul 2003 22:42:12 GMT
Cache-control: private
Content-Type: text/html
Server: GWS/2.1
Content-length: 2691
Set-Cookie:
PREF=ID=500ccde1707c20ac:TM=1058308932:LM=1058308932:S=du3WuiW7FC_lJ
Rgn; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
Measured throughput rate is 66.72 Kbytes/sec
HTTP get test passed
# traceroute
Use this command to trace the route to a destination. The traceroute command can be helpful in
determining where a problem might lie between two points in a network. Use traceroute to trace the
network path from a ProxySG back to a client or to a specific origin Web server.
Note that you can also use the trace route command from your client station (if supported) to trace the
network path between the client, a ProxySG, and a Web server. Microsoft operating systems generally
support the trace route command from a DOS prompt. The syntax from a Microsoft-based client is:
tracert [ip | hostname].
Syntax
traceroute {IP_address | hostname}
54
Chapter 2: Standard and Privileged Mode Commands
Example
SGOS# traceroute 10.25.36.47
Type escape sequence to abort.
Executing HTTP get test
HTTP response code: HTTP/1.0 503 Service Unavailable
Throughput rate is non-deterministic
HTTP get test passed
10.25.36.47# traceroute 10.25.36.47
# upload
Uploads the current access log or running configuration. Archiving a ProxySG’s system configuration
on a regular basis is a generally prudent measure. In the rare case of a complete system failure,
restoring a ProxySG to its previous state is simplified if you recently uploaded an archived system
configuration to an FTP, HTTP, or HTTPS server. The archive contains all system settings differing
from system defaults, along with any forwarding and security lists installed on the ProxySG. See
“Restoring an Archived ProxySG” below for instructions.
Syntax
option 1: upload access-log {all | log log_name}
option 2: upload configuration
Table 2.20: # upload
Example
SGOS# upload configuration
ok
55
Blue Coat ProxySG Command Line Interface Reference
The URL must be in quotation marks, if the filename contains spaces, and must be fully-qualified
(including the protocol, server name or IP address, path, and filename of the archive). The
configuration archive is downloaded from the server, and the ProxySG settings are updated.
If your archived configuration filename does not contain any spaces, quotation marks
surrounding the URL are unnecessary.
2. Enter the following command to restart the ProxySG with the restored settings:
SGOS# restart mode software
Example
SGOS> enable
Enable Password:*****
SGOS# configure network ftp://10.25.36.46/path/10.25.36.47
- Blue Coat 5000 0216214521.config
% Configuring from ftp://10.25.36.46/path/10.25.36.47 - Blue Coat 5000
0216214521.config
.
.
.
ok
56
Chapter 3: Privileged Mode Configure Commands
Configure Commands
The configure command allows you to configure the Blue Coat Systems ProxySG settings from your
current terminal session (configure terminal), or by loading a text file of configuration settings from
the network (configure network).
Syntax
configure {terminal | network url}
configure_command
configure_command
.
.
.
where configure_command is any of the configuration commands, as shown in Table 3.1. Type a
question mark after each of these commands for a list of subcommands or options with definitions.
Table 3.1: #(config)
57
Blue Coat ProxySG Command Line Interface Reference
58
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) hide-advanced ?
all Hide all advanced commands
expand Disable expanded commands
tcp-ip Disable commands for TCP-IP
Use the show command to view specific configuration settings or options. Type a space and a question
mark after the show command to see a list of all commands available for this command.
Example
SGOS#(config) show ?
accelerated-pac Accelerated PAC file
access-log Access log settings
archive-configuration Archive configuration settings
#(config) accelerated-pac
Normally, a Web server serves the PAC file to client browsers. This feature allows you to load a PAC
file onto the ProxySG for high performance PAC file serving right from the ProxySG. There are two
ways to create an Accelerated PAC file: (1) customize the default PAC file and save it as a new file, or
(2) create a new custom PAC file. In either case, it is important that the client instructions for
configuring ProxySG settings contain the URL of the Accelerated-PAC file. Clients load PAC files
from:
http://your_ProxySG_appliance:8081/accelerated_pac_base.pac.
Syntax
option 1: accelerated-pac no path
option 2: accelerated-pac path url
Table 3.2: #(config) accelerated-pac
59
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) accelerated-pac path 10.25.36.47
ok
#(config) access-log
The ProxySG can maintain an access log for each HTTP request made. The access log can be stored in
one of three formats, which can be read by a variety of reporting utilities. See the “Access Log
Formats” appendix in the Blue Coat Configuration and Management Guide for additional information on
log formats.
Syntax
access-log
This changes the prompt to:
SGOS#(config access-log)
-subcommands-
option 1: create
sub-option 1: log log_name
sub-option 2: format format_name
option 2: cancel-upload
sub-option 1: all
sub-option 2: log log_name
option 3: default-logging {icp | ftp | http | im | mms | p2p | rtsp | socks |
tcp-tunnel | telnet} log_name
option 4: delete
sub-option 1: log log_name
sub-option 2: format format_name
option 5: disable
option 6: early-upload megabytes
option 7: edit
sub-option 1: log log_name—changes the prompt (see “#(config access-log) edit log
log_name” on page 63)
sub-option 2: format format_name—changes the prompt (see “#(config access-log) edit
format format_name” on page 68)
option 8: enable
option 9: exit
option 10:max-log-size megabytes
option 11:no default-logging {icp | ftp | http | im | mms | p2p | rtsp | socks |
tcp-tunnel | telnet}
option 12:overflow-policy
60
Chapter 3: Privileged Mode Configure Commands
sub-option 1: delete
sub-option 2: stop
option 13:upload
sub-option 1: all
sub-option 2: log log_name
option 14:view
sub-option 1: [log [brief | log_name]]
sub-option 2: [format [brief | format_name]]
sub-option 3: [statistics [log_name]]
sub-option 4: [default-logging]
61
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) access-log
SGOS#(config access-log) create log test
ok
SGOS#(config access-log) max-log-size 1028
ok
SGOS#(config access-log) overflow-policy delete
ok
View the results. (This is a partial output.)
62
Chapter 3: Privileged Mode Configure Commands
Syntax
access-log
This changes the prompt to:
SGOS#(config access-log)
edit log log_name
This changes the prompt to:
SGOS#(config log log_name)
-subcommands-
option 1: bandwidth-class bwm_class_name
option 2: client-type
sub-option 1: custom
sub-option 2: ftp
sub-option 3: http
sub-option 4: none
sub-option 5: websense
option 3: commands
sub-option 1: cancel-upload
63
Blue Coat ProxySG Command Line Interface Reference
sub-option 2: close-connection
sub-option 3: delete-logs
sub-option 4: open-connection
sub-option 5: rotate-remote-log
sub-option 6: send-keep-alive
sub-option 7: test-upload
sub-option 8: upload-now
option 4: connect-wait-time seconds
option 5: continuous-upload
sub-option 1: enable
sub-option 2: keep-alive seconds
sub-option 3: lag-time seconds
sub-option 4: rotate-remote {daily rotation_hour (0-23) | hourly hours [minutes]}
option 6: custom-client
sub-option 1: alternate hostname [port]
sub-option 2: primary hostname [port]
sub-option 3: secure {no | yes}
option 7: description description
option 8: early-upload megabytes
option 9: encryption certificate certificate_name
option 10:exit
option 11:format-name format_name
option 12:ftp-client
sub-option 1: alternate {encrypted-password encrypted_password | host hostname
[port] | password password | path path | username username}
sub-option 2: filename format
sub-option 3: no {alternate | filename | primary}
sub-option 4: pasv {no | yes}
sub-option 5: primary {encrypted-password encrypted_password | host hostname
[port] | password password | path path | username username}
sub-option 6: secure {no | yes}
sub-option 7: time-format {local | utc}
option 13:http-client
sub-option 1: alternate {encrypted-password encrypted_password | host hostname
[port] | password password | path path | username username}
sub-option 2: filename format
sub-option 3: no {alternate | filename | primary}
sub-option 4: primary {encrypted-password encrypted_password | host hostname
[port] | password password | path path | username username}
sub-option 5: secure {no | yes}
64
Chapter 3: Privileged Mode Configure Commands
65
Blue Coat ProxySG Command Line Interface Reference
66
Chapter 3: Privileged Mode Configure Commands
67
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) access-log
SGOS#(config access-log) edit log testlog
SGOS#(config log testlog) upload-type gzip
ok
SGOS#(config log testlog) exit
SGOS#(config access-log) exit
SGOS#(config)
Syntax
access-log
This changes the prompt to:
SGOS#(config access-log)
edit format format_name
This changes the prompt to:
SGOS#(config format format_name)
-subcommands-
option 1: exit
option 2: multi-valued-header-policy
sub-option 1: log-all-headers
68
Chapter 3: Privileged Mode Configure Commands
sub-option 2: log-first-header
sub-option 3: log-last-header
option 3: type
sub-option 1: custom format_string
sub-option 2: elff format_string
option 4: view
Example
SGOS#(config) access-log
SGOS#(config access-log) edit format testformat
SGOS#(config format testformat) multi-valued-header-policy log-all-headers
ok
SGOS#(config format testformat) exit
SGOS#(config access-log) exit
SGOS#(config)
#(config) archive-configuration
Archiving a ProxySG system configuration on a regular basis is always a good idea. In the rare case of
a complete system failure, restoring a ProxySG to its previous state is simplified by loading an
archived system configuration from an FTP, HTTP, or HTTPS server. The archive contains all system
settings differing from system defaults, along with any forwarding and security lists installed on the
ProxySG.
Archive and restore operations must be done from the CLI. There is no Management Console Web
interface for archive and restore. For details, see “Restoring an Archived ProxySG” on page 55.
Syntax
option 1: archive-configuration encrypted-password encrypted_password
option 2: archive-configuration filename-prefix filename
option 3: archive-configuration host host_name
option 4: archive-configuration password password
option 5: archive-configuration path path
69
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) archive-configuration host host3
ok
#(config) attack-detection
The ProxySG can reduce the effects of distributed denial of service (DDoS) attacks and port scanning,
two of the most common virus infections.
The ProxySG prevents attacks by limiting the number of TCP connections from each client IP address
and either will not respond to connection attempts from a client already at this limit or will reset the
connection.
Syntax
attack-detection
This changes the prompt to:
SGOS#(config attack-detection)
-subcommands-
option 1: client—changes the prompt to (config client)
sub-option 1: block ip_address [minutes]
sub-option 2: create ip_address or ip_address_and_length
70
Chapter 3: Privileged Mode Configure Commands
71
Blue Coat ProxySG Command Line Interface Reference
72
Chapter 3: Privileged Mode Configure Commands
73
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) attack-detection
SGOS#(config attack-detection) client
SGOS#(config client) view
Client limits enabled: true
Client interval: 20 minutes
Default client limits:
Client connection limit: 700
Client failure limit: 50
Client warning limit: 10
Blocked client action: Drop
Client connection unblock time: unlimited
Client limits for 10.9.17.159:
Client connection limit: unlimited
Client failure limit: unlimited
Client warning limit: unlimited
74
Chapter 3: Privileged Mode Configure Commands
#(config) bandwidth-gain
Bandwidth gain is a measure of the effective increase of server bandwidth resulting from the client’s
use of a content accelerator. For example, a bandwidth gain of 100% means that traffic volume from
the ProxySG to its clients is twice as great as the traffic volume being delivered to the ProxySG from
the origin server(s). Using bandwidth gain mode can provide substantial gains in apparent
performance.
Keep in mind that bandwidth gain is a relative measure of the ProxySG’s ability to amplify traffic
volume between an origin server and the clients served by the ProxySG.
Syntax
-subcommands-
option 1: bandwidth-gain disable
option 2: bandwidth-gain enable
Table 3.8: #(config) bandwidth-gain
Example
SGOS#(config) bandwidth-gain enable
ok
#(config) bandwidth-management
Bandwidth management allows you to classify, control, and, if required, limit the amount of
bandwidth used by a class of network traffic flowing into or out of the ProxySG.
Syntax
bandwidth-management
This changes the prompt to:
SGOS#(config bandwidth-management)
-subcommands-
option 1: create class_name
75
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) bandwidth-management
SGOS#(config bandwidth-management) enable
ok
SGOS#(config bandwidth-management) create Office_A
ok
SGOS#(config bandwidth-management) edit Office_A
SGOS#(config bw-class Office_A) exit
SGOS#(config bandwidth-management) exit
SGOS#(config)
76
Chapter 3: Privileged Mode Configure Commands
Syntax
bandwidth-management
This changes the prompt to:
SGOS#(config bandwidth-management)
edit class_name
This changes the prompt to:
SGOS#(config bandwidth-management class_name)
-subcommands-
option 1: exit
option 2: max-bandwidth maximum_in_kbps
option 3: min-bandwidth minimum_in_kbps
option 4: no
sub-option 1: max-bandwidth
sub-option 2: min-bandwidth
sub-option 3: parent
option 5: parent class_name
option 6: priority value_from_0_to_7
option 7: view [children]
Table 3.10: #(config bandwidth-management class_name)
77
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) bandwidth-management
SGOS#(config bandwidth-management) edit CEO_A
SGOS#(config bw-class CEO_A) parent Office_A
ok
SGOS#(config bw-class CEO_A) priority 2
ok
SGOS#(config bw-class CEO_A) exit
SGOS#(config bandwidth-management) exit
SGOS#(config)
#(config) banner
This command enables you to define a login banner for your users.
Syntax
option 1: banner login string
option 2: banner no login
Table 3.11: #(config) banner
Example
SGOS#(config) banner login “Sales and Marketing Intranet Web”
ok
#(config) bridge
This command allows you to configure bridging.
Syntax
bridge
This changes the prompt to:
SGOS#(config bridge)
-subcommands-
option 1: bandwidth-class bw_class_name
option 2: create
option 3: delete
option 4: edit—changes the prompt (see “#(config bridge) edit bridge_name” on page 79)
option 5: exit
option 6: no bandwidth-class
option 7: view
78
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) bridge
SGOS#(config bridge) create test
ok
SGOS#(config bridge) exit
SGOS#(config)
Syntax
bridge
This changes the prompt to:
SGOS#(config bridge)
edit bridge_name
This changes the prompt to:
79
Blue Coat ProxySG Command Line Interface Reference
-subcommands-
option 1: accept-inbound
option 2: clear-fwtable
option 3: clear-statistics
option 4: exit
option 5: failover
option 6: instructions {accelerated-pac | central-pac url | default-pac | proxy}
option 7: ip-address ip_address
option 8: mtu-size mtu_size
option 9: no {accept-inbound | port port_num | failover}
option 10:port port_number
option 11:subnet-mask subnet_mask
option 12:view {configuration | fwtable | statistics}
Table 3.13: #(config bridge bridge_name)
80
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) bridge
SGOS#(config bridge) edit b_1
SGOS#(config bridge b_1) accept-inbound
ok
SGOS#(config bridge b_1) instructions accelerated-pac
ok
SGOS#(config bridge b_1) exit
SGOS#(config bridge) exit
SGOS#(config)
Syntax
bridge
This changes the prompt to:
SGOS#(config bridge)
edit bridge_name
This changes the prompt to:
SGOS#(config bridge bridge_name)
port_number
This changes the prompt to:
SGOS#(config bridge bridge_name port_number)
-subcommands-
option 1: attach-interface interface_number
option 2: exit
option 3: full-duplex
option 4: half-duplex
option 5: link-autosense
option 6: speed {10 | 100 | 1gb}
option 7: view
Table 3.14: #(config bridge bridge_name port_number)
81
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) bridge
SGOS#(config bridge) bridge testname
SGOS#(config bridge testname) port 23
SGOS#(config bridge testname port 23) attach-interface 0
ok
SGOS#(config bridge testname port 23) full-duplex
ok
SGOS#(config bridge testname port 23) speed 100
ok
SGOS#(config bridge testname port 23) exit
SGOS#(config bridge testname) exit
SGOS#(config)
#(config) bypass-list
A bypass list prevents the ProxySG from transparently accelerating requests to servers that perform IP
authentication with clients. The bypass list contains IP addresses, subnet masks, and gateways. When
a request matches an IP address and subnet mask specification in the bypass list, the request is sent to
the designated gateway. A bypass list is only used for transparent caching.
There are two types of bypass lists: local and central.
To use bypass routes, create a text file that contains a list of address specifications. The file should be
named with a .txt extension. Once you have created the bypass list, place it on an HTTP server so it
can be installed onto the ProxySG.
You can create your own central bypass list to manage multiple ProxySG Appliances, or you can use
the central bypass list maintained by Blue Coat Systems Technical Support at:
http://www.bluecoat.com/support/subscriptions/CentralBypassList.txt
The central bypass list maintained by Blue Coat Systems contains addresses Blue Coat Systems has
identified as using client authentication.
Syntax
option 1: bypass-list central-path url
option 2: bypass-list local-path url
option 3: bypass-list no {central-path | local-path | notify | subscribe}
option 4: bypass-list notify
option 5: bypass-list poll-now
82
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) bypass-list local-path 10.25.36.47/files/bypasslist.txt
ok
#(config) caching
When a stored HTTP object expires, it is placed in a refresh list. The ProxySG processes the refresh list
in the background, when it is not serving requests. Refresh policies define how the ProxySG handles
the refresh process.
The HTTP caching options allow you to specify:
• Maximum object size
• Negative responses
• Refresh parameters
In addition to HTTP objects, the ProxySG can store objects requested using FTP. When the ProxySG
retrieves and stores an FTP object, it uses two methods to determine how long the object should stay
cached.
• If the object has a last-modified date, the ProxySG assigns a refresh date to the object that is a
percentage of the last-modified date.
• If the object does not have a last-modified date, the ProxySG assigns a refresh date to the object
based on a fixed period of time.
Syntax
caching
83
Blue Coat ProxySG Command Line Interface Reference
-subcommands-
option 1: always-verify-source
option 2: exit
option 3: ftp—changes the prompt (see “#(config caching) ftp” on page 85)
option 4: max-cache-size megabytes
option 5: negative-response minutes
option 6: no always-verify-source
option 7: refresh {automatic | bandwidth kbps | no automatic}
option 8: view
Table 3.16: #(config caching)
Example
SGOS#(config) caching
SGOS#(config caching) always-verify-source
ok
SGOS#(config caching) max-cache-size 100
ok
SGOS#(config caching) negative-response 15
84
Chapter 3: Privileged Mode Configure Commands
ok
SGOS#(config caching) refresh automatic
ok
SGOS#(config caching) exit
SGOS#(config)
Syntax
caching
This changes the prompt to:
SGOS#(config caching)
ftp
This changes the prompt to:
SGOS#(config caching ftp)
-subcommands-
option 1: disable
option 2: enable
option 3: exit
option 4: type-m-percent percent
option 5: type-n-initial hours
option 6: view
Table 3.17: #(config caching ftp)
85
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config caching) ftp
SGOS#(config caching ftp) enable
ok
SGOS#(config caching ftp) max-cache-size 200
ok
SGOS#(config caching ftp) type-m-percent 20
ok
SGOS#(config caching ftp) type-n-initial 10
ok
SGOS#(config caching ftp) exit
SGOS#(config caching) exit
SGOS#(config)
#(config) clock
To manage objects in the cache, a ProxySG must know the current Universal Time Coordinates (UTC)
time. By default, the ProxySG attempts to connect to a Network Time Protocol (NTP) server to acquire
the UTC time. The ProxySG includes a list of NTP servers available on the Internet, and attempts to
connect to them in the order they appear in the NTP server list on the NTP tab. If the ProxySG cannot
access any of the listed NTP servers, you must manually set the UTC time using the clock command.
Syntax
option 1: clock day day
option 2: clock hour hour
option 3: clock minute minute
option 4: clock month month
option 5: clock second second
option 6: clock year year
Table 3.18: #(config) clock
86
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) clock year 2003
ok
SGOS#(config) clock month 4
ok
SGOS#(config) clock day 1
ok
SGOS#(config) clock hour 0
ok
SGOS#(config) clock minute 30
ok
SGOS#(config) clock second 59
ok
#(config) content
Use this command to manage and manipulate content distribution requests and re-validate requests.
Note: The content command options are not compatible with transparent FTP.
Syntax
option 1: content cancel {outstanding-requests | url url}
option 2: content delete {regex regex | url url}
option 3: content distribute url [from_url]
option 4: content priority {regex priority_0-7 regex | url priority_0-7 url}
option 5: content revalidate {regex regex | url url [from_url]}
87
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) content distribute http://www.bluecoat.com
Current time: Mon, 01 Apr 2003 00:34:07 GMT
ok
SGOS#(config) content revalidate url http://www.bluecoat.com
Last load time: Mon, 01 Apr 2003 00:34:07 GMT
ok
SGOS#(config) content distribute http://www.bluecoat.com
Current time: Mon, 01 Apr 2003 00:35:01 GMT
ok
SGOS#(config) content priority url 7 http://www.bluecoat.com
ok
SGOS#(config) content cancel outstanding-requests
ok
SGOS#(config) content delete url http://www.bluecoat.com
ok
#(config) content-filter
The ProxySG offers the option of using content filtering to control the type of retrieved content and to
filter requests made by clients. The ProxySG supports these content filtering methods:
• Local database
This method allows you to produce and maintain your own content-filtering list locally, through
the ProxySG CLI or Management Console.
88
Chapter 3: Privileged Mode Configure Commands
• InterSafe™
• Optenet
• Proventia™
• SmartFilter™
• SurfControl™
• WebWasher®
You can also combine this type of content filtering with the ProxySG policies, which use the Blue
Coat Systems Policy Language.
• Denying access to URLs through policy
This method allows you to block by URL, including filtering by scheme, domain, or individual
host or IP address. For this method, you define ProxySG policies, which use the Blue Coat Systems
Policy Language.
Refer to the “Content Filtering” chapter of the Blue Coat Configuration and Management Guide and the
Blue Coat Content Policy Language Guide for complete descriptions of these features.
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
- subcommands-
option 1: bluecoat—changes the prompt (see “#(config content-filter) bluecoat” on page 92)
option 2: categories
option 3: exit
option 4: i-filter—changes the prompt (see “#(config content-filter) i-filter” on
page 94)
89
Blue Coat ProxySG Command Line Interface Reference
90
Chapter 3: Privileged Mode Configure Commands
91
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) content-filter
SGOS#(config content-filter) provider 3rd-party proventia
loading database....
ok
SGOS#(config content-filter) exit
SGOS#(config)
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
bluecoat
This changes the prompt to:
SGOS#(config bluecoat)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday |
tuesday | wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
92
Chapter 3: Privileged Mode Configure Commands
option 4: service
sub-option 1: disable
sub-option 2: enable
sub-option 3: mode {background | realtime | none}
option 5: view
Table 3.21: #(config bluecoat)
93
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) content-filter
SGOS#(config content-filter) bluecoat
SGOS#(config bluecoat) service mode background
ok
SGOS#(config bluecoat) exit
SGOS#(config content-filter) exit
SGOS#(config)
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
i-filter
This changes the prompt to:
SGOS#(config i-filter)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday | tuesday
| wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
94
Chapter 3: Privileged Mode Configure Commands
option 4: view
Table 3.22: #(config i-filter)
Example
SGOS#(config) content-filter
SGOS#(config content-filter) i-filter
SGOS#(config i-filter) no download day-of-week mon
ok
SGOS#(config i-filter) no download day-of-week wed
ok
SGOS#(config i-filter) exit
95
Blue Coat ProxySG Command Line Interface Reference
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
intersafe
This changes the prompt to:
SGOS#(config intersafe)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday | tuesday
| wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
option 4: view
96
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) content-filter
SGOS#(config content-filter) intersafe
SGOS#(config intersafe) no download day-of-week mon
ok
SGOS#(config intersafe) no download day-of-week wed
ok
SGOS#(config intersafe) exit
SGOS#(config content-filter) exit
SGOS#(config)
97
Blue Coat ProxySG Command Line Interface Reference
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
local
This changes the prompt to:
SGOS#(config local)
- subcommands-
option 1: clear
option 2: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url url
sub-option 9: username username
option 3: exit
option 4: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday |
tuesday | wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
option 5: source
option 6: view
98
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) content-filter
SGOS#(config content-filter) local
SGOS#(config local) download day-of-week all
ok
99
Blue Coat ProxySG Command Line Interface Reference
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
optenet
This changes the prompt to:
SGOS#(config optenet)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday |
tuesday | wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
option 4: view
100
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) content-filter
SGOS#(config content-filter) optenet
SGOS#(config optenet) download time-of-day 20
ok
SGOS#(config optenet) exit
101
Blue Coat ProxySG Command Line Interface Reference
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
proventia
This changes the prompt to:
SGOS#(config proventia)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday |
tuesday | wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
option 4: view
102
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) content-filter
SGOS#(config content-filter) proventia
SGOS#(config proventia) download time-of-day 20
ok
SGOS#(config proventia) exit
103
Blue Coat ProxySG Command Line Interface Reference
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
smartfilter
This changes the prompt to:
SGOS#(config smartfilter)
- subcommands-
option 1: allow-rdns
option 2: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: license license_key
sub-option 7: password password
sub-option 8: server IP_address_or_hostname
sub-option 9: time-of-day 0-23
sub-option 10:url {premier-list {ftp | http} | standard-list {ftp | http} | url}
sub-option 11:username username
option 3: exit
option 4: list-version {3 | 4}
option 5: no
sub-option 1: allow-rdns
sub-option 2: download {auto | day-of-week {friday | monday | saturday | sunday |
thursday | tuesday | wednesday} | encrypted-password | password |
url | username}
sub-option 3: use-search-keywords
option 6: use-search-keywords
option 7: view
104
Chapter 3: Privileged Mode Configure Commands
105
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) content-filter
SGOS#(config content-filter) smartfilter
SGOS#(config smartfilter) allow-rdns
ok
SGOS#(config smartfilter) exit
SGOS#(config content-filter) exit
SGOS#(config)
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
surfcontrol
This changes the prompt to:
SGOS#(config surfcontrol)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
106
Chapter 3: Privileged Mode Configure Commands
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download {auto | day-of-week {friday | monday | saturday | sunday |
thursday | tuesday | wednesday} | encrypted-password| username | password
| url}
option 4: view
Table 3.28: #(config surfcontrol)
107
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) content-filter
SGOS#(config content-filter) surfcontrol
SGOS#(config surfcontrol) no download url
ok
SGOS#(config surfcontrol) exit
SGOS#(config content-filter) exit
SGOS#(config)
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
websense
This changes the prompt to:
SGOS#(config websense)
- subcommands-
option 1: always-apply-regexes
option 2: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: email-contact email_address
108
Chapter 3: Privileged Mode Configure Commands
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: license license_key
sub-option 7: server {ip_address | hostname}
sub-option 8: time-of-day 0-23
option 3: exit
option 4: integration-service
sub-option 1: disable
sub-option 2: enable
sub-option 3: host (hostname or IP_address)
sub-option 4: port {integer between 0 and 65535}
option 5: no
sub-option 1: always-apply-regexes
sub-option 2: download {auto | day-of-week {friday | monday | saturday | sunday |
thursday | tuesday | wednesday} | email-contact | license | server}
sub-option 3: integration-service
option 6: view
Table 3.29: #(config websense)
109
Blue Coat ProxySG Command Line Interface Reference
110
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) content-filter
SGOS#(config content-filter) websense
SGOS#(config websense) no always-apply-regexes
ok
SGOS#(config websense) exit
SGOS#(config content-filter) exit
SGOS#(config)
Syntax
content-filter
This changes the prompt to:
SGOS#(config content-filter)
webwasher
This changes the prompt to:
SGOS#(config webwasher)
- subcommands-
option 1: download
sub-option 1: auto
sub-option 2: day-of-week {all | friday | monday | none | saturday | sunday |
thursday | tuesday | wednesday}
sub-option 3: encrypted-password encrypted_password
sub-option 4: full-get-now
sub-option 5: get-now
sub-option 6: password password
sub-option 7: time-of-day 0-23
sub-option 8: url {default | url}
sub-option 9: username username
option 2: exit
option 3: no download
sub-option 1: auto
sub-option 2: day-of-week {friday | monday | saturday | sunday | thursday | tuesday
| wednesday}
sub-option 3: encrypted-password
sub-option 4: password
sub-option 5: url
sub-option 6: username
111
Blue Coat ProxySG Command Line Interface Reference
option 4: view
Table 3.30: #(config webwasher)
Example
SGOS#(config) content-filter
SGOS#(config content-filter) webwasher
SGOS#(config webwasher) download time-of-day 20
ok
SGOS#(config webwasher) exit
112
Chapter 3: Privileged Mode Configure Commands
#(config) diagnostics
This command enables you to configure the remote diagnostic feature Heartbeat.
Syntax
diagnostics
This changes the prompt to:
SGOS#(config diagnostics)
- subcommands-
option 1: cpu-monitor
sub-option 1: disable
sub-option 2: enable
sub-option 3: interval seconds
option 2: exit
option 3: heartbeat {disable | enable}
option 4: monitor {disable | enable}
option 5: send-heartbeat
option 6: service-info—changes the prompt (see “#(config diagnostics) service-info” on
page 114)
option 7: snapshot
sub-option 1: create snapshot_name
sub-option 2: delete snapshot_name
sub-option 3: edit snapshot_name—changes the prompt (see “#(config diagnostics)
snapshot snapshot_name” on page 116)
option 8: view
sub-option 1: configuration
sub-option 2: cpu-monitor
sub-option 3: service-info
sub-option 4: snapshot snapshot_name
113
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) diagnostics
SGOS#(config diagnostics) heartbeat enable
ok
SGOS#(config diagnostics) exit
SGOS#(config)
Syntax
diagnostics
This changes the prompt to:
SGOS#(config diagnostics)
114
Chapter 3: Privileged Mode Configure Commands
service-info
This changes the prompt to:
SGOS#(diagnostics service-info)
- subcommands-
option 1: auto
sub-option 1: disable
sub-option 2: enable
sub-option 3: no sr-number
sub-option 4: sr-number sr_number
option 2: bandwidth-class bw_class_name
option 3: cancel
sub-option 1: all
sub-option 2: one_or_more_from_view_status
option 4: exit
option 5: no bandwidth-class
option 6: send sr_number one_or_more_commands_from_view_available
option 7: view
sub-option 1: available
sub-option 2: status
115
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) diagnostics
SGOS#(config diagnostics) service-info
SGOS#(diagnostics service-info) view available
Service information that can be sent to Blue Coat
116
Chapter 3: Privileged Mode Configure Commands
Syntax
diagnostics
This changes the prompt to:
SGOS#(config diagnostics)
snapshot edit snapshot_name
This changes the prompt to:
SGOS#(config snapshot snapshot_name)
- subcommands-
option 1: clear-reports
option 2: disable
option 3: enable
option 4: exit
option 5: interval minutes
option 6: keep number_to_keep (from 1 - 100)
option 7: take {infinite | number_to_take}
option 8: target object_to_fetch
option 9: view
Table 3.33: #(config snapshot snapshot_name)
117
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) diagnostics
SGOS#(config diagnostics) snapshot testshot
SGOS#(diagnostics snapshot testshot) enable
ok
SGOS#(diagnostics service-info) interval 1440
ok
SGOS#(diagnostics snapshot testshot) exit
SGOS#(config diagnostics) exit
SGOS#(config)
#(config) dns
The dns command enables you to modify the DNS settings for the ProxySG. Note that the alternate
DNS servers are only checked if the servers in the standard DNS list return: “Name not found.”
Syntax
option 1: dns alternate ip_address
option 2: dns clear {alternate | imputing | resolving | server}
option 3: dns imputing name
option 4: dns no {alternate ip_address | imputing imputed_name | server ip_address}
option 5: dns server ip_address
Table 3.34: #(config) dns
118
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) dns clear server
ok
SGOS#(config) dns server 10.253.220.249
ok
SGOS#(config) dns clear alternate
ok
SGOS#(config) dns alternate 216.52.23.101
ok
#(config) dynamic-bypass
Dynamic bypass provides a maintenance-free method for improving performance of the ProxySG by
automatically compiling a list of requested URLs that return various kinds of errors.
With dynamic bypass, the ProxySG adds dynamic bypass entries, containing the server IP address of
sites that have returned an error, to the ProxySG’s local bypass list. For a configured period of time,
further requests for the error-causing URL are sent immediately to the origin server, saving the
ProxySG processing time. The amount of time a dynamic bypass entry stays in the list, and the types
of errors that cause the ProxySG to add a site to the list, along with several other settings, is
configurable from the CLI.
Once the dynamic bypass timeout for a URL has ended, the ProxySG removes the URL from the
bypass list. On the next client request for the URL, the ProxySG attempts to contact the origin server. If
the origin server still returns an error, the URL is once again added to the local bypass list for the
configured dynamic bypass timeout. If the URL does not return an error, the request is handled in the
normal manner.
The performance gains realized with this feature are substantial if the client base is large, and clients
are requesting many error-causing URLs in a short period of time (for example, many users clicking a
browser’s refresh button over and over to get an overloaded origin server to load a URL). Dynamic
bypass increases efficiency because redundant attempts to contact the origin server are minimized.
Syntax
option 1: dynamic-bypass clear
option 2: dynamic-bypass disable
option 3: dynamic-bypass enable
option 4: dynamic-bypass no trigger {all | connect-error | non-http | receive-error
| 400 | 401 | 403 | 405 | 406 | 500 | 502 | 503 | 504}
option 5: dynamic-bypass trigger {all | connect-error | non-http | receive-error |
400 | 401 | 403 | 405 | 406 | 500 | 502 | 503 | 504}
119
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) dynamic-bypass clear
ok
SGOS#(config) dynamic-bypass enable
WARNING:
Requests to sites that are put into the dynamic bypass list will
bypass future policy evaluation. This could result in subversion
of on-box policy. The use of dynamic bypass is cautioned.
ok
SGOS#(config) dynamic-bypass trigger all
ok
#(config) event-log
You can configure the ProxySG to log system events as they occur. Event logging allows you to specify
the types of system events logged, the size of the event log, and to configure Syslog monitoring. The
ProxySG can also notify you by e-mail if an event is logged.
Syntax
event-log
This changes the prompt to:
SGOS#(config event-log)
- subcommands-
option 1: exit
option 2: level {configuration | informational | policy | severe | verbose}
option 3: log-size megabytes
option 4: mail {add email_address | clear | no smtp-gateway | remove email_address
| smtp-gateway {domain_name | ip_address}}
option 5: syslog {disable | enable | facility {auth | daemon | kernel | local0 |
local1 | local2 | local3 | local4 | local5 | local6 | local7 | lpr | mail
120
Chapter 3: Privileged Mode Configure Commands
121
Blue Coat ProxySG Command Line Interface Reference
Note: You must replace the default Blue Coat Systems SMTP gateway with your gateway. If you do
not have access to an SMTP gateway, you can use the Blue Coat Systems gateway to send
event messages to Blue Coat Systems (the Blue Coat Systems SMTP gateway will only send
mail to Blue Coat Systems; it will not forward mail to other domains).
Example
SGOS#(config) event-log
SGOS#(config event-log) syslog enable
ok
#(config) exceptions
These commands allow you to configure built-in and user-defined exception response objects.
Syntax
exceptions
This changes the prompt to:
SGOS#(config exceptions)
122
Chapter 3: Privileged Mode Configure Commands
- subcommands-
option 1: create exception_id
option 2: company-name name
option 3: delete exception_id
option 4: edit exception_id or user_defined_exception_id—changes the prompt (see
“#(config exceptions) edit [user-defined.]exception_id” on page 124)
option 5: exit
option 6: inline {contact | details | format | help | http {contact | details |
format | help | summary} | summary} eof_marker
option 7: load exceptions
option 8: no path
option 9: path url
option 10:user-defined inline {contact | details | format | help | http {contact |
details | format | help | summary} | summary} eof_marker
123
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) exceptions
SGOS#(config exceptions) default contact
ok
SGOS#(config exceptions) exit
SGOS#(config)
Syntax
exceptions
This changes the prompt to:
SGOS#(config exceptions)
exception_id or user_defined_exception_id
This changes the prompt to:
SGOS#(config exceptions [user-defined.]exception_id)
- subcommands-
option 1: exit
option 2: http-code numeric_http_response_code
option 3: inline {contact | details | format | help | http {contact | details |
format | help | summary} | summary} eof_marker
124
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) exceptions
SGOS#(config exceptions) edit testname
SGOS#(config exceptions user-defined testname) http-code 000
ok
SGOS#(config exceptions user-defined testname) exit
SGOS#(config exceptions) exit
SGOS#(config)
#(config) exit
Exits from Configuration mode to Privileged mode, from Privileged mode to Standard mode. From
Standard mode, the exit command closes the CLI session.
Syntax
exit
The exit command does not have any parameters or subcommands.
#(config) external-services
These commands allow you to configure your external services.
Use the edit ICAP commands to configure the ICAP service used to integrate the ProxySG with a virus
scanning server. The configuration is specific to the virus scanning server and includes the server IP
address, as well as the supported number of connections. If you are using the ProxySG with multiple
virus scanning servers or multiple scanning services on the same server, add an ICAP service for each
server or scanning service.
Note: When you define virus scanning policies, use the same service name. Make sure you type the
ICAP service name accurately, whether you are configuring the service on the ProxySG or
defining policies since the name retrieves the other configuration settings for that service.
Syntax
external-services
This changes the prompt to:
SGOS#(config external-services)
- subcommands-
option 1: create {icap icap_service_name | service-group service_group_name |
websense websense_service_name}
option 2: delete name
option 3: edit—changes the prompt to one of three external service edit commands:
sub-option 1: icap_service_name (see “#(config external-services) edit
icap_service_name” on page 127)
125
Blue Coat ProxySG Command Line Interface Reference
126
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) external-services
SGOS#(config external-services) create websense testwebsense
ok
SGOS#(config external-services) exit
SGOS#(config)
Syntax
external-services
This changes the prompt to:
SGOS#(config external-services)
edit icap_service_name
This changes the prompt to:
SGOS#(config icap icap_service_name)
- subcommands-
option 1: exit
option 2: max-conn max_num_connections
option 3: methods {REQMOD | RESPMOD}
option 4: no
sub-option 1: send {client-address | server-address}
sub-option 2: notify virus-detected
sub-option 3: patience-page
sub-option 4: preview
option 5: notify virus-detected
option 6: patience-page seconds
option 7: preview-size bytes
option 8: send {client-address | server-address}
option 9: sense-settings
option 10:timeout seconds
option 11:url url
option 12:view
127
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) external-services
SGOS#(config external-services) edit testicap
SGOS#(config icap testicap) send client-address
ok
SGOS#(config icap testicap) exit
SGOS#(config external-services) exit
SGOS#(config)
Syntax
external-services
This changes the prompt to:
128
Chapter 3: Privileged Mode Configure Commands
SGOS#(config external-services)
edit service_group_name
This changes the prompt to:
SGOS#(config service-group service_group_name)
- subcommands-
option 1: add entry_name
option 2: edit entry_name—changes the prompt (see “#(config service-group
service_group_name) edit entry_name” on page 129)
option 3: exit
option 4: remove entry_name
option 5: view
Table 3.41: #(config service-group service_group_name)
Example
SGOS#(config) external-services
SGOS#(config external-services) edit testgroup
SGOS#(config service-group testgroup) add testentry
ok
SGOS#(config service-group testgroup) exit
SGOS#(config external-services) exit
SGOS#(config)
Syntax
external-services
This changes the prompt to:
SGOS#(config external-services)
edit service_group_name
This changes the prompt to:
SGOS#(config service-group service_group_name)
129
Blue Coat ProxySG Command Line Interface Reference
edit entry_name
This changes the prompt to:
SGOS#(config service-group service_group_name entry_name)
- subcommands-
option 1: exit
option 2: view
option 3: weight 0 to 255
Table 3.42: #(config service-group service_group_name entry_name)
Example
SGOS#(config) external-services
SGOS#(config external-services) edit testgroup
SGOS#(config service-group testgroup) edit testentry
SGOS#(config service-group testgroup testentry) weight 223
ok
SGOS#(config service-group testgroup testentry) exit
SGOS#(config service-group testgroup) exit
SGOS#(config external-services) exit
SGOS#(config)
Syntax
external-services
This changes the prompt to:
SGOS#(config external-services)
edit websense_service_name
This changes the prompt to:
SGOS#(config websense websense_service_name)
- subcommands-
option 1: apply-by-default
option 2: exit
option 3: fail-open
option 4: host host
130
Chapter 3: Privileged Mode Configure Commands
131
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) external-services
SGOS#(config external-services) edit testwebsense
SGOS#(config websense testwebsense) send client-address
ok
SGOS#(config websense testwebsense) exit
SGOS#(config external-services) exit
SGOS#(config)
#(config) failover
These commands allow you to configure redundancy into your network.
Syntax
failover
This changes the prompt to:
SGOS#(config failover)
- subcommands-
option 1: create group_address
option 2: edit group_address—changes the prompt (see “#(config failover) edit
group_address” on page 132)
option 3: exit
option 4: delete group_address
Table 3.44: #(config failover)
Example
SGOS#(config) failover
SGOS#(config failover) create 10.9.17.135
ok
SGOS#(config failover) exit
SGOS#(config)
132
Chapter 3: Privileged Mode Configure Commands
Syntax
failover
This changes the prompt to:
SGOS#(config failover)
edit group_address
This changes the prompt to:
SGOS#(config failover group_address)
- subcommands-
option 1: disable
option 2: enable
option 3: encrypted-secret encrypted_secret
option 4: exit
option 5: interval interval_in_seconds
option 6: master
option 7: multicast-address multicast_address
option 8: no {interval | multicast-address | master | priority | secret}
option 9: priority relative_priority
option 10:secret secret
option 11:view
Table 3.45: #(config failover group_address)
133
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) failover
SGOS#(config failover) edit 10.9.17.135
SGOS#(config failover 10.9.17.135) master
ok
SGOS#(config failover 10.9.17.135) exit
SGOS#(config failover) exit
SGOS#(config)
#(config) forwarding
The ProxySG supports the forwarding of content requests to defined hosts and groups through policy.
You must add each host and group to use in forwarding content requests. To define a group, add a
host and use the group= subcommand to add a group. Add up to 512 hosts and up to 32 groups.
To set the default load-balancing and host-affinity values, use the (config forwarding)
load-balance or (config forwarding)host-affinity commands. However, three methods are
available to set per host or per group settings. You can:
• Use the (config forwarding) create command.
• Use the (config forwarding) load-balance or (config forwarding) host-affinity
commands.
• Use the (config forwarding host_alias) or (config forwarding group_alias) commands
(see “#(config forwarding) edit host_alias” on page 139 or“#(config forwarding) edit
group_alias” on page 138).
After adding forwarding hosts and groups, you can create a default sequence, which provides you
with default forwarding and failover capabilities in the event that no policy gestures apply. However,
Blue Coat does not recommend that you use the default sequence as a substitute for fully specifying
forwarding behavior in policy.
134
Chapter 3: Privileged Mode Configure Commands
A default failover sequence (and any sequence specified in policy) works by allowing healthy hosts to
take over for an unhealthy host (one that is failing its DNS Resolution or its health check). The
sequence specifies the order of failover, with the second host taking over for the first host, the third
taking over for the second, and so on. All members must be pre-existing hosts and groups, and no
member can be in the group more than once.
Note: The default sequence replaces the deprecated default and backup settings. The default
sequence (if present) is applied only if no applicable forwarding gesture is in policy.
The ProxySG automatically performs health checks for all forwarding hosts. When the ProxySG
performs a health check, it determines whether the host returns a response and is available to fulfill a
content request. A positive health check indicates:
• An end-to-end connection exists.
• The host is up and running and will most likely be able to return a response.
Syntax
forwarding
This changes the prompt to:
SGOS#(config forwarding)
- subcommands-
option 1: create {host_alias host_name [default-schemes] [http[=port | =no]]
[https[=port | =no]] [ftp[=port | =no]] [mms[=port | =no]] [rtsp[=port |
=no]] [tcp=port] [telnet[=port | =no]] [ssl-verify-server[=yes | =no]]
[group=group_name] [server | proxy] [load-balance={no | round-robin |
least-connections}] [host-affinity={no | client-ip-address |
accelerator-cookie}] [host-affinity-ssl={no | client-ip-address |
accelerator-cookie | ssl-session-id}]}
option 2: delete {all | group group_name | host host_alias}
option 3: download-via-forwarding {disable | enable}
option 4: edit host_or_group_alias—changes the prompt (see either“#(config forwarding)
edit group_alias” on page 138 or“#(config forwarding) edit host_alias” on
page 139)
option 5: exit
option 6: failure-mode {closed | open}
option 7: host-affinity
sub-option 1: method {accelerator-cookie [host_or_group_alias] | client-ip-address
[host_or_group_alias] | default host_or_group_alias | no
[host_or_group_alias]}
sub-option 2: ssl-method {accelerator-cookie [host_or_group_alias] |
client-ip-address [host_or_group_alias] | default
host_or_group_alias | no [host_or_group_alias] | ssl-session-id
[host_or_group_alias]}
sub-option 3: timeout minutes
135
Blue Coat ProxySG Command Line Interface Reference
136
Chapter 3: Privileged Mode Configure Commands
137
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) forwarding
SGOS#(config forwarding) download-via-forwarding disable
ok
SGOS#(config forwarding) failure-mode closed
ok
SGOS#(config forwarding) host-affinity method client-ip-address
ok
SGOS#(config forwarding) load-balance hash domain group_name1
ok
SGOS#(config forwarding) exit
SGOS#(config)
Syntax
forwarding
This changes the prompt to:
SGOS#(config forwarding)
edit group_alias
This changes the prompt to:
SGOS#(config forwarding group_alias)
- subcommands-
option 1: exit
option 2: host-affinity
sub-option 1: method {accelerator-cookie | client-ip-address | default}
sub-option 2: ssl-method {accelerator-cookie | client-ip-address | default |
ssl-session-id}
option 3: load-balance
138
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) forwarding
SGOS#(config forwarding) edit test_group
SGOS#(config forwarding test_group) load-balance hash domain
ok
SGOS#(config forwarding test_group) exit
SGOS#(config forwarding) exit
SGOS#(config)
Syntax
forwarding
139
Blue Coat ProxySG Command Line Interface Reference
- subcommands-
option 1: exit
option 2: ftp [port]
option 3: group group_name
option 4: host host_name
option 5: host-affinity
sub-option 1: method {accelerator-cookie | client-ip-address | default}
sub-option 2: ssl-method {accelerator-cookie | client-ip-address | default |
ssl-session-id}
option 6: http [port]
option 7: https [port]
option 8: load-balance method {default | least-connections | round-robin}
option 9: mms [port]
option 10:no {ftp | group | host-affinity {method | ssl-method} | http | https |
load-balance method | mms | rtsp | ssl-verify-server | tcp | telnet}
option 11:proxy
option 12:rtsp [port]
option 13:server
option 14:ssl-verify-server
option 15:tcp port
option 16:telnet [port]
option 17:view
140
Chapter 3: Privileged Mode Configure Commands
141
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) forwarding
SGOS#(config forwarding) edit test_host
SGOS#(config forwarding test_host) server
ok
SGOS#(config forwarding test_host) exit
SGOS#(config forwarding) exit
SGOS#(config)
#(config) front-panel
Use this command to configure the front panel. For instance, the front-panel LCD behavior can be
configured using the backlight command.
Syntax
front-panel
This changes the prompt to:
SGOS#(config front-panel)
- subcommands-
option 1: backlight
sub-option 1: flash
sub-option 2: state {off | on | timeout}
sub-option 3: timeout seconds
option 2: exit
option 3: hashed-pin hashed_PIN
option 4: no backlight flash
option 5: pin PIN
option 6: view
142
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) front-panel
SGOS#(config front-panel) backlight state timeout
ok
SGOS#(config front-panel) backlight timeout 60
ok
SGOS#(config front-panel) exit
SGOS#(config)
#(config) ftp
Use this command to configure FTP parameters.
Syntax
option 1: ftp login-syntax {raptor | checkpoint}
option 2: ftp no welcome-banner
143
Blue Coat ProxySG Command Line Interface Reference
#(config) health-check
Use this command to configure health check settings.
Note: Using the pause command to temporarily pause the forwarding or SOCKS gateways health
checks causes the system to stay in pause mode until you use the resume command to end
it—rebooting the system will not cause paused health checks to resume.
Syntax
health-check
This changes the prompt to:
SGOS#(config health-check)
- subcommands-
option 1: create entry_name
option 2: delete entry_name
option 3: edit entry_name—changes the prompt (see “#(config health-check) edit
entry_name” on page 146)
option 4: exit
option 5: forwarding
sub-option 1: failcount count
sub-option 2: interval seconds
sub-option 3: pause
sub-option 4: resume
sub-option 5: type {http object | https object | layer-3 | layer-4}
option 6: socks-gateways
sub-option 1: failcount count
sub-option 2: interval seconds
sub-option 3: pause
sub-option 4: resume
sub-option 5: type {layer-3 | layer-4}
option 7: statistics
144
Chapter 3: Privileged Mode Configure Commands
option 8: view
Table 3.51: #(config health-check)
145
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) health-check
SGOS#(config health-check) socks-gateways type layer-3
ok
SGOS#(config health-check) exit
SGOS#(config)
Syntax
health-check
This changes the prompt to:
SGOS#(config health-check)
edit entry_name
This changes the prompt to:
SGOS#(config health-check entry_name)
- subcommands-
option 1: exit
option 2: failure-trigger trigger
option 3: http url url
option 4: https url url
option 5: icap service-name service_name
option 6: interval
sub-option 1: healthy interval_in_seconds
sub-option 2: sick interval_in_seconds
option 7: layer-3 hostname hostname
option 8: layer-4
sub-option 1: hostname hostname
sub-option 2: port port
option 9: no notify
option 10:notify
option 11:perform-health-check
option 12:statistics
option 13:threshold
sub-option 1: healthy threshold
sub-option 2: sick threshold
option 14:type {layer-3 | layer-4 | http | https | icap | websense4-offbox}
146
Chapter 3: Privileged Mode Configure Commands
option 15:view
option 16:websense-offbox {default-url | service-name service_name | url test_url}
Table 3.52: #(config health-check entry_name)
147
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) health-check
SGOS#(config health-check) edit testhealthcheck
SGOS#(config health-check testhealthcheck) type https
ok
SGOS#(config health-check testhealthcheck) exit
SGOS#(config health-check) exit
SGOS#(config)
#(config) hide-advanced
See “# hide-advanced” on page 27 in Chapter 2: “Standard and Privileged Mode Commands”.
#(config) hostname
Use this command to assign a name to a ProxySG. Any descriptive name that helps identify the
system will do.
Syntax
option 1: hostname name
Table 3.53: #(config) hostname
Example
SGOS#(config) hostname "Blue Coat Systems Demo"
ok
#(config) http
Use this command to configure HTTP settings.
Syntax
option 1: http add-header {client-ip | front-end-https | via | x-forwarded-for}
option 2: http byte-ranges
option 3: http cache {authenticated-data | expired | personal-pages}
option 4: http force-ntlm
option 5: http ftp-proxy-url {root-dir | user-dir}
option 6: http no
sub-option 1: add-header {client-ip | front-end-https | via | x-forwarded-for}
sub-option 2: byte-ranges
sub-option 3: cache {authenticated-data | expired | personal-pages}
sub-option 4: force-ntlm
sub-option 5: parse meta-tag cache-control | expires | pragma-no-cache
148
Chapter 3: Privileged Mode Configure Commands
149
Blue Coat ProxySG Command Line Interface Reference
150
Chapter 3: Privileged Mode Configure Commands
151
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) http version 1.1
ok
SGOS#(config) http byte-ranges
ok
SGOS#(config) http no force-ntlm
ok
SGOS#(config)
#(config) icp
ICP is a caching communication protocol. It allows a cache to query other caches for an object, without
actually requesting the object. By using ICP, the ProxySG determines if the object is available from a
neighboring cache, and which ProxySG will provide the fastest response.
Once you have created the ICP or advanced forwarding configuration file, place the file on an FTP or
HTTP server so it can be downloaded to the ProxySG.
Syntax
option 1: icp no path
option 2: icp path url
Table 3.55: #(config) icp
no path Negates the path previously set using the command icp
path url.
path url Specifies the network location of the ICP configuration file to
download.
Example
SGOS#(config) icp path 10.25.36.47/files/icpconfig.txt
ok
#(config) identd
IDENTD implements the TCP/IP IDENT user identification protocol. IDENTD operates by looking
up specific TCP/IP connections and returning the user name of the process owning the connection.
Syntax
identd
This changes the prompt to:
SGOS#(config identd)
-subcommands-
option 1: disable
option 2: enable
option 3: exit
152
Chapter 3: Privileged Mode Configure Commands
option 4: view
Table 3.56: #(config identd)
Example
SGOS#(config) identd
SGOS#(config identd) enable
ok
SGOS#(config identd) exit
SGOS#(config)
#(config) im
You can configure the IM proxy settings, assign an administrator buddy name for each client type, and
determine how exception messages are sent.
Syntax
option 1: im aol-admin-buddy buddy
option 2: im aol-direct-proxy-host host
option 3: im aol-http-host host
option 4: im aol-native-host host
option 5: im buddy-spoof-message message_text
option 6: im exceptions {in-band | out-of-band}
option 7: im explicit-proxy-vip virtual_IP_address
option 8: im msn-admin-buddy buddy
option 9: im msn-http-host host
option 10:im msn-native-host host
option 11:no
option 12:im yahoo-admin-buddy buddy
option 13:im yahoo-download-host host
option 14:im yahoo-http-host host
option 15:im yahoo-http-chat-host host
option 16:im yahoo-native-host host
option 17:im yahoo-upload-host host
153
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) im exceptions in-band
ok
SGOS#(config) im yahoo-admin-buddy testname
ok
#(config) inline
See “# inline” on page 27 in Chapter 2: “Standard and Privileged Mode Commands”.
#(config) installed-systems
Use this command to manage the list of installed ProxySG systems.
Syntax
isntalled-systems
This changes the prompt to:
SGOS#(config installed-systems)
-subcommands-
option 1: default system_number
option 2: delete system_number
option 3: exit
154
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) installed-systems
SGOS#(config installed-systems) default 2
ok
SGOS#(config installed-systems) lock 1
ok
SGOS#(config installed-systems) exit
SGOS#(config)
#(config) interface
This command enables you to configure the network interfaces.
The built-in Ethernet adapter is configured for the first time using the setup console. If you want to
modify the built-in adapter configuration, or if you have multiple adapters, you can configure each
one using the command-line interface.
Syntax
interface fast-ethernet interface_number
155
Blue Coat ProxySG Command Line Interface Reference
- subcommands-
option 1: accept-inbound
option 2: exit
option 3: full-duplex
option 4: half-duplex
option 5: ip-address ip_address
option 6: instructions {accelerated-pac | central-pac url | default-pac | proxy}
option 7: link-autosense
option 8: mtu-size mtu_size
option 9: no {accept-inbound | link-autosense}
option 10:speed {10 | 100 | 1gb}
option 11:subnet-mask mask
Table 3.60: #(config interface interface_number)
156
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) interface 0
SGOS#(config interface 0) ip-address 10.252.10.54
ok
SGOS#(config interface 0) instructions accelerated-pac
ok
SGOS#(config interface 0) subnet-mask 255.255.255.0
ok
SGOS#(config interface 0) exit
SGOS#(config) interface 1
SGOS#(config interface 1) ip-address 10.252.10.72
ok
SGOS#(config interface 1) subnet-mask 255.255.255.0
ok
SGOS#(config interface 1) exit
SGOS#(config)
#(config) ip-default-gateway
A key feature of the ProxySG is the ability to distribute traffic originating at the cache through
multiple IP gateways. Further, you can fine tune how the traffic is distributed among gateways. This
feature works with any routing protocol (for example, static routes or RIP).
Note: Load balancing through multiple IP gateways is independent from the per-interface load
balancing that the ProxySG automatically does when more than one network interface is
installed.
Syntax
ip-default-gateway ip_address [preference group (1-10)] [weight (1-100)]
157
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) ip-default-gateway 10.25.36.47
ok
#(config) license-key
Use this command to configure license key settings.
Syntax
option 1: license-key auto-update {disable | enable}
option 2: license-key no path
option 3: license-key path url
Table 3.62: #(config) license-key
Example
SGOS#(config) license-key no path
ok
#(config) line-vty
When you have a CLI session, that session will remain open as long as there is activity. If you leave the
session idle, the connection will eventually timeout and you will have to reconnect. The default
timeout is five minutes. You can set the timeout and other session-specific options using the line-vty
command.
Syntax
line-vty
This changes the prompt to:
SGOS#(config line-vty)
- subcommands-
option 1: exit
option 2: length num_lines_on_screen
option 3: no length
option 4: telnet {no transparent | transparent}
option 5: timeout minutes
option 6: view
158
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) line-vty
SGOS#(config line-vty) timeout 60
ok
SGOS#(config line-vty) exit
SGOS#(config)
#(config) load
See “# load” on page 32 in Chapter 2: “Standard and Privileged Mode Commands”.
#(config) netbios
Use this command to configure NETBIOS.
Syntax
netbios
This changes the prompt to:
SGOS#(config netbios)
option 1: exit
option 2: nbstat requester {retries | timeout} | responder {enable | disable}
option 3: view
159
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) netbios
SGOS#(config netbios) nbstat responder enable
ok
SGOS#(config netbios) exit
SGOS#(config)
ok
#(config) no
Use this command to negate the current settings for the archive configuration, content priority, IP
default gateway, SOCKS machine, or system upgrade path.
Syntax
option 1: no archive-configuration
option 2: no bridge bridge_name
option 3: no content {priority {regex regex | url url} | outstanding-requests
{delete | priority | revalidate} regex}
option 4: no ip-default-gateway ip_address
option 5: no serial-number
option 6: no socks-machine-id
option 7: no upgrade-path
Table 3.65: #(config) no
160
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) no archive-configuration
ok
SGOS#(config) no content priority regex http://.*cnn.com
ok
SGOS#(config) no content priority url http://www.bluecoat.com
ok
SGOS#(config) no ip-default-gateway 10.252.10.50
ok
SGOS#(config) no socks-machine-id
ok
SGOS#(config) no upgrade-path
ok
#(config) ntp
Use this command to set NTP parameters. Network Time Protocol (NTP) is a protocol that is used to
synchronize computer clock times in a network of computers. The ProxySG sets the UTC time by
connecting to an NTP server. The ProxySG includes a list of NTP servers available on the Internet. If an
NTP server is not available, you can set the time manually using the Management Console.
Syntax
option 1: ntp clear
option 2: ntp disable
option 3: ntp enable
option 4: ntp interval minutes
option 5: ntp no server domain_name
option 6: ntp server domain_name
Table 3.66: #(config) ntp
161
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) ntp server clock.tricity.wsu.edu
ok
#(config) policy
Use this command to specify central and local policy file location, status, and other options.
Syntax
option 1: policy central-path url
option 2: policy forward-path url
option 3: policy local-path url
option 4: policy no
sub-option 1: central-path
sub-option 2: forward-path
sub-option 3: local-path
sub-option 4: notify
sub-option 5: subscribe
sub-option 6: vpm-cpl-path
sub-option 7: vpm-software
sub-option 8: vpm-xml-path
option 5: policy notify
option 6: policy order order of v)pm, l)ocal, c)entral
option 7: policy poll-interval minutes
option 8: policy poll-now
option 9: policy proxy-default {allow | deny}
option 10:policy reset
option 11:policy subscribe
option 12:policy vpm-cpl-path url
option 13:policy vpm-software url
option 14:policy vpm-xml-path url
162
Chapter 3: Privileged Mode Configure Commands
163
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) policy local-path http://www.server1.com/local.txt
ok
SGOS#(config) policy central-path http://www.server2.com/central.txt
ok
SGOS#(config) policy poll-interval 10
ok
#(config) profile
Sets your system profile to normal (the default setting) or portal (to accelerate the server).
Syntax
option 1: profile bwgain
option 2: profile normal
option 3: profile portal
Table 3.68: #(config) profile
Example
SGOS#(config) profile normal
ok
#(config) restart
Use this command to set restart options for the ProxySG.
Syntax
option 1: restart core-image {context | full | keep number | none}
option 2: restart mode {hardware | software}
164
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) restart mode software
ok
#(config) return-to-sender
The return-to-sender feature eliminates unnecessary network traffic when the three following
conditions are met:
• The ProxySG has connections to clients or servers on a different subnet.
• The shortest route to the clients or servers is not through the default gateway.
• There are no static routes or RIP routes defined that apply to the IP addresses of the clients and
servers.
Under these conditions, if the return-to-sender feature is enabled, the ProxySG remembers the MAC
address of the last hop for a packet from the client or server and sends any responses or requests to the
MAC address instead of the default gateway.
Under the same conditions, if return-to-sender is disabled, the ProxySG sends requests or responses to
the default gateway, which then sends the packets to the gateway representing the last hop to the
ProxySG for the associated connection. This effectively doubles the number of packets transmitted on
the LAN compared to when return-to-sender is enabled.
Inbound return-to-sender affects connections initiated to the ProxySG by clients. Outbound
return-to-sender affects connections initiated by the ProxySG to origin servers.
Note: Return-to-sender functionality should only be used if static routes cannot be defined for the
clients and servers or if routing information for the clients and servers is not available through
RIP packets.
Syntax
option 1: return-to-sender inbound {disable | enable}
option 2: return-to-sender outbound {disable | enable}
option 3: return-to-sender version {1 | 2}
165
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) return-to-sender inbound enable
ok
#(config) reveal-advanced
See “# reveal-advanced” on page 40 in Chapter 2: “Standard and Privileged Mode Commands”.
#(config) rip
Use this command to set RIP (Routing Information Protocol) configuration options.
Using RIP, a host and router can send a routing table list of all other known hosts to its closest
neighbor host every 30 seconds. The neighbor host passes this information on to its next closest
neighbor and so on until all hosts have perfect knowledge of each other. (RIP uses the hop count
measurement to derive network distance.) Each host in the network can then use the routing table
information to determine the most efficient route for a packet.
The RIP configuration is defined in a configuration file. To configure RIP, first create a text file of RIP
commands and then load the file by using the load command.
Syntax
option 1: rip disable
166
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) rip path 10.25.36.47/files/rip.txt
ok
#(config) security
The ProxySG provides the ability to authenticate and authorize explicit and transparent proxy users
using industry-standard authentication services. The supported authentication services are:
• Certificate—Authentication using X.509 Certificates
• Oblix COREid—Authentication using an Oblix COREid Access Server
• Forms-based Authentication—Authentication using forms-based authentication exceptions
• LDAP—Lightweight Directory Access Protocol
• Local—Users and groups stored locally on the ProxySG
• Netegrity SiteMinder—Authentication using a Netegrity SiteMinder server
• NTLM—Windows NT Challenge Response
• Policy Substitution—Identifying and authorizing users based on information in the request to the
ProxySG
• RADIUS—Remote Authentication for Dialup Users
• Sequence—Associating realms with other realms to allow Blue Coat to search for the proper
authentication credentials
The ProxySG provides a flexible authentication architecture that supports multiple services (LDAP,
NTLM, and the like) with multiple backend servers (for example, LDAP directory servers together
with NT domains with no trust relationship, and so forth) within each authentication scheme with the
introduction of the realm.
A realm authenticates and authorizes users for access to Blue Coat Systems ProxySG services using
either explicit proxy or transparent proxy mode. Note that multiple authentication realms can be used
on a single ProxySG. Multiple realms are essential if the enterprise is a Managed Service provider, or
the company has merged with or acquired another company, for example. Even for companies using
only one protocol, multiple realms might be necessary—as in the case of a company using an LDAP
167
Blue Coat ProxySG Command Line Interface Reference
server with multiple authentication boundaries. You can use realm sequencing to search the multiple
realms all at once.
A realm configuration includes:
• realm name
• authentication service—(LDAP, Local, NTLM, RADIUS, Certificate).
• external server configuration—backend server configuration information, such as host, port, and
other relevant information based on the selected service.
• authentication schema—the definition used to authenticate users.
• authorization schema—the definition used to (1) authorize users for membership in defined
groups, and (2) check for attributes that trigger evaluation against any defined policy rules.
For details, refer to the “Using Authentication Services” chapter of the Blue Coat Configuration and
Management Guide.
Syntax
option 1: security allowed-access {add | remove} source_ip [ip_mask]
option 2: security authentication-form
sub-option 1: create form_name
sub-option 2: delete form_name
sub-option 3: inline form_name eof_marker
sub-option 4: load form_name
sub-option 5: no path form_name
sub-option 6: path [form_name] path
option 3: security certificate
sub-option 1: create-realm realm_name
sub-option 2: delete-realm realm_name
sub-option 3: edit-realm realm_name—changes the prompt (see “#(config) security
certificate edit-realm realm_name” on page 175)
sub-option 4: view [realm_name]
option 4: security coreid
sub-option 1: create-realm realm_name
sub-option 2: delete-realm realm_name
sub-option 3: edit-realm realm_name—changes the prompt (see “#(config) security coreid
edit-realm realm_name” on page 177)
sub-option 4: view [realm_name]
option 5: security default-authenticate-mode {auto | sg2}
option 6: security destroy-old-password [force]
option 7: security enable-password “password”
option 8: security enforce-acl {disable | enable}
option 9: security flush-credentials
168
Chapter 3: Privileged Mode Configure Commands
169
Blue Coat ProxySG Command Line Interface Reference
170
Chapter 3: Privileged Mode Configure Commands
allowed-access add source_ip [ip_mask] Adds the specified IP to the access control
list.
remove source_ip Removes the specified IP from the access
[ip_mask] control list.
authentication-form create form_name Creates a new authentication form.
delete form_name Deletes an authentication form.
inline form_name Installs an authentication form from
eof_marker console input.
load form_name Downloads a new authentication form.
no path [form_name] Negates authentication-form
configuration.
path [form_name] path Specifies the path (URL or IP address) from
which to load an authentication form, or
the entire set of authentication forms.
certificate create-realm realm_name Creates a new certificate realm with the
name specified. The maximum number of
certificate realms is 40.
delete-realm realm_name Deletes the specified certificate realm.
edit-realm realm_name Changes the prompt. See “#(config)
security certificate edit-realm
realm_name” on page 175.
view [realm_name] Displays the configuration of all certificate
realms or just the configuration for
realm_name if specified.
coreid create-realm realm_name Creates a new Oblix COREid realm with
the name specified. The maximum number
of Oblix COREid realms is 40.
delete-realm realm_name Deletes the specified Oblix COREid realm.
edit-realm realm_name Enters edit mode for the Oblix COREid
realm. See “#(config) security
coreid edit-realm realm_name” on
page 177.
view [realm_name] Displays the configuration of all Oblix
COREid realms or, if specified, just the
configuration for realm_name.
default-authenticate- auto Sets the default authenticate.mode to
mode auto.
sg2 Sets the default authenticate.mode to
sg2.
destroy-old-passwords [force] Destroys recoverable passwords in
configuration used by previous versions.
Do not use this command if you intend to
downgrade as the old passwords are
destroyed. Specify “force” to destroy the
passwords without a prompt for
confirmation.
171
Blue Coat ProxySG Command Line Interface Reference
172
Chapter 3: Privileged Mode Configure Commands
173
Blue Coat ProxySG Command Line Interface Reference
174
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) security local create-realm testlocal
ok
SGOS#(config) security allowed-access add 10.253.101.23 255.255.255.255
ok
SGOS#(config) security enable-password enable
ok
Syntax
security certificate edit-realm realm_name
This changes the prompt to:
175
Blue Coat ProxySG Command Line Interface Reference
- subcommands-
option 1: authorization
sub-option 1: append-base-dn {disable | dn dn_to_append | enable}
sub-option 2: containter-attr-list list_of_attribute_names
sub-option 3: no {container-attr-list | realm-name}
sub-option 4: realm-name authorization_realm_name
sub-option 5: username-attribute username_attribute
option 2: cache-duration seconds
option 3: display-name display_name
option 4: exit
option 5: rename new_realm_name
option 6: view
option 7: virtual-url url
Table 3.73: #(config certificate realm_name)
176
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) security certificate edit-realm testcert
SGOS#(config certificate testcert) no container-attr-list
ok
SGOS#(config certificate testcert) cache-duration 800
ok
SGOS#(config certificate testcert) exit
SGOS#(config)
Syntax
security coreid edit-realm realm_name
This changes the prompt to:
SGOS#(config coreid realm_name)
- subcommands-
option 1: access-server-hostname hostname
option 2: access-server-id id
option 3: access-server-port port
option 4: add-header-responses disable | enable
option 5: alternate-agent
sub-option 1: accessgate-id name
sub-option 2: encrypted-secret encrypted_shared_secret
sub-option 3: host hostname
sub-option 4: port port
sub-option 5: secret shared_secret
option 6: always-redirect-offbox disable | enable
option 7: cache-duration seconds
option 8: case-sensitive disable | enable
option 9: certificate-path certificate_path
option 10:display-name display_name
option 11: encrypted-transport-pass-phrase encrypted_pass_phrase
option 12: exit
option 13: no alternate-agent | certificate-path
option 14: primary-agent
sub-option 1: accessgate-id name
sub-option 2: encrypted-secret encrypted_shared_secret
sub-option 3: host hostname
sub-option 4: port port
177
Blue Coat ProxySG Command Line Interface Reference
178
Chapter 3: Privileged Mode Configure Commands
179
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) security coreid edit-realm coreid_1
SGOS#(config coreid coreid_1) access-server-hostname AccessServer_1
SGOS#(config coreid coreid_1) cache-duration 800
SGOS#(config coreid coreid_1) exit
SGOS#(config)
Syntax
security ldap edit-realm realm_name
This changes the prompt to:
SGOS#(config ldap realm_name)
- subcommands-
option 1: alternate-server host [port]
option 2: cache-duration seconds
180
Chapter 3: Privileged Mode Configure Commands
181
Blue Coat ProxySG Command Line Interface Reference
alternate-server host [port] Specifies the alternate server host and port.
cache-duration seconds Specifies the length of time to cache
credentials for this realm.
case-sensitive disable | enable Specifies whether or not the LDAP server
is case-sensitive.
default-group-name default_group_name If the validate-authorized-user
command is disabled and a
default-group-name is configured, the
default-group-name is used as the group
name for non-existent users.
display-name display_name Specifies the display name for this realm.
distinguished-name user-attribute-type Specifies the attribute type that defines the
user_attribute_type relative user name.
base-dn {add | demote Adds/demotes/promotes/
| promote | remove} removes a base DN from the base DN list,
base_dn or clears the base DN list.
exit Exits configure security ldap mode and
returns to configure mode.
membership-attribute attribute_name Specifies the attribute that defines group
membership.
membership-type group | user Specifies the membership type. Specify
group if user memberships are specified in
groups. Specify user if memberships are
specified in users.
membership-username full | relative Specifies the username type to use during
membership lookups. The full option
specifies that the user's FQDN is used
during membership lookups, and
relative option specifies that the user's
relative username is used during
membership lookups. Only one can be
selected at a time.
no alternate-server | Clears the alternate-server or
membership-attribute values.
default-group-name Clears the default group name.
182
Chapter 3: Privileged Mode Configure Commands
183
Blue Coat ProxySG Command Line Interface Reference
184
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) security ldap edit-realm testldap
SGOS#(config ldap testldap) server-type iplanet
ok
SGOS#(config ldap testldap) spoof-authentication origin
ok
SGOS#(config ldap testldap) exit
SGOS#(config)
Syntax
security local edit-realm realm_name
This changes the prompt to:
SGOS#(config local realm_name)
- subcommands-
option 1: cache-duration seconds
option 2: default-group-name default_group_name
option 3: display-name display_name
option 4: exit
option 5: local-user-list local_user_list_name
option 6: rename new_realm_name
option 7: spoof-authentication {none | origin | proxy}
option 8: view
option 9: virtual-url url
Table 3.76: #(config local realm_name)
185
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) security local edit-realm testlocal
SGOS#(config local testlocal) cache-duration 1500
ok
SGOS#(config local testlocal) spoof-authentication proxy
ok
SGOS#(config local testlocal) exit
SGOS#(config)
Syntax
security local-user-list edit local_user_list
This changes the prompt to:
SGOS#(config local-user-list local_user_list)
186
Chapter 3: Privileged Mode Configure Commands
- subcommands-
option 1: disable-all
option 2: enable-all
option 3: exit
option 4: group
sub-option 1: clear
sub-option 1: create group_name
sub-option 2: delete group_name [force]
option 5: lockout-duration seconds
option 6: max-failed-attempts attempts
option 7: no [lockout-duration | max-failed-attempts | reset-interval]
option 8: reset-interval seconds
option 9: user
sub-option 1: clear
sub-option 2: create user_name
sub-option 3: delete user_name [force]
sub-option 4: edit user_name—changes the prompt to #SGOS(config local-user-list
local_user_list user_name)
disable | enable
exit
group {add | remove} group_name
hashed-password hashed_password
password password
view
sub-option 5: view
187
Blue Coat ProxySG Command Line Interface Reference
disable | enable
Exits configure local-user-list
user_list mode and returns to
configure local-user-list mode.
exit
Adds/removes the specified group
from the user.
hashed-password
hashed_password Displays the user account.
password password
view
view Displays all users and groups in the local
user list.
188
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) security local-user-list edit testlul
SGOS#(config local-user-list testlul) user create testuser
ok
SGOS#(config local-user-list testlul) user edit testuser
SGOS#(config local-user-list testlul testuser) enable
ok
SGOS#(config local-user-list testlul testuser) exit
SGOS#(config local-user-list testlul) exit
SGOS#(config)
Syntax
security ntlm edit-realm realm_name
This changes the prompt to:
SGOS#(config ntlm realm_name)
- subcommands-
option 1: alternate-server host [port]
option 2: cache-duration seconds
option 3: credentials-basic {disable | enable}
option 4: credentials-ntlm {disable | enable}
option 5: display-name display_name
option 6: exit
option 7: no alternate-server
option 8: primary-server host [port]
option 9: rename new_realm_name
option 10:timeout seconds
option 11:ssl {disable | enable}
option 12:ssl-verify-server {disable | enable}
option 13:view
option 14:virtual-url url
189
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) security ntlm edit-realm testntlm
SGOS#(config ntlm testntlm) cache-duration 1500
ok
SGOS#(config ntlm testntlm) no alternate server
ok
SGOS#(config ntlm testntlm) exit
SGOS#(config)
Syntax
security policy-substitution edit-realm realm_name
This changes the prompt to:
190
Chapter 3: Privileged Mode Configure Commands
191
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) security policy-substitution edit-realm PS1
SGOS#(config policy-substitution PS1) authorization-realm-name LDAP1
SGOS#(config policy-substitution PS1) username $(netbios.messenger-username)
SGOS#(config policy-substitution PS1) full-username
cn=$(netbios.messenger-username),cn=users,dc=$(netbios.computer-domain),
dc=company,dc=com
Syntax
security radius edit-realm realm_name
192
Chapter 3: Privileged Mode Configure Commands
193
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) security radius edit-realm testradius
SGOS#(config radius testradius) server-retry 8
ok
SGOS#(config radius testradius) spoof-authentication proxy
ok
SGOS#(config radius testradius) exit
SGOS#(config)
194
Chapter 3: Privileged Mode Configure Commands
Syntax
security sequence edit-realm realm_sequence_name
This changes the prompt to:
SGOS#(config sequence realm_sequence_name)
option 1: display-name display_name
option 2: exit
option 3: ntlm-only-once {disable | enable}
option 4: realm {add | demote | promote | remove} realm_name | clear
option 5: rename new_realm_name
option 6: view
option 7: virtual-url url
Table 3.81: #(config sequence realm_sequence_name)
195
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) security sequence edit-realm testsequence
SGOS#(config sequence testsequence) ntlm-only-once disable
ok
SGOS#(config sequence testsequence) realm clear
ok
SGOS#(config sequence testsequence) exit
SGOS#(config)
Syntax
security siteminder edit-realm realm_name
This changes the prompt to:
SGOS#(config siteminder realm_name)
- subcommands-
option 1: add-header-responses {enable | disable}
option 2: alternate-agent {agent-name | encrypted-shared-secret | host | port |
shared-secret | always-redirect-offbox}
option 3: always-redirect-offbox {enable | disable}
option 4: cache-duration seconds
option 5: case-sensitive {enable | disable}
option 6: display-name display_name
option 7: exit
option 8: no
option 9: primary-agent {agent-name | encrypted-shared-secret | host | port |
shared-secret | always-redirect-offbox}
option 10:protected-resource-name resource-name
option 11:rename new_realm_name
option 12:server-mode {failover | round-robin}
option 13:siteminder-server {create | delete | edit}
option 14:ssl {enable | disable}
option 15:ssl-verify-agent {enable | disable}
option 16:timeout seconds
option 17:view
option 18:virtual-url url
196
Chapter 3: Privileged Mode Configure Commands
197
Blue Coat ProxySG Command Line Interface Reference
198
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) security siteminder edit-realm test2
SGOS#(config siteminder test2) server-mode round-robin
ok
SGOS#(config siteminder test2) ssl enable
ok
SGOS#(config siteminder test2) exit
SGOS#(config)
#(config) serial-number
This command configures the ProxySG serial number.
Syntax
option 1: serial-number serial_number
Table 3.83: #(config) serial-number
Example
SGOS#(config) serial-number xxx
ok
#(config) services
Use this command to configure DNS, Endpoint Mapper FTP, HTTPS, IM, SSH, and Telnet services.
Syntax
services
This changes the prompt to:
SGOS#(config services)
199
Blue Coat ProxySG Command Line Interface Reference
- subcommands-
option 1: aol-im—changes the prompt (see “#(config services) aol-im” on page 202)
option 2: dns—changes the prompt (see “#(config services) dns” on page 203)
option 3: exit
option 4: epmapper—changes the prompt (see “#(config services) epmapper” on
page 204)
option 5: ftp—changes the prompt (see “#(config services) ftp” on page 205)
option 6: http—changes the prompt (see “#(config services) http” on page 206)
option 7: https—changes the prompt (see “#(config services) https” on page 208)
option 8: http-console—changes the prompt (see “#(config services) http-console” on
page 210)
option 9: https-console—changes the prompt (see “#(config services) https-console” on
page 211)
option 10:mms—changes the prompt (see “#(config services) mms” on page 213)
option 11:msn-im—changes the prompt (see “#(config services) msn-im” on page 214)
option 12:rtsp—changes the prompt (see “#(config services) rtsp” on page 215)
option 13:socks—changes the prompt (see “#(config services) socks” on page 217)
option 14:ssh-console—changes the prompt (see “#(config services) ssh-console” on
page 218)
option 15:tcp-tunnel—changes the prompt (see “#(config services) tcp-tunnel” on page 220)
option 16:telnet—changes the prompt (see “#(config services) telnet” on page 221)
option 17:telnet-console—changes the prompt (see “#(config services) telnet-console” on
page 223)
option 18:view
option 19:yahoo-im—changes the prompt (see “#(config services) yahoo-im” on page 224)
Table 3.84: #(config services)
200
Chapter 3: Privileged Mode Configure Commands
201
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config services) view
Port: 8080 Type: http
Properties: enabled, explicit-proxy
Port: 80 Type: http
Properties: enabled, transparent, explicit-proxy
Port: 21 Type: ftp
Properties: enabled, transparent
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
aol-im
This changes the prompt to:
SGOS#(config services aol-im)
- subcommands-
option 1: attribute send-client-ip {disable | enable} port
option 2: create port
option 3: delete port
option 4: disable port
option 5: enable port
option 6: exit
option 7: view
Table 3.85: #(config services aol-im)
202
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) aol-im
SGOS#(config services aol-im) create 2003
ok
SGOS#(config services aol-im) exit
SGOS#(config services)
Syntax
services
This changes the prompt to:
SGOS#(config services)
dns
This changes the prompt to:
SGOS#(config services dns)
- subcommands-
option 1: attribute
sub-option 1: explicit {disable | enable} [ip:]port
sub-option 2: transparent {disable | enable} [ip:]port
option 2: create [ip:]port
option 3: delete [ip:]port
option 4: disable [ip:]port
option 5: enable [ip:]port
option 6: exit
option 7: view
Table 3.86: #(config services dns)
203
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) dns
SGOS#(config services dns) create 1
ok
SGOS#(config services dns) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
epmapper
This changes the prompt to:
SGOS#(config services epmapper)
Subcommands
option 1: attribute send-client-ip {disable | enable} port
option 2: create port
option 3: delete port
option 4: disable port
option 5: enable port
option 6: exit
option 7: view
Table 3.87: #(config services-epmapper)
204
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) epmapper
SGOS#(config services epmapper) create 136
ok
SGOS#(config services epmapper) attribute send-client-ip enable 136
ok
SGOS#(config services) view
Port: 136 IP: 0.0.0.0 Type: epmapper
Properties: transparent, explicit, enabled, send-client-ip
Syntax
services
This changes the prompt to:
SGOS#(config services)
ftp
This changes the prompt to:
SGOS#(config services ftp)
- subcommands-
option 1: attribute {explicit {disable | enable} [ip:]port | passive-mode {disable
| enable} [ip:]port | transparent {disable | enable} [ip:]port}
option 2: create [ip:]port
option 3: delete [ip:]port
option 4: disable [ip:]port
option 5: enable [ip:]port
option 6: exit
option 7: view
205
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) ftp
SGOS#(config services ftp) create 2003
ok
SGOS#(config services ftp) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
http
This changes the prompt to:
SGOS#(config services http)
- subcommands-
option 1: attribute
sub-option 1: authenticate-401 {disable | enable} [ip:]port
sub-option 2: explicit {disable | enable} [ip:]port
sub-option 3: send-client-ip {disable | enable} [ip:]port
sub-option 4: transparent {disable | enable} [ip:]port
206
Chapter 3: Privileged Mode Configure Commands
207
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) http
SGOS#(config services http) create 8085
ok
SGOS#(config services http) attribute authenticate-401 enable 8085
ok
SGOS#(config services http) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
https
This changes the prompt to:
SGOS#(config services https)
- subcommands-
option 1: attribute
sub-option 1: ccl ip:port
sub-option 2: cipher-suite ip:port [cipher-suite]
sub-option 3: forward-client-cert {disable | enable} ip:port
sub-option 4: send-client-ip {disable | enable} ip:port
sub-option 5: ssl-protocol-version {sslv2 | sslv3 | tlsv1 | sslv2v3| sslv2tlsv1 |
sslv3tlsv1 | sslv2v3tlsv1} ip:port
sub-option 6: verify-client {disable | enable} ip:port
option 2: create ip:port keyring id
option 3: delete
sub-option 1: attribute ccl ip:port
sub-option 2: ip:port
option 4: disable ip:port
option 5: enable ip:port
option 6: exit
option 7: view
208
Chapter 3: Privileged Mode Configure Commands
209
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) https
SGOS#(config services https) create 10.25.36.47:8085 default
ok
SGOS#(config services https) view
Port: 8085 IP: 10.25.36.47 Type: https
Keyring: default
Properties: transparent, explicit, enabled
SSL Protocol version: SSLv2v3TLSv1
CA Certificate List: not configured
Cipher suite:
RC4-MD5:RC4-SHA:DES-CBC3-SHA:DES-CBC3-MD5:RC2-CBC-MD5:RC4-64-MD5:DES-CBC-SHA:DE
S-CBC-MD5:EXP1024-RC4-MD5:EXP1024-RC4-SHA:EXP1024-RC2-CBC-MD5:EXP1024-DES-CBC-S
HA:EXP-RC4-MD5:EXP-RC2-CBC-MD5:EXP-DES-CBC-SHA:+SSLv2:+SSLv3+LOW:+SSLv2+LOW:
+EXPO
SGOS#(config services https) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
http-console
This changes the prompt to:
SGOS#(config services http-console)
- subcommands-
option 1: create [ip:]port
option 2: delete [ip:]port
option 3: disable [ip:]port
option 4: enable [ip:]port
option 5: exit
option 6: view
210
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) http-console
SGOS#(config services http-console) create 9000
ok
SGOS#(config services http-console) enable 9000
ok
SGOS#(config services http-console) view
Port: 9000 IP: 0.0.0.0 Type: management
Properties: explicit, enabled
SGOS#(config services http-console) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
https-console
This changes the prompt to:
SGOS#(config services https-console)
- subcommands-
option 1: attribute cipher-suite [ip:]port cipher-suite
option 2: create [ip:]port [keyring_id]
option 3: delete [ip:]port
option 4: disable [ip:]port
211
Blue Coat ProxySG Command Line Interface Reference
212
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) https-console
SGOS#(config services https-console) create 9000
ok
SGOS#(config services https-console) enable 9000
ok
SGOS#(config services https-console) view
Port: 9000 IP: 0.0.0.0 Type: management
Properties: explicit, enabled
SGOS#(config services https-console) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
mms
This changes the prompt to:
SGOS#(config services mms)
- subcommands-
option 1: attribute
sub-option 1: explicit {disable | enable} [ip:]port
sub-option 2: send-client-ip {disable | enable} [ip:]port
sub-option 3: transparent {{disable | enable} [ip:]port
option 2: create [ip:]port
option 3: delete [ip:]port
option 4: disable [ip:]port
option 5: enable [ip:]port
option 6: exit
option 7: view
213
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) mms
SGOS#(config services mms) create 8085
ok
SGOS#(config services mms) attribute explicit enable 8085
ok
SGOS#(config services mms) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
msn-im
This changes the prompt to:
SGOS#(config services msn-im)
- subcommands-
option 1: attribute send-client-ip {disable | enable} port
option 2: create port
214
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) msn-im
SGOS#(config services msn-im) create 8085
ok
SGOS#(config services msn-im) attribute send-client-ip enable 8085
ok
SGOS#(config services msn-im) exit
SGOS#(config services) exit
SGOS#(config)
Syntax
services
This changes the prompt to:
SGOS#(config services)
rtsp
This changes the prompt to:
SGOS#(config services rtsp)
215
Blue Coat ProxySG Command Line Interface Reference
- subcommands-
option 1: attribute
sub-option 1: explicit {disable | enable} [ip:]port
sub-option 2: send-client-ip {disable | enable} [ip:]port
sub-option 3: transparent {disable | enable} [ip:]port
option 2: create [ip:]port
option 3: delete [ip:]port
option 4: disable [ip:]port
option 5: enable [ip:]port
option 6: exit
option 7: view
Table 3.95: #(config services rtsp)
Example
SGOS#(config) services
SGOS#(config services) rtsp
SGOS#(config services rtsp) create 8085
ok
SGOS#(config services rtsp) attribute explicit enable 8085
ok
SGOS#(config services rtsp) exit
SGOS#(config services) exit
SGOS#(config)
216
Chapter 3: Privileged Mode Configure Commands
Syntax
services
This changes the prompt to:
SGOS#(config services)
socks
This changes the prompt to:
SGOS#(config services socks)
- subcommands-
option 1: create [ip]:port
option 2: delete [ip]:port
option 3: disable [ip]:port
option 4: enable [ip]:port
option 5: exit
option 6: view
Table 3.96: #(config services socks)
217
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) socks
SGOS#(config services socks) create 8085
ok
SGOS#(config services socks) enable 8085
ok
SGOS#(config services socks) exit
SGOS#(config services) exit
SGOS#(config)
Note: The ProxySG supports a combined maximum of 16 Telnet and SSH sessions. It also supports
up to 24 keys per user.
Syntax
services
This changes the prompt to:
SGOS#(config services)
ssh-console
This changes the prompt to:
SGOS#(config services ssh-console)
- subcommands-
option 1: create
sub-option 1: host-keypair {[sshv1] | [sshv2]}
sub-option 2: [ip]:port
option 2: delete
sub-option 1: client-key username key_id
sub-option 2: director-client-key key_id
sub-option 3: legacy-client-key key_id
sub-option 4: host-keypair {[sshv1] | [sshv2]}
218
Chapter 3: Privileged Mode Configure Commands
sub-option 5: [ip]:port
option 3: disable [ip]:port
option 4: enable [ip]:port
option 5: exit
option 6: import client-key username | director-client-key
option 7: view
sub-option 1: [client-key username]
sub-option 2: [director-client-key [key_id]]
sub-option 3: [host-public-key {[sshv1] | [sshv2]}]
sub-option 4: [user-list]
sub-option 5: [versions-enabled]
219
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) ssh-console
SGOS#(config services ssh-console) import client-key username
Paste client key here, end with "..." (three periods)
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAlV/xvN21VrOOK6sNuAnavWy9RsI8xgfD7OXQ4rocXrNm9kdnYBl
OzaDWgZ4mHUnTmBkmAJKaGJRfZMIQt2ZXF+biVHbOWyiznzbiDMkXEEI4PHXoqyWp5Bq7bI2RgDOVaM
M1vQT9uyenKymwZElDNe/tlRiGkDUN3/s3kX6xv0M= admin@GLYPH
...
ok
SGOS#(config services ssh-console) view client-key username
admin@adminPC 45:5C:3F:5F:EA:65:6E:CF:EE:4A:05:58:9A:C5:FB:4F
admin@GLYPH BB:20:21:4D:E0:BC:32:39:13:55:2E:B4:07:81:4F:AV
SGOS#(config services socks) exit
SGOS#(config services) exit
SGOS#(config)
Note: TCP-tunnel services are not created by default—you must create and enable them.
Syntax
services
This changes the prompt to:
SGOS#(config services)
tcp-tunnel
220
Chapter 3: Privileged Mode Configure Commands
- subcommands-
option 1: attribute
sub-option 6: explicit {disable | enable} [ip:]port}
sub-option 7: transparent {disable | enable} [ip:]port
option 2: create [ip:]port
option 3: delete [ip:]port
option 4: disable [ip:]port
option 5: enable [ip:]port
option 6: exit
option 7: view
Table 3.98: #(config services tcp-tunnel)
Example
SGOS#(config) services
SGOS#(config services) tcp-tunnel
SGOS#(config services tcp-tunnel) create 0.0.0.0:9001
ok
SGOS#(config services tcp-tunnel) view
Port: 9001 IP: 0.0.0.0 Type: tcp-tunnel
Properties: transparent, enabled
SGOS#(config services tcp-tunnel) exit
SGOS#(config services) exit
SGOS#(config)
221
Blue Coat ProxySG Command Line Interface Reference
Syntax
services
This changes the prompt to:
SGOS#(config services)
telnet
This changes the prompt to:
SGOS#(config services telnet)
- subcommands-
option 1: attribute
sub-option 1: explicit
sub-option 2: send-client-ip
sub-option 3: transparent
option 2: create [ip:]port
option 3: delete [ip:]port
option 4: disable [ip:]port
option 5: enable [ip:]port
option 6: exit
option 7: view
Table 3.99: #(config services telnet)
attribute explicit {disable | Specifies whether to accept or not to accept explicit proxy
enable} [ip:]port requests for the port and optional IP address specified.
send-client-ip Enables or disables the spoof attribute for the port and
{disable | enable} optional IP address specified.
[ip:]port
transparent Enables or disables the transparent proxy attribute for the
{disable | enable} port and optional IP address specified.
[ip:]port
create [ip:]port Creates a Telnet services port indicated by [ip:]port.
Note that if you also enable the Telnet-Console you must
use a different port for the Telnet service.
delete [ip:]port Deletes the Telnet services port indicated by [ip:]port.
disable [ip:]port Disables the Telnet services port.
enable [ip:]port Enables the Telnet services port.
exit Exits configure services telnet-console mode and returns
to configure services mode.
view Displays the Telnet services configuration.
222
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) telnet
SGOS#(config services telnet) create 10.25.36.47:24
ok
SGOS#(config services telnet) attribute send-client-ip enable 10.25.36.47:24
ok
SGOS#(config services telnet) view
Port: 23 IP: 0.0.0.0 Type: telnet
Properties: transparent, explicit, disabled
Port: 24 IP: 10.25.36.47:24 Type: telnet
Properties: explicit, enabled, send-client-ip
Syntax
services
This changes the prompt to:
SGOS#(config services)
telnet-console
This changes the prompt to:
SGOS#(config services telnet-console)
- subcommands-
option 1: create [ip:]port
option 2: delete [ip:]port
option 3: disable [ip:]port
option 4: enable [ip:]port
option 5: exit
option 6: view
Table 3.100: #(config services telnet-console)
223
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) services
SGOS#(config services) telnet-console
SGOS#(config services telnet-console) create 10.25.36.47:25
ok
SGOS#(config services telnet-console) view
Port: 25 IP: 10.25.36.47 Type: telnet-console
Properties: enabled
Syntax
services
This changes the prompt to:
SGOS#(config services)
yahoo-im
This changes the prompt to:
SGOS#(config services yahoo-im)
- subcommands-
option 1: attribute send-client-ip {disable | enable} port
option 2: create port
option 3: delete port
option 4: disable port
option 5: enable port
option 6: exit
option 7: view
224
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) services
SGOS#(config services) yahoo-im
SGOS#(config services yahoo-im) create 8085
ok
SGOS#(config services yahoo-im) attribute transparent enable 8085
ok
SGOS#(config services yahoo-im) exit
SGOS#(config services) exit
SGOS#(config)
#(config) session-monitor
Use this command to configure options to monitor RADIUS accounting messages and to maintain a
session table based on the information in these messages.
Syntax
session-monitor
This changes the prompt to:
#(config session-monitor)
-subcommands-
option 1: cluster {disable | enable | grace-period seconds | group-address
IP_Address | no | port port| synchronization-delay seconds)
option 2: disable
option 3: enable
option 4: max-entries integer
option 5: radius {acct-listen-port port | authentication {disable | enable}|
encrypted-shared-secret encrypted-secret | no | respond {disable |
enable}| shared-secret secret}
option 6: timeout minutes
option 7: view
225
Blue Coat ProxySG Command Line Interface Reference
226
Chapter 3: Privileged Mode Configure Commands
#(config) shell
Use this command to configure options for the shell.
option 1: shell max-connections
option 2: shell no
option 3: shell prompt
option 4: shell realm-banner
option 5: shell welcome-banner
Table 3.103: #(config) shell
max-connections number Maximum number of shell connections. Allowed values are between
1 and 65535.
no string Disables the prompt, realm-banner, and welcome-banner strings.
prompt string Sets the prompt that the user sees in the shell. If the string includes
white space, enclose the string in quotes.
realm-banner string Sets the realm banner that the user sees when logging into a realm
through the shell. If the string includes white space, enclose the string
in quotes.
welcome-banner string Sets the welcome banner that the users sees when logging into the
shell. If the string includes white space, enclose the string in quotes.
Example
SGOS#(config) shell prompt "Telnet Shell >"
ok
SGOS#(config) shell welcome-banner "Welcome to the Blue Coat Systems Telnet
Shell"
ok
#(config) show
See “# show” on page 40 in Chapter 2: “Standard and Privileged Mode Commands”.
227
Blue Coat ProxySG Command Line Interface Reference
#(config) snmp
Use this command to set SNMP (Simple Network Management Protocol) options for the ProxySG.
The ProxySG can be viewed using an SNMP management station. The ProxySG supports MIB-2 (RFC
1213).
Syntax
snmp
This changes the prompt to:
SGOS#(config snmp)
- subcommands-
option 1: authorize-traps
option 2: disable
option 3: enable
option 4: encrypted-read-community encrypted_password
option 5: encrypted-trap-community encrypted_password
option 6: encrypted-write-community encrypted_password
option 7: exit
option 8: no
sub-option 1: authorize-traps
sub-option 2: sys-contact
sub-option 3: sys-location
sub-option 4: trap-address {1 | 2 | 3}
option 9: read-community password
option 10:reset-configuration
option 11:snmp-writes {disable | enable}
option 12:sys-contact string
option 13:sys-location string
option 14:trap-address {1 | 2 | 3} ip_address
option 15:trap-community password
option 16:view
option 17:write-community password
Table 3.104: #(config snmp)
228
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) snmp
SGOS#(config snmp) authorize-traps
ok
SGOS#(config snmp) exit
SGOS#(config)
229
Blue Coat ProxySG Command Line Interface Reference
#(config) socks-gateways
Use this command to set the SOCKS gateways settings.
Syntax
socks-gateways
This changes the prompt to:
SGOS#(config socks-gateways)
- subcommands-
option 1: create gateway_alias gateway_host SOCKS_port [version={4 | 5
[user=username password=password] [request-compression={yes | no}]}]
option 2: delete {all | gateway gateway_alias}
option 3: edit gateway_alias—changes the prompt (see “#(config socks-gateways) edit
gateway_alias” on page 231)
option 4: exit
option 5: failure-mode {closed | open}
option 6: no path
option 7: path url
option 8: sequence
sub-option 1: add gateway_alias
sub-option 2: clear
sub-option 3: demote gateway_alias
sub-option 4: promote gateway_alias
sub-option 5: remove gateway_alias
option 9: view
Table 3.105: #(config socks-gateways)
230
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) socks-gateways
SGOS#(config socks-gateways) failure-mode open
ok
SGOS#(config socks-gateways) exit
SGOS#(config)
Syntax
socks-gateways
This changes the prompt to:
SGOS#(config socks-gateways)
edit gateway_alias
This changes the prompt to:
SGOS#(config socks-gateways gateway_alias)
- subcommands-
option 1: exit
option 2: host
option 3: no
option 4: password
option 5: port
option 6: request-compression
option 7: user
231
Blue Coat ProxySG Command Line Interface Reference
option 8: version
option 9: view
Table 3.106: #(config socks-gateways gateway_alias)
Example
SGOS#(config) socks-gateways
SGOS#(config socks-gateways) edit testgateway
SGOS#(config socks-gateways testgateway) version 5
ok
SGOS#(config socks-gateways testgateway) exit
SGOS#(config socks-gateways) exit
SGOS#(config)
#(config) socks-machine-id
Use this command to set the machine ID for SOCKS.
If you are using a SOCKS server for the primary or alternate gateway, you must specify the ProxySG
machine ID for the Identification (Ident) protocol used by the SOCKS gateway.
Syntax
socks-machine-id machine_id
232
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) socks-machine-id 10.25.36.47
ok
#(config) socks-proxy
Use this command to configure a SOCKS proxy on a ProxySG. Only one server is permitted per
ProxySG. Both SOCKSv4 and SOCKSv5 are supported by Blue Coat Systems, and both are enabled by
default.
Note: The version of SOCKS used is only configurable through policy. For example, to use only
SOCKSv5:
<proxy>
socks.version=4 deny
Syntax
socks-proxy
- subcommands-
option 1: socks-proxy accept-timeout seconds
option 2: socks-proxy connect-timeout seconds
option 3: socks-proxy max-connections num_connections
option 4: socks-proxy max-idle-timeout seconds
option 5: socks-proxy min-idle-timeout seconds
Table 3.108: #(config) socks-proxy
233
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) socks-proxy accept-timeout 120
ok
#(config) ssl
Use this command to configure HTTPS termination, including managing certificates, both self-signed
and those from a Certificate Signing Authority (CSA).
To configure HTTPS termination, you must complete the following tasks:
• Configure a keyring
• Configure the SSL client
• Configure the HTTPS service
Note: To perform these steps, you must have a serial or SSH connection; you cannot use Telnet.
Syntax
ssl
This changes the prompt to:
SGOS#(config ssl)
- subcommands-
option 1: create
sub-option 1: ccl list_name
sub-option 2: certificate keyring_id
sub-option 3: keyring {show | show-director | no-show} keyring_id [key_length]
sub-option 4: signing-request keyring_id
sub-option 5: ssl-client ssl_client_name (only default is permitted)
option 2: delete
sub-option 1: ca-certificate name
sub-option 2: ccl list_name
sub-option 3: certificate keyring_id
sub-option 4: external-certificate name
sub-option 5: keyring keyring_id
sub-option 6: signing-request keyring_id
sub-option 7: ssl-client ssl_client_name
option 3: edit
sub-option 1: ccl list_name—changes the prompt (see “#(config ssl) edit ccl list_name”
on page 239)
sub-option 2: ssl-client ssl_client_name (only default is permitted)—changes the
prompt (see “#(config ssl) edit ssl-client ssl_client_name” on page 240)
234
Chapter 3: Privileged Mode Configure Commands
option 4: exit
option 5: inline
sub-option 1: ca-certificate name eof
sub-option 2: certificate keyring_id eof
sub-option 3: external-certificate name eof
sub-option 4: keyring {show | show-director | no-show} keyring_id eof
sub-option 5: signing-request keyring_id eof
option 6: ssl-nego-timeout seconds
option 7: view
sub-option 1: ca-certificate name
sub-option 2: ccl
sub-option 3: certificate keyring_id
sub-option 4: external-certificate name
sub-option 5: keypair {des | des3 | unencrypted} keyring_id | keyring_id}
sub-option 6: keyring [keyring_id]
sub-option 7: signing-request keyring_id
sub-option 8: ssl-client
sub-option 9: ssl-nego-timeout
sub-option 10:summary {ca-certificate | external-certificate} [name]
235
Blue Coat ProxySG Command Line Interface Reference
236
Chapter 3: Privileged Mode Configure Commands
237
Blue Coat ProxySG Command Line Interface Reference
238
Chapter 3: Privileged Mode Configure Commands
Examples:
SGOS#(config) ssl
SGOS#(config ssl) create keyring show keyring id [key length]
ok
SGOS#(config ssl) view keyring keyring id
KeyringID: default
Is private key showable? yes
Have CSR? no
Have certificate? yes
Is certificate valid? yes
CA: Blue Coat Systems SG3000
Expiration Date: Jan 23 23:57:21 2013 GMT
Fingerprint: EB:BD:F8:2C:00:25:84:02:CB:82:3A:94:1E:7F:0D:E3
SGOS#(config ssl) exit
SGOS#(config)
Syntax
ssl
This changes the prompt to:
239
Blue Coat ProxySG Command Line Interface Reference
SGOS#(config ssl)
edit ccl list_name
This changes the prompt to:
SGOS#(config ssl ccl list_name)
- subcommands-
option 1: add ca_certificate_name
option 2: clear
option 3: exit
option 4: remove ca_certificate_name
option 5: view
Table 3.110: #(config ssl ccl list_name)
Examples:
SGOS#(config) ssl
SGOS#(config ssl) edit ccl list_name
SGOS#(config ssl ccl list_name) add CACert1
ok
SGOS#(config ssl ccl list_name) exit
SGOS#(config ssl) exit
SGOS#(config)
Syntax
ssl
This changes the prompt to:
SGOS#(config ssl)
edit ssl-client ssl_default_client_name
This changes the prompt to:
SGOS#(config ssl ssl_default_client_name)
240
Chapter 3: Privileged Mode Configure Commands
- subcommands-
option 1: cipher-suite
option 2: exit
option 3: keyring-id keyring_id
option 4: protocol sslv2 | sslv3 | tlsv1 | sslv2v3 | sslv2tlsv1| sslv3tlsv1 |
sslv2v3tlsv1
option 5: view
Table 3.111: #(config ssl ssl_default_client_name)
241
Blue Coat ProxySG Command Line Interface Reference
Examples:
SGOS#(config) ssl
SGOS#(config ssl) edit ssl-client ssl_default_client_name
SGOS#(config ssl ssl-client ssl_default_client_name) cipher-suite rc4-md5
exp-des-cbc-sha
ok
SGOS#(config ssl ssl-client ssl_default_client_name) exit
SGOS#(config ssl) exit
SGOS#(config)
#(config) static-routes
Use this command to set the network path to download the static routes configuration file.
To use static routes on the ProxySG, you must create a routing table and place it on an HTTP server
accessible to the ProxySG. The routing table is a text file that contains a list of IP addresses, subnet
masks, and gateways. When you download a routing table, the table is stored in the device until it is
replaced by downloading a new table.
The routing table is a simple text file containing a list of IP addresses, subnet masks, and gateways. A
sample routing table is illustrated below:
10.63.0.0 255.255.0.0 10.63.158.213
10.64.0.0 255.255.0.0 10.63.158.213
10.65.0.0 255.255.0.0 10.63.158.226
When a routing table is loaded, all requested addresses are compared to the list, and routed based on
the best match.
Once the routing table is created, place it on an HTTP server so it can be downloaded to the device. To
download the routing table to the ProxySG, use the load command.
Syntax
option 1: static-routes no path
option 2: static-routes path url}
Table 3.112: #(config) static-routes
Example
SGOS#(config) static-routes path 10.25.36.47/files/routes.txt
ok
242
Chapter 3: Privileged Mode Configure Commands
#(config) streaming
Use this command to configure general streaming settings and Microsoft Windows Media or
RealNetworks Real Media settings.
Syntax
option 1: streaming max-client-bandwidth kbps
option 2: streaming max-gateway-bandwidth kbps
option 3: streaming multicast
sub-option 1: address-range first_address - last_address
sub-option 2: port-range first_port - last_port
sub-option 3: ttl ttl
option 4: streaming no
sub-option 1: max-client-bandwidth
sub-option 2: max-gateway-bandwidth
option 5: streaming quicktime
sub-option 1: http-handoff {disable | enable}
sub-option 2: max-client-bandwidth kbps
sub-option 3: max-connections number
sub-option 4: max-gateway-bandwidth kbps
sub-option 5: no {max-client-bandwidth | max-connections | max-gateway-bandwidth}
option 6: streaming real-media
sub-option 1: http-handoff {disable | enable}
sub-option 2: log-forwarding {disable | enable}
sub-option 3: max-client-bandwidth kbps
sub-option 4: max-connections number
sub-option 5: max-gateway-bandwidth kbps
sub-option 6: multicast {disable | enable}
sub-option 7: no {max-client-bandwidth | max-connections | max-gateway-bandwidth |
refresh-interval}
sub-option 8: refresh-interval hours
option 7: streaming windows-media
sub-option 1: asx-rewrite number in_addr cache_proto cache_addr [cache-port]
sub-option 2: broadcast-alias alias url loops date time
sub-option 3: http-handoff {disable | enable}
sub-option 4: live-retransmit {disable | enable}
sub-option 5: log-compatibility {disable | enable}
sub-option 6: log-forwarding {disable | enable}
sub-option 7: max-client-bandwidth kpbs
sub-option 8: max-connections number
243
Blue Coat ProxySG Command Line Interface Reference
244
Chapter 3: Privileged Mode Configure Commands
245
Blue Coat ProxySG Command Line Interface Reference
246
Chapter 3: Privileged Mode Configure Commands
247
Blue Coat ProxySG Command Line Interface Reference
248
Chapter 3: Privileged Mode Configure Commands
249
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) streaming windows-media http-handoff enable
ok
SGOS#(config) streaming windows-media live-retransmit disable
ok
SGOS#(config) streaming windows-media log-forwarding disable
ok
SGOS#(config) streaming windows-media max-connections 1600
ok
SGOS#(config) streaming windows-media no max-connections
ok
#(config) tcp-ip
Use the following commands to configure your TCP-IP settings.
Syntax
option 1: tcp-ip icmp-bcast-echo {disable | enable}
option 2: tcp-ip icmp-tstamp-echo {disable | enable}
option 3: tcp-ip ip-forwarding {disable | enable}
option 4: tcp-ip pmtu-discovery {disable | enable | expire-period seconds |
probe-interval seconds}
option 5: tcp-ip rfc-1323 {disable | enable}
option 6: tcp-ip tcp-newreno {disable | enable}
option 7: tcp-ip tcp-2msl seconds
option 8: tcp-ip window-size window_size
Table 3.114: #(config) tcp-ip
250
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) tcp-ip ip-forwarding enable
ok
SGOS#(config) tcp-ip rfc-1323 enable
ok
#(config) tcp-rtt
Use this command to configure the number of TCP round trip time ticks.
Syntax
tcp-rtt num_500ms_ticks
Example
SGOS#(config) tcp-rtt 500
ok
#(config) tcp-rtt-use
Use this command to enable or disable the default TCP Round Trip Time.
Syntax
tcp-rtt-use {disable | enable}
Example
SGOS#(config) tcp-rtt-use enable
ok
#(config) timezone
Use this command to set the local time zone on the ProxySG.
Syntax
timezone timezone_number
251
Blue Coat ProxySG Command Line Interface Reference
Example
SGOS#(config) timezone 3
ok
#(config) upgrade-path
Use this command to specify the network path to download system software.
Syntax
upgrade-path url
Example
SGOS#(config) upgrade-path 10.25.36.47
ok
#(config) virtual-ip
This command allows you to configure virtual IP addresses.
Syntax
option 1: virtual-ip address ip_address
option 2: virtual-ip clear
option 3: virtual-ip no address ip_address
Table 3.119: #(config) virtual-ip
252
Chapter 3: Privileged Mode Configure Commands
Example
SGOS#(config) virtual-ip address 10.25.36.47
ok
#(config) wccp
The ProxySG can be configured to participate in a WCCP (Web Cache Control Protocol) scheme, where
a WCCP-capable router collaborates with a set of WCCP-configured ProxySG Appliances to service
requests. WCCP is a Cisco-developed protocol. For more information about WCCP, refer to the Blue
Coat Configuration and Management Guide.
Once you have created the WCCP configuration file, place the file on an HTTP server so it can be
downloaded to the ProxySG. To download the WCCP configuration to the ProxySG, use the load
command.
Syntax
option 1: wccp disable
option 2: wccp enable
option 3: wccp no path
option 4: wccp path url
Table 3.120: #(config) wccp
Example
SGOS#(config) wccp path 10.25.36.47/files/wccp.txt
ok
253
Blue Coat ProxySG Command Line Interface Reference
254