> # Generating Top10 Reports Using Scripts

> You can generate Top10 reports manually by issuing the following commands:

> - On UNIX, run the script:

>     “/<user_directory>/.cisco_mds9000/bin/pm.sh display pm/pm.xml <output_directory>”

> - On Windows, run the script:

>     “c:\Program Files\Cisco Systems\MDS 9000\bin\pm.bat display pm\pm.xml
>     <output_directory>”

> On UNIX, you can automate the generation of the Top10 reports on your DCNM-SANDCNM-SAN Server host by adding the following cron entry to generate the reports once an hour:

>     0 * * * * /<user_directory>/.cisco_mds9000/bin/pm.sh display pm/pm.xml <output_directory>

> If your crontab does not run automatically or Java complains about an exception similar to Example 6-1, you need to add “-Djava.awt.headless=true” to the JVMARGS command in /<user_directory>/.cisco_mds9000/bin/pm.sh.

> Example 6-1 Example Java Exception

>     in thread “main” java.lang.InternalError Can't connect to X11 window server using '0.0' as
>     the value of the DISPLAY variable.

> Copyright 2010-2013, Cisco Systems, Inc. All rights reserved.