Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1962545.1
Update Date:2016-08-16
Keywords:

Solution Type  Problem Resolution Sure

Solution  1962545.1 :   How to Remove Junk Characters from a File in vi Editor  


Related Items
  • Oracle Communications EAGLE (Hardware)
  •  
Related Categories
  • PLA-Support>Sun Systems>CommsGBU>Global Signaling Solutions>SN-SND: Tekelec OS ELAP LSMS
  •  




In this Document
Symptoms
Cause
Solution


Created from <SR 3-10132159721>

Applies to:

Oracle Communications EAGLE (Hardware) - Version LSMS 11.x and later
Information in this document applies to any platform.

Symptoms

Issue reported as error in NAS configuration script.

Cause

Script was unable to bounce the network interfaces due to space and junk characters (^C) in known_hosts file. It bounces the IP correctly but could not talk to known_hosts file.
Manual intervention caused this issue.

Solution

Open known_hosts file in vi editor.
vi /root/.ssh/known_hosts

On editor's prompt, enter the following:

:%s/^C//g

This will replace all the occurrence of ^C with NULL.
 
Note: ^C not to be typed. For writing ^C, you will need to press Ctrl+V+C.


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback