How do I schedule Smarts discovery to run at a specific time each day in a Windows platform?
search cancel

How do I schedule Smarts discovery to run at a specific time each day in a Windows platform?

book

Article ID: 304128

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


How do I schedule Smarts discovery to run at a specific time each day in a Windows platform?

I would like to use a Windows function to schedule the discovery process rather than using the discovery interval in the Domain Manager Administration Console.

Environment

VMware Smart Assurance - SMARTS

Resolution

Create a Scheduled Task within the Windows Control Panel.  The scheduled task will run a script that you create.  You can set the time interval for the task and any other pertinent parameters that you need.  The script should run the following command:
<BASEDIR>/IP/smarts/bin/sm_tpmgr -s <AM server> -b <broker> --discover-all


Additional Information

Example:
 
@ECHO OFF 
  
REM This script will run full discovery for INCHARGE-AM 
 
cd C:\InCharge6\IP\smarts\bin
sm_tpmgr -s INCHARGE-AM --discover-all
 
PAUSE
 
If you are using *:*:<PROMPT>:<PROMPT> in your clientConnect.conf file, found in <BASEDIR>/IP/smarts/local/conf, you will be prompted for the username and password. You can comment out *:*:<PROMPT>:<PROMPT> to get around this.
<BASEDIR>/IP/smarts/bin/sm_edit conf/clientConnect.conf
 
#*:*:<PROMPT>:<PROMPT>
 
You will need to make sure that this still meets your security policies set for Smarts.  Please review the System Admin Guide for more detail on the authentication procedure.