Juniper Networks, Inc.
1133 Innovation Way
Sunnyvale, California 94089
USA
408-745-2000
www.juniper.net
Juniper Networks, the Juniper Networks logo, Juniper, and Junos are registered trademarks of Juniper Networks, Inc.
and/or its affiliates in the United States and other countries. All other trademarks may be property of their
respective owners.
Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the
right to change, modify, transfer, or otherwise revise this publication without notice.
The information in this document is current as of the date on the title page.
YEAR 2000 NOTICE
Juniper Networks hardware and software products are Year 2000 compliant. Junos OS has no known time-related
limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036.
END USER LICENSE AGREEMENT
The Juniper Networks product that is the subject of this technical document ation consists of (or is intended for
use with) Juniper Networks software. Use of such software is subject to the terms and conditions of the End User
License Agreement (“EULA”) posted at http://www.juniper.net/support/eula/. By downloading, installing or using
such software, you agree to the terms and conditions of that EULA.
Draft for Review - FireEye Confidential - February 15, 2018
To obtain the most current version of all Juniper Networks® technical documentation, see the product
documentation page on the Juniper Networks website at http://www.juniper.net/techpubs/.
If the information in the latest release notes differs from the information in the documentation, follow the product
Release Notes. Juniper Networks Books publishes books by Juniper Networks engineers and subject matter
experts. These books go beyond the technical documentation to explore the nuances of network architecture,
deployment, and administration. The current list can be viewed at http://www.juniper.net/books.
Requesting Technical Support
Technical product support is available through the Juniper Networks Technical Assistance Center (JTAC). If you are
a customer with an active J-Care or Partner Support Service support contract, or are covered under warranty, and
need post-sales technical support, you can access our tools and resources online or open a case with JTAC.
• JTAC policies—For a complete understanding of our JTAC procedures and policies, review the JTAC User Guide
located at http://www.juniper.net/us/en/local/pdf/resource-guides/7100059-en.pdf.
• JTAC hours of operation—The JTAC centers have resources available 24 hours a day, 7 days a week, 365 days a
year.
Self-Help Online Tools and Resources
For quick and easy problem resolution, Juniper Networks has designed an online self service portal called the
Customer Support Center (CSC) that provides you with the following features:
This guide describes the commands that make up the command-line interface (CLI) of the Juniper ATP
Appliance.
This guide is intended for system administrators responsible for deploying, operating, and maintaining the Juniper
ATP Appliance.
Organization
This guide is organized as follows:
• Chapter 1, “Introduction”—Includes an overview of CLI usage, CLI Modes and information about how to
access the Juniper ATP Appliance Command Line Interface.
• Chapter 2, “All-in-One CLI Commands”—Provides information about system commands for updating the
product boot images, setting configurations, and defining system-level settings for Collector and
Detection Engine interfaces and network deployment services.
• Chapter 3, “Core/CM Server CLI Commands”—Provides information about commands available to the
Core and Central Manager for all hardware appliance, software appliance, and virtual appliance models,
including the commands used to manage Detection Engines and Juniper ATP Appliance system
configuration.
• Chapter 4, “Mac OS X Engine CLI Commands”—Provides information about Mac Mini Mac OS X Detection
Engine-specific commands for configuration and status monitoring.
• Chapter 5, “Traffic Collector CLI Commands”—Provides information about the Juniper ATP Appliance
Traffic Collector commands available for identifying, monitoring, and configuring distributed Collector
hardware, software and virtual appliances.
• Chapter 6, “Glossary of Terms”—Provides a set Juniper ATP Appliance-specific as well as cybersecurity
Enter yes to create a
new SSL certificate for
the Juniper ATP
Appliance Server Web
UI.
If you decline the selfsigned certificate by
entering no, be
prepared to install a
certificate authority
(CA) certificate.
Not applicable to
Collector.
Juniper Advanced Threat Prevention Appliance
Configuration Wizard
Prompts
Enter the following server
attributes:
Is this a Central Manager device:
Device Name: (must be unique)
Device Description
Device Key PassPhrase
NOTE: Remember this
passphrase and use it for all
distributed devices!
Customer Response
from All-in-One
Enter Yes; the system
will auto-set IP
127.0.0.1 as the All-inOne IP address.
Enter the Juniper ATP
Appliance Collector
Host Name; this
identifies the Collector
in the Web UI.
Enter a device
Description
Enter a user-defined
PassPhrase to be used
to authenticate the
Core to the Central
Manager.
Customer Response
from Core
Enter Yes; the system
will auto-set IP
127.0.0.1 as the All-inOne IP address.
Enter a Juniper ATP
Appliance Mac Mini or
Core/CM Host Name;
this identifies the Mac
OS X or Core Engine in
the Web UI.
Enter a device
Description
Enter the same
PassPhrase used to
authenticate the Core
or Mac Mini to the
Central Manager.
or Mac Mini
Customer Response
from Collector
Enter No; the system
will request that you
enter the CM IP
address now.
Enter the Juniper ATP
Appliance Collector
Host Name; this
identifies the Collector
in the Web UI.
Enter a device
Description
Enter the same
PassPhrase used to
authenticate the
Collector to the Central
Manager.
Hardware, Software and Virtual Appliance Access via SSH
To access the Juniper ATP Appliance CLI over the management network:
1.Start a terminal window session and use the ssh command to access the appliance.
For example, if the IP address of the appliance is 10.1.1.2, enter the following command:
xxxxssh admin@10.1.1.2
2.When prompted, enter your password. By default, the admin user name is admin and the password is
1JATP234.
3.To launch the configuration wizard, enter the command
wizard.
# wizard
See Configuration Wizard Command Prompt Progressions for steps.
CLI Help and Keyboard Shortcuts
To display Juniper ATP Appliance CLI help, type the command help to display CLI keys and auto-completion
usage.
For context-sensitive help, alternatively, enter a “?” to display either a list of possible command completions with
summaries, or the full syntax of the current command. A subsequent repeat of this key, when a command has
been resolved, will display a detailed reference, as described below.
• Enter “?” at the prompt to display a list of the available commands in the current mode.
• Enter “?” after you type a command to display its available options and parameters.
• Enter “?” after a partially typed keyword to display command matches for auto-completions
You can enter commands in abbreviated form if you enter enough characters to uniquely identify each keyword.
For example, the show interface command can be abbreviated as:
To identify a command’s minimum abbreviation, type a few characters then press Tab. When you have entered
enough characters, the keyword is completed.
The following table outlines the available CLI shortcuts.
Table 1-1 Keyboard Shortcuts
ActionShortcutDescription
Auto-Completion Enter, Tab
or Space
Key
Recall Ctrl+P or ↑Retrieve previous command from CLI history.
Ctrl+N or ↓Retrieve next command from CLI history.
Ctrl+L or
Ctrl+R
Delete Ctrl+DDelete character.
Ctrl+HDelete character before cursor (Backspace).
Ctrl+KDelete all characters from cursor to end of line.
Ctrl+U or
Ctrl+W
Cursor moveCtrl+AMove cursor to start of line.
Ctrl+BMove cursor back a single character.
Ctrl+EMove cursor to end of line.
Ctrl+FMove cursor forward a single character.
Character
Transpose
Ctrl+TTranspose character at the cursor with preceding character.
Completes a partial command during typing if enough
characters are typed to uniquely identify it.
Clear the screen or Redisplay the current command line.
Delete all characters or words on line.
Interrupt outputCtrl+CInterrupt presentation of the CLI output.
Replace!!Substitute the last command line
!NSubstitute the Nth command line (absolute as per 'history'
command)
!-NSubstitute the command line entered N lines before
(relative)
Exit mode or
logout
exitExit current mode or exit the CLI session.
SPECIAL CHARACTER REQUIREMENT
You must enclose non-alphabet characters in double quotes in CLI commands; for example:
Juniper ATP Appliance(server)# set passphrase “kfe$nd#$^S”
CLI Modes
The CLI commands that you can enter depend on your user privileges and the CLI command mode. User roles are
“admin” and “debugging.” The following table describes the CLI command mode.
Note that the prompt in each mode includes the host name of the Juniper ATP Appliance.
Table 1-2 Summary of CLI Modes
ModeDescriptionHow to Exit
Basic ModeMonitor system operation and issue basic system
commands. This is the default login mode. The following
prompt is displayed:
JATP#
CM ModeMonitor system history and upgrades from the Core or
vCore in cm (Central Manager) mode.
JATP_Hostname# cm
JATP_Hostname (cm)# ?
Core
Configuration
Mode
Collector
Configuration
Mode
Diagnosis
Packet
Capture,
Monitoring,
GSS Reporting
and
Configuration
Mode
To access Core configuration mode in the Core/CM, All-inOne, and Mac Mini, enter “core” in Basic mode. The prompt
changes to indicate the mode in parentheses:
JATP_Hostname# core
JATP_Hostname (core)# ?
Configure the Juniper ATP Appliance Collector (includes all
commands). To access Collector configuration mode,
enter “collector” in Basic mode. The prompt changes to
indicate the mode in parentheses:
Check Initial Setup, Diagnose, Monitor, Set GSS, and
Configure the Juniper ATP Appliance (includes all
commands). To access Diagnosis mode, enter
“diagnosis” in Basic mode. The prompt changes to
indicate the mode in parentheses:
Set up and monitor the system (includes all Basic
commands plus server-specific commands). To access
Server configuration mode, enter “server” in Basic mode.
The prompt changes to indicate the mode in parentheses:
JATP-Hostname# server
JATP-Hostname (server)# ?
Configure the system during installation and setup the
management network and connected Juniper ATP
Appliance components. To access wizard configuration
mode, enter “wizard” in Basic mode. The prompt changes
to indicate the mode in parentheses:
JATP-Hostname# wizard
JATP-Hostname (wizard)# ?
Enter exit to
leave server
mode.
Enter exit to
leave wizard
mode.
This chapter describes the administration commands for a Juniper ATP Appliance All-in-One server appliance,
CHAPTER 2
All-in-One CLI Commands
software appliance or virtual appliance.
These commands are used to configure the Juniper ATP Appliance All-in-One appliance, manage configurations,
and set system-level settings for interfaces, network services, and SIEM integration.
NOTE You must enclose non-alphabet characters in double quotes in CLI commands.
Basic Mode Commands
Use general system commands to configure the appliance, view appliance history, enter other CLI modes, obtain
help with CLI syntax, and to exit the CLI session.
The general commands are:
• cm on page 12
• core on page 13
• collector on page 12
• diagnosis on page 14
• exit on page 14
• help on page 16
• history on page 17
• server on page 20
• wizard on page 35
Refer to the sections in this guide to review CM Mode, Collector Mode, Core Mode, Diagnosis Mode, Server Mode
and Wizard mode commands per device-- All-in-One, CoreCM, Traffic Collector and Mac OS X Detection Engine
on a Mac Mini.
Uses Secure Copy (SCP) to copy and transfer packet capture or traceback (crash)
data to a remote location, providing the same authentication and level of security
as an SSH transfer.
The copy traceback command, upon Customer Support's request, copies the
traceback files out of the box to a remote location.
See Also: diagnosis
Product(s) CLIAll-in-One | Collector | Core-CM | Mac OSX Engine
Mode(s)Diagnosis
[mode]; capture-start
copy capture <scp source_file_name
Syntax
username@destination_host:destination_folder> | traceback
{<tab> | ALL} <string URI as user@hostname:path
copy capture <scp remote filename_location>
Parameters
Sub-CommandsNone
Example
core
Table 2-5 core
Description
copy traceback <ALL | filename>
copy traceback <tab> [tab displays all available crash filenames]
The following example copies the file "Eth1.txt" from the local host to a remote
host:
DescriptionDisplays information about the CLI help system.
Product(s) CLIAll-in-One | Collector | Core CM | Mac Mini OS X Detection Engine
Mode(s)Basic | Core | Collector | Diagnosis | Server
Syntax
Parameters
Example
help
None
The following example shows some of the output of the help command.
CONTEXT SENSITIVE HELP
[?] - Display context sensitive help. This is either a list of
possible command completions with summaries, or the full syntax
of the current command. A subsequent repeat of this key, when a
command has been resolved, will display a detailed reference.
AUTO-COMPLETION
The following keys both perform auto-completion for the current
command line. If the command prefix is not unique then the bell
will ring and a subsequent repeat of the key will display
possible completions.
[enter] - Auto-completes, syntax-checks then executes a command.
If there is a syntax error then offending part of the command
line will be highlighted and explained.
[tab] - Auto-completes
[space] - Auto-completes, or if the command is already resolved
inserts a space.
If “<cr>” is shown, that means that what you have entered so
far is a complete command, and you may press Enter (carriage
return) to execute it.
Use ? to learn command parameters and option:
JATP (server)# show f?
firewall Show the firewall configuration settings
interface
JATP (server)# show firewall?
all Show the current iptables settings
whitelist Show the iptables whitelist settings
show firewall whitelist?
<cr>
show firewall whitelist
-c countNumber of echo requests to send. By default, pings ar
continuously until you press Ctrl+C.
-h hops Number of next hops between pings (default is 1).
stringIP address, hostname or interface name used to ping
device address.
ping
Table 2-12 ping
Sends ICMP (Internet Control Message Protocol) echo request packets to a
Description
Product(s) CLIAll-in-One | Collector | Core CM | Mac Mini OS X Detection Engine
Mode(s)Server
specified host name or IP address to verify that the destination is reachable over
the network.
Syntax
Parameters
Example
reboot
ping [-c count] [-h hops] [string]
The following example sends three echo requests to the device with the IP Address
10.10.10.1
<FireEye_name># ping -c 3 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
64 bytes from 10.10.10.1: icmp_req=1 ttl=64 time=0.314 ms
64 bytes from 10.10.10.1: icmp_req=2 ttl=64 time=0.277 ms
64 bytes from v: icmp_req=3 ttl=64 time=0.274 ms
Note: vCore for AWS
does not use the
following CLI
commands:
restore hostname
restore network
| network]
Whitelist rules rely on normal service shutdown to be backed up.Powering off a VM
directly will lose the whitelist state as rules cannot be saved in that case.
The following example restores the system.
JATP# restore
Example
server
Table 2-16 server
Description
Product(s) CLIAll-in-One | Collector | Core/CM | Mac Mini Mac OS X
Enables and disables the SSH-Honeypot feature for a Traffic Collector.
A honeypot can be deployed within a customer network to detect network activity
generated by malware attempting to infect or attack other machines in a local area
network. These attempted SSH logins can be used to supplement detection of
lateral spread.
Description
Product(s) CLIAll-in-One | Collector
Mode(s)collector
There are two parameters that can be set for a honeypot:
• Enable/disable a honeypot
• Set a Static IP (IP, mask, and gateway) or DHCP of a publicly addressable interface
See Also:
show honeypotcommand in show (collector mode)
(collector)# set honeypot ssh-honeypot enable dhcp