RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1527727 - [RFE] Subscription-manager should report uptime or last booted time as a system fact
Summary: [RFE] Subscription-manager should report uptime or last booted time as a syst...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.7
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Chris Snyder
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1544891
TreeView+ depends on / blocked
 
Reported: 2017-12-20 00:58 UTC by Rich Jerrido
Modified: 2018-10-30 10:37 UTC (History)
6 users (show)

Fixed In Version: subscription-manager-1.21.4-3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:36:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
boot time system fact on GUI (120.04 KB, image/png)
2018-06-25 14:27 UTC, Shwetha Kallesh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 1811 0 None closed 1527727: Add proc_stat.btime fact 2020-12-31 00:18:15 UTC
Red Hat Product Errata RHBA-2018:3153 0 None None None 2018-10-30 10:37:12 UTC

Description Rich Jerrido 2017-12-20 00:58:36 UTC
Description of problem:

Subscription-manager should report uptime or last booted time as a system fact. As a user of subscription-manager, having the uptime or last booted time as a system fact allows me to identify (along with the last check-in time) how long as system has been online. 

ideally, this would be set via rhsmcertd on daemon startup.

Comment 3 Kevin Howell 2018-02-22 15:35:26 UTC
Dev: in order to reduce fact change, we can just report "last booted time" a la `uptime -s`.

Comment 8 Shwetha Kallesh 2018-06-25 14:27:43 UTC
Created attachment 1454377 [details]
boot time system fact on GUI

Verification:

[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.5.4-1
subscription management rules: 5.26
subscription-manager: 1.21.5-4.el7

[root@localhost ~]# cat /proc/stat | grep btime
btime 1529331676

[root@localhost ~]# subscription-manager facts --list | grep btime
proc_stat.btime: 1529331676

Comment 10 errata-xmlrpc 2018-10-30 10:36:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3153


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