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

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 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