This article outlines the reason that users may receive the "error:[Error] Cannot enroll with empty hostname," error while enrolling their SRX HA Cluster in Sky ATP, and explains what must be done to prevent the error.
While enrolling their SRX HA Cluster in Sky ATP, users may receive the following error:
{primary:node0}
root@srx-1> op url <portal enrollment url>.slax
Platform is supported by Sky ATP: <device type>
Version <version> is valid for bootstrapping.
error: [Error] Cannot enroll with empty hostname
Please set hostname for your device
Users may receive this error when they attempt to enroll their SRX HA Cluster without having both SRX devices connected.
While enrolling the SRX HA Cluster in Sky ATP, both SRX devices in the HA Pair must be connected.
> show chassis cluster status
The output of the above command should contain both SRX nodes as shown below:
Monitor Failure codes:
CS Cold Sync monitoring FL Fabric Connection monitoring
GR GRES monitoring HW Hardware monitoring
IF Interface monitoring IP IP monitoring
LB Loopback monitoring MB Mbuf monitoring
NH Nexthop monitoring NP NPC monitoring
SP SPU monitoring SM Schedule monitoring
CF Config Sync monitoring RE Relinquish monitoring
Cluster ID: 1
Node Priority Status Preempt Manual Monitor-failures
Redundancy group: 0 , Failover count: 1
node0 200 primary no no None
node1 100 secondary no no None
Redundancy group: 1 , Failover count: 1
node0 200 primary no no None
node1 100 secondary no no None
If the secondary node is missing from this output, it means that the peer is not connected and users will not be able to enroll the SRX HA Pair in Sky ATP.