5.5.5. Remote connection to the CLI using SSH via the iDRAC interface in serial port forwarding mode

5.5.5.1. Introduction

This procedure describes the remote connection from a distant PC using:

  • The network connection to the iDRAC port of the GCap

  • A connection tool via SSH

This connection is not the normal way to access the GCap but enables access to the GCap in the event of problems.
To carry out this procedure, it is necessary:

  • That the iDRAC has an accessible IP in order to be able to connect to it

  • To know the login name and password of iDRAC

From the interface, it is possible to:

  • View the operating system messages

  • Connect to the GCap via the CLI console

Astuce

  • If a password error occurs, the protection system will be activated.

  • To view the policy setting on the Gcap, use the show bruteforce-protection command.
    After a certain number of failures, the account will be locked.
  • To unlock it: either wait, or use the system unlock command with a higher privilege level account.


5.5.5.2. Preliminary operations


5.5.5.3. Procedure

  • On the remote PC running Linux:

    • Open a command prompt

    • Enter the ssh identifiant@adresse_ip command
      For example, ssh setup@x.x.x.x where

      • setup is the ID and

      • x.x.x.x is the IP address of the GCap's iDRAC port.

    • Validate the command

    • Enter password of the entered login

    • Press Enter to display all available commands and a short explanation

  • On a Windows PC:

    • Open an SSH client software, such as Putty

    • Enter the IP address of the iDRAC interface of the GCap then validate

  • Enter the following command racadm>>console com2.

  • Validate.
    The system now displays the graphical interface of the device.
    Following this action, a new page will open. It will be possible to interact with the GCap.

  • Connect to the CLI (gcap-cli command).
    After connection, the following message is displayed:

    (gcap-cli)
    

    Note

    • Press Tab to display all available commands.

    • Press Enter to display all available commands along with a short explanation.


5.5.5.4. Special cases

It is possible to open an SSH connection, run a CLI command line and then close the connection.
To do this:

  • Enter the command

    ~$ ssh -t setup@x.x.xx.x show status
    
  • Validate
    The system:

    • Opens the SSH connection

    • Executes the command (here show status)

    • Closes the SSH connection

GCAP Name         : 
Version           : z.z.z 
Paired on GCenter : Not paired
Tunnel status     : Down
Detection Engine  : Up and running
© Copyright GATEWATCHER 202
Connection to x.x.x.x closed.