Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


how to get the node connector statistics(ReceiveBytes& TransmitBytes) of every node

asked 2014-08-05 19:09:47 -0700

shangheng gravatar image

updated 2014-08-10 03:35:12 -0700

how to get the node connector statistics(ReceiveBytes& TransmitBytes) of every node. Below is my method, but I cannot got node connector statistics

 GetAllNodeConnectorsStatisticsInputBuilder b = new GetAllNodeConnectorsStatisticsInputBuilder();
            InstanceIdentifier<Nodes> nodeIdentifier = InstanceIdentifier.builder(Nodes.class).toInstance();
            Nodes nodeList = (Nodes) dataService.readOperationalData(nodeIdentifier);
            if(nodeList != null){
                for(Node n : nodeList.getNode()){
                    InstanceIdentifier<Node> iNode = InstanceIdentifier
                    NodeRef nr = new NodeRef(iNode);
                    Future<RpcResult<GetAllNodeConnectorsStatisticsOutput>> o = portStatisticsService.getAllNodeConnectorsStatistics(;
                        RpcResult<GetAllNodeConnectorsStatisticsOutput> ro = o.get();
                        GetAllNodeConnectorsStatisticsOutput nro = ro.getResult();
                        List<NodeConnectorStatisticsAndPortNumberMap> nrolist = nro.getNodeConnectorStatisticsAndPortNumberMap();
                        if(null != nrolist){
                            for(NodeConnectorStatisticsAndPortNumberMap nodeConnectorStatistics : nrolist){
                    }catch(Exception e){

there is the method that got node connector statistics from each node. In this code, O return null,

 Future<RpcResult<GetAllNodeConnectorsStatisticsOutput>> o = portStatisticsService.getAllNodeConnectorsStatistics(;

and also NodeConnectorStatisticsAndPortNumberMap return null.

So I wonder know is that method getting wrong or just argument was not sending.


edit retag flag offensive close merge delete


Hi shangheng, I am also tring to get current speed of node connector.By instantiating FlowCapableNodeConnector.But i am also getting null values.Have you succeeded in your approach. please let me know. Regards,

Ashwini_Mhatre ( 2015-01-21 21:15:05 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-07 13:57:12 -0700

updated 2014-08-07 13:57:31 -0700

It's a best practice to only ask one question per question. A more descriptive title would likely get more attention from people who know the domain in question. It's also likely that someone would need more info, especially for question one.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2014-08-05 19:09:47 -0700

Seen: 4,856 times

Last updated: Aug 14 '14