RE: Duplicate entries on reports
From: Morne (Morne_at_discussions.microsoft.com)
Date: 07/05/04
- Previous message: Cathy Moya [MS]: "Re: locks on IP subnets in Network Discovery"
- In reply to: Mick: "RE: Duplicate entries on reports"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Jul 2004 00:03:02 -0700
Hi. The script took care of most of the duplication but have a look below and you will see that there is still duplication. I have noticed however that the ip address are different. Could this be something to do with the heartbeat setting?
AdeleK 172.16.81.0 255.255.255.0 172.16.81.38 172.16.81.1
Adelle 172.16.81.0 255.255.255.0 172.16.81.60 172.16.81.1
africa-apps-01 172.16.81.0 255.255.255.0 172.16.81.3 172.16.81.1
africa-mail-01 172.16.81.0 255.255.255.0 172.16.81.2 172.16.81.1
africa-ts-01 172.16.81.0 255.255.255.0 172.16.81.11 172.16.81.1
africa-ts-01 172.16.81.0 255.255.255.0 172.16.81.12 172.16.81.1
AndrewW 172.16.81.0 255.255.255.0 172.16.81.89 172.16.81.1
D1JYNF0JQ 172.16.81.0 255.255.255.0 172.16.81.77 172.16.81.1
INT-PC-449 172.16.81.0 255.255.255.0 172.16.81.39 172.16.81.1
INT-PC-476 172.16.81.0 255.255.255.0 172.16.81.64 172.16.81.1
Nedbank 172.16.81.0 255.255.255.0 172.16.81.109 172.16.81.1
ntb-170-509 172.16.81.0 255.255.255.0 172.16.81.32 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.4 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.52 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.61 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.87 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.88 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.92 172.16.81.1
pc-170-pc577 172.16.81.0 255.255.255.0 172.16.81.95 172.16.81.1
Reception4 172.16.81.0 255.255.255.0 172.16.81.34 172.16.81.1
securico-7eb976 172.16.81.0 255.255.255.0 172.16.81.23 172.16.81.1
securico-paauhw 172.16.81.0 255.255.255.0 172.16.81.20 172.16.81.1
securico-qs2nvu 172.16.81.0 255.255.255.0 172.16.81.83 172.16.81.1
securico-ygsf1k 172.16.81.0 255.255.255.0 172.16.81.24 172.16.81.1
Sylvana 172.16.81.0 255.255.255.0 172.16.81.68 172.16.81.1
TMOROPA 172.16.81.0 255.255.255.0 172.16.50.102 172.16.81.1
TMOROPA 172.16.81.0 255.255.255.0 172.16.81.86 172.16.81.1
TMOROPA 172.16.81.0 255.255.255.0 172.16.81.94 172.16.81.1
"Mick" wrote:
> Yep, I'm getting duplicate entries as well. Here is the SQL statement for that report,
>
> SELECT Distinct SYS.Name0, IPSUB.IP_Subnets0, NETW.IPSubnet0,
> IP.IP_Addresses0, NETW.DefaultIPGateway0
> FROM v_RA_System_IPSubnets IPSUB, v_R_System SYS, v_GS_NETWORK_ADAPTER_CONFIGUR NETW, v_RA_System_IPAddresses IP
> WHERE SYS.ResourceID = IPSUB.ResourceID AND NETW.ResourceID = SYS.ResourceID AND
> IP.ResourceID = IPSUB.ResourceID AND IP_Subnets0 LIKE @variable
> Order by SYS.Name0
>
> The problem is created by the DISTINCT statement in addition to NULLs being present. I'm not sure why NULLs are present, or more accurately, being populated, in the v_GS_NETWORK_ADAPTER_CONFIGUR table, but here is a way to get around the problem. Add "and netw.defaultipgateway0 is not null" anywhere in the WHERE clause. I have changed that report on my site to use the following query:
>
> SELECT Distinct SYS.Name0, IPSUB.IP_Subnets0, NETW.IPSubnet0,
> IP.IP_Addresses0, NETW.DefaultIPGateway0
> FROM v_RA_System_IPSubnets IPSUB, v_R_System SYS, v_GS_NETWORK_ADAPTER_CONFIGUR NETW, v_RA_System_IPAddresses IP
> WHERE SYS.ResourceID = IPSUB.ResourceID AND NETW.ResourceID = SYS.ResourceID AND
> IP.ResourceID = IPSUB.ResourceID and netw.defaultipgateway0 is not null AND IP_Subnets0 LIKE @variable
> Order by SYS.Name
>
> HTH
>
> "Morne" wrote:
>
> > Hi. Thanks for the reply. The report is the standard report for "all machines in a specific subnet" which is installed by default when rolling out sms 2003.
> >
> > "Mick" wrote:
> >
> > > Need a little more information. Are these custom or canned reports? What report types are you referring to? Some reports should/could produce duplicate entries.
> > >
> > > "Morne" wrote:
> > >
> > > > Hi. Any idea why I would have duplicate entries for machines on the reports and how I can get rid of them.
> > > >
> > > > Thanks,
> > > >
> > > > Morne
- Previous message: Cathy Moya [MS]: "Re: locks on IP subnets in Network Discovery"
- In reply to: Mick: "RE: Duplicate entries on reports"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|