LMS 3.01 netconfig job & import device list

Unanswered Question
Jul 23rd, 2008
User Badges:

i have heard there is a way to import a list of devices into a netconfig job instead of selecting from the device tree. Basically my Opnet reports send me large lists of devices and i'd like to import that list of devices straight into a netconfig job.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Wed, 07/23/2008 - 16:42
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You can't import a device list into a Netconfig job through the GUI, but you can run a Netconfig job using cwcli and specify a device list file. The device list file should contain a list of devices with each device on a separate line. The cwcli command will be something like:


cwcli netconfig createjob -u admin -p admin -devicefile FILENAME -mode config -commandfile FILENAME

durale1789 Fri, 10/31/2008 - 11:18
User Badges:

Hi,


I run exactly the same command but I get th following message:


cwcli netconfig createjob -u admin -p password -devicefile /opt/CSCOpx/bin/test.list -commandfile command.file -policyfile policy.in -description "cwcli netconfig job" -mode config


FATAL - NETCLI014:Netconfig createjob command failed

FATAL - Invalid argument: officeuk


my test.list file content is:


cat test.list

officeuk


The weird thing is that if I run the same command but without having a file but device (-device officeuk), it works!


I can see any reason why this is not working, can u?


regards


alex




Joe Clarke Fri, 10/31/2008 - 11:22
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Please start a new thread for your issue.

Actions

This Discussion