Info: Easy macro hostname replacement

Info: Easy macro hostname replacement

89
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:56 PM


Symptom


Note: This article has become obsolete because we now ship FQDN macros

-Aaron Hixson

Applies To:

Venafi TrustAuthority 14.1, Venafi TrustForce 14.1

Summary:

The $hostname$ macro returns just the shortname of the engine that its running on. This is good, but doesnt work well when used inside links in email notifications because it often doesnt match the name on the certificate being used and/or wont resolve via DNS for some clients. We dont want to hard-code the server name in the notifications either. We want to be able to provide a similar macro, preferably be able to reference the server URL via a macro. That way if were using a load-balancer or a DNS CNAME or something it can be changed without having to edit a bunch of notifications.

Cool Workaround:

In the platforms tree, for each Engine, put the FQDN in the Description field, like so:

image002.png

Now, in your notification, you can use the following macro:

$Config[\VED\Engines\$Hostname$,Description]$

This should work for multiple Engines, just put the respective FQDN in the description for each Engine.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000011mrCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail