- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Editing the pre-template commands on a config template
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2021 12:01 PM - edited 03-04-2021 02:06 PM
How do I edit the pre-commands from a config template or CCS script? For example, the following commands are not supported on the switch:
enable
terminal no editing
The switch is a Cisco NXOS, but the commands are for IOS. The NXOS version is specified in the template Edit Template window. This issue also happens in a CCS script.
We are running an older version of NetMRI, 7.1.4.87397.
The job adds commands that aren't in the template form:
Warning: Permanently added '192.168.20.57' (RSA) to the list of known hosts.
User Access Verification
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (C) 2002-2020, Cisco and/or its affiliates.
All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under their own
licenses, such as open source. This software is provided "as is," and unless
otherwise stated, there is no warranty, express or implied, including but not
limited to warranties of merchantability and fitness for a particular purpose.
Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or
GNU General Public License (GPL) version 3.0 or the GNU
Lesser General Public License (LGPL) Version 2.1 or
Lesser General Public License (LGPL) Version 2.0.
A copy of each such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://opensource.org/licenses/gpl-3.0.html and
http://www.opensource.org/licenses/lgpl-2.1.php and
http://www.gnu.org/licenses/old-licenses/library.txt.
switch#
switch#
switch#
switch# terminal no monitor
switch# terminal no editing
^
% Invalid command at '^' marker.
switch# exit
Connection to 192.168.20.57 closed.
*** Job Failed [1] ***
Solved! Go to Solution.
Re: Editing the pre-template commands on a config template
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2021 03:05 PM
The switch has to be discovered via SNMP as a Nexus switch before you run the script. Then the commands will work.
Re: Editing the pre-template commands on a config template
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Editing pre-commands can definitely be tricky, especially when working between different command sets like IOS and NXOS. Have you tried using command compatibility features in NetMRI? For further insights or resources, you can click here. It would be interesting to see how others have tackled similar issues!