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 and 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.