New Computer Group From List of Computers

(imported comment written by SystemAdmin)

Hi here is my attempt, now tested. I placed a button beside the pulldown to update.

(imported comment written by SystemAdmin)

I’ve tested this one, seems to work. Previous attempt had the script tag in the wrong place.

(imported comment written by SystemAdmin)

Hi, Here’s one that loads without a button…

(imported comment written by NoahSalzman)

You guys made my day… thanks.

(imported comment written by SystemAdmin)

here’s some code to display the pulldown, in the relevance I had to narrow the list down

because using this

“unique values of names of properties of property results of bes computers”

will search through all the computers for proprerties and took 4 minutes on 20,000+ computers. so the line below will grab properties on just the bes server in the name you can put anything in there to narrow the search

(name of it as lowercase contains “”) <- replace with your bes server

<td class=
"userinput"> <div id=
"PropertiesDiv"> <select id = 
"Properties" name = 
"Properties" size = 
"1" > <option value = 
"default" selected = 
"true" style = 
"background-color: #532900; color: white;" > --Select Property -- </option> <?relevance (html 
"<option value=%22" & it & html 
"%22>" & it & html 
"</option>") of unique values of names of properties of property results of bes computers whose  (name of it as lowercase contains 
"<bes server>") ?> </select> </div> </td>

(imported comment written by SystemAdmin)

I havn’t tested all the conditions so feedback would be appreciated

keep in mind to change the line 20 below “” in the code to your bes server

Im sure theres a better way to filter that… :slight_smile:

<?relevance (html "" & it & html "") of unique values of names of properties of property results of bes computers whose (name of it as lowercase contains "") ?>
<?xml version=
"1.0"?> <BES> <Wizard> <Title>Ad-Hoc Group - Search ANY Field</Title> <UIHooks Menu=
"Wi&zards" NavBar=
"Wizards" LaunchType=
"Document"></UIHooks> <DefaultPage>Page1</DefaultPage> <Page Name=
"Page1"> <Title>Ad-Hoc Group - Search ANY Field</Title> <HTML> <![CDATA[ <table> <tr> <td> Paste the list of and Select choice below: <br> <form name=
"form"> <select id = 
"BESProperties" name = 
"BESProperties" size = 
"1" > <option value = 
"default" selected = 
"true" style = 
"background-color: #532900; color: white;" > --Select Property -- </option> <?relevance (html 
"<option value=%22" & it & html 
"%22>" & it & html 
"</option>") of unique values of names of properties of property results of bes computers whose  (name of it as lowercase contains 
"<bes server name>") ?> </select> <select name=
"cond" size=1> <option value=
" = ">Equals</option> <option value=
" contains ">Contains</option> <option value=
" > ">Greater than</option> <option value=
" >= ">Greater than or Equal to</option> <option value=
" < ">Less than</option> <option value=
" <= ">Less than or Equal to</option> </select> </form> <textarea id=
"hostnames" rows=20 cols=60 ></textarea> </td> <td> <td id=
"errorTD"  style=
"display: none"> <br><br><br> Errors: <br/> <textarea rows=20 cols=60 id=
"errorField"></textarea> </td> </tr> </table> <br /> <button onclick=
"openGroup()">Open Ad-Hoc Group</button> <script type=
"text/javascript"> function openGroup() 
{ var names = hostnames.value.split(
'\n'); var ids = 

new Array(); var errs = 

new Array(); errorField.value = 
''; errorTD.style.display = 
'none'; 

for (var i = 0; i< names.length; i++) 
{ var rel = 
'ids of bes computers whose (value of result from (bes property "'+document.form.BESProperties.options[document.form.BESProperties.selectedIndex].value+
'") of it as lowercase '+document.form.cond.options[document.form.cond.selectedIndex].value +
' "'+trimAll(chomp(names+)) + 
'")'; var id = EvaluateRelevance(rel); 

if (id && id.length == 1) 
{ ids.push(id); 
} 

else 

if (id && id.length > 1) 
{ ids = ids.concat(id); 
} 

else 
{ errs.push(chomp(names+)); 
} 
} 

if (errs.length > 0) 
{ errorField.value = errs.join(
'\n'); errorTD.style.display = 
''; 
} OpenComputerGroup(ids); 
} function trimAll(sString) 
{ 

while (sString.substring(0,1) == 
' ') 
{ sString = sString.substring(1, sString.length); 
} 

while (sString.substring(sString.length-1, sString.length) == 
' ') 
{ sString = sString.substring(0,sString.length-1); 
} 

return sString; 
} function chomp(raw_text) 
{ var sometext=raw_text.toLowerCase(); 

return sometext.replace(/(\n|\r)+$/, 
''); 
} </script> ]]> </HTML> </Page> </Wizard> </BES>

(imported comment written by SystemAdmin)

Modified it a bit to include wildcard searches specifically for “Computer Name” and “IP Address” but as mentioned above you can do a dynamic list for all properties.

(imported comment written by mdahitule91)

Hi Team,

My TEM Console hangs (not responding) while loading wizard via debug menu.

Please help.

Regards,

Mangesh Dahitule

(imported comment written by hbkrules6991)

My apologies but where is this Ad-Hoc Wizard feature than can be downloaded as I do not see any attachment?

(imported comment written by hbkrules6991)

bump :slight_smile:

(imported comment written by SystemAdmin)

@hbkrules69: watch up 4 posts, under this text

“Modified it a bit to include wildcard searches specifically for “Computer Name” and “IP Address” but as mentioned above you can do a dynamic list for all properties.”

there’s

"Attachments:

Attachment Icon AdHocGroupWizard-Names&IPs w wildcards.ojo, Size: 3,869 bytes, Downloads: 7"

:wink:

(imported comment written by hbkrules6991)

yeah tried, FireFox and Chrome, I do not see attachments anywhere…maybe my company is blocking it.

(imported comment written by NoahSalzman)

Send me email off-list and I’ll send it to you.

nsalzman at–symbol us.ibm.com

(imported comment written by SystemAdmin)

Hi all,

we install new ver of TEM 8.2

i was use this option in old ver and now i miss it and need it.

how can i add this option in new ver of TEM?

thank you,

Julia

(imported comment written by BenKus)

Hi Julia,

Which part isn’t working?

Ben

(imported comment written by SystemAdmin)

Hi Ben

i found everything in the manuals

http://pic.dhe.ibm.com/infocenter/tivihelp/v26r1/index.jsp?topic=%2Fcom.ibm.tem.doc_8.2%2FPlatform%2FConsole%2Fc_adding_files_to_sites.html

like ussual RTFM :slight_smile:

Tnx

Julia

(imported comment written by GreenEagleLeader)

I imported this custom ojo file (AdHocGroupWizard-Search) to test some new functionality for automatic group creation. It didn’t work. I used the Debug menu option to load wizard. Now I get errors in console on a semi-regular basis saying

"At 1/10/2014 4:35:01 PM in site BigFix-All Systems in wizard attachment_14745815_AdHocGroupWizard-Search.ojo

XML parsing error:

Incorrect document syntax.

Line 111, Character 9"

How do I remove this ojo file so it stops trying to process???

(imported comment written by jfschafer)

This is for Bigfix version 9.0.787.0. I’ve attached the screenshot of the error that shows up via the yellow exclamation mark at bottom of console. I clear the error and it keeps coming back.

(imported comment written by kfriedheim)

Hi Adam - the easiest thing to do would be to restart the console. This will effectively remove all loaded OJO files that were loaded via the debug menu.

(imported comment written by Jeff Saxton)

Here is a fixed version. I have never tested the functionallity of the wizard but there was some garbage at the bottom of the xml that caused errors: Good Luck, your milage may vary: