BAT - Force compontent Rediscovery for all SNMPC profiles

Document created by Yu_Ishitani Employee on Feb 27, 2017
Version 1Show Document
  • View in full screen mode

This is an example of how you can write a script to invoke Force Component Rediscovery for all SNMPcollector profiles

This is Windows script.

You can tweak / change to fit your environment.

 

set LIST=devicelist.txt
set PU="C:\Program Files (x86)\Nimsoft\bin\pu.exe"
set UIMUSER=administrator
set UIMPASS=password

del %LIST%
%PU% -u %UIMUSER% -p %UIMPASS% snmpcollector get_snmp_device ALL | findstr "ID" > %LIST%
for /f "tokens=3 delims= " %%i in (%LIST%) do (
%PU% -u %UIMUSER% -p %UIMPASS% snmpcollector rediscover_snmp_device %%i
TIMEOUT 10
)

Attachments

Outcomes