SlideShare a Scribd company logo
Server Management with Remove
Don MacVittie, Sr. Solutions Architect
Overview
•  There are some things in Stacki that you
can only do with Remove commands. This
tutorial takes you over the most common
remove commands and offers an overview
of how they work.
Removing Hosts
NOTE:
Removing a host will remove it and all the entries about it from the database. If
command-line customizations have been implemented – such as adding routes –
those customizations will be lost with remove host, and will require re-entry if the
host is ever returned to the system.
[root@stackihw ~]# stack list host
 
HOST RACK RANK CPUS APPLIANCE DISTRIBUTION RUNACTION INSTALLACTION
stackihw: 0 0 1 frontend default os install
backend-0-1: 0 1 4 backend default os install
backend-0-2: 0 2 1 backend default os install
puppet: 0 3 4 backend default os install
 
[root@stackihw ~]# stack remove host backend-0-2
 
[root@stackihw ~]# stack list host
 
HOST RACK RANK CPUS APPLIANCE DISTRIBUTION RUNACTION INSTALLACTION
stackihw: 0 0 1 frontend default os install
backend-0-1: 0 1 4 backend default os install
puppet: 0 3 4 backend default os install
 
[root@stackihw ~]#
 
 
Later, the host can be
re-added by adding it with
any of the normal methods.
Stacki will see it as a new
server, simply because
remove deleted all trace of it
from the system.
stack remove host [hostname]
Removing host Bootaction
•  Effectively removes the server from management by Stacki.
•  Tells Stacki to do nothing when this machine boots and asks what to do. This causes the machine to boot to
local disk, just as it would if bootaction was set to “os”, except that stacki never gets a say.
•  This is useful in place of Remove host because all customizations are kept, though it is functionally the same
as removing the host from the Stacki database.
[root@stackihw ~]# stack list host boot
HOST ACTION
stackihw: -------
backend-0-1: install
puppet: os
 
[root@stackihw ~]# stack remove host boot backend-0-1
 
[root@stackihw ~]# stack list host boot
HOST ACTION
stackihw: ------
backend-0-1: ------
puppet: os
 
 
Remove outdated routes
stack remove route and stack remove host route will remove
routing information from the routing table. This is useful when
access needs or routes change.
After the command, don’t forget to sync host network so the
changes you just made to the database are propagated to the
server
[root@stackidon ~]# stack remove host route backend-0-0 address = 0.0.0.0
[root@stackidon ~]# stack sync host network backend-0-0
 
 
 
 
Remove SSH Keys
User-defined SSH keys can
be cleaned up using remove
host key. Default keys cannot
be removed in this manner.
First, list the keys, then get the
“ID” field, use that to pass which
key into remove host key. Done.
[root@stackihw ~]# stack list host key
HOST ID PUBLIC KEY
puppet: 1 ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQD0+98qKuKvry9rFfCCHI4QunO6ompIqqLL8Z5R0cJ0Gdmkvd69
g9JZMX0zJ4LbQBpICLyvz3nneZQ8fLFG6B0DlxibQQd2/Ds27mG5lmcqKsBtE47LQiD48dAq
+9aYaoD8J/eqP1rbk4eQk+nkhnqFnBLjcg2RnFULDnSHtXftK6pEjTEFVcacmtLxwQjMlBTxk4c/
veKwDtzazuo1nqVHl734s4nyxOQeN4qMQym6Jmuzb5W9hOCa0kzFtZkiibiiEN5RciAFOW0j5ztKkLKq
9Cg3y17y9jz355hQ6LwHHZqPkmPuFWhAQGTdkH5GGSSKkkWJDIi9/uZMXXbVJozR
root@stackihw.nandgate.com
-------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-------
 
[root@stackihw ~]# stack remove host key puppet id=1
 
[root@stackihw ~]# stack list host key
 
[root@stackihw ~]#
 
 
And attributes
stack remove attr attr=[attrname]
stack remove host attr [hostname] attr=[attrname]
stack remove appliance attr [appliance_name] attr=[attrname]
The three commands below all do the same thing at different levels. The first removes a
globally defined attribute, the second, a host visible attribute, and the third, an
appliance visible attribute.
Note that some attributes, particularly at the global level, are required for proper
operation of Stacki. We strongly recommend you only change attributes you have
created, or ones that you know exactly what they do.
Stacki Resources
•  There is a lot more to Stacki than this few slides can show. Join us at the links

below to explore Stacki’s rich command structure and see how it answers your

problems.
Quick access to Stacki resources:
•  Visit www.Stacki.com to download a pre-build ISO for RHEL/CentOS 6 & 7 and to sign up

for our charter program
•  Stacki source code is available on the StackIQ GitHub: https://github.com/StackIQ/stacki
•  Engage with other users and developers in the Stacki Google Group:
https://groups.google.com/forum/#!forum/stacki
Follow us on Twitter @StackIQ

More Related Content

TXT
CARACTERES ASCII ENSAMBLADOR
PDF
Shell Script Disk Usage Report and E-Mail Current Threshold Status
PDF
How To View Login History and Logout History on RHEL 7
PDF
nouka inventry manager
RTF
FreeSWITCH on RedHat, Fedora, CentOS
PDF
How To Configure Nginx Load Balancer on CentOS 7
PDF
How To Install and Configure GNome on CentOS 7
PDF
Introduction to SAGA HighPerformance Computing
CARACTERES ASCII ENSAMBLADOR
Shell Script Disk Usage Report and E-Mail Current Threshold Status
How To View Login History and Logout History on RHEL 7
nouka inventry manager
FreeSWITCH on RedHat, Fedora, CentOS
How To Configure Nginx Load Balancer on CentOS 7
How To Install and Configure GNome on CentOS 7
Introduction to SAGA HighPerformance Computing

What's hot (20)

PDF
How To Install and Use ABRT CLI on RHEL 7
PDF
How To Protect SSH Access with Fail2Ban on RHEL 7
PPTX
Mercurial for Kittens
PDF
How To Install and Configure SUDO on RHEL 7
DOCX
How to install squid proxy on server or how to install squid proxy on centos o
PDF
Configuration IPTables On CentOS 8
DOCX
Install cacti on open suse 13
PDF
oracle cloud with 2 nodes processing
PDF
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
PDF
とにかく始めるClojure
PDF
LSOF Command Usage on RHEL 7
PDF
Lab 1 my sql tutorial
DOCX
Lamp configuration u buntu 10.04
PDF
Install and Configure RSyslog – CentOS 7 / RHEL 7
DOCX
Move spfile from asm to file system
PDF
How To Install OpenFire in CentOS 7
PDF
IPTables Lab
PDF
How to Install MariaDB Server or MySQL Server on CentOS 7
PDF
Mha procedure
How To Install and Use ABRT CLI on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7
Mercurial for Kittens
How To Install and Configure SUDO on RHEL 7
How to install squid proxy on server or how to install squid proxy on centos o
Configuration IPTables On CentOS 8
Install cacti on open suse 13
oracle cloud with 2 nodes processing
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
とにかく始めるClojure
LSOF Command Usage on RHEL 7
Lab 1 my sql tutorial
Lamp configuration u buntu 10.04
Install and Configure RSyslog – CentOS 7 / RHEL 7
Move spfile from asm to file system
How To Install OpenFire in CentOS 7
IPTables Lab
How to Install MariaDB Server or MySQL Server on CentOS 7
Mha procedure
Ad

Viewers also liked (16)

PPT
Moccasin Mania Engulfs LVR!
PPT
Behavioural Economics: New or just new to you?
PDF
Unite Bond copy
DOCX
Pagina web 4
DOC
Lappan_Resume
DOCX
PPTX
Target audience research posters
DOCX
Pagina web 4
PDF
One Shoe One Moccasin PRINT VERSION
PPTX
สวนจตุจักร
PDF
Provisioning with Stacki at NIST
PDF
Public vs. Private Cloud Performance by Flex
PPT
O'Reilly Webcast: Ten Things Every Software Architect Should Know
PPTX
Who is an architect and Why care about Architecture
PPTX
3. El Futurismo
Moccasin Mania Engulfs LVR!
Behavioural Economics: New or just new to you?
Unite Bond copy
Pagina web 4
Lappan_Resume
Target audience research posters
Pagina web 4
One Shoe One Moccasin PRINT VERSION
สวนจตุจักร
Provisioning with Stacki at NIST
Public vs. Private Cloud Performance by Flex
O'Reilly Webcast: Ten Things Every Software Architect Should Know
Who is an architect and Why care about Architecture
3. El Futurismo
Ad

Similar to Stacki: Remove Commands (20)

ODP
Drizzle to MySQL, Stress Free Migration
PDF
Openstack 101
PPTX
Hadoop single cluster installation
PPTX
Beginner guide to mysql command line
PDF
Operation outbreak
PPTX
Stacki: Automate with Spreadsheets (Tutorial)
PDF
les04.pdf
PDF
Osol Pgsql
TXT
New text document (2)
PDF
Instalar MySQL CentOS
PPT
PHP tips by a MYSQL DBA
PPTX
MySQLinsanity
PPTX
OpenWorld Sep14 12c for_developers
PDF
MySQL 8.0.18 - New Features Summary
PDF
SDPHP - Percona Toolkit (It's Basically Magic)
PDF
LISA2019 Linux Systems Performance
PDF
PPT
Oracle Open World Thursday 230 ashmasters
PPT
Basic Knowledge on MySql Replication
PPT
Linux Networking Commands
Drizzle to MySQL, Stress Free Migration
Openstack 101
Hadoop single cluster installation
Beginner guide to mysql command line
Operation outbreak
Stacki: Automate with Spreadsheets (Tutorial)
les04.pdf
Osol Pgsql
New text document (2)
Instalar MySQL CentOS
PHP tips by a MYSQL DBA
MySQLinsanity
OpenWorld Sep14 12c for_developers
MySQL 8.0.18 - New Features Summary
SDPHP - Percona Toolkit (It's Basically Magic)
LISA2019 Linux Systems Performance
Oracle Open World Thursday 230 ashmasters
Basic Knowledge on MySql Replication
Linux Networking Commands

More from StackIQ (20)

PDF
Installing a Cluster of Raspberry Pis with Stacki Ace
PPTX
Building a Hadoop Cluster with Stacki
PPTX
How Teradata uses Stacki
PPTX
Installing a Cluster of Raspberry Pis with Stacki Ace
PPTX
StackiFest 2017 Technology Update
PPTX
Automation of your OpenStack Infrastructure with Stacki
PPTX
StackiFest 2017 Welcome & Opening Address
PPTX
Provisioning Heterogenous Bare Metal with Stacki
PDF
SF Bay Area OpenStack Meetup Stacki Presentation
PPTX
Stacki at the Seattle Scalability Meetup
PPTX
StackiFest16: Building a Cluster with Stacki - Greg Bruno
PPTX
StackiFest16: How PayPal got a 300 Nodes up in 14 minutes - Greg Bruno
PDF
StackiFest16: Automation for Event-Driven Infrastructure - Dave Boucha
PDF
StackiFest16: What's Next in Stacki - Mason Katz
PDF
StackiFest16: CoreOS/Ubuntu on Stacki
PDF
StackiFest16: Building a Cart
PDF
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
PDF
StackiFest 16: Stacki Overview- Anoop Rajendra
PDF
Introduction to Stacki at Atlanta Meetup February 2016
PDF
Salesforce at Stacki Atlanta Meetup February 2016
Installing a Cluster of Raspberry Pis with Stacki Ace
Building a Hadoop Cluster with Stacki
How Teradata uses Stacki
Installing a Cluster of Raspberry Pis with Stacki Ace
StackiFest 2017 Technology Update
Automation of your OpenStack Infrastructure with Stacki
StackiFest 2017 Welcome & Opening Address
Provisioning Heterogenous Bare Metal with Stacki
SF Bay Area OpenStack Meetup Stacki Presentation
Stacki at the Seattle Scalability Meetup
StackiFest16: Building a Cluster with Stacki - Greg Bruno
StackiFest16: How PayPal got a 300 Nodes up in 14 minutes - Greg Bruno
StackiFest16: Automation for Event-Driven Infrastructure - Dave Boucha
StackiFest16: What's Next in Stacki - Mason Katz
StackiFest16: CoreOS/Ubuntu on Stacki
StackiFest16: Building a Cart
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest 16: Stacki Overview- Anoop Rajendra
Introduction to Stacki at Atlanta Meetup February 2016
Salesforce at Stacki Atlanta Meetup February 2016

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
KodekX | Application Modernization Development
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
MYSQL Presentation for SQL database connectivity
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Machine learning based COVID-19 study performance prediction
PDF
Modernizing your data center with Dell and AMD
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
A Presentation on Artificial Intelligence
KodekX | Application Modernization Development
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
The Rise and Fall of 3GPP – Time for a Sabbatical?
Mobile App Security Testing_ A Comprehensive Guide.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Machine learning based COVID-19 study performance prediction
Modernizing your data center with Dell and AMD
Building Integrated photovoltaic BIPV_UPV.pdf

Stacki: Remove Commands

  • 1. Server Management with Remove Don MacVittie, Sr. Solutions Architect
  • 2. Overview •  There are some things in Stacki that you can only do with Remove commands. This tutorial takes you over the most common remove commands and offers an overview of how they work.
  • 3. Removing Hosts NOTE: Removing a host will remove it and all the entries about it from the database. If command-line customizations have been implemented – such as adding routes – those customizations will be lost with remove host, and will require re-entry if the host is ever returned to the system. [root@stackihw ~]# stack list host   HOST RACK RANK CPUS APPLIANCE DISTRIBUTION RUNACTION INSTALLACTION stackihw: 0 0 1 frontend default os install backend-0-1: 0 1 4 backend default os install backend-0-2: 0 2 1 backend default os install puppet: 0 3 4 backend default os install   [root@stackihw ~]# stack remove host backend-0-2   [root@stackihw ~]# stack list host   HOST RACK RANK CPUS APPLIANCE DISTRIBUTION RUNACTION INSTALLACTION stackihw: 0 0 1 frontend default os install backend-0-1: 0 1 4 backend default os install puppet: 0 3 4 backend default os install   [root@stackihw ~]#     Later, the host can be re-added by adding it with any of the normal methods. Stacki will see it as a new server, simply because remove deleted all trace of it from the system. stack remove host [hostname]
  • 4. Removing host Bootaction •  Effectively removes the server from management by Stacki. •  Tells Stacki to do nothing when this machine boots and asks what to do. This causes the machine to boot to local disk, just as it would if bootaction was set to “os”, except that stacki never gets a say. •  This is useful in place of Remove host because all customizations are kept, though it is functionally the same as removing the host from the Stacki database. [root@stackihw ~]# stack list host boot HOST ACTION stackihw: ------- backend-0-1: install puppet: os   [root@stackihw ~]# stack remove host boot backend-0-1   [root@stackihw ~]# stack list host boot HOST ACTION stackihw: ------ backend-0-1: ------ puppet: os    
  • 5. Remove outdated routes stack remove route and stack remove host route will remove routing information from the routing table. This is useful when access needs or routes change. After the command, don’t forget to sync host network so the changes you just made to the database are propagated to the server [root@stackidon ~]# stack remove host route backend-0-0 address = 0.0.0.0 [root@stackidon ~]# stack sync host network backend-0-0        
  • 6. Remove SSH Keys User-defined SSH keys can be cleaned up using remove host key. Default keys cannot be removed in this manner. First, list the keys, then get the “ID” field, use that to pass which key into remove host key. Done. [root@stackihw ~]# stack list host key HOST ID PUBLIC KEY puppet: 1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0+98qKuKvry9rFfCCHI4QunO6ompIqqLL8Z5R0cJ0Gdmkvd69 g9JZMX0zJ4LbQBpICLyvz3nneZQ8fLFG6B0DlxibQQd2/Ds27mG5lmcqKsBtE47LQiD48dAq +9aYaoD8J/eqP1rbk4eQk+nkhnqFnBLjcg2RnFULDnSHtXftK6pEjTEFVcacmtLxwQjMlBTxk4c/ veKwDtzazuo1nqVHl734s4nyxOQeN4qMQym6Jmuzb5W9hOCa0kzFtZkiibiiEN5RciAFOW0j5ztKkLKq 9Cg3y17y9jz355hQ6LwHHZqPkmPuFWhAQGTdkH5GGSSKkkWJDIi9/uZMXXbVJozR root@stackihw.nandgate.com ------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------   [root@stackihw ~]# stack remove host key puppet id=1   [root@stackihw ~]# stack list host key   [root@stackihw ~]#    
  • 7. And attributes stack remove attr attr=[attrname] stack remove host attr [hostname] attr=[attrname] stack remove appliance attr [appliance_name] attr=[attrname] The three commands below all do the same thing at different levels. The first removes a globally defined attribute, the second, a host visible attribute, and the third, an appliance visible attribute. Note that some attributes, particularly at the global level, are required for proper operation of Stacki. We strongly recommend you only change attributes you have created, or ones that you know exactly what they do.
  • 8. Stacki Resources •  There is a lot more to Stacki than this few slides can show. Join us at the links
 below to explore Stacki’s rich command structure and see how it answers your
 problems. Quick access to Stacki resources: •  Visit www.Stacki.com to download a pre-build ISO for RHEL/CentOS 6 & 7 and to sign up
 for our charter program •  Stacki source code is available on the StackIQ GitHub: https://github.com/StackIQ/stacki •  Engage with other users and developers in the Stacki Google Group: https://groups.google.com/forum/#!forum/stacki Follow us on Twitter @StackIQ