I am trying to get the Sun Web Console to work with ZFS and am not getting anywhere. When I first tried to get the web console https://server:6789/zfs it gave me a page can't be displayed (500 error). I've played around and performed the following and can now get it to log in and display the ZFS admin link, but when I click it, it will time out and not display anything. What am I missing?
Code:
# svcs webconsole
STATE STIME FMRI
online 12:30:50 svc:/system/webconsole:console
# svcadm -v enable webconsole
svc:/system/webconsole:console enabled.
# svcprop -p options/tcp_listen webconsole false
# netstat -a | grep 6789
localhost.6789 *.* 0 0 49152 0 LISTEN
# svccfg -s svc:/system/webconsole setprop options/tcp_listen = true
# /usr/sbin/smcwebserver restart
Restarting Sun Java(TM) Web Console Version 3.1 ...
The console is running
# netstat -a | grep 6789
*.6789 *.* 0 0 49152 0 LISTEN
localhost.33560 localhost.6789 49152 0 49152 0 FIN_WAIT_2
localhost.6789 localhost.33560 49152 0 49152 0 CLOSE_WAIT
# smcwebserver status
Sun Java(TM) Web Console is running
# svcs -l system/webconsole:console
fmri svc:/system/webconsole:console
name java web console
enabled true
state online
next_state none
state_time Wed Mar 18 09:29:43 2009
logfile /var/svc/log/system-webconsole:console.log
restarter svc:/system/svc/restarter:default
contract_id 326
dependency require_all/none svc:/milestone/network (online)
dependency require_all/refresh svc:/milestone/name-services (online)
dependency require_all/none svc:/system/filesystem/local (online)
dependency optional_all/none svc:/system/filesystem/autofs (disabled) svc:/network/nfs/client (online)
dependency require_all/none svc:/system/system-log (online)
# wcadmin list
Deployed web applications (application name, context name, status):
console ROOT [running]
console com_sun_web_ui [running]
console console [running]
console manager [running]
Registered jar files (application name, identifier, path):
console audit_jar /usr/lib/audit/Audit.jar
console console_jars /usr/share/webconsole/lib/*.jar
console jato_jar /usr/share/lib/jato/jato.jar
console javahelp_jar /usr/jdk/packages/javax.help-2.0/lib/*.jar
console shared_jars /usr/share/webconsole/private/container/shared/lib/*.jar
legacy cc_de /usr/share/webconsole/lib/cc_de.jar
legacy cc_es /usr/share/webconsole/lib/cc_es.jar
legacy cc_fr /usr/share/webconsole/lib/cc_fr.jar
legacy cc_it /usr/share/webconsole/lib/cc_it.jar
legacy cc_ko /usr/share/webconsole/lib/cc_ko.jar
legacy cc_sv /usr/share/webconsole/lib/cc_sv.jar
legacy cc_zh_CN /usr/share/webconsole/lib/cc_zh_CN.jar
legacy cc_zh_HK /usr/share/webconsole/lib/cc_zh_HK.jar
legacy cc_zh_TW /usr/share/webconsole/lib/cc_zh_TW.jar
legacy serviceimpl_de /usr/share/webconsole/lib/serviceimpl_de.jar
legacy serviceimpl_es /usr/share/webconsole/lib/serviceimpl_es.jar
legacy serviceimpl_fr /usr/share/webconsole/lib/serviceimpl_fr.jar
legacy serviceimpl_it /usr/share/webconsole/lib/serviceimpl_it.jar
legacy serviceimpl_ko /usr/share/webconsole/lib/serviceimpl_ko.jar
legacy serviceimpl_sv /usr/share/webconsole/lib/serviceimpl_sv.jar
legacy serviceimpl_zh_CN /usr/share/webconsole/lib/serviceimpl_zh_CN.jar
legacy serviceimpl_zh_HK /usr/share/webconsole/lib/serviceimpl_zh_HK.jar
legacy serviceimpl_zh_TW /usr/share/webconsole/lib/serviceimpl_zh_TW.jar
Registered login modules (application name, service name, identifier):
console ConsoleLogin userlogin
console ConsoleLogin rolelogin
Persistent Jvm options:
-server
-Xmx128m
-XX:+UseParallelGC
-XX:ParallelGCThreads=4
# wcadmin list --detail -a
Deployed web applications (application name, context name, status):
console ROOT [running]
Time: 03/17/09 11:49:33
Base: /usr/share/webconsole/webapps/console
Debug: 0
System: true
console com_sun_web_ui [running]
Time: 03/17/09 11:49:33
Base: /usr/share/webconsole/webapps/com_sun_web_ui
Debug: 0
System: true
console console [running]
Time: 03/17/09 11:49:33
Base: /usr/share/webconsole/webapps/console
Debug: 0
System: true
console manager [running]
Base: ${catalina.home}/webapps/manager
Debug: 0
System: true
# smreg add -a /usr/share/webconsole/webapps/zfs
Warning: smreg is obsolete and is preserved only for
compatibility with legacy console applications. Use wcadmin instead.
Type "man wcadmin" or "wcadmin --help" for more information.
Registering com.sun.zfs.web.admin_1.0.
# smcwebserver restart
Restarting Sun Java(TM) Web Console Version 3.1 ...
The console is running
#svcadm clear system/webconsole:console
(if you get the below, just ignore)
svcadm: Instance "svc:/system/webconsole:console" is not in a maintenance
or degraded state.
Nope. That didn't do anything. I click on zfs administration then it loads the top part of the page and craps out for the bottom half. "can't display page" I've cleared my cache and tried from several diff computers.
I have similar issue ZFS Administration under Java Web Console
1. After logging in to Java Web Console (root) and clicking the "ZFS Administration" link, I get a page which displays in it's entirety:
https://my_server:6789/zfs/zfsmodule/Index
Error:
HTTP Status 404 - /zfs/zfsmodule/Index
type Status report
message /zfs/zfsmodule/Index
description The requested resource (/zfs/zfsmodule/Index) is not available.
2. My setup steps were as follows:
Code:
I. Web Console packages.
root@sanjose # pkginfo | grep "Web Console"
application SUNWmcon Sun Java(TM) Web Console 3.0.2 (Core)
system SUNWmconr Sun Java(TM) Web Console 3.0.2 (Root)
application SUNWmcos Implementation of Sun Java(TM) Web Console (3.0.2) services
application SUNWmcosx Implementation of Sun Java(TM) Web Console (3.0.2) services
application SUNWmctag Sun Java(TM) Web Console 3.0.2 (Tags & Components)
root@sanjose # pkginfo | grep SUNWzfsg
application SUNWzfsgr ZFS Administration for Sun Java(TM) Web Console (Root)
application SUNWzfsgu ZFS Administration for Sun Java(TM) Web Console (usr)
II. Start webconsole service, check version, list plug-in apps.
root@sanjose # svcs -p webconsole
STATE STIME FMRI
online 4:26:43 svc:/system/webconsole:console
4:26:42 11411 java
root@sanjose # wcadmin -V
Sun Java(tm) Web Console 3.1
root@sanjose # wcadmin list
III. Verify webconsole is listening on the network.
root@sanjose # svccfg -s webconsole listprop
options application
options/stability astring Evolving
options/tcp_listen boolean true <<<
IV. Locate plug-in app for ZFS and identify app executable and jars.
root@sanjose # pkginfo | grep SUNWzfsg
application SUNWzfsgr ZFS Administration for Sun Java(TM) Web Console (Root)
application SUNWzfsgu ZFS Administration for Sun Java(TM) Web Console (usr)
root@sanjose # pkgchk -l SUNWzfsgu | grep Path
Pathname: /usr
Pathname: /usr/share
Pathname: /usr/share/webconsole
Pathname: /usr/share/webconsole/webapps
Pathname: /usr/share/webconsole/webapps/zfs <<< APP
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF/app.xml
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF/lib
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF/lib/registrationservlet.jar <<< JAR
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF/lib/zfs.jar <<< JAR
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF/tld
Pathname: /usr/share/webconsole/webapps/zfs/WEB-INF/tld/com_iplanet_jato
V. Register plug-in .
ex.
wcadmin add ...
wcadmin deploy ...
wcadmin enable ...
root@sanjose # wcadmin add -l -a zfs -n zfs_reg_jar /usr/share/webconsole/webapps/zfs/WEB-INF/lib/registrationservlet.jar
Registered the zfs_reg_jar resource for the zfs application.
root@sanjose # wcadmin add -l -a zfs -n zfs_jar /usr/share/webconsole/webapps/zfs/WEB-INF/lib/zfs.jar
Registered the zfs_jar resource for the zfs application.
root@sanjose # wcadmin deploy -a zfs -x zfs_console /usr/share/webconsole/webapps/zfs
The zfs_console web application has been successfully deployed.
root@sanjose # wcadmin enable -x zfs_console
The zfs_console web application was enabled.
VI. Restart webconsole service.
alt-a:
root@sanjose # smcwebserver enable
root@sanjose # smcwebserver restart
alt-b:
root@sanjose # svcadm clear webconsole
root@sanjose # svcadm restart webconsole
VII. Browse to Java Web Console BUI.
https://<server_running_webconsole>:6789
user: root
pw: xxx
Page displays error:
https://my_server:6789/zfs/zfsmodule/Index
Error:
HTTP Status 404 - /zfs/zfsmodule/Index
type Status report
message /zfs/zfsmodule/Index
description The requested resource (/zfs/zfsmodule/Index) is not available.
I will post an update when this is solved.
BTW: ZFS GUI is needed for non-Solaris administrators of Thumper X4500 .
Hello all,
Looking for a pre v2.0 rev of firmware for this ancient device.
Nothing I've seen in searches indicates previous versions were available for download but I have to believe they were.
I've tried the new hpe community website, (formerly ITRC I believe) but no dice.
Also if... (0 Replies)
Java web console Vs Web-Based Enterprise Management(WBEM)
1. I like to understand the difference in purpose of using java web console and Web-Based Enterprise Management (WBEM)
2. As per CIS benchmark, both of them has to be disabled when not used for increased security.
Solaris admin(s) -... (0 Replies)
Dear Team
please some body know what happened with smcwebconsole from Solaris10 to Solaris11 I don't found this script or Don't find in svcs -a
please if some body know any think about this issue to tell us
best, :p (2 Replies)
Hi,
I have Solaris 10 8/07 on SPARC and I can't log in Web console. When I opened browser (Firefox 3) at localhost:6789 I get Save file dialog which asks me to save some file with .part at the end. What information should I provide to find out where is the trouble?..
Internet explorer says... (3 Replies)