10-22-2014 11:04 AM - edited 03-01-2019 09:11 AM
The docs indicate modrule should work as follows but it returns invalid job class argument. The class "My Class" is defined and job alias is correct. Here is the cmd syntax I used.:
sacmd modrule -a myjobalias -J "My Class"
I would like help to understand why class args is invalid. Appreciate the help.
I wish I could get more verbose output to see what its doing which leads to my second question, anyone know how to get verbose output?
10-22-2014 11:34 AM
Hi Howard,
Add a pipe in between as shown in the example below:
SACmd modrule -a myjobalias | -J ID "My Class"
BR,
Derrick Au
10-24-2014 01:27 PM
I have some pretty extensive experience with CMD line...you need quotes when you have values with spaces. This is true of MODRULE and other CMD line Commands
SA>modrule -i 56034 -J JC with Space
Error: invalid job class argument
SA>modrule -i 56034 -J 'JC with Space'
Error: invalid job class argument
SA>modrule -i 56034 -J "JC with Space"
Request sent to Master.
you do not need quotes when value does not have quotes (on most commands)
modrule example using alias and jobid
SA>modrule -a 56034A -J Tidal
Request sent to Master.
SA>modrule -i 56034 -J Tidal
Request sent to Master.
10-27-2014 07:21 AM
Ignore my posting. Marc hit the nail right on the head :D
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide