Chapter 2. Access the Red Hat Discovery user interface
You access the Red Hat Discovery graphical user interface through a browser. You access the Discovery command line interface by running a terminal session command to connect to the server.
2.1. Log in to the Red Hat Discovery user interface Copy linkLink copied to clipboard!
Log in to the Discovery user interface by using the server IP address, port number, and administrator credentials. Contact your Discovery administrator if you do not have this information.
Prerequisites
- The system on which you want to run the user interface can communicate with the system on which the Discovery server is installed.
Procedure
In a browser, enter the URL for the Discovery server in the format
https://IPaddress:server_port, whereIPaddressis the IP address andserver_portis the exposed server port.-
If you log in from the system where the server is installed and the default port
9443is used, you can use the loopback address as the IP address. The loopback address is also known as localhost, as shown in the following example:
https://127.0.0.1:9443-
If you log in from the system where the server is installed and the default port
- After you enter the URL for the server, the Discovery login page displays.
- On the login page, enter the username and password for the Discovery server administrator account and then click Log in to log in to the server.
Verification
If this is the first time that you have logged in to Discovery, the Credentials view displays. You can begin by adding credentials and sources that can be used in scans. If you have previously logged in to Discovery, you can interact with your previously created credentials, sources, and scans.
2.2. Log out of the Red Hat Discovery user interface Copy linkLink copied to clipboard!
Log out of the Discovery user interface to end your session and secure access to the server.
Procedure
- In the application toolbar, click the person icon or your username.
- Click Logout.
Verification
- Verify that the Discovery login page is displayed in your browser.
2.3. Log in to the Red Hat Discovery command line interface Copy linkLink copied to clipboard!
To log in to the Discovery command line interface, you need the username and password for the Discovery server administrator. If you do not have this information, contact the administrator who installed the Discovery server.
The login command retrieves a token that is used for authentication with subsequent command line interface commands. That token is removed when you log out of the server, and expires daily.
Prerequisites
- The Discovery command line interface is installed on the same system where the server container is installed.
- You are accessing the command line interface on the same system where the server container is installed.
Procedure
To log in to the command line interface, enter the following command. In this command,
server_usernameis the username for the Discovery server administrator andserver_passwordis the password for the server administrator:dsc server login --username __server_administrator_username__ --password __server_administrator_password__- After you log in to the command line interface, you can begin entering commands to create sources, credentials, and scans.
2.4. Log out of the Red Hat Discovery command line interface Copy linkLink copied to clipboard!
The command to log out of the server removes the token that was created when you logged in to the server. This token also expires daily.
Procedure
To log out of the command line interface, enter the following command:
dsc server logout
Verification
- Verify that a logout confirmation message is displayed in the command line output.