cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1072
Views
0
Helpful
11
Replies

CiscoWorks and Parameterized templates ERROR - Help Joseph:-)

lap
Level 2
Level 2

Hi,

I am using CiscoWorks RME 4.3.1 I am trying to use Parameterized templates as explained in this document:

http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.3/user/guide/netcfg.html

Here is my XML file located in the right place: NMSROOT\files\rme\netconfig\cmdFileson the CiscoWorks server:

<DEVICE NAME = 10.60.131.1>
<CMDPARAM NAME = ConfigFile>
<value>TST4CUPE10-Confg-PV.txt</value>
</CMDPARAM>
</DEVICE>

Then in RME I creat a user-defined task  as the one you can see there:

User-DefinedTasks.jpg

Then I create a new job on a device with the parameterized file:

User-DefinedTasks2.jpg

Actually if I put a tick in the Check Syntax I got the following error message:

User-DefinedTasks5.jpg

I don't understand as the value is configured in the xml file as you can see above!

When the job is done I get a status: successful:

User-DefinedTasks3.jpg

But the problem is that nothing has changed on the device cause of the following error:

configure replace bootflash:$ConfigFile force
Error: Could not open file bootflash:$ConfigFile for reading

Here is the result on the screen:

User-DefinedTasks4.jpg

Does anyone knows what could cause this error?

Best regards,

Laurent

1 Accepted Solution

Accepted Solutions

You have to specify the device's display name in the param file.  Try this:

 

bootflash:TST4CUPE10-Confg-PV.txt

View solution in original post

11 Replies 11

lap
Level 2
Level 2

Hi Folks,

Any ideas?

Best Regards,

Laurent

Joe Clarke
Cisco Employee
Cisco Employee

First, do not tick the Check Syntax box unless you have your own external syntax checker.  Next, change the value of the variable from TST4CUPE10-Confg-PV.txt to bootflash:TST4CUPE10-Confg-PV.txt, then use the command:

configure replace $ConfigFile force

Hi Joseph,

Thank you very much for replying!

I have made the changes you told me but I still get the samme error:

configure replace $ConfigFile force
Error: Could not open file  $ConfigFile for reading

I am getting mad! I have tried so many things!

Regards,

Laurent

Can you confirm you're properly selecting the parameter file.  To select it, you need to double-click on the file in the selector dialog.  I see no other problems with your setup.

Hi Joseph,

Here you are:

Here is the parameter file on the CiscoWorks server:

It is a .txt file, should it be a .xml instead?

Regards,

Laurent

Hi Joseph,

Just to let you know. I have tried with a .XML instead and I get the same problem!!!!

I don't understand what could be wrong! It should be straight forward!!!

Regards,

Laurent

Change the DEVICE part of the file to GLOBAL:

...

See if that works.  If it does, it could point to a problem with device mapping.  How does your target device appear in the device selector?

Hi Joseph,

With Global is working perfectly actually!

Regarding the device selector here is a print screen:

What do you think the problem is?

Regards,

Laurent

You have to specify the device's display name in the param file.  Try this:

 

bootflash:TST4CUPE10-Confg-PV.txt

Hi Joseph,

I have tried to replace the IP by the name has you said and unfortunaletly I get the following error:

Really strange,

Laurent

Hi Joe,

I have a good news. It is working now after I changed the IP to the hostname as you suggested.

But it was not working even with the hostname because I had a “<” too much.

bootflash:TST4CUPE10-Confg-PV.txt<

So now the file look like that:

bootflash:TST4CUPE10-Confg-PV.txt

Thank you so much for your help! That is fantastic

Best Regards,

Laurent

Review Cisco Networking for a $25 gift card