Description

This article provides a work-around for correcting the error condition.

Symptoms

Job Type: Execute RPC, which says 'Success'; however, device enrollment will get failed which can be seen under Job Result 

image.png

image.png

Job Result:

<output  xmlns:junos="http://xml.juniper.net/junos/22.4R0/junos">Platform is supported by ATP Cloud: VSRX.</output>
<output>Version 22.4R2.8 is valid for bootstrapping.</output>
<output>License found with name: ATP Cloud.</output>
<output>Enrolling with ATP Cloud license serial number: 060320220305-qu4C1.</output>
<xnm:error xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
<source-daemon>op-script</source-daemon>
<message>[Error] Cannot enroll with empty hostname
Please set hostname for your device</message>
</xnm:error>
<xnm:error xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
<source-daemon>op-script</source-daemon>
<message></message>
</xnm:error>



Below Output can be seen on SD-PE

[root@localhost ~]# mysql -uroot -pmariadb -A feeder -e "select * from device where ip='10.219.87.40' \G;"
*************************** 1. row ***************************
                    id: 27192cb6-cef9-4d73-ac6a-28e382f8e778
                 emsId: 20
               emsSdId: 2195481
            lsysDevice: 0
   lsysRootDeviceEmsId: 20
 lsysRootDeviceEmsSdId: 2195481
                  name: 10.219.87.40
           description: NULL
                domain: NULL
          feedSourceId: 7971b4a0-9197-4ae5-952d-d9fb509e56a6
                    ip: 10.219.87.40
                 model: VSRX
          serialNumber: 3025FBBA6CFF
 secondarySerialNumber: NA
               cluster: 0
              createTs: 1720587179
              updateTs: 1720587451
            initStatus: FAILURE
          enrollStatus: ENROLL_FAILURE
feedSourceConfigStatus: NULL
      initStatusReason: Sky Enrollment Failed
  enrollFailureDetails: ['[Error] Cannot enroll with empty hostname', 'Please set hostname for your device', 'None']
           connectorId: NULL
       perimeterDevice: 1

 

Solution

Need to configure hostname on the affected device, it should not be root or empty. Once Hostname is rectified on the device then re-enroll the device from secure site page. 

 

Note : If you face any issues, please contact JUNIPER JTAC Support for assistance.

Modification History

Article Created - 9th July 24