Bug 2222056 - [RHEL 9] 'sysctl -N' shows values instead of names
Summary: [RHEL 9] 'sysctl -N' shows values instead of names
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: procps-ng
Version: 9.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Rybar
QA Contact: Karel Volný
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-11 17:22 UTC by Pranav Lawate
Modified: 2023-08-17 13:52 UTC (History)
2 users (show)

Fixed In Version: procps-ng-3.3.17-12.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-162047 0 None None None 2023-07-11 17:25:07 UTC

Description Pranav Lawate 2023-07-11 17:22:14 UTC
Description of problem:
Command output `# sysctl -N`  shows the values instead of the parameter names.
'-N' wrongly behaves like '-n'

Version-Release number of selected component (if applicable):
procps-ng-3.3.17-11.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Run sysctl command with '-N'




Actual results:

RHEL 9
~~~
# sysctl -N -p /usr/lib/sysctl.d/50-default.conf
16
1
2
2
2
2
2
0
0
0
0
0
1
1
1
1
1
0 2147483647
fq_codel
1
1
1
1

# sysctl -n -p /usr/lib/sysctl.d/50-default.conf
16
1
2
2
2
2
2
0
0
0
0
0
1
1
1
1
1
0 2147483647
fq_codel
1
1
1
1
~~~


Expected results:
As per RHEL 8 results--> 
~~~
# sysctl -N -p /usr/lib/sysctl.d/50-default.conf 
kernel.sysrq
kernel.core_uses_pid
kernel.kptr_restrict
net.ipv4.conf.all.rp_filter
net.ipv4.conf.all.accept_source_route
net.ipv4.conf.all.promote_secondaries
sysctl: cannot stat /proc/sys/-net/ipv4/ping_group_range: No such file or directory
net.core.default_qdisc
fs.protected_hardlinks
fs.protected_symlinks

# sysctl -n -p /usr/lib/sysctl.d/50-default.conf 
16
1
1
1
0
1
sysctl: cannot stat /proc/sys/-net/ipv4/ping_group_range: No such file or directory
fq_codel
1
1
~~~


Note You need to log in before you can comment on or make changes to this bug.