SlideShare uma empresa Scribd logo
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

IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
Intelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdfIntelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdfAnthony Lucente
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfChristopherTHyatt
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfalexjohnson7307
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 

Último (20)

IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Intelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdfIntelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdf
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 

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