VMware Smart Assurance NCM: TelnetProxy does not work in NCM 10.1.1 version.
search cancel

VMware Smart Assurance NCM: TelnetProxy does not work in NCM 10.1.1 version.


Article ID: 345310


Updated On:




Telnetproxy command "telnet <NCM server IP address> 1029" does not work when executed in NCM 10.1.1 setup.


VMware Smart Assurance - NCM


Lack of required jars in CLASSPATH section of /etc/xinetd.d/telnetproxy file. In the non-working scenario, CLASSPATH section of /etc/xinetd.d/telnetproxy consists of following jars-

CLASSPATH=.:/opt/smarts-ncm/cm/daemon/lib/zebedee-1.0.jar:/opt/smarts-ncm/ui/html/lib/spring-security-core-5.1.6.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/spring-context-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/spring-core-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/spring-beans-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/log4j-1.2.16.jar:/opt/smarts-ncm/ui/html/lib/commons-logging-1.1.1.jar:/opt/smarts-ncm/ui/html/lib/spring-expression-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/services- VOYENCE_HOME=/opt/smarts-ncm:./resources


As of September 2020, this issue has been identified as a bug in NCM 10.1.1 setup. Fix for this issue would be part of upcoming release of NCM. To enquire about further details on the fix availability, open a Service Request with VMware Technical Support team and reference this KB article.


This workaround can be followed in NCM 10.1.1 setup for successfully using telnetproxy.

1. Take backup of existing file /etc/xinetd.d/telnetproxy and open the file /etc/xinetd.d/telnetproxy to perform following changes-

CLASSPATH section requires below changes:

a) Replacement of hibernate-core-3.5.0-CR-2.jar with hibernate-core-5.3.10.Final.jar
b) Addition of /opt/smarts-ncm/ui/html/lib/javax.persistence-api-2.2.jar
c) Resources can be removed from VOYENCE_HOME. Replace "VOYENCE_HOME=/opt/smarts-ncm:./resources" with "VOYENCE_HOME=/opt/smarts-ncm". 

After the changes, the content would look like below:

CLASSPATH=.:/opt/smarts-ncm/cm/daemon/lib/zebedee-1.0.jar:/opt/smarts-ncm/ui/html/lib/spring-security-core-5.1.6.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/spring-context-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/spring-core-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/spring-beans-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/log4j-1.2.16.jar:/opt/smarts-ncm/ui/html/lib/commons-logging-1.1.1.jar:/opt/smarts-ncm/ui/html/lib/spring-expression-5.1.9.RELEASE.jar:/opt/smarts-ncm/ui/html/lib/services- VOYENCE_HOME=/opt/smarts-ncm

2. Save and close the file /etc/xinetd.d/telnetproxy.

3. Execute command "service xinetd restart". Xinetd restart command can differ in separate Linux OS versions.

4. The successful login to telnetproxy would be similar to below captured terminal output:

[root@ xinetd.d]# telnet 1029
Connected to
Escape character is '^]'.

Welcome to VMware Proxy
Copyright (c) 2020 VMware Inc

User Access Verification
Enter user name: sysadmin

Enter password: ********

Please wait...
Logged into VMware Smart Assurance Network Configuration Manager as sysadmin

To Log off and close this session, enter the 'q' or 'exit' commands.

VMware Proxy>q

Please wait...

Log off is successful...

VMware Proxy
Copyright (c) 2020 VMware Inc

Connection closed by foreign host.
[root@ xinetd.d]#