SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Kürzlich hochgeladen (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 

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