cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
59376
Views
86
Helpful
18
Replies

ASDM on Ubuntu

RAINER PARZER
Level 1
Level 1

Hi

Since a long time i'm dealing with different ASDM issues.

Now i have a new Problem ... and i can't fix it.

index.html shows up different ... so i cannot connect to the ASDM anymore with my Ubuntu (14.04) machine.

Can anybody help?

Does anybody know why ASDM is such a crap for a so long time?

Thanks a lot

Rainer

18 Replies 18

Now it is 2022-2023 and this solution needs a tweak. Cisco has not updated the asdm-launcher.sh for the current 7.18 + ASDM. But they DID update "run.bat".  Instead of the java launch parameters from the old linux shell command, I had to use the line from run.bat, replacing semi-colons with colons (for sh vs cmd.) 

My final adsm.sh is as follows:

#! /usr/bin/bash
# Script asdm.sh to launch ASDM java application under Linux 
# gnome-desktop  and xRDP installed on Ubuntu server 22.04
# Running with Oracle JRE Version 8  2023-mar-29
#
# To set up....
# download jre-8u361-linux-x64.tar.gz (from Oracle) and unpack
# Copy jre from downloaded/unpacked to /usr/share/java
# (/usr/share/java will now contain a bin folder with the java run files)
# On Win after installing ASDM-IDM on Win.... 
# Use sftp to copy C:\Program Files (x86)\Cisco Systems\ASDM to /usr/share/asdm
# /usr/share/asdm now contains the needed jar files and cert.PEM
# copy this file (asdm.sh) to /usr/share/asdm
# I needed to strip ^M and \r from my asdm.sh after copying from win.
# Search How to remove CTRL-M (^M) characters (I use sed) 
# Change ownership and make the script executable chown and chmod +x
#
# If the chown and chmod are correct...
# log on to desktop. start a terminal. run /usr/share/asdm/asdm.sh to start the party

ASDMLIB=/usr/share/asdm/
JAVABIN=/usr/share/java/bin/
echo Starting ASDM Launcher

exec ${JAVABIN}java  -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true \
        -classpath lzma.jar:jploader.jar:asdm-launcher.jar:retroweaver-rt-2.0.jar \
        com.cisco.launcher.Launcher cert.PEM

# ASDMLIB and JAVABIN are absolute path to the directories
~

 

WOW this works... perfectly! I even tried it with the newer JRE 8u371. Only change I made was making a subfolder called jre8 and adjusting the script accordingly. This seems very solid. Thanks so much for your efforts! No more Windows VM to open ASDM

bitgin
Level 1
Level 1

I've only been able to get it working by following this guide:

https://noobient.com/2019/09/26/cisco-asdm-on-64-bit-ubuntu-18-04/

 

64bit java (and the lack of 32bit support under Ubuntu) was the cause of my getting this error when trying to launch asdm:

 

Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
  • Download the 32bit tarball from Oracle
  • Extract it to /somewhere
  • Install the dependencies: sudo apt install libxrender-dev:i386 libxtst-dev:i386 libgtk-3-dev:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386
  • Run ASDM with: /somewhere/bin/javaws https://ASDMurl/admin/public/asdm.jnlp

If you don't have real certs on your devices you'll probably need to run the ContolPanel script in your 32bit java directory and add an exception in the security tab.

 

MICHAEL BRENNER
Level 1
Level 1

See my 2023-mar-29 reply 

The cert.PEM is critical to downloading the modules now.

 

Review Cisco Networking products for a $25 gift card