Tag Archives: Cli

Welcome to CheckPoint R80 API

Automation and orchestration capabilities these days are the key for many Organizations, and this session will show you what can you achieve with the R80.10 API.  Specifically, this session covers:

  • Introduction to using the R80.10 APIs using Postman and Ansible
  • Tips on how to add objects and services to adding rules via CLI RESTful API
  • Additional use cases
  • And much more

The content presented is below:

Slides: How to use R80.10 API for Automation and Streamlined Security (PPT)

Video: How to use R80.10 API for Automation and Streamlined Security (Video)

Scripts: CheckMates_Aug15_Demos.zip

Q&A: TechTalk Q&A: Leveraging the R80.10 API to Automate and Streamline Security Operations

Looking for more cool stuff? Check on CheckPoint CheckMates Community

Share

JunOS Suspending CLI after a CTRL-Z

Having old habits configuring Cisco gear you probably will fall on this too, if you type CTRL-Z on CLI at Juniper device you will suspend the process. So the question is how to take control again over that process?

After type CTRL-Z

[email protected]> configure
Entering configuration mode

[edit]
[email protected]#
Suspended

After you try using again the config mode, you get the following message

[email protected]% cli
[email protected]> configure
Entering configuration mode
Users currently editing the configuration:
root terminal d0 (pid 4409) on since 2014-10-15 04:36:13 UTC
[edit]

Getting again the previous session from the suspended space

[edit]
[email protected]# exit
Exiting configuration mode

[email protected]> exit
[email protected]% jobs
[1] + Suspended cli
[email protected]% fg 1
cli
[email protected]#

Share

CLI em modo menu

Usar Menus poderá ser uma forma rápida de permitir acesso a algumas das funções dos equipamentos. Existem outras formas como CBAC, ou atribuindo diferentes privilégios aos users.
username SOC privilege 15 password 0 CISCO
!Apos autenticação o user e redirecionado para o Menu através do autocommand
username SOC autocommand menu SOC
!
menu SOC title #
Menu for Level 1 SOC users
#
menu SOC text 1. Show Running Config
menu SOC command 1. show running-config
menu SOC text 2. Show Interface Brief
menu SOC command 2. show ip interface brief
menu SOC text 3. Show clock
menu SOC command 3. show Clock
menu SOC text 4. Exit
menu SOC command 4. exit

line vty 0 903
login local

Testando o respectivo Menu criado

R3#telnet 192.168.1.1
Trying 192.168.1.1 … Open

User Access Verification

Username: SOC
Password:
Menu for Level 1 SOC users

1.         Show Running Config

2.         Show Interface Brief

3.         Show clock

4.         Exit

Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.1.1      YES NVRAM  up                    up

Menu for Level 1 SOC users

1.         Show Running Config

2.         Show Interface Brief

3.         Show clock

4.         Exit

*03:53:17.163 UTC Fri Mar 1 2002
Menu for Level 1 NOC users

1.         Show Running Config

2.         Show Interface Brief

3.         Show clock

4.         Exit

[Connection to 192.168.1.1 closed by foreign host]
R3#

Share

Cisco CLI Shortcuts

Capability
Purpose

Move around the command line to make changes or corrections.

Ctrl-B or the left arrow key

Move the cursor back one character.

Ctrl-F or the right arrow key

Move the cursor forward one character.

Ctrl-A

Move the cursor to the beginning of the command line.

Ctrl-E

Move the cursor to the end of the command line.

Esc B

Move the cursor back one word.

Esc F

Move the cursor forward one word.

Ctrl-T

Transpose the character to the left of the cursor with the character located at the cursor.

Recall commands from the buffer and paste them in the command line. The wireless device provides a buffer with the last ten items that you deleted.

Ctrl-Y

Recall the most recent entry in the buffer.

Esc Y

Recall the next buffer entry.

The buffer contains only the last 10 items that you have deleted or cut. If you press Esc Y more than ten times, you cycle to the first buffer entry.

Delete entries if you make a mistake or change your mind.

Delete or Backspace

Erase the character to the left of the cursor.

Ctrl-D

Delete the character at the cursor.

Ctrl-K

Delete all characters from the cursor to the end of the command line.

Ctrl-U or Ctrl-X

Delete all characters from the cursor to the beginning of the command line.

Ctrl-W

Delete the word to the left of the cursor.

Esc D

Delete from the cursor to the end of the word.

Capitalize or lowercase words or capitalize a set of letters.

Esc C

Capitalize at the cursor.

Esc L

Change the word at the cursor to lowercase.

Esc U

Capitalize letters from the cursor to the end of the word.

Designate a particular keystroke as an executable command, perhaps as a shortcut.

Ctrl-V or Esc Q

Scroll down a line or screen on displays that are longer than the terminal screen can display.

Note The More prompt appears for output that has more lines than can be displayed on the terminal screen, including show command output. You can use the Return and Space bar keystrokes whenever you see the More prompt.

Return

Scroll down one line.

Space

Scroll down one screen.

Redisplay the current command line if the wireless device suddenly sends a message to your screen.

Ctrl-L or Ctrl-R

Redisplay the current command line.

Share

Junos Fundamentals Day One

A Juniper disponibiliza uma série de Books sobre Junos, apelidou-os de Day One. Pretende dar conhecer as potencialidades do Junos OS aos novos utilizadores ganhando assim conhecimento suficiente para configurar e gerir este tipo de equipamentos.

Esta série Junos Fundamentals inclui:

Hardening Junos Devices

 

Juniper Networks takes the security of its products very seriously and has created proven processes and procedures following industry best practices. This Week: Hardening Junos Devices divides Juniper’s hardening procedures into four topic areas – Non-Technical, Physical Security, Operating System Security, and Configuration Hardening – and delves into sample strategies, example configurations, and dozens of suggestions and useful tips for each.

Learn more

Configuring Junos Policies and Firewall Filters

 

Control routing information and influence packet flow through your Juniper Networks router or switch by mastering the primary building blocks of Junos policy, firewall filters, and policers.

Learn more

Deploying Basic QoS

Build upon a basic model of QoS behaviors with the levers and knobs that Junos can use to influence each of those behaviors.

Learn more

Junos Tips, Techniques, and Templates 2011

Here’s a Junos tips and tricks book that’s meant to be browsed with a terminal open to your favorite Junos device so you can try each and every technique.

Learn more

Securing the Routing Engine on M, MX, and T Series

Learn how to secure the routing engine step-by-step, then build a modular firewall filter and apply it.

Learn more

Exploring the Junos CLI

Learn about new tools, shortcuts and safeguards and save yourself hours at the keyboard.

Learn more

Configuring Junos Basics

 

Learn how to configure the base settings of your router, switch or security device.

Learn more

Monitoring and Troubleshooting

 

Learn how to monitor your network and troubleshoot events in Junos.

Learn more

Referências:

Junos Fundamentals

Share