Revision as of 18:50, November 23, 2015 by Sschlich (talk | contribs) (Run these Python scripts)
Jump to: navigation, search

Reset Mailbox Counters

You can run a python script, on the master Feature Server, instance to correct an error that caused Feature Server to display incorrect totals for the number of messages in a mailbox. Feature Server release 8.1.201.64 includes two python scripts for you to run:

  • renewMailboxcountersColumnFamily.py — Renews or resets mailbox counters.
  • getAllMailboxCountersInfo.py — Checks mailbox counters.

Deploy the Python scripts

  1. On the master Feature Server instance, copy the jython-2.7b1.jar file...
    from FS installation path\work\jetty-x.x.x.x-pppp-fs.war-_fs-any-\webapp\WEB-INF\lib
    to FS installation path\python\util
  2. Open the console and navigate to FS installation path\python\util, which contains the scripts.
  3. Type the appropriate command to set the JYTHONPATH...
    Windows
    set JYTHONPATH=FS installation path\python
    Linux
    export JYTHONPATH=FS installation path/python

Run the Python scripts

The following Python scripts save data, such as User roles, User Voicemail Profiles assignment, and User Group Voicemail Profiles assignment, that is not related to or synchronized with Configuration Server.

Each script creates a csv file that you can analyze, edit as needed, and use as the input data for the scripts restoring the data not contained in Configuration Server.

This command line format runs each script:

java -jar jython-2.7b1.jar scriptname.py script input parameters

Reset Mailbox Counters

  1. Verify that:
    • Your Cassandra database is backed up. See Backing Up and Restoring Cassandra Data.
    • All Feature Servers are up and running.
    • There is no voicemail activity (no one can deposit, read, or listen to voicemail).
  2. Run the renewMailboxcountersColumnFamily.py script, collecting the log and console output Why collect output?.
  3. Stop all Feature Servers (all FS nodes)
  4. Restart the master FS node, and then each of the other FS nodes one at a time.

Sample Command Line
(enter all one one line)

java -jar jython-2.7b1.jar renewMailboxcountersColumnFamily.py -H localhost -p 9160 –o ./ renewMailboxcountersColumnFamily.log

Check Mailbox Counters

  1. Verify that:
    • All Feature Servers are up and running.
    • There is no voicemail activity (no one can deposit, read, or listen to voicemail).
  2. Run the getAllMailboxCountersInfo.py script.

Sample Command Line

java -jar jython-2.7b1.jar 'getAllMailboxCountersInfo.py' -H localhost -p 9160 –o ./ getAllMailboxCountersInfo.log

STEVE ASKS: WHY ARE SINGLE QUOTES AROUND 'getAllMailboxCountersInfo.py'?


Comments or questions about this documentation? Contact us for support!