LMS 3.1 CM 5.1.1: UT export error "native2ascii: not found"

Answered Question
Dec 1st, 2008

When trying to export the UT endhosts data in CSV from the GUI, a "native2ascii: not found" error is returned.

The CLI export apparently works. It still spits out the "native2ascii" error however:

/opt/CSCOpx/campus/bin/ut -cli -query all -export /path/to/ut.txt -layout all -u admin -p admin-password

orbProperties={org.omg.CORBA.ORBInitialPort=42342, org.omg.CORBA.ORBClass=org.jacorb.orb.ORB, org.omg.CORBA.ORBInitialHost=pssva030, org.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton, jacorb.implname=CSEDSPersistentIOR, org.omg.PortableInterceptor.ORBInitializerClass.bidir_init=org.jacorb.orb.giop.BiDirConnectionInitializer}

[email protected]

log4j:ERROR No appenders could be found for category (com.cisco.nm.ani.clients.utng.application.UTDataManager).

log4j:ERROR Please initialize the log4j system properly.

ERROR UTCLI: Error loading preferences. Cannot run program "native2ascii": error=2, No such file or directory

Nothing unusual in Cmapps.log (apparently with debug on, to my surprise again).

I have this problem too.
0 votes
Correct Answer by Joe Clarke about 7 years 10 months ago

I've filed a bug for this, CSCsw20310. Essentially, you need the JDK included with Solaris to be installed.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.4 (5 ratings)
Joe Clarke Mon, 12/01/2008 - 12:16

native2ascii is a tool installed by Java on Solaris. By default, a full Solaris 9 or 10 installation will include /usr/java/bin/native2ascii which is then symlinked to /bin/native2ascii. If you did not install Java with Solaris, you can copy native2ascii from another machine into /bin, or simply find a dos2unix tool on the Internet (i.e. a tool that converts DOS line endings to UNIX line endings), name this executable native2ascii, and place it in /bin.

yjdabear Mon, 12/01/2008 - 12:32

Is this a dependency required by LMS/CM UT? It's rather ambiguous that its absence is currently preventing the browser GUI from exporting the UT data, while CLI export is fine. The latter route is not an option for most end-users, nor desirable from the administrative standpoint.

Joe Clarke Mon, 12/01/2008 - 12:35

It is a dependency required by utcli on Solaris. We recommend people install the SUNWCall cluster which includes this executable.

yjdabear Mon, 12/01/2008 - 12:46

Would a dummy (empty) native2ascii make the GUI export successfully, the error message notwithstanding? I suppose there's a reason this binary or the full SUNWCall package was no longer installed on our Sol 10 build.

yjdabear Mon, 12/01/2008 - 13:07

Thanks. If a blank one won't suffice, I might as well try to justify the bona fide native2ascii.

Correct Answer
Joe Clarke Mon, 12/01/2008 - 18:12

I've filed a bug for this, CSCsw20310. Essentially, you need the JDK included with Solaris to be installed.

yjdabear Tue, 12/09/2008 - 12:26

The option currently on my table is to have SUNWj5de installed into an alternate location (outside of /usr/java/bin or /bin), and point LMS/RME's JAVA_HOME variable to that location. My chief concern with this approach is this would address the "native2ascii" issue but introduce a host of other "[binary] not found" problems. The SUNWCall package is very large, and it's by design that it's not fully installed.

Joe Clarke Tue, 12/09/2008 - 12:48

This would not work. The solution is to make sure a native2ascii is in the PATH. This is why the symlink or executable needs to be in /bin or /usr/bin. In a future release, it will be included in /opt/CSCOpx/campus/bin.

yjdabear Thu, 12/11/2008 - 06:27

Could casuser's PATH be modified to include /custom/location/native2ascii? That would seem the least painful solution, if possible.

yjdabear Mon, 12/15/2008 - 07:47

Great! I'll give that a shot. Would dmgtd need to be restared to pick up the PATH change? Could this workaround potentially get overwritten by later LMS patches?

yjdabear Tue, 12/16/2008 - 13:15

The PATH mod works great on my test box. Which release would come bundled with native2ascii, RME 4.3?

Joe Clarke Tue, 12/16/2008 - 13:19

The next Campus Manager IDU should have it (CM 5.0.5, 5.1.2) as well as LMS 3.2.


This Discussion