Get connected Wi-Fi network signal strength with nmcli











up vote
-1
down vote

favorite












I'm able to get the signal strength of all Wi-Fi networks with the following command:



$ nmcli -t -f SIGNAL device wifi list
77
67
60
59
55
45
44
39
39
37
35
35
29
27
27
24
20
20
17
14
12
10
10


I would like to reduce this list only to the current Wi-Fi on which I'm connected. I've been through the man page but can't find the necessary flag.



One solution would be to use sed or awk, but I would like to avoid piping.



Should I use nmcli device wifi instead of parsing directly for the SIGNAL column?










share|improve this question




















  • 1




    I'm voting to close this question as off-topic because it has nothing to do with programming and belongs to unix.stackexchange.com/questions/tagged/linux or superuser.com/questions/tagged/linux#
    – tink
    2 days ago






  • 1




    You're absolutely right, mistake from my part.
    – Grégoire Borel
    yesterday















up vote
-1
down vote

favorite












I'm able to get the signal strength of all Wi-Fi networks with the following command:



$ nmcli -t -f SIGNAL device wifi list
77
67
60
59
55
45
44
39
39
37
35
35
29
27
27
24
20
20
17
14
12
10
10


I would like to reduce this list only to the current Wi-Fi on which I'm connected. I've been through the man page but can't find the necessary flag.



One solution would be to use sed or awk, but I would like to avoid piping.



Should I use nmcli device wifi instead of parsing directly for the SIGNAL column?










share|improve this question




















  • 1




    I'm voting to close this question as off-topic because it has nothing to do with programming and belongs to unix.stackexchange.com/questions/tagged/linux or superuser.com/questions/tagged/linux#
    – tink
    2 days ago






  • 1




    You're absolutely right, mistake from my part.
    – Grégoire Borel
    yesterday













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I'm able to get the signal strength of all Wi-Fi networks with the following command:



$ nmcli -t -f SIGNAL device wifi list
77
67
60
59
55
45
44
39
39
37
35
35
29
27
27
24
20
20
17
14
12
10
10


I would like to reduce this list only to the current Wi-Fi on which I'm connected. I've been through the man page but can't find the necessary flag.



One solution would be to use sed or awk, but I would like to avoid piping.



Should I use nmcli device wifi instead of parsing directly for the SIGNAL column?










share|improve this question















I'm able to get the signal strength of all Wi-Fi networks with the following command:



$ nmcli -t -f SIGNAL device wifi list
77
67
60
59
55
45
44
39
39
37
35
35
29
27
27
24
20
20
17
14
12
10
10


I would like to reduce this list only to the current Wi-Fi on which I'm connected. I've been through the man page but can't find the necessary flag.



One solution would be to use sed or awk, but I would like to avoid piping.



Should I use nmcli device wifi instead of parsing directly for the SIGNAL column?







linux parsing networkmanager






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









jww

52k37213479




52k37213479










asked 2 days ago









Grégoire Borel

81711331




81711331








  • 1




    I'm voting to close this question as off-topic because it has nothing to do with programming and belongs to unix.stackexchange.com/questions/tagged/linux or superuser.com/questions/tagged/linux#
    – tink
    2 days ago






  • 1




    You're absolutely right, mistake from my part.
    – Grégoire Borel
    yesterday














  • 1




    I'm voting to close this question as off-topic because it has nothing to do with programming and belongs to unix.stackexchange.com/questions/tagged/linux or superuser.com/questions/tagged/linux#
    – tink
    2 days ago






  • 1




    You're absolutely right, mistake from my part.
    – Grégoire Borel
    yesterday








1




1




I'm voting to close this question as off-topic because it has nothing to do with programming and belongs to unix.stackexchange.com/questions/tagged/linux or superuser.com/questions/tagged/linux#
– tink
2 days ago




I'm voting to close this question as off-topic because it has nothing to do with programming and belongs to unix.stackexchange.com/questions/tagged/linux or superuser.com/questions/tagged/linux#
– tink
2 days ago




1




1




You're absolutely right, mistake from my part.
– Grégoire Borel
yesterday




You're absolutely right, mistake from my part.
– Grégoire Borel
yesterday

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418159%2fget-connected-wi-fi-network-signal-strength-with-nmcli%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418159%2fget-connected-wi-fi-network-signal-strength-with-nmcli%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Trompette piccolo

Slow SSRS Report in dynamic grouping and multiple parameters

Simon Yates (cyclisme)