JuniperForum.com
July 29, 2010, 07:45:09 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: If you have an interesting idea for an article or knowledgebase entry, please submit it!
 
  Home Help Login Register  
* *
Pages: [1]
  Print  
Author Topic: UPDATED: NSM GUI on Mac OSX -- works great  (Read 3818 times)
signal15
Administrator
Sr. Member
*****
Posts: 480


View Profile WWW
« on: August 24, 2006, 09:40:37 AM »

UPDATE - I found a problem where you could not view logs in the NSM under OSX when using java version 1.5.0.  I have put the fix in below, which references the 1.4.2 version that should be installed on your system.  Now it works perfectly.

It's possible to run NSM on Mac OSX.  You will need to install the GUI on a linux box, and then tar it up:
tar zcvf nsm.tgz Netscreen-Security_Manager/

Then untar it on your OSX box.  I usually make an NSM directory in my $HOME and put it under there, renaming the "Netscreen-Security_Manager" directory to whatever version it is, like 2006.1.

mkdir ~/NSM
  -- put your nsm.tgz into that directory
cd ~/NSM
tar zxvf nsm.tgz
mv NetScreen-Security_Manager 2006.1

You then need to modify the NSM.lax file.  I have placed a copy of it below that should work for everyone.

To run it, cd into ~/NSM/2006.1 and type "./NSM &"

The reason I renamed it to the version number is that I have several versions installed, so my ~/NSM directory has like 5 versions in it.  Also, I noticed that when running it on an Intel based Mac, it works great.  But when running it on a PPC based Mac, you must wait up to a minute or two before clicking connect after you type your password or it will fail.  Not sure what's causing it, but I noticed that Java takes up a big chunk of CPU right when it starts, and if you don't wait for it to calm down it will give you an error when trying to connect.  Once you're connected, it works great.  Also, you can cut and paste, but within the java app, you must use ctrl-c and ctrl-v, not the apple key.


Code:
#   LaunchAnywhere (tm) Executable Properties File - Zero G Software, Inc.

#   LAX.APPLICATION.NAME
#   --------------------
#   the default name of this executable -- do not edit

lax.application.name=NSM


#   LAX.CLASS.PATH
#   --------------
#   the Java classpath necessary to run this application
#   Can be separated by colons (Mac OS/Unix) or semicolons (Windows)

lax.class.path=lib/client.jar:lib/jdom.jar:lib/sshtools.jar:lib/jcchart451K.jar:lib/forms-1.0.2.jar:lib/nstelnet.jar:lib/alloy.jar:lib/javachart.jar:lib/jakarta-regexp-1.3.jar:lib/foxtrot.jar:lib/ireasoningsnmp.jar:lib/velocity-dep-1.4.jar:lib/log4j-1.2.8.jar:lib/log4j.jar:lib/jcpagelayout.jar:lib/certj.jar:lib/jh.jar:lib/jsafe.jar:lax.jar


#   LAX.COMMAND.LINE.ARGS
#   ---------------------
#   what will be passed to the main method -- be sure to quote arguments with spaces in them

lax.command.line.args=$CMD_LINE_ARGUMENTS$


#   LAX.DIR
#   -------
#   path to directory holding LaunchAnywhere's native launcher

lax.dir=.


#   LAX.MAIN.CLASS
#   --------------
#   the class that contains the main method for the application

lax.main.class=com.netscreen.apps.mainui.StartUp


#   LAX.MAIN.METHOD
#   ---------------
#   the method in the main class that will be invoked

lax.main.method=main


#   LAX.NL.CURRENT.VM
#   -----------------
#   the VM to use for the next launch

lax.nl.current.vm=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java


#   LAX.NL.JAVA.LAUNCHER.MAIN.CLASS
#   -------------------------------
#   main class of LaunchAnywhere's java launcher -- do not adjust

lax.nl.java.launcher.main.class=com.zerog.lax.LAX


#   LAX.NL.JAVA.LAUNCHER.MAIN.METHOD
#   --------------------------------
#   main method of LaunchAnywhere's java launcher -- do not adjust

lax.nl.java.launcher.main.method=main


#   LAX.NL.JAVA.OPTION.ADDITIONAL
#   -----------------------------
#   Incremental Garbage Collection

lax.nl.java.option.additional=


#   LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.INITIAL
#   -----------------------------------------
#   Initial Heap Size

lax.nl.java.option.java.heap.size.initial=48m


#   LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX
#   -------------------------------------
#   Maximum Heap Size

lax.nl.java.option.java.heap.size.max=384m


#   LAX.NL.MESSAGE.VM.NOT.LOADED
#   ----------------------------
#   text to show the user in a dialog if NO VM can be found.

lax.nl.message.vm.not.loaded=The application either could not find a Java VM, or the Java VM on this system is too old. The application requires Java 1.1.5, Microsoft Java version 2750, or Mac OS Runtime for Java 2.0. These can be downloaded from http://java.sun.com/products/jdk/1.1/jre/ or http://www.microsoft.com/java or http://www.apple.com/java


#   LAX.NL.VALID.VM.LIST
#   --------------------
#   a string containing one or more of JDK JRE MSJ MRJ delimited by spaces or commas.
#   If the native launcher cannot find the current vm,
#   it will search for ones in this list

lax.nl.valid.vm.list=JDK JRE MSJ MRJ


#   LAX.NL.WIN32.MICROSOFTVM.MIN.VERSION
#   ------------------------------------
#   The minimum version of Microsoft's VM this launcher will run with

lax.nl.win32.microsoftvm.min.version=2750


#   LAX.ROOT.INSTALL.DIR
#   --------------------
#   path to the installdir magic folder

lax.root.install.dir=/root/NetScreen-Security Manager


#   LAX.STDERR.REDIRECT
#   -------------------
#   leave blank for no output, "console" to send to a console window,
#   and any path to a file to save to the file

lax.stderr.redirect=


#   LAX.STDIN.REDIRECT
#   ------------------
#   leave blank for no input, "console" to read from the console window,
#   and any path to a file to read from that file

lax.stdin.redirect=


#   LAX.STDOUT.REDIRECT
#   -------------------
#   leave blank for no output, "console" to send to a console window,
#   and any path to a file to save to the file

lax.stdout.redirect=


#   LAX.USER.DIR
#   ------------
#   left blank, this property will cause the native launcher to not
#   alter the platform default behavior for setting the user dir.
#   To override this you may set this property to a relative or absolute path.
#   Relative paths are relative to the launcher.

lax.user.dir=.


#   LAX.VERSION
#   -----------
#   version of LaunchAnywhere that created this properties file

lax.version=7.0


#   NSDIR
#   -----
#   the install directory

NSDIR=.


« Last Edit: September 27, 2006, 12:13:09 PM by signal15 » Logged
Pages: [1]
  Print  
 
Jump to:  

Navigation

Donate

Please consider donating if we've saved you time or money. It helps pay for the bandwidth, equipment, and hosting charges to keep this site running

Tools

Submit Article/KB - Do not submit questions here.

Recent

Stats

Members
Stats
  • Total Posts: 39593
  • Total Topics: 10459
  • Online Today: 72
  • Online Ever: 393
  • (August 06, 2008, 07:40:57 AM)
Users Online
Users: 2
Guests: 33
Total: 35
TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Sponsored in part by CollarWise

Page created in 0.207 seconds with 35 queries.