IBM Support

IV28595: GET_POLICIES.PL GENERATE NOT WELL-FORMED .XML FILES WHEN DEALING WITH NON-ASCII CHARACTERS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When policy filter are defined based on network views and
    network views name contains non ascii characters ,
    the following command:
    
    $NCHOME/precision/bin/ncp_perl
    $NCHOME/precision/scripts/perl/scripts/get_policies.pl -from
    domain=SOURCE -to file=exportedData.xml
    
    will generate a not well formed .xml file
    

Local fix

  • replace
    
    my $parser = new XML::Simple( AttrIndent => 1,
                                  OutputFile => $outputFile,
                                  RootName => "NCMONITOR",
                                  XMLDecl => 1 );
    with
    
    my $parser = new XML::Simple( AttrIndent => 1,
                                  OutputFile => $outputFile,
                                  RootName => "NCMONITOR",
                                  NumericEscape => 2,
                                  XMLDecl => 1 );
    
    
    into $NCHOME/precision/perl/lib/site_perl/5.8.8/NCP/Policies.pm
    file
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ITNM 3.9 get_policies users.. The users using the script     *
    * get_policies.pl to export policies that contains non-ascii   *
    * characters                                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The script exports the data to a XML file that is not        *
    * rightly formatted due to the non ascii character. The XML    *
    * file is no good to be used.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Replace the PERL file NCP-Policies/Policies.pm with the      *
    * updated version.                                             *
    * Upgrade to ITNM-IP | fix pack | 3.9.0-ITNMIP-FP0003          *
    ****************************************************************
    

Problem conclusion

  • The PERL script called  get_policies.pl will export the poll
    definitions and poll policies information to a XML file that is
    well formatted and that contains the non ascii characters. This
    XML file can be used in other system to import the poll
    information.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV28595

  • Reported component name

    TIV NETWK MGR I

  • Reported component ID

    5724S4500

  • Reported release

    390

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-09-25

  • Closed date

    2012-10-05

  • Last modified date

    2012-10-05

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TIV NETWK MGR I

  • Fixed component ID

    5724S4500

Applicable component levels

  • R390 PSN

       UP

  • R390 PSY

       UP

  • R401 PSN

       UP

  • R401 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSHRK","label":"Tivoli Network Manager IP Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.9","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
05 October 2012