"commandfile" option not working with netconfig subcommand in cwcli

Answered Question
May 7th, 2008
User Badges:

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 -->

Correct Answer by Joe Clarke about 8 years 10 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Wed, 05/07/2008 - 20:57
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion