SlideShare uma empresa Scribd logo
1 de 12
Baixar para ler offline
GlassFish
Admin CLI - asadmin



Jane Young janey@dev.java.net
Kedar Mhaswade km@dev.java.net
January 22, 2009
Agenda
• Admin CLI
• CLI Syntax
• Tips
  > Multimode
  > Environment Variables
  > Passwords
  > Closest Matching
  > Dotted-Name Commands
  > Debug
• V2 and V3
• Q.A.                      2
Admin CLI - asadmin
• Command Line Administration tool
  >   Administers domains, nodeagents, instances
  >   Deploys applications
  >   Configures and manages resources
  >   Monitors resources
• Everything you do in Admin console, you can do it
  with asadmin and much more!
• To get a list of all the commands, “asadmin help”.
Syntax
asadmin command-name options operands
  > command-name: start-domain, create-domain stop-domain etc.
  > options: boolean, short-options, long-options
  > operands
  To get the syntax for a command, “asadmin command-name –help” or “asadmin
     help command-name”

• Compliant with OpenSolaris CLIP Standards:
  http://www.opensolaris.org/os/community/arc/caselo
  g/2006/062/
Tip 1 - multi-mode
• Execution of many commands in asadmin shell
• Environment Variables are preserved in the
  asadmin session.
• Execution of many commands specified in a file
  > asadmin multimode –file <file contains commands>
• Faster performance since commands are executed
  in the same Java VM.
Tip 2 - Environment Variables
• AS_ADMIN_<option-name>
  e.g. AS_ADMIN_USER, AS_ADMIN_HOST etc.
  > In SingleMode:
     > Set environment variables in the shell
  > In MultiMode:
     > export AS_ADMIN_<option-name>=<options-value>
     > unset AS_ADMIN_<option-name>
• You don't need to specify the options on the
  command line when it's set in the environment
  variable.
Tip 3 - Password Handling
• Interactive
  > If true (by default), passwords are prompted
• Passwordfile
  > Save passwords in a file and pass it as –passwordfile
    option
  > Passwords are saved in the file with the format:
    AS_ADMIN_<password-name>=<password-value>
• login command / create-domain --savelogin
  > admin passwords are encrypted in
    $HOME/.asadminpass file.
  > No need to provide passwordfile option on command line
Tip 4 - Closest Matching
• Finding commands in asadmin
  > Accepts wildcards
     > asadmin jdbc – returns all the commands with jdbc
     > asadmin ^create* - returns all the command that starts with
       create.
• Catches typos and return the closest matching
  commands
  > asadmin create-domian – returns the correct command
    “asadmin create-domain”
Tip 5 – Dotted Name Commands
• get
  > Gets the names and values of attributes
  > Use wildcard character: “asadmin get ”, “asadmin get
    server.”
  > Use –monitor option for monitoring. Don't forget to
    update the monitoring-level for the resource you want to
    monitor.
• set
  > Sets the values of one or more configurable attribute.
  > e.g. “asadmin set <name1>=<value1>
    <name2>=<value2>
• List
  > Lists configuration elements
Tip 6 -Debug
• V2
 > Add -DDebug in asadmin


• V3
 > Set AS_DEBUG in environment
V2 vs V3
• V2
 > Command classes are executed on client side
 > Commands are bundled in admin-cli.jar and appserv-
   ser.jar
 > Uses JMX connector to communicate with the server
• V3
 > Command classes are executed on server side
 > Uses REST-like HTTP protocol to communicate with the
   server.


                                                          10
Resources
• V2
  > Admin Guide:
     http://docs.sun.com/doc/819-3671
• V3
  > Admin Infrastructure Onepager:
    https://glassfish.dev.java.net/nonav/v3/admin/planning/prelude
• Forum
  > admin@glassfish.dev.net
• Weekly Admin iTeam Meeting
  > http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV2Admin
                                                             12

Mais conteúdo relacionado

Destaque

Destination Weddings And Honeymoons
Destination Weddings And HoneymoonsDestination Weddings And Honeymoons
Destination Weddings And HoneymoonsStrubstyle
 
Timeshare1
Timeshare1Timeshare1
Timeshare1birdnest
 
Social Networking An Applied Approach Umpi
Social Networking An Applied Approach UmpiSocial Networking An Applied Approach Umpi
Social Networking An Applied Approach UmpiSonja Plummer Morgan
 
Thailand online mega sale 2013 scope slide presentation
Thailand online mega sale 2013 scope slide presentationThailand online mega sale 2013 scope slide presentation
Thailand online mega sale 2013 scope slide presentationYakuzaazero
 
Ijitoak Eta Agoteak
Ijitoak Eta AgoteakIjitoak Eta Agoteak
Ijitoak Eta Agoteakagorosarz
 
Diminishig Global Growth Dynamics
Diminishig Global Growth DynamicsDiminishig Global Growth Dynamics
Diminishig Global Growth Dynamicsgilboa76
 
Colorado Online Energy Project TAACCCT Round 2 Kick-Off Presentation
Colorado Online Energy Project TAACCCT Round 2 Kick-Off PresentationColorado Online Energy Project TAACCCT Round 2 Kick-Off Presentation
Colorado Online Energy Project TAACCCT Round 2 Kick-Off PresentationOPEN4Us
 
Backstopp Slideshow 2003
Backstopp Slideshow 2003Backstopp Slideshow 2003
Backstopp Slideshow 2003Regan McCarthy
 

Destaque (10)

Destination Weddings And Honeymoons
Destination Weddings And HoneymoonsDestination Weddings And Honeymoons
Destination Weddings And Honeymoons
 
Timeshare1
Timeshare1Timeshare1
Timeshare1
 
Social Networking An Applied Approach Umpi
Social Networking An Applied Approach UmpiSocial Networking An Applied Approach Umpi
Social Networking An Applied Approach Umpi
 
Thailand online mega sale 2013 scope slide presentation
Thailand online mega sale 2013 scope slide presentationThailand online mega sale 2013 scope slide presentation
Thailand online mega sale 2013 scope slide presentation
 
Ijitoak Eta Agoteak
Ijitoak Eta AgoteakIjitoak Eta Agoteak
Ijitoak Eta Agoteak
 
Diminishig Global Growth Dynamics
Diminishig Global Growth DynamicsDiminishig Global Growth Dynamics
Diminishig Global Growth Dynamics
 
Colorado Online Energy Project TAACCCT Round 2 Kick-Off Presentation
Colorado Online Energy Project TAACCCT Round 2 Kick-Off PresentationColorado Online Energy Project TAACCCT Round 2 Kick-Off Presentation
Colorado Online Energy Project TAACCCT Round 2 Kick-Off Presentation
 
Backstopp Slideshow 2003
Backstopp Slideshow 2003Backstopp Slideshow 2003
Backstopp Slideshow 2003
 
Exemple_2
Exemple_2Exemple_2
Exemple_2
 
Presentacion Casa Ocotlan
Presentacion Casa OcotlanPresentacion Casa Ocotlan
Presentacion Casa Ocotlan
 

Semelhante a Admin Cli Jane Young Kedar Mhaswade 22 Jan09

WordPress + NGINX Best Practices with EasyEngine
WordPress + NGINX Best Practices with EasyEngineWordPress + NGINX Best Practices with EasyEngine
WordPress + NGINX Best Practices with EasyEngineNGINX, Inc.
 
Exploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsExploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsMarian Marinov
 
Cache Money Talk: Practical Application
Cache Money Talk: Practical ApplicationCache Money Talk: Practical Application
Cache Money Talk: Practical ApplicationWolfram Arnold
 
OSDC 2009 Rails Turtorial
OSDC 2009 Rails TurtorialOSDC 2009 Rails Turtorial
OSDC 2009 Rails TurtorialYi-Ting Cheng
 
Ganglia Monitoring Tool
Ganglia Monitoring ToolGanglia Monitoring Tool
Ganglia Monitoring Toolsudhirpg
 
Create a web-app with Cgi Appplication
Create a web-app with Cgi AppplicationCreate a web-app with Cgi Appplication
Create a web-app with Cgi Appplicationolegmmiller
 
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?brynary
 
Trouble shooting apachecloudstack
Trouble shooting apachecloudstackTrouble shooting apachecloudstack
Trouble shooting apachecloudstackSailaja Sunil
 
Distributed Applications with Perl & Gearman
Distributed Applications with Perl & GearmanDistributed Applications with Perl & Gearman
Distributed Applications with Perl & GearmanIssac Goldstand
 
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)Carles Farré
 
Expanding a tree node
Expanding a tree nodeExpanding a tree node
Expanding a tree nodeHemakumar.S
 
JUDCon London 2011 - Bin packing with drools planner by example
JUDCon London 2011 - Bin packing with drools planner by exampleJUDCon London 2011 - Bin packing with drools planner by example
JUDCon London 2011 - Bin packing with drools planner by exampleGeoffrey De Smet
 
Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation Compare Infobase Limited
 

Semelhante a Admin Cli Jane Young Kedar Mhaswade 22 Jan09 (20)

WordPress + NGINX Best Practices with EasyEngine
WordPress + NGINX Best Practices with EasyEngineWordPress + NGINX Best Practices with EasyEngine
WordPress + NGINX Best Practices with EasyEngine
 
Exploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsExploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your plugins
 
Cache Money Talk: Practical Application
Cache Money Talk: Practical ApplicationCache Money Talk: Practical Application
Cache Money Talk: Practical Application
 
GlassFish v2 Clustering
GlassFish v2 ClusteringGlassFish v2 Clustering
GlassFish v2 Clustering
 
50 tips50minutes
50 tips50minutes50 tips50minutes
50 tips50minutes
 
Smarty
SmartySmarty
Smarty
 
Asadmin Webinar 12 Feb 2009
Asadmin Webinar 12 Feb 2009Asadmin Webinar 12 Feb 2009
Asadmin Webinar 12 Feb 2009
 
Seam Glassfish Slidecast
Seam Glassfish SlidecastSeam Glassfish Slidecast
Seam Glassfish Slidecast
 
OSDC 2009 Rails Turtorial
OSDC 2009 Rails TurtorialOSDC 2009 Rails Turtorial
OSDC 2009 Rails Turtorial
 
Ganglia Monitoring Tool
Ganglia Monitoring ToolGanglia Monitoring Tool
Ganglia Monitoring Tool
 
Create a web-app with Cgi Appplication
Create a web-app with Cgi AppplicationCreate a web-app with Cgi Appplication
Create a web-app with Cgi Appplication
 
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?
 
Trouble shooting apachecloudstack
Trouble shooting apachecloudstackTrouble shooting apachecloudstack
Trouble shooting apachecloudstack
 
JBoss AS 7
JBoss AS 7JBoss AS 7
JBoss AS 7
 
Distributed Applications with Perl & Gearman
Distributed Applications with Perl & GearmanDistributed Applications with Perl & Gearman
Distributed Applications with Perl & Gearman
 
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (3/3)
 
Expanding a tree node
Expanding a tree nodeExpanding a tree node
Expanding a tree node
 
JUDCon London 2011 - Bin packing with drools planner by example
JUDCon London 2011 - Bin packing with drools planner by exampleJUDCon London 2011 - Bin packing with drools planner by example
JUDCon London 2011 - Bin packing with drools planner by example
 
WordPress APIs
WordPress APIsWordPress APIs
WordPress APIs
 
Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation
 

Mais de Eduardo Pelegri-Llopart

Pelegri Desarrollando en una nueva era de software
Pelegri   Desarrollando en una nueva era de software Pelegri   Desarrollando en una nueva era de software
Pelegri Desarrollando en una nueva era de software Eduardo Pelegri-Llopart
 
Market trends in IT - exchange cala - October 2015
Market trends in IT - exchange cala - October 2015Market trends in IT - exchange cala - October 2015
Market trends in IT - exchange cala - October 2015Eduardo Pelegri-Llopart
 
The impact of IOT - exchange cala - 2015
The impact of IOT - exchange cala - 2015The impact of IOT - exchange cala - 2015
The impact of IOT - exchange cala - 2015Eduardo Pelegri-Llopart
 
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...Eduardo Pelegri-Llopart
 
What is the Internet of Things and How it Impacts You
What is the Internet of Things and How it Impacts YouWhat is the Internet of Things and How it Impacts You
What is the Internet of Things and How it Impacts YouEduardo Pelegri-Llopart
 
Ehcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEhcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEduardo Pelegri-Llopart
 

Mais de Eduardo Pelegri-Llopart (20)

Juggling at freenome
Juggling   at freenomeJuggling   at freenome
Juggling at freenome
 
Csumb capstone-fall2016
Csumb capstone-fall2016Csumb capstone-fall2016
Csumb capstone-fall2016
 
Digital activitymanagement
Digital activitymanagementDigital activitymanagement
Digital activitymanagement
 
Progress next iot_pelegri
Progress next iot_pelegriProgress next iot_pelegri
Progress next iot_pelegri
 
Pelegri Desarrollando en una nueva era de software
Pelegri   Desarrollando en una nueva era de software Pelegri   Desarrollando en una nueva era de software
Pelegri Desarrollando en una nueva era de software
 
Market trends in IT - exchange cala - October 2015
Market trends in IT - exchange cala - October 2015Market trends in IT - exchange cala - October 2015
Market trends in IT - exchange cala - October 2015
 
The impact of IOT - exchange cala - 2015
The impact of IOT - exchange cala - 2015The impact of IOT - exchange cala - 2015
The impact of IOT - exchange cala - 2015
 
IOT - Presentation to PEP @ Progress
IOT - Presentation to PEP @ ProgressIOT - Presentation to PEP @ Progress
IOT - Presentation to PEP @ Progress
 
Node.js as an IOT Bridge
Node.js as an IOT BridgeNode.js as an IOT Bridge
Node.js as an IOT Bridge
 
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
 
What is the Internet of Things and How it Impacts You
What is the Internet of Things and How it Impacts YouWhat is the Internet of Things and How it Impacts You
What is the Internet of Things and How it Impacts You
 
Community Update 25 Mar2010 - English
Community Update 25 Mar2010 - EnglishCommunity Update 25 Mar2010 - English
Community Update 25 Mar2010 - English
 
GlassFish Community Update 25 Mar2010
GlassFish Community Update 25 Mar2010GlassFish Community Update 25 Mar2010
GlassFish Community Update 25 Mar2010
 
Glass Fish Portfolio C1 West V3.Mini
Glass Fish Portfolio C1 West V3.MiniGlass Fish Portfolio C1 West V3.Mini
Glass Fish Portfolio C1 West V3.Mini
 
Virtual Box Aquarium May09
Virtual Box Aquarium May09Virtual Box Aquarium May09
Virtual Box Aquarium May09
 
Introduction To Web Beans
Introduction To Web BeansIntroduction To Web Beans
Introduction To Web Beans
 
Ehcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEhcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage Patterns
 
OpenDS Primer Aquarium
OpenDS Primer AquariumOpenDS Primer Aquarium
OpenDS Primer Aquarium
 
Fuji Overview
Fuji OverviewFuji Overview
Fuji Overview
 
Nuxeo 5.2 Glassfish
Nuxeo 5.2 GlassfishNuxeo 5.2 Glassfish
Nuxeo 5.2 Glassfish
 

Último

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 

Último (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 

Admin Cli Jane Young Kedar Mhaswade 22 Jan09

  • 1. GlassFish Admin CLI - asadmin Jane Young janey@dev.java.net Kedar Mhaswade km@dev.java.net January 22, 2009
  • 2. Agenda • Admin CLI • CLI Syntax • Tips > Multimode > Environment Variables > Passwords > Closest Matching > Dotted-Name Commands > Debug • V2 and V3 • Q.A. 2
  • 3. Admin CLI - asadmin • Command Line Administration tool > Administers domains, nodeagents, instances > Deploys applications > Configures and manages resources > Monitors resources • Everything you do in Admin console, you can do it with asadmin and much more! • To get a list of all the commands, “asadmin help”.
  • 4. Syntax asadmin command-name options operands > command-name: start-domain, create-domain stop-domain etc. > options: boolean, short-options, long-options > operands To get the syntax for a command, “asadmin command-name –help” or “asadmin help command-name” • Compliant with OpenSolaris CLIP Standards: http://www.opensolaris.org/os/community/arc/caselo g/2006/062/
  • 5. Tip 1 - multi-mode • Execution of many commands in asadmin shell • Environment Variables are preserved in the asadmin session. • Execution of many commands specified in a file > asadmin multimode –file <file contains commands> • Faster performance since commands are executed in the same Java VM.
  • 6. Tip 2 - Environment Variables • AS_ADMIN_<option-name> e.g. AS_ADMIN_USER, AS_ADMIN_HOST etc. > In SingleMode: > Set environment variables in the shell > In MultiMode: > export AS_ADMIN_<option-name>=<options-value> > unset AS_ADMIN_<option-name> • You don't need to specify the options on the command line when it's set in the environment variable.
  • 7. Tip 3 - Password Handling • Interactive > If true (by default), passwords are prompted • Passwordfile > Save passwords in a file and pass it as –passwordfile option > Passwords are saved in the file with the format: AS_ADMIN_<password-name>=<password-value> • login command / create-domain --savelogin > admin passwords are encrypted in $HOME/.asadminpass file. > No need to provide passwordfile option on command line
  • 8. Tip 4 - Closest Matching • Finding commands in asadmin > Accepts wildcards > asadmin jdbc – returns all the commands with jdbc > asadmin ^create* - returns all the command that starts with create. • Catches typos and return the closest matching commands > asadmin create-domian – returns the correct command “asadmin create-domain”
  • 9. Tip 5 – Dotted Name Commands • get > Gets the names and values of attributes > Use wildcard character: “asadmin get ”, “asadmin get server.” > Use –monitor option for monitoring. Don't forget to update the monitoring-level for the resource you want to monitor. • set > Sets the values of one or more configurable attribute. > e.g. “asadmin set <name1>=<value1> <name2>=<value2> • List > Lists configuration elements
  • 10. Tip 6 -Debug • V2 > Add -DDebug in asadmin • V3 > Set AS_DEBUG in environment
  • 11. V2 vs V3 • V2 > Command classes are executed on client side > Commands are bundled in admin-cli.jar and appserv- ser.jar > Uses JMX connector to communicate with the server • V3 > Command classes are executed on server side > Uses REST-like HTTP protocol to communicate with the server. 10
  • 12. Resources • V2 > Admin Guide: http://docs.sun.com/doc/819-3671 • V3 > Admin Infrastructure Onepager: https://glassfish.dev.java.net/nonav/v3/admin/planning/prelude • Forum > admin@glassfish.dev.net • Weekly Admin iTeam Meeting > http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV2Admin 12