Cellular 4G test
The cellular 4G test validates Global System for Mobile Communication (GSM) connectivity by establishing a temporary 4G network connection. You can run this test to verify that a 4G GSM modem is available on your host under test (HUT). The modem must also function correctly.
- What the test covers
- The cellular 4G test runs a Global System for Mobile Communication (GSM) 4G connection test on the HUT. The test checks whether a 4G GSM modem is available on the HUT. If it detects a GSM connection interface, it initializes and establishes a temporary cellular 4G network connection by using the GSM interface. After establishing the connection, the test runs the cellular 4G connection test to validate connectivity and reports its status.
- RHEL version supported
-
- RHEL 9
- RHEL 10
- What the test does
-
The test performs the following actions:
- Restarts services
- Ensures
ModemManagerandNetworkManagerservices are running or enabled.
- Ensures
- Re-enables USB devices
- Temporarily disables or enables USB devices so that the modem can reinitialize.
Note This test re-enables only the USB devices.
- Temporarily disables or enables USB devices so that the modem can reinitialize.
- Detects GSM device
- Uses
nmclicommand to check if a GSM 4G modem is available.Note The maximum retry limit is 100s.
- Uses
- Enables GSM connection.
- Deletes the old GSM configurations, creates a new connection by running the command
nmcli add gsm, and activates the new connection.
- Deletes the old GSM configurations, creates a new connection by running the command
- Tests GSM connection
- Finds the modem interface, for example,
wwan0. - Runs a ping (
ping -I <device> google.com). - If successful, it removes the test connection.
- Finds the modem interface, for example,
- Restarts services
- Preparing for the test
-
The HUT must have a GSM network interface.
Note If your HUT is present in the USA, then you must configure the Fcclock tool before running the test.
- Running the test
- The test is non-interactive and only requires you to plan and run the test.
Run the following command and then select the appropriate Cellular 4G test from the list that displays:
$ rhcert-run - Run time
- The test takes less than 5 minutes to finish. Any other mandatory or selected tests add to the overall run time.