Fortinet black logo

CLI Reference

config wanopt cache-service

config wanopt cache-service

Designate cache-service for wan-optimization and webcache.

config wanopt cache-service
    Description: Designate cache-service for wan-optimization and webcache.
    set prefer-scenario [balance|prefer-speed|...]
    set collaboration [enable|disable]
    set device-id {string}
    set acceptable-connections [any|peers]
    config dst-peer
        Description: Modify cache-service destination peer list.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
    config src-peer
        Description: Modify cache-service source peer list.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
end

config wanopt cache-service

Parameter

Description

Type

Size

Default

prefer-scenario

Set the preferred cache behavior towards the balance between latency and hit-ratio.

option

-

prefer-speed

Option

Description

balance

Balance between speed and cache hit ratio.

prefer-speed

Prefer response speed at the expense of increased cache bypasses.

prefer-cache

Prefer improving hit-ratio through increasing latency tolerance.

collaboration

Enable/disable cache-collaboration between cache-service clusters.

option

-

disable

Option

Description

enable

Enable cache cache-collaboration.

disable

Disable cache cache-collaboration.

device-id

Set identifier for this cache device.

string

Maximum length: 35

default_dev_id

acceptable-connections

Set strategy when accepting cache collaboration connection.

option

-

any

Option

Description

any

We can accept any cache-collaboration connection.

peers

We can only accept connections that are already in src-peers.

config dst-peer

Parameter

Description

Type

Size

Default

auth-type

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

1

ip

Set cluster IP address of this peer.

ipv4-address-any

Not Specified

0.0.0.0

config src-peer

Parameter

Description

Type

Size

Default

auth-type

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

1

ip

Set cluster IP address of this peer.

ipv4-address-any

Not Specified

0.0.0.0

config wanopt cache-service

Designate cache-service for wan-optimization and webcache.

config wanopt cache-service
    Description: Designate cache-service for wan-optimization and webcache.
    set prefer-scenario [balance|prefer-speed|...]
    set collaboration [enable|disable]
    set device-id {string}
    set acceptable-connections [any|peers]
    config dst-peer
        Description: Modify cache-service destination peer list.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
    config src-peer
        Description: Modify cache-service source peer list.
        edit <device-id>
            set auth-type {integer}
            set encode-type {integer}
            set priority {integer}
            set ip {ipv4-address-any}
        next
    end
end

config wanopt cache-service

Parameter

Description

Type

Size

Default

prefer-scenario

Set the preferred cache behavior towards the balance between latency and hit-ratio.

option

-

prefer-speed

Option

Description

balance

Balance between speed and cache hit ratio.

prefer-speed

Prefer response speed at the expense of increased cache bypasses.

prefer-cache

Prefer improving hit-ratio through increasing latency tolerance.

collaboration

Enable/disable cache-collaboration between cache-service clusters.

option

-

disable

Option

Description

enable

Enable cache cache-collaboration.

disable

Disable cache cache-collaboration.

device-id

Set identifier for this cache device.

string

Maximum length: 35

default_dev_id

acceptable-connections

Set strategy when accepting cache collaboration connection.

option

-

any

Option

Description

any

We can accept any cache-collaboration connection.

peers

We can only accept connections that are already in src-peers.

config dst-peer

Parameter

Description

Type

Size

Default

auth-type

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

1

ip

Set cluster IP address of this peer.

ipv4-address-any

Not Specified

0.0.0.0

config src-peer

Parameter

Description

Type

Size

Default

auth-type

Set authentication type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

encode-type

Set encode type for this peer.

integer

Minimum value: 0 Maximum value: 255

0

priority

Set priority for this peer.

integer

Minimum value: 0 Maximum value: 255

1

ip

Set cluster IP address of this peer.

ipv4-address-any

Not Specified

0.0.0.0