Automation

Expand all | Collapse all

op script run error

Jump to Best Answer
  • 1.  op script run error

    Posted 04-06-2018 09:20

    Hi It is my first time run op script.

    Please accept my ignorance.

     

    jkim3@xxx-NB> op showis
    error: invalid filename: /var/db/scripts/op/show_interface_staus.slax

     

    jkim3@xxx-NB> show configuration system scripts
    op {
    file show_interface_staus.slax {
    command showis;
    }
    }

     

     

    % ls -alt /var/db/scripts/op
    total 16
    drwxrws--- 2 root wheel 512 Apr 6 09:04 .
    -rwxr-xr-x 1 jkim3 wheel 3753 Apr 6 09:04 show_interface_status.slax
    drwxr-xr-x 6 root wheel 512 Mar 13 2014 ..
    %

    Please let me know what's wrong

     



  • 2.  RE: op script run error
    Best Answer

    Posted 04-06-2018 09:42

    You misspelled the script filename in the configuration.  (You left the 2nd "t" out of "status" in the filename.)

    Fix that and you'll be right.

     

    /doug