Monday, March 23, 2015

Junos CLI Walkthrough

Lets Walkthrough the Junos CLI


Login to Junos

using username and password

show who is login now :))

================================================
> show system users 
 1:37PM  up 3:26, 1 user, load averages: 0.21, 0.17, 0.15
USER     TTY      FROM                              LOGIN@  IDLE WHAT
lab      p0       10.210.14.216                    1:36PM      - -cli (cli)    

=================================================

You can explore the available commands using ? "question marks"

> ?            
Possible completions:
  clear                Clear information in the system
  configure            Manipulate software configuration information
  file                 Perform file operations
  help                 Provide help information
  load                 Load information from file
  monitor              Show real-time debugging information
  mtrace               Trace multicast path from source to receiver
  op                   Invoke an operation script
  ping                 Ping remote target
  quit                 Exit the management session
  request              Make system-level requests
  restart              Restart software process
  save                 Save information to file
  set                  Set CLI properties, date/time, craft interface message
  show                 Show system information
  ssh                  Start secure shell on another host
  start                Start shell
  telnet               Telnet to another host
  test                 Perform diagnostic debugging
  traceroute           Trace route to remote host


You can use help topic or reference for search inside docs in the box

> help topic system login-alarms        
Configuring System Alarms to Appear Automatically on J Series Routers, EX Series
                     Ethernet Switches, and the QFX Series

   You can configure J Series routers, EX Series switches, and the QFX Series
   to execute a show system alarms command whenever a user with the login
   class admin logs in to the router or switch. To do so, include the
   login-alarms statement at the [edit system login class admin] hierarchy
   level.
     [edit system login class admin]
         login-alarms;
   For more information on the show system alarms command, see the Junos OS
   System Basics and Services Command Reference.

  Related-Topics

        * System Alarms on J Series Routers
        * show system alarms


> help reference system login      
                                     login

    Syntax

   login {
           announcement text;

                class class-name {
                        allow-commands "regular-expression";
                        allow-configuration "regular-expression";
                        deny-commands "regular-expression";
                        deny-configuration "regular-expression";
                        idle-timeout minutes;
                        login-tip;
                        permissions [ permissions ];

                }

           message text;

                password {
                        change-type (set-transitions | character-set);
                        format (md5 | sha1 | des);
                        maximum-length length;
                        minimum-changes number;
                        minimum-length length;

                }

                retry-options {
                        backoff-threshold number;
                        backoff-factor seconds;
                        minimum-time seconds;
                        tries-before-disconnect number;

                }

                user username {
                        full-name complete-name;
                        uid uid-value;
                        class class-name;
                        authentication authentication;
                        (encrypted-password "password" |
                        plain-text-password);
                        ssh-rsa "public-key";
                        ssh-dsa "public-key";
                                        
                }

   }

    Hierarchy Level

   [edit system]

    Release Information

   Statement introduced before JUNOS Release 7.4.

   Statement introduced in JUNOS Release 9.0 for EX Series switches.

    Description

   Configure user access to the router or switch.

   The remaining statements are explained separately.

    Required Privilege Level

   admin--To view this statement in the configuration.

   admin-control--To add this statement to the configuration.

    Related Topics

     * Configuring User Access


Cheers.....



No comments:

Post a Comment