Removing leading zeroes from a ticket ID
After you install Smart IT, you must run the utility to remove leading zeroes from tickets. By removing the extra, leading zeroes from a ticket ID, you ensure readability of the ticket ID and ease in searching the tickets. Tickets created after running the utility will contain IDs without zero. For example, an incident ID could be INC000000000096. After running the utility, when you create a new incident, the new incident will have an ID such as INC97.
In the previous versions of Smart IT, the leading zeroes utility was run as part of the UX Patch installer. As the UX Patch is no longer available, you need to run this utility manually.
The SmartIT_RemoveLeadingZero utility is located in the Utilities folder of your ITSM installation folder.
Before you begin
Ensure the following:
- You have installed Remedy ITSM version 18.05 with the latest patch.
- The AR System server is up and running.
- You have the administrator privileges to run the utility.
To run the utility
- Run the script:
- (Windows) Double-click driver.exe. The driver utility is available in the following location: {AR Install Directory}/ARSystem/Arserver/api/driver.
- (Unix) At a command prompt, type the following commands:
- cd ARInstallDir/api/src/driver
driver
When running the driver file on Unix, if you receive the following error:
./driver: error while loading shared libraries: libicuucbmc_lx64.so.32: cannot open shared object file: No such file or directory
Ensure that you set the LD_LIBRARY path to the ITSM installed directory using the command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/<AR_Install_Directory>/bin
- Type
init
. - Type
log
. - Enter the administrator login credentials.
- If a port is defined for the AR System server, type the ssp command and enter the port number.
- To log the results, type the
oout
command and specify the log file path and file name.
For example,C:\Temp\LeadingZeroUtility.log
- To run the first script, type ex at the command prompt and enter the script file path and name when prompted.
For example:ex "C:\Program Files\BMC Software\BMCRemedyITSMSuite\Utilities\SmartIT_RemoveLeadingZero\
SmartIT_RemoveLeadingZeros_ITSM.drm" - To run the second script, type ex at the command prompt and enter the script file path and name when prompted.
For example:ex "C:\Program Files\BMC Software\BMCRemedyITSMSuite\Utilities\SmartIT_RemoveLeadingZero\
SmartIT_RemoveLeadingZeros_SRM.drm" - Type
cout.
- Check the log file for any errors.
To verify the utility
- Clear the Mid Tier cache.
- Log on to Smart IT.
- Create a ticket and verify the INC ID.
To register the utility in the SHARE:Application_Properties form
- Open the Data import tool.
- Load the ARX file from the <ITSMInstallDirectory>\Utilities\SmartIT_RemoveLeadingZero folder.
- Import the file to the SHARE:Application_Properties form to indicate that the utility has completed the run.
Comments