Clearing the Smart IT cache
The Smart IT server stores certain types of configuration data from BMC Remedy ITSM in cache for quick access. After you change configuration options, such as the list of allowed attachments, the Smart IT cache must be reinitialized for the changes to take effect. The cache is initialized during server startup, or whenever the cache is cleared.
By default, the cache is cleared automatically every 30 minutes, or when the Smart IT server is restarted. Alternatively, you can use the following procedure to clear the cache immediately.
To clear the Smart IT cache
From the Smart IT installation directory/tenant-config directory on the primary Smart IT server, issue the following command:
../java -jar ../tenant-config-<version>-jar-with-dependencies.jar -server server/ux -username username -password password -tenantName tenant_ID clearSmartITCache global
The placeholders in the command are defined as follows:
Parameter | Description |
---|---|
server | The fully qualified domain name of the Smart IT server, such as http://server1.ourdomain.com:80 |
username | The AR System administrator user name Note: This user must belong to the BMC MyIT Administrator group. |
password | The AR System administrator password |
tenant_ID | The tenant ID such as 000000000000001 (default) or 000000000000002 In a single tenant environment, use 000000000000001 |
Example:
/opt/bmc/jre8/jdk1.8.0_45/jre/bin/java -jar /opt/bmc/MyIT/Smart_IT_MyIT/tenant-config/tenant-config-3.2.00.000-jar-with-dependencies.jar -server http://123.456.789.000/ux -username admin01 -password pwadmin01 -tenantName 000000000000001 clearSmartITCache global
Comments
Hello
I am trying to clear my smart it cache however I am not sure that I understand the script provided. I am not sure how to run this script, do i first do the Java part and join it to
Option 1
/opt/bmc/jre8/jdk1.8.0_45/jre/bin/java -server http://123.456.789.000/ux -username admin01 -password pwadmin01 -tenantName 000000000000001 clearSmartITCache global
Option 2
/opt/bmc/MyIT/Smart_IT_MyIT/tenant-config/tenant-config-3.2.00.000-jar-with-dependencies.jar -server http://123.456.789.000/ux -username admin01 -password pwadmin01 -tenantName 000000000000001 clearSmartITCache global
Or how exactly must i do this
Hello Phindiwe,
Thanks for your comment. Sorry for the delay in replying your comment.
It’s a java program inside the jar file which needs to be executed. You need to run the full command with java – jar as given in the example.
Regards,
Nilay
Hi Nilay
I eventually got it right, thanks for replying.
BMC needs to consider doc for 'dummies' with picture ilustrations
for people like me.
I am sure there are many like me, they just dont say it out loud.
Regards,
Phindi
The script drop a lot of errors and Not really doing anything...
Hello Maria,
I will discuss this with the concerned SME and will write back to you.
Thanks,
Nidhi
Hello Maria,
Thanks for your comment.
It’s a java program inside the jar file which needs to be executed. You need to run the full command with java – jar as given in the example.
Regards,
Nilay