No. Not with the fmsadmin CLI
But you can run a backup from the command prompt, if that is what you are after.
(It's been a while since I looked at it, but you could possibly create a FMS schedule by writing to the registry, where FMS keeps its schedules - writing to the registry is something you can do from the command line)
Thank you for the response, Will you please let me know, how can I do it by registry ?
The easiest way of seeing what you need to do is to createt the schedule via the FMS admin console and then look at the registry and see how it is built there. Then it is just a matter of using your favorite command line scripting tool to create the registry entries.
Where it will fail is if you want to use an FMS schedule for running a FM script, I don't think you will be able to write the necessary credentials to the registry.
Sorry for the late response, I need to create batch file by which I ll create a new schdule which will run a particular script at mentioned time..
Did you see the registry ?
I feel so may params are need to create schedule, then it is not suppoted in CLI.
There is 'reg' command that can edit registry in batch file.
I agree with wim that writing registry may be only way, but this is not documented so you need many test for that works properly and not break anything.
And adding schedule outside from admin console may need to restart server to affect ?
No need to restart the full server, just the admin server.
But like I said; creating a FM script schedule is probably not going to work because of the credential storage. Other schedules are not that hard.
I am able to create FMS Schdule from registry, but one thing I noticed that I have to restart the admin server to apply the changes, Is there any other way by which I can achive the same witout stoping the admin server. ?
Shah Ashutosh H.
No, the admin server reads from the registry for the schedules when it starts up. But there is no harm in restarting the admin server, it does not affect any of the other processes like the db engine. So no guests will be disconnected when you do that.
But it will make entries in logs, which I dont want do...
Suggest me something else if possible.
Thank you for the quick response
Nope, you're out of luck.
But why would you not want anything written to the log!? Obviously you have the rights on the machine to work in the registry, which is a lot more dangerous than the ability to restart the admin server on FMS, if you are trying to hide something...