cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1404
Views
0
Helpful
15
Replies

Edit internal files

A3XN
Level 1
Level 1

Text files placed inside a router (or switch) can be edited from IOS?

Does command "vi" exist?

Thanks for the information

15 Replies 15

RedNectar
VIP Alumni
VIP Alumni

Hi @A3XN ,

Interesting question - but you put on the forum that discussed Community related issues. You'll probably get a much better response on https://community.cisco.com/t5/switching/bd-p/6016-discussions-lan-switching-routing

In the meantime, I can tell that that vi exists on Nexus 9000 switches in ACI mode (but you can't edit any config on Nexus 9000 switches in ACI mode)
But as for other switches/routers - I can't tell. I don't think so

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Thank you

pieterh
VIP
VIP

I doubt if "vi" is available in Cisco IOS, if any editor present it may be the line mode editor "ed"
best luck is to copy the file to a (t)ftp server, edit there and copy back

normal commands can be found using the "?" on the command prompt
so try "?"or  "vi?",  but i very much doubt this will give result on your system
there are a number of "hidden commands , but i doubt vi will fall among those.
on some devices you can access a host shell for some unixlike commands, but this is intended for use by Cico TAC engineer.

 

Double work must be done

can you be more specific what you need to edit using vi ?

many network engineers can maintan their network configuration using the command-line options that are avaiable in the Cisco network equipment
- recall a previously entered command
- using "no <cmd>" command  to negate/remove the command
- recall the command again and edit the command within the command line
there are many "hot-keys" to speed up this editing 
https://www.cisco.com/c/en/us/td/docs/wireless/controller/8-5/cmd-ref/b-cr85/using_the_command_line_interface.pdf 

repetitive commands like ACL lines or multiple route statements, can easily enough entered this way
some specific commands like ACL's use line-numbers within the ACL to pont at a specific entry
you can modify this ACL-line by specifying number when deleting and re-entering a modified entry (as described above)

 

When you're editing menus in VoIP telephony it's a pain to edit XMLs:

- test them

- If instructions fail, they must be re-edited

- Upload them again

 

... and repeat

Hi @A3XN ,

I really think this post is in the wrong place. As I said before, and as others have now suggested, you should post in the correct forum to get the best response. Otherwise you are just wasting people's time.

If it really is about a Cisco switch - post your question on https://community.cisco.com/t5/switching/bd-p/6016-discussions-lan-switching-routing

If it is about editing menus in VoIP telephony, then it is probably better posted on https://community.cisco.com/t5/collaboration/ct-p/4691-collaboration-voice-video

Sure - there will be people on this forum who MIGHT know about your problem, but you are not getting to your target audience, and the subscribers to this forum just get upset at all the irrelevant mails they get. (Sorry for adding to your pile everyone)

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

The label didn't allow me to select "community" and something like "others".

Really the topic (of which I asked for information) is not for exclusive VoIP use...

 

-> Anyway, I appreciate your notice:

wink wink

 

I take this opportunity to tell me what is the tag/forum for generic topics (so that I don't have to select randomly)?.

 

Best regards

Joseph W. Doherty
Hall of Fame
Hall of Fame

@A3XN wrote:

Text files placed inside a router (or switch) can be edited from IOS?

Does command "vi" exist?

Thanks for the information


From IOS, directly, I don't believe so.

From platforms that support a Linux guest shell, very likely, although where the text files are stored, might not meet your requirements.  For example, I don't know whether you could access the startup config file.  However, editing python script, using vi, on Cisco devices, is mentioned as possible in Internet material.

Suggest you search for cisco and guestshell for additional information.

Thank you

 

I'm going to check it out

Thanks for the tip

Martin L
VIP
VIP

I don't think that is possible on regular IOS; have not tried on NX, XE versions thou

pieterh
VIP
VIP

So the post is not about regular IOS, but a router with Call Manager Express extension, is that correct?
I worked with CUCM, but I don't know CME that well, I'll look into this to see if this also adds aditional editing functionality.

and....., if it is about CME , you can take a look at the community below
https://community.cisco.com/t5/collaboration/ct-p/4691-collaboration-voice-video
at least there will be more tips how to handle those  XML files on the router
(rephrase your question to beter describe your needs)