cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
727
Views
0
Helpful
2
Replies

"commandfile" option not working with netconfig subcommand in cwcli

am passing following query

set pass [::base64::encode pass]

set query "<payload>

<command>

cwcli netconfig -u user -p $pass createjob -device Router_device -commandfile cwConfigFile -mode enable

</command>

</payload> "

set response [http::geturl http://rme-server:1741/rme/cwcli -query $query]

set output [http::data $response]

getting following reply

<cwcli> FATAL - Netconfig cli command failed.

<cwcli> FATAL - Invalid option: -commandfile

<!-- Processing complete -->

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

The correct command is:

cwcli netconfig createjob -u user -p $pass -device Router_device -commandfile cwConfigFile -mode enable

You're also missing a -description argument for the job description.

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

The correct command is:

cwcli netconfig createjob -u user -p $pass -device Router_device -commandfile cwConfigFile -mode enable

You're also missing a -description argument for the job description.

oops [:)]//

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: