102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 92


What is true about the following command?

nmcli device wifi connect WIFIoI

Show Answer
Correct Answer: CD

The command 'nmcli device wifi connect WIFIoI' attempts to connect to a Wi-Fi network with the SSID 'WIFIoI'. NetworkManager will try to find a matching network and establish the connection. However, if the specified SSID does not exist or cannot be found, NetworkManager will return an error indicating that no network with the SSID 'WIFIoI' was found.

Discussion

17 comments
Sign in to comment
ThuanvdOption: D
Oct 9, 2020

D is the correct one

ScipionsOption: C
Dec 29, 2020

The command finds a matching connection or creates one and then activates it on a device. Te do na' man... è la C

Rini_Giannenzo
Jan 9, 2021

tutto bene sulla casilina ?

Audio00_02
Jan 9, 2021

pure british

inittab_ah_no
Jan 10, 2021

google traslate

JcobOption: D
Mar 19, 2021

D should be correct because I try it on debian and recieve reply "Error: No network with SSID 'Tardino' found."

acampOption: C
Mar 30, 2021

Checked the man page. It should be C. If it's throwing an error it might be something specific to your computer or distro. See here: https://developer.gnome.org/NetworkManager/stable/nmcli.html

excoOption: D
Jul 29, 2021

The only correct answer is D, not C Just tested it on Ubuntu on my wifi adapter: root@ubuntu:~# nmcli device wifi connect WIFIoI Error: No network with SSID 'WIFIoL' found.

wvdw1962
Feb 26, 2022

replace SSID 'WIFIoL' with a SSID which is in your environment :-)

lucaverceOption: E
May 26, 2022

The SSID name "WIFIlol" make me laugh . I suppose that it does NOT exist in any environment (because not previously explicited) So the command in C is correct, but it result in an error because the WIFIlol will never respond and even if it does exist it should ask for a password before to connect and activate. That's why my choice is E

MokdadOption: C
Aug 14, 2021

C is correct Man nmcli wifi connect (B)SSID [password password] [wep-key-type {key | phrase}] [ifname ifname] [bssid BSSID] [name name] [private {yes | no}] [hidden {yes | no}] Connect to a Wi-Fi network specified by SSID or BSSID. The command finds a matching connection or creates one and then activates it on a device. This is a command-line counterpart of clicking an SSID in a GUI client. If a connection for the network already exists, it is possible to bring up (activate) the existing profile as follows: nmcli con up id name. Note that only open, WEP and WPA-PSK networks are supported if no previous connection exists. It is also assumed that IP configuration is obtained via DHCP.

LazylinuxOption: C
Apr 21, 2022

I C... I am more inclined to go with C and here is why but must first admit this is crab question..i think it is there to make sure no one gets 100% Reason i say C, i had tested it on local laptop and prompts me with password and once entered correctly it activates and establishes WIFI connections BUT also those who say D are correct too because if the WIFI connection or the SSID does NOT exist then it will throw error such as "Error: No network with SSID xxxx found" where xxx can be any fictitious name you make up. Those who are saying D is ONLY because they are assuming the SSID does not exist? How do they know?! it is like chicken and the Egg which one came first SSID exists and ready or NOT

lucaverceOption: D
May 29, 2022

Yes D for sure.

drliu1202Option: D
Aug 12, 2022

"nmcli dev wifi connect SSID-Name password wireless-password" https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/connecting-to-a-wi-fi-network-with-nmcli_managing-wi-fi-connections#:~:text=nmcli%20dev%20wifi%20connect%20SSID%2DName%20password%20wireless%2Dpassword

ktuoOption: D
Nov 21, 2022

D is the correct, tested!

TT924Option: D
Dec 15, 2022

This command is not for creating connection profile

demarkoOption: D
Mar 19, 2021

[user@localhost~]$ nmcli device wifi connect WIFIoI Error: No Wi-Fi device found.

lucaverceOption: D
May 29, 2022

Yes D is the correct answer, Thuanvd you're right. D. NetworkManager returns an error in case the connection WIFIoI does not exist.

thanuxOption: D
Jul 20, 2022

D is the correct one, tested on RHEL7.9 [root@zmail ~]# nmcli device wifi connect WIFIoI Error: No Wi-Fi device found.

ktuoOption: D
Nov 21, 2022

D is the correct, tested!

blk_542Option: D
Jun 10, 2023

For C to be correct, it would have to be nmcli connection add type wifi con-name... D is the correct answer