Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API & Integration

Reply
Highlighted
Accepted Solution

Encoded dhcp_client_identifier

[ Edited ]
Techie
Posts: 3
2769     0

I am running on NIOS 8.0.4-349728.

 

Objecttive:

 

To produce a list of all active dhcp leases in all networks, showing each lease's network, IP address, MAC addresse, and DHCP client type, via the REST api.

 

I have sucessfully obtained all the information except for the last field. The relevant URL path I use for the last step is as follows:

 

   

/ipv4address?network=$network&status=USED&_return_type=json

 

The returned objects contain "dhcp_client_identifier", which seems to be encoded / displayed in a different charset, e.g.

 

    "\001\000#\353R\211\255"

 

How do I decode/convert this value to ascii, although I am not sure what to expect?

 

I can see the client info displayed as "fingerprint" in the GUI, but it is not available via the api.

 

Any help is appreciated.

Highlighted

Re: Encoded dhcp_client_identifier

Moderator
Moderator
Posts: 87
2770     0

dhcp_client_identifier is just a unique ID for the DHCP client inside the DHCP database.

 

Are you looking to get the DHCP fingerprint information for the device? If so you need to use _return_fields and add "fingerprint." Fingerprint is not shown in the default return fields.

Showing results for 
Search instead for 
Do you mean 

Recommended for You