Table Of Contents
CNS NetFlow Collection Engine CNS/XML Interface
Terminology
Message Format
Communication
Message List
List Filters
Add Filter
Drop a Filter
List a Filter's Attributes
List Protocols
Add a Protocol
Drop a Protocol
List a Protocol's Attributes
List Aggregators
Add an Aggregator
Drop an Aggregator
List an Aggregator's Attributes
List Threads
Add a Thread
Drop a Thread
List a Thread's Attributes
List User-Defined Types
List a User-Defined Type's Attributes
List NDE Sources
List Collectors
List a Collector's Configuration
Update a Collector's Configuration
List Known Source Ports
List Known Destination Ports
List Known Source ASNs
List Known Destination ASNs
Application Statistics
Start FlowCollector
Stop FlowCollector
Disk Consumption Reaches a Certain Limit
Unsolicited Packet is Received
Active Threads Limit Is Reached
Incompatible Packet with an Aggregation Scheme
Could Not Write a Data File
Start FlowCollector Event
Stop FlowCollector Event
Application Error
CNS NetFlow Collection Engine CNS/XML Interface
This appendix describes the CNS NetFlow Collection Engine CNS/Xtensible Markup Language (XML) interface, a message-based application interface that allows for messaging from, and remote manageability of, the CNS NetFlow Collection Engine application. Messages exchanged between CNS NetFlow Collection Engine and remote applications fall under two broad categories:
•
Request/response pairs
•
Unsolicited event notifications (UENs), or trap messages
Note
In order for an application to receive UENs from the CNS/XML interface, the nf.resources file must be configured to specify the IP address and port (or the DNS system name and port) of the interface event listener. By default, the interface is configured for port 20000 on the same IP address of the collector. See the "Modifying CNS NetFlow Collection Engine Resources" section on page 5-32 for details on this option.
Terminology
Throughout this appendix, the following terms are used:
•
Server refers to the CNS NetFlow Collection Engine application
•
Client refers to the applications making control or configuration requests
•
Event represents an operational or environmental condition of interest. Examples include:
–
Collector process has terminated.
–
Disk space is running low.
•
UEN (or trap) is an unsolicited message that reports the occurrence of an event on CNS NetFlow Collection Engine, and is sent to one or more recipients. The CNS/XML interface and the Network Data Analyzer application are examples of recipients.
Message Format
This section describes the XML message format used between XML clients and the CNS NetFlow Collection Engine. XML is string-based to avoid the inherent big-endian and little-endian problems associated with communication between machines of differing architectures.
The messages fall into the following categories:
•
Request—A request is initiated by the client and contains authentication information.
•
Response— CNS NetFlow Collection Engine services the request and responds with a response message.
•
Event (UEN) —An event notification is generated by CNS NetFlow Collection Engine and the interface forwards the event on in XML format.
All messages must be well-formed XML and have a root <nfc> element. For requests, the root element may contain any number of valid request elements. For events, the root element will contain an appropriate event element describing the event. Most request elements require login and password attributes. These attributes are used to authenticate the client with the CNS NetFlow Collection Engine and should relate to the NFC_USERNAME setting of the nf.resources file.
All response messages have a status attribute. Table E-1 describes these status attributes.
Table E-1 Response Message Status Attributes
Attribute
|
Description
|
GET_RESPONSE
|
Request was successful. Successful requests may contain <info> or <warn> elements that contain descriptive test.
|
SET_RESPONSE
|
Request was successful. Successful requests may contain <info> or <warn> elements that contain descriptive test.
|
AUTH_ERROR
|
Authentication error occurred.
|
SYNTAX_ERROR
|
An error was detected in parsing a request.
|
DOWN_ERROR
|
CNS NetFlow Collection Engine cannot process a request because its processing engines are unavailable (that is, backend processes are not running).
|
GET_ERROR
|
CNS NetFlow Collection Engine cannot process a request due to operational reasons. The response will contain at least one <error> element.
|
SET_ERROR
|
CNS NetFlow Collection Engine cannot process a request due to operational reasons. The response will contain at least one <error> element.
|
XML_ERROR
|
A problem occurred relating to the XML being used.
|
All event messages contain at least one <collector> element to indicate which CNS NetFlow Collection Engine generated the event.
Communication
CNS NetFlow Collection Engine expects the request XML messages to come over the CNS Integration bus. Each CNS NetFlow Collection Engine listens for two bus event subjects. One subject is for broadcast messages that all CNS NetFlow Collection Engine will process. The other is for messages intended for only the local CNS NetFlow Collection Engine. Response messages are sent back onto the bus using the same subject they came in on. Both subjects can be changed by editing $NFC_DIR/config/nfc_xml.properties and restarting the CNS/XML interface.
CNS NetFlow Collection Engine forwards UENs in XML format on a third CNS Integration bus event subject. This subject can be updated by editing $NFC_DIR/config/nfc_xml.properties and restarting the CNS/XML interface.
Message List
This section describes all valid XML messages. Messages are organized by requests and their corresponding responses (including errors) followed by events. Some errors apply to all request messages. These error conditions indicate the following:
•
Authentication failure (response has an AUTH_ERROR status)
•
Collector processes unavailable (response has a DOWN_ERROR status)
•
Invalid XML according to schema (response has an XML_ERROR status)
Note
The XML schema is defined in $NFC_DIR/config/nfc.xsd.
List Filters
<getFilterList login="nfcuser" password="nfcuser"/>
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<getFilterListResponse status="GET_RESPONSE">
<filter id="allow-web-serv"/>
<filter id="deny-icmp-traf"/>
<filter id="V9DenyWeb" userdef="true"/>
Possible error responses can be:
<?xml version="1.0" encoding="UTF-8"?>
<getFilterListResponse status="AUTH_ERROR">
<error>incorrect password</error>
or:
<?xml version="1.0" encoding="UTF-8"?>
<getFilterListResponse status="DOWN_ERROR">
<error>collector communication failure</error>
Add Filter
<addFilter login="nfcuser" password="nfcuser">
<value>192.168.1.1</value>
<mask>255.255.255.255</mask>
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<addFilterResponse status="SET_RESPONSE">
Possible error responses can be:
<?xml version="1.0" encoding="UTF-8"?>
<addFilterResponse status="SET_ERROR">
<error>duplicate filter ID</error>
Drop a Filter
<removeFilter login="nfcuser" password="nfcuser">
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<removeFilterResponse status="SET_RESPONSE">
<info>dropped Filter foo</info>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<removeFilterResponse status="SET_ERROR">
<error>filter ID not found</error>
List a Filter's Attributes
<getFilter login="nfcuser" password="nfcuser">
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<getFilterResponse status="GET_RESPONSE">
<value>192.168.1.1</value>
<mask>255.255.255.255</mask>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<getFilterResponse status="GET_ERROR">
<error>filter ID not found</error>
List Protocols
<getProtocolList login="nfcuser" password="nfcuser"/>
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<getProtocolListResponse status="GET_RESPONSE">
<protocol id="TCP-Telnet"/>
<protocol id="TCP-SMTP"/>
<protocol id="TCP-NNTP"/>
<protocol id="TCP-Other"/>
<protocol id="UDP-TFTP"/>
<protocol id="UDP-NNTP"/>
<protocol id="UDP-Other"/>
</getProtocolListResponse>
Add a Protocol
<addProtocol login="nfcuser" password="nfcuser">
<protocol id="fooProtocol">
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<addProtocolResponse status="SET_RESPONSE">
<protocol id="fooProtocol"/>
Drop a Protocol
<removeProtocol login="nfcuser" password="nfcuser">
<protocol id="fooProtocol"/>
An expected sample response is:
<?xml version="1.0" encoding="UTF-8"?>
<removeProtocolResponse status="SET_RESPONSE">
<info>dropped Protocol fooProtocol</info>
<protocol id="fooProtocol"/>
</removeProtocolResponse>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<removeProtocolResponse status="SET_ERROR">
<error>protocol ID not found</error>
<protocol id="fooProtocol"/>
</removeProtocolResponse>
List a Protocol's Attributes
<getProtocol login="nfcuser" password="nfcuser">
<protocol id="fooProtocol"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getProtocolResponse status="GET_RESPONSE">
<protocol id="fooProtocol">
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<getProtocolResponse status="GET_ERROR">
<error>protocol ID not found</error>
<protocol id="fooProtocol"/>
List Aggregators
<getAggregatorList login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getAggregatorListResponse status="GET_RESPONSE">
<aggregator id="RawFlows"/>
<aggregator id="SourceNode"/>
<aggregator id="DestNode"/>
<aggregator id="HostMatrix"/>
<aggregator id="SourcePort"/>
<aggregator id="DestPort"/>
<aggregator id="Protocol"/>
<aggregator id="DetailSourceNode"/>
<aggregator id="DetailDestNode"/>
<aggregator id="DetailHostMatrix"/>
<aggregator id="Cafeteria"/>
<aggregator id="DetailInterface"/>
<aggregator id="CallRecord"/>
<aggregator id="ASMatrix"/>
<aggregator id="DetailASMatrix"/>
<aggregator id="NetMatrix"/>
<aggregator id="ASHostMatrix"/>
<aggregator id="HostMatrixInterface"/>
<aggregator id="DetailCallRecord"/>
<aggregator id="RouterAS"/>
<aggregator id="RouterProtoPort"/>
<aggregator id="RouterSrcPrefix"/>
<aggregator id="RouterDstPrefix"/>
<aggregator id="RouterPrefix"/>
<aggregator id="ASPort"/>
<aggregator id="RouterTosAS"/>
<aggregator id="RouterTosProtoPort"/>
<aggregator id="RouterTosSrcPrefix"/>
<aggregator id="RouterTosDstPrefix"/>
<aggregator id="RouterTosPrefix"/>
<aggregator id="RouterPrePortProtocol"/>
<aggregator id="RouterDestOnly"/>
<aggregator id="RouterSrcDst"/>
<aggregator id="RouterFullFlow"/>
<aggregator id="V9SrcDst" userdef="true"/>
<aggregator id="V9Dethm" userdef="true"/>
</getAggregatorListResponse>
Add an Aggregator
<addAggregator login="nfcuser" password="nfcuser">
<aggregator id="fooAggregator" userdef="true">
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<addAggregatorResponse status="SET_RESPONSE">
<aggregator id="fooAggregator"/>
Drop an Aggregator
<removeAggregator login="nfcuser" password="nfcuser">
<aggregator id="fooAggregator"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<removeAggregatorResponse status="SET_RESPONSE">
<info>dropped Aggregation fooAggregator</info>
<aggregator id="fooAggregator"/>
</removeAggregatorResponse>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<removeAggregatorResponse status="SET_ERROR">
<error>aggregation not foun</error>
<aggregator id="fooAggregator"/>
</removeAggregatorResponse>
List an Aggregator's Attributes
<getAggregator login="nfcuser" password="nfcuser">
<aggregator id="fooAggregator"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getAggregatorResponse status="GET_RESPONSE">
<aggregator id="fooAggregator">
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<getAggregatorResponse status="GET_ERROR">
<error>aggregation not found</error>
List Threads
<getThreadList login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getThreadListResponse status="GET_RESPONSE">
Add a Thread
<addThread login="nfcuser" password="nfcuser">
<aggregator id="SourcePort"/>
<filter id="allow-web-serv"/>
<data-set-path>/tmp</data-set-path>
<compression>true</compression>
<max-usage>10</max-usage>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<addThreadResponse status="SET_RESPONSE">
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
Drop a Thread
<removeThread login="nfcuser" password="nfcuser">
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<removeThreadResponse status="SET_RESPONSE">
<info>dropped Thread fooThread</info>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<removeThreadResponse status="SET_ERROR">
<error>thread ID not found</error>
List a Thread's Attributes
<getThread login="nfcuser" password="nfcuser">
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getThreadResponse status="GET_RESPONSE">
<aggregator>SourcePort</aggregator>
<filter>allow-web-serv</filter>
<data-set-path>/tmp</data-set-path>
<compression>true</compression>
<max-usage>10</max-usage>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<getThreadResponse status="GET_ERROR">
<error>thread ID not found</error>
List User-Defined Types
<getUserDefTypeList login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getUserDefTypeListResponse status="GET_RESPONSE">
<userdef-type id="BYTES_32"/>
<userdef-type id="PKTS_32"/>
<userdef-type id="FLOWS"/>
<userdef-type id="PROT"/>
<userdef-type id="TCP_FLAGS"/>
<userdef-type id="SRC_PORT"/>
<userdef-type id="IPSRCADDR"/>
<userdef-type id="SRC_MASK"/>
<userdef-type id="INPUT_SNMP"/>
<userdef-type id="DST_PORT"/>
<userdef-type id="IPDSTADDR"/>
<userdef-type id="DST_MASK"/>
<userdef-type id="OUTPUT_SNMP"/>
<userdef-type id="NEXT_HOP"/>
<userdef-type id="SRC_AS"/>
<userdef-type id="DST_AS"/>
<userdef-type id="BGP_NEXT_HOP"/>
<userdef-type id="MUL_DPKTS"/>
<userdef-type id="MUL_DOCTETS"/>
<userdef-type id="LAST_SWITCH"/>
<userdef-type id="FIRST_SWITCH"/>
<userdef-type id="BYTES_64"/>
<userdef-type id="PKTS_64"/>
<userdef-type id="MAC_ADDR"/>
<userdef-type id="VLAN_ID"/>
<userdef-type id="IPV6_SRC_ADDR"/>
<userdef-type id="IPV6_DST_ADDR"/>
<userdef-type id="IPV6_SRC_MASK"/>
<userdef-type id="IPV6_DST_MASK"/>
<userdef-type id="FLOW_LABEL"/>
<userdef-type id="ICMP_TYPE"/>
<userdef-type id="IGMP_TYPE"/>
<userdef-type id="SAMPLING_INTERVAL"/>
<userdef-type id="SAMPLING_ALGO"/>
<userdef-type id="FLOW_ACTIVE_TIMEOUT"/>
<userdef-type id="FLOW_INACTIVE_TIMEOUT"/>
<userdef-type id="ENGINE_TYPE"/>
<userdef-type id="ENGINE_ID"/>
<userdef-type id="TOTAL_BYTES_EXP"/>
<userdef-type id="TOTAL_EXP_PKTS_SENT"/>
<userdef-type id="TOTAL_FLOWS_EXP"/>
</getUserDefTypeListResponse>
List a User-Defined Type's Attributes
<getUserDefType login="nfcuser" password="nfcuser">
<userdef-type id="IPSRCADDR"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getUserDefTypeListResponse status="GET_RESPONSE">
<userdef-type dotted_address_type="true" id="IPSRCADDR">
</getUserDefTypeListResponse>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<getUserDefTypeListResponse status="GET_ERROR">
<error>no user-defined type found</error>
</getUserDefTypeListResponse>
List NDE Sources
<getNDESourceList login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getNDESourceListResponse status="GET_RESPONSE">
<ndeSource id="192.168.1.100"/>
</getNDESourceListResponse>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<getNDESourceListResponse status="GET_ERROR">
<error>no NetFlow export data sources found</error>
</getNDESourceListResponse>
List Collectors
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getCollectorListResponse>
<collector id="192.168.1.100"/>
<event-subject>cisco.mgmt.nfc.foo.cisco.com</event-subject>
</getCollectorListResponse>
List a Collector's Configuration
<getCollectorConfiguration login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getCollectorConfigurationResponse status="GET_RESPONSE">
<nfc-config-file>/opt/CSCOnfc/config/nfconfig.file</nfc-config-file>
<nfc-knownprotocols-file>/opt/CSCOnfc/config/nfknown.protocols</nfc-knownprotocols-fil
e>
<nfc-knownsrcports-file>/opt/CSCOnfc/config/nfknown.srcports</nfc-knownsrcports-file>
<nfc-knowndstports-file>/opt/CSCOnfc/config/nfknown.dstports</nfc-knowndstports-file>
<nfc-knownsrcasns-file>/opt/CSCOnfc/config/nfknown.srcasns</nfc-knownsrcasns-file>
<nfc-knowndstasns-file>/opt/CSCOnfc/config/nfknown.dstasns</nfc-knowndstasns-file>
<nfc-knowntype-file>/opt/CSCOnfc/config/nfknown.typefile</nfc-knowntype-file>
<nfc-log-file>/opt/CSCOnfc/logs/nfc.log</nfc-log-file>
<nfcgw-log-file>/opt/CSCOnfc/logs/nfcgw.log</nfcgw-log-file>
<output-dotted-address>true</output-dotted-address>
<csv-format>false</csv-format>
<long-outputfile-suffix>false</long-outputfile-suffix>
<gmt-flag>true</gmt-flag>
<device-dotted-address>true</device-dotted-address>
<incremental-flushing>true</incremental-flushing>
<network-order-binary-output>true</network-order-binary-output>
<sourcenode-bucsize>2000</sourcenode-bucsize>
<destnode-bucsize>2000</destnode-bucsize>
<hostmatrix-bucsize>2000</hostmatrix-bucsize>
<sourceport-bucsize>2000</sourceport-bucsize>
<destport-bucsize>2000</destport-bucsize>
<protocol-bucsize>2000</protocol-bucsize>
<detailsourcenode-bucsize>2000</detailsourcenode-bucsize>
<detaildestnode-bucsize>2000</detaildestnode-bucsize>
<detailhostmatrix-bucsize>6000</detailhostmatrix-bucsize>
<detailinterface-bucsize>6000</detailinterface-bucsize>
<cafeteria-bucsize>30000</cafeteria-bucsize>
<callrecord-bucsize>50000</callrecord-bucsize>
<asmatrix-bucsize>25000</asmatrix-bucsize>
<netmatrix-bucsize>25000</netmatrix-bucsize>
<detailasmatrix-bucsize>50000</detailasmatrix-bucsize>
<ashostmatrix-bucsize>50000</ashostmatrix-bucsize>
<hostmatrixinterface-bucsize>50000</hostmatrixinterface-bucsize>
<detailcallrecord-bucsize>50000</detailcallrecord-bucsize>
<routeras-bucsize>50000</routeras-bucsize>
<routertosas-bucsize>50000</routertosas-bucsize>
<routerprotoport-bucsize>50000</routerprotoport-bucsize>
<routertosprotoprot-bucsize>50000</routertosprotoprot-bucsize>
<routersourceprefix-bucsize>50000</routersourceprefix-bucsize>
<routertossourceprefix-bucsize>50000</routertossourceprefix-bucsize>
<routerdestprefix-bucsize>50000</routerdestprefix-bucsize>
<routertosdestprefix-bucsize>50000</routertosdestprefix-bucsize>
<routerprefix-bucsize>50000</routerprefix-bucsize>
<routertosprefix-bucsize>50000</routertosprefix-bucsize>
<routerpreportprotocol-bucsize>50000</routerpreportprotocol-bucsize>
<routerdestonly-bucsize>50000</routerdestonly-bucsize>
<routersrcdst-bucsize>50000</routersrcdst-bucsize>
<routerfullflow-bucsize>50000</routerfullflow-bucsize>
<interfacematrix-bucsize>50000</interfacematrix-bucsize>
<socket-bufsize>900000</socket-bufsize>
<nfc-poolentries>2000</nfc-poolentries>
<nfc-poolentries-for-flush>10000</nfc-poolentries-for-flush>
<use-short-cut-address-as-source-ip>false</use-short-cut-address-as-source-ip>
<output-buffer-size>4</output-buffer-size>
<nfc-username>nfcuser</nfc-username>
<cleanup-interval>24</cleanup-interval>
<cleanup-job>/opt/CSCOnfc/bin/nfc_clean_up_job.sh</cleanup-job>
<nfc20-compatible-mode>false</nfc20-compatible-mode>
<address>127.0.0.1</address>
<compression-level>6</compression-level>
<nfcd-logfile>/opt/CSCOnfc/logs/nfcd.log</nfcd-logfile>
<nfcd-max-restart-attempts>3</nfcd-max-restart-attempts>
<path>/opt/CSCOnfc/bin/NFCGW</path>
<retry-interval>1</retry-interval>
<autostart>true</autostart>
<tmpfile>/tmp/nfcgw.pid</tmpfile>
<tmpfile>/tmp/nfc.events</tmpfile>
<scheduling-class>TimeShared</scheduling-class>
<default-priority>-20</default-priority>
<path>/opt/CSCOnfc/bin/NFCollector</path>
<retry-interval>1</retry-interval>
<autostart>true</autostart>
<tmpfile>/tmp/nfcollector.pid</tmpfile>
<scheduling-class>TimeShared</scheduling-class>
<default-priority>-20</default-priority>
<path>/opt/CSCOnfc/bin/nfcxml.sh</path>
<retry-interval>1</retry-interval>
<autostart>true</autostart>
<scheduling-class>TimeShared</scheduling-class>
<default-priority>0</default-priority>
</getCollectorConfigurationResponse>
Update a Collector's Configuration
<setCollectorConfiguration login="nfcuser" password="nfcuser">
<collector-configuration>
<output-dotted-address>false</output-dotted-address>
</collector-configuration>
</setCollectorConfiguration>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<setCollectorConfigurationResponse status="SET_RESPONSE"/>
List Known Source Ports
<getKnownSrcPorts login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getKnownSrcPortsResponse status="GET_RESPONSE">
<label>1K_9K_Port</label>
<label>10K_19K_Port</label>
<label>20K_29K_Port</label>
<label>30K_39K_Port</label>
<label>40K_49K_Port</label>
<label>50K_59K_Port</label>
<label>60K_65K_Port</label>
</getKnownSrcPortsResponse>
List Known Destination Ports
<getKnownDstPorts login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getKnownDstPortsResponse status="GET_RESPONSE">
<label>1K_9K_Port</label>
<label>10K_19K_Port</label>
<label>20K_29K_Port</label>
<label>30K_39K_Port</label>
<label>40K_49K_Port</label>
<label>50K_59K_Port</label>
<label>60K_65K_Port</label>
</getKnownDstPortsResponse>
List Known Source ASNs
<getKnownSrcASNs login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getKnownSrcASNsResponse status="GET_RESPONSE">
</getKnownSrcASNsResponse>
List Known Destination ASNs
<getKnownDstASNs login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getKnownDstASNsResponse status="GET_RESPONSE">
</getKnownDstASNsResponse>
Application Statistics
<getApplicationStats login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<getApplicationStatsResponse status="GET_RESPONSE">
<packets-received>10</packets-received>
<packets-received-wrap-count>0</packets-received-wrap-count>
<records-wrap-count>0</records-wrap-count>
<packets-discarded>0</packets-discarded>
<records-missed>0</records-missed>
<records-missed-wrap-count>0</records-missed-wrap-count>
<packets-received>0</packets-received>
<packets-received-wrap-count>0</packets-received-wrap-count>
<records-wrap-count>0</records-wrap-count>
<packets-discarded>0</packets-discarded>
<records-missed>0</records-missed>
<records-missed-wrap-count>0</records-missed-wrap-count>
</getApplicationStatsResponse>
Start FlowCollector
<startCollector login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<startCollectorResponse status="SET_RESPONSE"/>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<startCollectorResponse status="SET_ERROR">
</startCollectorResponse>
Stop FlowCollector
<stopCollector login="nfcuser" password="nfcuser"/>
An expected response is:
<?xml version="1.0" encoding="UTF-8"?>
<stopCollectorResponse status="SET_RESPONSE">
<info>stopped at Thu Sep 19 14:08:59 2002</info>
A possible error response can be:
<?xml version="1.0" encoding="UTF-8"?>
<stopCollectorResponse status="SET_ERROR">
<error>not running</error>
Disk Consumption Reaches a Certain Limit
<?xml version="1.0" encoding="UTF-8"?>
<collector id="127.0.0.1"/>
<path>/opt/CSCOnfc</path>
<percent-used>100</percent-used>
Unsolicited Packet is Received
<?xml version="1.0" encoding="UTF-8"?>
<ReceivedUnsolicitedPacketEvent>
<collector id="127.0.0.1"/>
<source>192.168.1.100</source>
</ReceivedUnsolicitedPacketEvent>
Active Threads Limit Is Reached
<?xml version="1.0" encoding="UTF-8"?>
<MaxActiveThreadsLimitEvent>
<collector id="127.0.0.1"/>
</MaxActiveThreadsLimitEvent>
Incompatible Packet with an Aggregation Scheme
<?xml version="1.0" encoding="UTF-8"?>
<IncompatiblePacketAndAggregationEvent>
<collector id="127.0.0.1"/>
<info>V1 packet for ASMatrix</info>
</IncompatiblePacketAnAggregationEvent>
Could Not Write a Data File
<?xml version="1.0" encoding="UTF-8"?>
<DatafileNotWrittenEvent>
<collector id="127.0.0.1"/>
<file>/opt/CSCOnfc/Data/R1/1998_10_12/r1.1215</file>
<info>insufficient space in /opt/CSCOnfc</info>
</DatafileNotWrittenEvent>
Start FlowCollector Event
<?xml version="1.0" encoding="UTF-8"?>
<collector id="127.0.0.1"/>
<time>Thu Sep 19 10:56:28 2002</time>
Stop FlowCollector Event
<?xml version="1.0" encoding="UTF-8"?>
<collector id="127.0.0.1"/>
<time>Thu Sep 19 10:56:28 2002</time>
Application Error
This message is generated by the CNS/XML interface if there is a problem with the interface itself. This is an indicator that an error message is in $NFC_DIR/logs/nfcxml.log.
<?xml version="1.0" encoding="UTF-8"?>
<application-error status="XML_ERROR>
<error>NullPointerException</error>