DX Infrastructure Management

BAT - Force compontent Rediscovery for all SNMPC profiles 

Feb 27, 2017 03:05 AM

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
)

Statistics
0 Favorited
7 Views
1 Files
0 Shares
3 Downloads
Attachment(s)
zip file
Rediscover_BAT.txt.zip   392 B   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.