This URL gets passive device profiling setting at the Sensor level.
Resource URL
GET /sensor/<sensor_id>/passivedeviceprofiling
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Inherit settings from parent node | Boolean |
| Object that contains passive device profiling setting | Object |
| Bind monitoring port of a Sensor to receive a DHCP traffic with a relay agent | Boolean |
| Object that contains monitoring port details for receiving DHCP traffic | Object |
| Passive device profiling state on Sensor | String |
interfaceStatusList | List of interfaces with enable status of passive device profiling setting in inbound/outbound direction | Object |
Details of fields in passiveDeviceProfilingSetting:
Field Name | Description | Data Type |
|---|---|---|
| Profiling technique to use for device profiling | Object |
| Profile expiration duration for re-profiling of a device | Object |
| Specifies the duration after which information for a device is considered invalid | Number |
Details of fields in profilingTechniques:
Field Name | Description | Data Type |
|---|---|---|
| Enable DHCP for device profiling | Boolean |
| Enable TCP for device profiling | Boolean |
| Enable HTTP for device profiling | Boolean |
Details of fields in profileExpiration:
Field Name | Description | Data Type |
|---|---|---|
| Profile expiration duration | Number |
| Profile expiration duration unit, can be "MINUTES" / "HOURS" | String |
Details of fields in bindIPAddressDetails:
Field Name | Description | Data Type |
|---|---|---|
| Monitoring port of a Sensor to receive a DHCP traffic with a relay agent | String |
| IP address of the monitoring port | String |
| Network mask | String |
| Default gateway | String |
| VLAN id | String |
Details of object in interfaceStatusList:
Field Name | Description | Data Type |
|---|---|---|
| Interface id | Number |
| Interface name | String |
| Enable status in inbound direction | Boolean |
| Enable status in outbound direction | Boolean |
| List of sub-interfaces in a particular interface with enable status of passive device profiling in inbound/outbound direction | Object |
Details of fields in subinterfaceStatusList:
Field Name | Description | Data Type |
|---|---|---|
| Interface id | Number |
| Interface name | String |
| Enable status in inbound direction | Boolean |
| Enable status in outbound direction | Boolean |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/passivedeviceprofiling
Response
{
"inheritSettingsfromIPSSettingsNode": true,
"passiveDeviceProfilingSetting":
{
"profilingTechniques":
{
"DHCPEnableStatus": false,
"TCPEnableStatus": false,
"HTTPEnableStatus": true
},
"profileExpiration":
{
"duration": 10,
"unit": "HOURS"
},
"hostInactivityTimerInHrs": 11
},
"bindIPForCopiedDHCPTraffic": true,
"bindIPAddressDetails":
{
"designatedPort": "4A",
"portIPAddress": "100.100.100.10",
"networkMask": "255.255.0.0",
"defaultGateway": "100.100.100.1",
"vlanID": "10"
},
"PassiveDeviceProfilingStateForSensor": "ENABLE_DEVICEPROFILING_FOR_ENTIRE_DEVICE",
"interfaceStatusList":
[
{
"interfaceId": 117,
"interfaceName": "3B",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 105,
"interfaceName": "1A-1B",
"enableInbound": true,
"enableOutbound": true,
"subinterfaceStatusList":
[
{
"subInterfaceId": 118,
"subInterfaceName": "TestVLAN1",
"enableInbound": true,
"enableOutbound": true
}
]
},
{
"interfaceId": 104,
"interfaceName": "2A-2B",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 103,
"interfaceName": "3A",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 102,
"interfaceName": "4A-4B",
"enableInbound": true,
"enableOutbound": true
}
]
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1106 | Invalid Sensor |