4.43 PhoneInventory

Use this Knowledge Script to create an inventory of the phones configured in a Communications Manager cluster. You choose both the search criteria for the inventory and the location of the output folder (for the results file containing the inventory list). Unless you specify a UNC path (\\servername\sharename\directoryname\filename), the results file is written to the computer on which the NetIQ AppManager agent is running. If you specify a UNC path, ensure the NetIQmc service is running as an account that has the proper permissions on the UNC path.

4.43.1 Monitoring Phone Registration After Failover

You can determine the status, registered or deregistered, of Communications Manager phones for Unified Communications Manager clusters on which failover has occurred. Failover occurs when Communications Manager status changes from Primary to Backup.

Communications Managers that fail over contain only a list of phones that registered since failover occurred. They do not provide a list of phones that deregistered as a result of failover. To determine which phones have deregistered, use the PhoneInventory Knowledge Script.

To determine whether failover has occurred, use the RoleStatus or CCM_RegisteredResources script.

4.43.2 Resource Object

CiscoCM_Devices

4.43.3 Default Schedule

By default, this script runs once.

4.43.4 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

General Settings

Job Failure Notification

Event severity when job fails

Set the event severity level, from 1 to 40, to indicate the importance of the failure of the PhoneInventory job. The default is 5.

Raise event if phone inventory succeeds?

Select Yes to raise an event when a phone inventory file is successfully generated. The default is Yes.

Event severity when phone inventory succeeds

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the inventory file is successfully generated. The default is 25.

Raise event if no records found?

Select Yes to raise an event when the PhoneInventory job finds no phones based on the criteria you selected. The default is Yes.

Event severity when no records found

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the PhoneInventory job found no phones based on the criteria you selected. The default is 25.

Search Options

Select by

Choose the type of selection criteria you want to use to create the list of phones.

  • Name (the default)

  • DirectoryNumber. If you select this option, you must also enable the Include directory number and partition columns in report? parameter.

  • Description

  • DevicePool

  • CallingSearchSpace

  • Location

  • Partition. If you select this option, you must also enable the Include directory number and partition columns in report? parameter.

  • Subnet. If you select this option, you must enter the subnet address in the Selection criteria parameter. Use the following format:

    172.16.10.0/20
  • SubnetFilepath. If you select this option, then, in the Selection criteria parameter, enter the UNC or full path to a file on the agent computer that contains a list of subnet specifications. The file must be located on the agent computer.

Selection criteria

Type the selection criteria for the phones to be listed. You can specify the actual item or you can specify a pattern by using the * wildcard. For example, to monitor all the phones with device names that begin with SEP, enter SEP*.

You can enter multiple items by separating each item with a comma. For example:

SEP0009A*,SEP0009B* 

The items you enter must be of the same type as the Select by parameter. So if Select by is Name, then the items you enter must be device names or patterns. If Select by is DirectoryNumber, then the items you enter must be directory numbers or patterns.

The default is blank.

List only phones with status of

To further filter the list of phones, select a status. Only phones of this status type, matching the criteria you specified in Selection criteria and Select by, will be included in the inventory list.

Select from the following status types:

  • Any (the default)

  • Not Registered

  • Registered

  • Unregistered

  • Rejected

NOTE:Setting this parameter to a value of Not Registered will also list those phones with a status of Unregistered.

Result File Options

Full path to output folder for result file

Type the full path or a UNC path to a location on the agent computer in which to save the inventory .csv file. The default path is blank.

Order by

Select Name to display the contents of the results file in order by phone name. The default is Name.

Select DirectoryNumber to display the contents of the results file in order by directory numbers. If you select DirectoryNumber, also enable the Include directory number and partition columns in report? parameter.

Include directory number and partition columns in report?

Because a phone can be associated with multiple directory numbers and partitions, your inventory report can present the same phone several times, once for each directory number or partition.

Select Yes to include the directory number and partition columns in the inventory, allowing multiple entries per phone.

Deselect Yes to remove the directory number and partition columns from the inventory, allowing only one entry per phone.

NOTE:You must select Yes if you selected any of the following parameter options:

  • The Select by parameter is set to DirectoryNumber or Partition.

  • The Order by parameter is set to DirectoryNumber.