[isalist] Re: Changing 2006 .xml to work with 2004 .xml

  • From: "Thor (Hammer of God)" <thor@xxxxxxxxxxxxxxx>
  • To: <isalist@xxxxxxxxxxxxx>
  • Date: Tue, 15 Jan 2008 15:03:21 -0800

http://www.ISAserver.org
-------------------------------------------------------

Here's the 2004 format from that node:
<fpc4:RuleElements StorageName="RuleElements" StorageType="0">
                                <fpc4:ComputerSets
StorageName="ComputerSets" StorageType="0">
                                        <fpc4:ComputerSet
StorageName="{FCCF1A08-7B11-4B26-8719-33F7F8A2C1C8}" StorageType="1">
                                                <fpc4:Name
dt:dt="string"> ThorSet_Bhutan </fpc4:Name>
                                                <fpc4:AddressRanges
StorageName="AddressRanges" StorageType="1">
        
<fpc4:AddressRange StorageName="{5C2D240A-D8B8-4EB1-902E-7132C69B878D}"
StorageType="1">
        
<fpc4:IPFrom dt:dt="string">64.39.6.240</fpc4:IPFrom>
        
<fpc4:IPTo dt:dt="string">64.39.6.255</fpc4:IPTo>
        
<fpc4:Name dt:dt="string"> BT 1986496512- 1986498559</fpc4:Name>
        
</fpc4:AddressRange>
                                                </fpc4:AddressRanges>
                                        </fpc4:ComputerSet>
                                </fpc4:ComputerSets>
                        </fpc4:RuleElements>


Now- here's the 2006 format from that node:


<fpc4:RuleElements StorageName="RuleElements" StorageType="0">
                                <fpc4:ComputerSets
StorageName="ComputerSets" StorageType="0">
                                        <fpc4:ComputerSet
StorageName="{599945F0-1BC2-4956-9FD7-BB16EA16C565}" StorageType="1">
                                                <fpc4:Name
dt:dt="string">ThorSet_Bhutan</fpc4:Name>
                                                <fpc4:AddressRanges
StorageName="AddressRanges" StorageType="1">
        
<fpc4:AddressRange StorageName="{08912D10-5A57-4B08-BC2B-878A2F004ECB}"
StorageType="1">
        
<fpc4:IPFrom dt:dt="string">64.39.6.240</fpc4:IPFrom>
        
<fpc4:IPTo dt:dt="string">64.39.6.255</fpc4:IPTo>
        
<fpc4:Name dt:dt="string">BT 1986496512- 1986498559</fpc4:Name>
        
</fpc4:AddressRange>
                                                </fpc4:AddressRanges>
                                        </fpc4:ComputerSet>
                                </fpc4:ComputerSets>
                        </fpc4:RuleElements>


I fail to see how simply changing the name will do anything... copy node
data won't fix the schema when ISA 2004 doesn't know what things like
DNSName (in 2006) mean... 

deleting those entries and changing other relevant tags just doesn't
work - my guess is because of fundamental differentness in 2004 Computer
Sets and 2006 Computer Sets.  I don't really know.

But, it doesn't really matter anyway.  I've just set up a 2004 VM at
this point and exported from that -- but thanks!

t




> -----Original Message-----
> From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-
> bounce@xxxxxxxxxxxxx] On Behalf Of Jim Harrison
> Sent: Tuesday, January 15, 2008 1:55 PM
> To: isalist@xxxxxxxxxxxxx
> Subject: [isalist] Re: Changing 2006 .xml to work with 2004 .xml
> 
> http://www.ISAserver.org
> -------------------------------------------------------
> 
> Actually, it is.
> Replace the XmlDomDocument2/ComputerSet node with the
> XmlDomdocument1/ComputerSet node using the
> XMLDomdocument.replaceChild(thisnode, thatnode) method.
> 
> ..something like unto:
> Set XMLDomDocument1 == <ISA 2006 ComputerSet Export file>
> Set XMLDomDocument2 == <ISA 2004 ComputerSet Export file>
> Set oThisCompSetNode = XmlDomDocument2.selectSingleNode(
> "//fpcComputerset[@Name='NameOfOldComputerSet']" )
> Set oThatCompSetNode = XmlDomDocument1.selectSingleNode(
> "//fpcComputerSet[@Name='NameOfNewComputerSet']" )
> Set oThisParent = oThisCompSetNode.parentNode
> oThisParent.replaceChild( oThisNode, oThatNode )
> oXmlDomDocument2.save( "FullPathToNewXmlFile.xml" )
> 
> Easy, breezy, nice & peasy...
> 
> -----Original Message-----
> From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-
> bounce@xxxxxxxxxxxxx] On Behalf Of Thor (Hammer of God)
> Sent: Tuesday, January 15, 2008 12:56 PM
> To: isalist@xxxxxxxxxxxxx
> Subject: [isalist] Re: Changing 2006 .xml to work with 2004 .xml
> 
> http://www.ISAserver.org
> -------------------------------------------------------
> 
> The problem's not XMLDom... I've been doing that for quite a while..
> It's that if you change the few tags in 2006 to match 2004, it won't
> parse in 2004.
> 
> Now, the real solution would be that the next 2004 update has a simple
> schema update that will allow a 2004 box to import a set from a 2006
> box, but that's another story...
> 
> I'm just checking to see if there was some magic in the CLSID
structure
> or not.
> 
> But, at this point, it looks like if I want to create Computer Sets
(my
> country-by-country deal) that will work in 2004, that I have to
> reinvent
> the wheel under 2004 and export them rather than doing a simple
> mass-update on the files.
> 
> t
> 
> > -----Original Message-----
> > From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-
> > bounce@xxxxxxxxxxxxx] On Behalf Of Jim Harrison
> > Sent: Tuesday, January 15, 2008 12:44 PM
> > To: isalist@xxxxxxxxxxxxx
> > Subject: [isalist] Re: Changing 2006 .xml to work with 2004 .xml
> >
> > http://www.ISAserver.org
> > -------------------------------------------------------
> >
> > Actually, yes, it might.
> > How's your XMLDom scripting sk1llz?
> >
> > -----Original Message-----
> > From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-
> > bounce@xxxxxxxxxxxxx] On Behalf Of Thor (Hammer of God)
> > Sent: Tuesday, January 15, 2008 11:56 AM
> > To: isalist@xxxxxxxxxxxxx
> > Subject: [isalist] Changing 2006 .xml to work with 2004 .xml
> >
> > http://www.ISAserver.org
> > -------------------------------------------------------
> >
> > So, since Jim seems to be on line ;)
> >
> > I've been trying to take a 2006-based .xml file and change it to
work
> > with ISA 2004.  Can this be done easily?  Or are there "magic" tags
> I'm
> > not aware of that will never parse with 2004?  I'm following the
> advice
> > of someone we all know and love (well, we all know him, anyway) but
I
> > don't want to waste any more time than necessary.
> >
> > Any input??
> >
> > t
> > ------------------------------------------------------
> > List Archives: //www.freelists.org/archives/isalist/
> > ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
> > ISA Server Articles and Tutorials:
> > http://www.isaserver.org/articles_tutorials/
> > ISA Server Blogs: http://blogs.isaserver.org/
> > ------------------------------------------------------
> > Visit TechGenix.com for more information about our other sites:
> > http://www.techgenix.com
> > ------------------------------------------------------
> > To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
> > Report abuse to listadmin@xxxxxxxxxxxxx
> >
> >
> > ------------------------------------------------------
> > List Archives: //www.freelists.org/archives/isalist/
> > ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
> > ISA Server Articles and Tutorials:
> > http://www.isaserver.org/articles_tutorials/
> > ISA Server Blogs: http://blogs.isaserver.org/
> > ------------------------------------------------------
> > Visit TechGenix.com for more information about our other sites:
> > http://www.techgenix.com
> > ------------------------------------------------------
> > To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
> > Report abuse to listadmin@xxxxxxxxxxxxx
> 
> ------------------------------------------------------
> List Archives: //www.freelists.org/archives/isalist/
> ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
> ISA Server Articles and Tutorials:
> http://www.isaserver.org/articles_tutorials/
> ISA Server Blogs: http://blogs.isaserver.org/
> ------------------------------------------------------
> Visit TechGenix.com for more information about our other sites:
> http://www.techgenix.com
> ------------------------------------------------------
> To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
> Report abuse to listadmin@xxxxxxxxxxxxx
> 
> 
> ------------------------------------------------------
> List Archives: //www.freelists.org/archives/isalist/
> ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
> ISA Server Articles and Tutorials:
> http://www.isaserver.org/articles_tutorials/
> ISA Server Blogs: http://blogs.isaserver.org/
> ------------------------------------------------------
> Visit TechGenix.com for more information about our other sites:
> http://www.techgenix.com
> ------------------------------------------------------
> To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
> Report abuse to listadmin@xxxxxxxxxxxxx

------------------------------------------------------
List Archives: //www.freelists.org/archives/isalist/
ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
ISA Server Articles and Tutorials: http://www.isaserver.org/articles_tutorials/
ISA Server Blogs: http://blogs.isaserver.org/
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com
------------------------------------------------------
To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
Report abuse to listadmin@xxxxxxxxxxxxx

Other related posts: