Summary:
You can run an auto-operator script to produce a csv format output file containing a Windows robot list using the script in this procedure. This example returns Windows robots but this can be changed to get all robots or robots for a different OS type.
Environment:
8.x
Instructions:
Follow these steps:
- In Infrastructure Manager open the GUI for the nas probe.
- Click on the Auto-Operator tab.
- Check the Activate Auto-Operator checkbox if not checked already.
- Click on the Scripts tab and create a new script.
- Paste the following script and adjust for fname path and click on the green arrow to execute.
probe = "hub"
callback = "getrobots"
fname = "C:\\robots.csv"
file.create(fname)
buff = ""
local args = pds.create()
pds.putString(args,"name","")
rl = nimbus.request(probe,callback,args)
for k,v in pairs(rl) do
if type(v) == "table" then
for a,b in pairs(v) do
if b.os_major == "Windows" then
buff=buff..b.name..",\t"..b.os_major..",\t"..b.os_minor.."\n"
file.write(fname,buff)
print (b.name," "..b.os_major)
end
end
end
end
pds.delete()