NFExporter handles and manipulates NetFlow exporters.
More...
NFExporter handles and manipulates NetFlow exporters.
◆ addMonitor()
void NFExporter::addMonitor |
( |
string |
| ) |
|
Adds a monitor with the specified name.
- Parameters
-
monitorName,the | name for the monitor. |
◆ createFrameInstance()
◆ getDestinationAddr()
ip NFExporter::getDestinationAddr |
( |
| ) |
|
Returns the destination IP address.
- Returns
- ip, the IP address of the destination.
◆ getDestinationUdpPort()
int NFExporter::getDestinationUdpPort |
( |
| ) |
|
Returns the destination UDP port number.
- Returns
- int, the UDP port number of the destination.
◆ getDeviceUpTime()
long NFExporter::getDeviceUpTime |
( |
| ) |
|
Returns the device up time.
- Returns
- int, the device up time.
◆ getExporterName()
string NFExporter::getExporterName |
( |
| ) |
|
Returns the name of the NetFlow exporter.
- Returns
- string, the name of the NetFlow exporter.
◆ getExporterVersion()
int NFExporter::getExporterVersion |
( |
| ) |
|
Returns the version of the NetFlow exporter.
- Returns
- int, the version of the NetFlow exporter.
◆ getSrcPort()
Port NFExporter::getSrcPort |
( |
| ) |
|
Returns the source port.
- Returns
- Port, the Port object of the source port.
◆ getTemplateById()
Returns the NetFlow template with the specified ID.
- Parameters
-
id,the | ID of the NetFlow template of interest. |
- Returns
- NFTemplate, the NFTemplate object with the specified ID.
◆ getTemplateByRecordName()
NFTemplate NFExporter::getTemplateByRecordName |
( |
string |
| ) |
|
Returns the NetFlow template with the specified record name.
- Parameters
-
recordName,the | record name of the NetFlow template of interest. |
- Returns
- NFTemplate, the NFTemplate object with the specified record name.
◆ isFullyConfigured()
bool NFExporter::isFullyConfigured |
( |
| ) |
|
Returns true if the NetFlow exporter is fully configured, otherwise false.
- Returns
- bool, true if the NetFlow exporter is fully configured, otherwise false.
◆ removeMontior()
void NFExporter::removeMontior |
( |
string |
| ) |
|
Removes the monitor with the specified name.
- Parameters
-
monitorName,the | name of the monitor of interest. |
◆ removeTemplate()
bool NFExporter::removeTemplate |
( |
int |
| ) |
|
Removes the NetFlow template with the specified ID.
- Parameters
-
templateId,the | ID of the NetFlow template of interest. |
- Returns
- bool, true if successful, otherwise false.
◆ setDestinationAddr()
void NFExporter::setDestinationAddr |
( |
ip |
| ) |
|
Sets the destination IP address.
- Parameters
-
ip_add,the | IP address of the destination. |
◆ setDestinationUdpPort()
void NFExporter::setDestinationUdpPort |
( |
int |
| ) |
|
Sets the destination UDP port number.
- Parameters
-
port,the | UDP port number for the destination. |
◆ setExporterName()
void NFExporter::setExporterName |
( |
string |
| ) |
|
Sets the name for the NetFlow exporter.
- Parameters
-
name,the | name for the NetFlow exporter. |
◆ setExporterVersion()
void NFExporter::setExporterVersion |
( |
int |
| ) |
|
Sets the version for the NetFlow exporter.
- Parameters
-
version,the | version for the NetFlow exporter. |
◆ setSrcPort()
void NFExporter::setSrcPort |
( |
string |
| ) |
|
Sets the source port.
- Parameters
-
port,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
The documentation for this class was generated from the following file: