I am using 0.14.0rc1. The sFlow agent ID and the BGP source IP address don't 
match because the sFlow agent is running on our "exchange" switch. The BGP 
connection is running on our core routers. Do I need to map the sflow agent id 
to the bgp ID? How do I go about doing that? Worse case scenario, I can 
manually set the agent ID to the router, but that seems all together a bit 
hackish.

----- Original Message -----
From: "Paolo Lucente" <[email protected]>
To: [email protected]
Sent: Wednesday, May 11, 2011 12:08:26 PM
Subject: Re: [pmacct-discussion] Attempt to get src_as/dst_as with BGP

Hi Sargun,

Can you confirm which pmacct version you are using? If using 0.14.0rc1
(which i recommend) you should make sure the sFlow AgentID is matching
either the BGP source IP address for the session or the BGP Router-ID.

If make sure that works, then correlation will happen. If still in trouble,
i suggest to add the "bgp_daemon_msglog: true" line to your config so
to capture in the logs what routes are received from which BGP neighbor.

Let me know how it goes.

Cheers,
Paolo


On Wed, May 11, 2011 at 03:29:58AM -0500, Sargun Dhillon wrote:
> I am running sfacctd with BGP, and trying to get it to properly set src_as 
> and dst_as in the SQL entires. According to debug, the BGP peering seems to 
> be working, but unfortunately, it keeps setting dst_as and src_as to 0. Any 
> ideas what could be causing my issues, my config is below:
> cmd line: /opt/pmacct/sbin/sfacctd  -f /opt/pmacct/pmacct.conf
> 
> ! 
> ! pmacctd configuration example 
> ! 
> ! Did you know CONFIG-KEYS contains the detailed list of all configuration 
> keys 
> ! supported by 'nfacctd' and 'pmacctd' ? 
> ! 
> ! debug: true 
> plugins: mysql 
> aggregate: src_as,dst_as,src_host,dst_host,src_port,dst_port,proto,tos 
> sfacctd_renormalize: true 
> sql_db: pmacct 
> sql_table: acct 
> sql_table_version: 8 
> sql_passwd: networks 
> sql_user: pmacct 
> sql_refresh_time: 90 
> 
> ! sql_history: 5m 
> ! sql_history_roundoff: mh 
> ! sql_multi_values: 10 
> 
> sql_optimize_clauses: true 
> sql_cache_entries: 64007 
> 
> bgp_daemon: false 
> bgp_peer_src_as_type: bgp 
> sfacctd_as_new: bgp 
> nfacctd_as_new: bgp 
> pmacctd_as: bgp 
> bgp_src_as_path_type: bgp 
> 
> 
> -- 
> Sargun Dhillon 
> Mobile (UK): +44-793-260-2318 
> VoIP (US): +1-925-235-1105 
> 
> _______________________________________________
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

-- 
Sargun Dhillon
Mobile (UK): +44-793-260-2318
VoIP (US): +1-925-235-1105

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to