- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to Schedule a Job in Net MRI?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-28-2016 10:56 AM
I'm writing a script in Net MRI for scheduled Job on certain devices.
So far I have created a script and retrieved jobID. I have to schedule it for a futuristic date.
Can someone help me which broker method is useful?
I have been digging API docs for various methods
exp
my $job = $client->broker->job->show({JobID => $job_id})->{job};
All the given broker methods are for index,search and find with some matching input my question is how do I set the time?
Please advise.
Nidhi
Solved! Go to Solution.
Re: How to Schedule a Job in Net MRI?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-28-2016 11:10 AM
Re: How to Schedule a Job in Net MRI?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-28-2016 12:21 PM - edited 06-28-2016 12:21 PM
Hi John
I really appreciate your pormpt reply. You have been such a great help.
thanks again!
Can you look into my error please shich i'm getting by creating a job
I ran my script I got following error
SERVER general/record-not-found Couldn't find Script with name = ‘Name of the script’//xyz.com/api/3/scripts/run.json at script.pl line 104
I followed the same refrence as below
my $script_name = "Any given name";
my $job_id = $client->broker->script->run({
name => $script_name,
device_ids => $device_id,
'$commnad' => 'show version',
})->{JobID};
Please advice
Nidhi
Re: How to Schedule a Job in Net MRI?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-28-2017 01:13 PM
Hi John,
I have successfully created a Job specifications dn the script is doing great. This time I'm creating the same thing but with a extremely large number of commands (Configuration file) to be executed.
its creating a job but I noticed the Commands are cut off.
I looked into the API but couldn't find any specification with the pagination or limit for line number?
Can you please advice.
Commands to executed = "very long configuration file....."
Its being cut off in between.
Please advise.
-Nidhi