March 17, 2017

Subscription Management in RHEL 7

Register first, then manually add a subscription.

subscription-manager register

List all available subscription.

subscription-manager list --available --all

Attach a specific subscription.

subscription-manager attach --pool=XXXXXXXXXXXXXX

Verify that you now have access to subscribed rpm repos.

yum repolist

Check subscriptions

subscription-manager list

Unregistering a system

subscription-manager remove --all
subscription-manager unregister
subscription-manager clean

Debugging HTTP Request in JBoss EAP 7

<subsystem xmlns="urn:jboss:domain:undertow:3.1">
    ...
    <server name="default-server">
        ...
        <host name="default-host" alias="localhost">
            ...
            <filter-ref name="request-dumper"/>
        </host>
    </server>
    ...
    <filters>
        ...
        <filter name="request-dumper" class-name="io.undertow.server.handlers.RequestDumpingHandler" module="io.undertow.core"/>
    </filters>
</subsystem>

How to Set Hostname on RHEL 7

To change permanent:

hostnamectl set-hostname openam.example.com

Reboot and verify.

hostnamectl status