Env Info Examples

This example generates an HTML table containing all iXperion environment information available.

Smartsite SXML CopyCode image Copy Code
<h1>iXperion Information</h1>
<table>
    <tr><th colspan="2">About</th></tr>
    <se:format inputdata="{env.about()}">
        <se:rowformat>
            <tr>
                <td>{string.capitalize(this.field(key))}</td>
                <td>{this.field(value)}</td>
            </tr>
        </se:rowformat>
    </se:format>
    
    <tr><th colspan="2">Server Info</th></tr>
    <tr>
        <td>Server Address</td>
        <td>{env.serveraddress()}</td>
    </tr>
    <tr>
        <td>Default Server Address</td>
        <td>{env.defaultserveraddress()}</td>
    </tr>
    <tr>
        <td>CMS Server Address</td>
        <td>{env.cmsserveraddress()}</td>
    </tr>
    <tr>
        <td>Server Name</td>
        <td>{env.servername()}</td>
    </tr>

    <tr><th colspan="2">Application Details</th></tr>
    <tr>
        <td>Executing Assembly</td>
        <td>{env.getexecutingassembly()}</td>
    </tr>
    <tr>
        <td>Identity:</td>
        <td>{env.identity()}</td>
    </tr>
    <tr>
        <td>Is Interactive</td>
        <td>{env.isinteractive()}</td>
    </tr>
    <tr>
        <td>Memory Usage</td>
        <td>{env.memoryusage()}</td>
    </tr>
    <tr>
        <td>Process ID</td>
        <td>{env.processid()}</td>
    </tr>
    <tr>
        <td>Thread ID</td>
        <td>{sys.thread.id()}</td>
    </tr>
    
    <tr><th colspan="2">Page Cache</th></tr>
    <se:format inputdata="{env.pagecacheinfo()}" whitespace="remove">
        <se:rowformat>
            <tr>
                <td>{string.capitalize(this.field(key))}</td>
                <td>{this.field(value)}</td>
            </tr>
        </se:rowformat>
    </se:format>
    
    <tr><th colspan="2">Services</th></tr>
    <tr><td colspan="2">{env.servicesinfo()}</td></tr>
    
    <tr><th colspan="2">Host Headers</th></tr>
    <se:format inputdata="{env.hostheaders()}" whitespace="remove">
        <se:rowformat>
            <tr>
                <td>{string.capitalize(this.field(HostHeader))}</td>
                <td>Channel: {this.field(Channel)}, StartPage: {this.field(BrowseStartpage)}</td>
            </tr>
        </se:rowformat>
    </se:format>
</table>
Example Result CopyCode image Copy Code
<h1>iXperion Information</h1>
<table>
    <tr><th colspan="2">About</th></tr>
    
            <tr>
                <td>Product</td>
                <td>Smartsite iXperion</td>
            </tr>
        
            <tr>
                <td>Description</td>
                <td>RC2</td>
            </tr>
        
            <tr>
                <td>Copyright</td>
                <td>Copyright Smartsite Software B.V. 2007-2008</td>
            </tr>
        
            <tr>
                <td>Company</td>
                <td>Smartsite Software B.V.</td>
            </tr>
        
            <tr>
                <td>Productversion</td>
                <td>1.0.49.7</td>
            </tr>
        
            <tr>
                <td>Date</td>
                <td>7/31/2008 16:57:09</td>
            </tr>
        
    
    <tr><th colspan="2">Server Info</th></tr>
    <tr>
        <td>Server Address</td>
        <td>http://localhost:7812</td>
    </tr>
    <tr>
        <td>Default Server Address</td>
        <td>http://localhost:7812</td>
    </tr>
    <tr>
        <td>CMS Server Address</td>
        <td>http://test6/cms/manager.dws</td>
    </tr>
    <tr>
        <td>Server Name</td>
        <td>PC1-038B126662E</td>
    </tr>

    <tr><th colspan="2">Application Details</th></tr>
    <tr>
        <td>Executing Assembly</td>
        <td>Smartsite.Runtime.Modules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5fdb12a67e027fb6</td>
    </tr>
    <tr>
        <td>Identity:</td>
        <td>SMARTSITE\iXperionUser</td>
    </tr>
    <tr>
        <td>Is Interactive</td>
        <td>true</td>
    </tr>
    <tr>
        <td>Memory Usage</td>
        <td>178155520</td>
    </tr>
    <tr>
        <td>Process ID</td>
        <td>1484</td>
    </tr>
    <tr>
        <td>Thread ID</td>
        <td>12</td>
    </tr>
    
    <tr><th colspan="2">Page Cache</th></tr>
    <tr><td>Enabled</td><td>True</td></tr>
    <tr><td>CreationTime</td><td>7/25/2008 10:48:56</td></tr>
    <tr><td>ScavengeInterval</td><td>00:05:00</td></tr>
    <tr><td>EntryCount</td><td>0</td></tr>
    <tr><td>MaxSize</td><td>536870912</td></tr>
    <tr><td>ActualSize</td><td>0</td></tr>
    <tr><td>ReadCount</td><td>0</td></tr>
    <tr><td>WriteCount</td><td>0</td></tr>
    <tr><td>Hits</td><td>0</td></tr>
    <tr><td>Misses</td><td>0</td></tr>
    <tr><td>HitRatio</td><td>0</td></tr>
    
    <tr><th colspan="2">Services</th></tr>
    <tr><td colspan="2">No services loaded.</td></tr>
    
    <tr><th colspan="2">Host Headers</th></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:DEF,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:DEF,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:AIM,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:AIM,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:ARC,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:ARC,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:FUN,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:FUN,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:NLC,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:NLC,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:UKC,StartPage:2</td></tr>
    <tr><td>Http://localhost:7812/</td><td>Channel:UKC,StartPage:2</td></tr>
    <tr><td>Http://127.0.0.1/</td><td>Channel:DEF,StartPage:2</td></tr>
    <tr><td>Http://127.0.0.1/</td><td>Channel:AIM,StartPage:2</td></tr>
    <tr><td>Http://127.0.0.1/</td><td>Channel:ARC,StartPage:2</td></tr>
    <tr><td>Http://127.0.0.1/</td><td>Channel:FUN,StartPage:2</td></tr>
    <tr><td>Http://127.0.0.1/</td><td>Channel:NLC,StartPage:2</td></tr>
    <tr><td>Http://127.0.0.1/</td><td>Channel:UKC,StartPage:2</td></tr>
</table>