Pinned topic How to automatically create a new fixlet.
The thing is, I want to run a fixlet which grabs some info, and then with that info, I need to automatically create another fixlet to be ready to run... is it possible?.
Storing the info in files and reading it from the second fixlet does not work with what I need to do. I specifically need a second fixlet to be created from a first fixlet.
I read about an app called "besimportfile" that imports a .bes file in an unattended way, giving as a parameter the console master user and password, but it also requires to be executed with an SQL admin user, which is weird, because I can manually create fixlets within the console, without being admin user from the DB.
SystemAdmin 110000D4XK757 Posts
Re: How to automatically create a new fixlet.2012-06-13T12:59:49ZThis is the accepted answer. This is the accepted answer.Leo, while you might be able to create a fixlet that can execute the BESIMPORTFILE application, the problem you would face is that it would expose the username and password of a Master Operator account in a fixlet that ANYONE on ANY/ALL of your computers could access and read. Not recommended. This is the same reason that changing local user passwords is not recommended with fixlets and tasks.
You might be able to use a fixlet/task to create the .BES file then have another process import the file for you on a scheduled basis. This would allow the Username and Password to be kept out of the fixlet/task.
I'm curious what it is you are trying to do?
Re: How to automatically create a new fixlet.2012-06-25T15:34:45ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Anyways, I am trying to use BESImportFile-1.1.exe command but I get this error:
Win32::OLE(0.1709) error 0x800401f3: "Invalid class string"
BESImportFile command works fine on my Lab TEM server, but it crashes on my Prod TEM Server. I know there aren´t any problems with perms, in fact, I think this is not a BES Server error, it is more likely a code error.
Anyone can help me?.
What I am trying to do is creating a fixlet which ask for some info, then it edits a template .bes file and imports it. So, then I have another fixlet ready to go with hardcoded parameters.
Lee Wei 270003U2EX143 Posts
Re: How to automatically create a new fixlet.2012-06-26T16:40:08ZThis is the accepted answer. This is the accepted answer.
rafael.rodriguez 270007082G2 Posts
Re: How to automatically create a new fixlet.2014-05-22T14:14:46ZThis is the accepted answer. This is the accepted answer.
- Bhushan Chirmade 270002AA1N
file create customsite .bes :
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SiteRelevance><![CDATA[(version of client >= "18.104.22.168") AND (exists true whose (if true then (exists (computer name) whose (it as string as lowercase contains "XPDesktopBase" as lowercase)) else false))]]></SiteRelevance>
run in cmd.exe : BESImportFile-1.2.exe IP_server User_admin Password "c:\file.bes"