SMS Enhancements on the Client Side Véronique Lefébure ELFms Meeting 23 rd of August 2005.

Slides:



Advertisements
Similar presentations
User-Defined Functions Like short programs Can operate on their own data Can receive data from callers and return data to callers.
Advertisements

Advanced XSLT II. Iteration in XSLT we sometimes wish to apply the same transform to a set of nodes we iterate through a node set the node set is defined.
Certification Test Tool Jon Wheeler Test Lead Microsoft Corporation.
CREATING VACANCIES. What’s new Templates Vacancy authorisation Additional application form questions The ‘short’ application form Support for CVs.
TDPS Wireless v Enhancements E1 - Multi load E2 - Driver time scheduler.
1 OBJECTIVES To generate a web-based system enables to assemble model configurations. to submit these configurations on different.
1 Opentest Architecture Table of Content –The Design Basic Components High-Level Test Architecture Test Flow –Services provided by each Layer Test Mgt.
HELP GUIDE NEW USER REGISTRATION (SLIDE 2) TAKING A QUIZ (SLIDE 8) REVIEWING A QUIZ (SLIDE 17) GROUP MEMBERSHIP (SLIDE 26) CREATING QUIZZES (SLIDE 31)
DISTRIBUTED MANAGEMENT THREE APPROACHES ARE BEING DEFINED MIB BASED EXPRESSION MIB EVENT MIB NOTIFICATION LOG MIB SCRIPT BASED SCRIPT MIB SCHEDULE MIB.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Certification Test Tool Update Toby Nixon Program Manager Microsoft Corporation.
Rebecca Pankow Supervisor: Veronique Lefebure CERN Summer Student Program 2010 Updating the Syntax of PAN Template Files.
Presented By: Product Activation Group Syndication.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 WP4 hands-on workshop: EDG LCFGng exercises
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
EDG LCFGng: concepts Fabric Management Tutorial - n° 2 LCFG (Local ConFiGuration system)  LCFG is originally developed by the.
The RunTimeTester - where to now? Eric NZUOBONTANE Peter SHERWOOD Brinick SIMMONS 29 th July 2004.
quattor NCM components introduction tutorial German Cancio CERN IT/FIO.
INFSOM-RI Juelich, 10 June 2008 ETICS - Maven From competition, to collaboration.
Certification Test Tool Sarat Manni Test Lead Microsoft Corporation.
Introduction to Bash Programming Ellen Zhang. Previous three classes What have we learnt so far ?
Shell Programming Any command or a sequence of UNIX commands stored in a text file is called a shell program. It is common to call this file a command.
Linux+ Guide to Linux Certification Chapter Eight Working with the BASH Shell.
LBTO Events August 15, 2006 Chris Biddick 1 cjb. Introduction Events are the TCS logging system Report and save all important events in the TCS Part of.
Chapter 2 User_defined Function. Chapter Goals In this chapter, you’ll learn all about PHP functions, including how : to create and invoke them, pass.
Session Objectives How to Debug PTF test case/Script Session-6 DebuggingSlide 2.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 LCFGng configuration examples Updated 10/2002
EDG Testbed installation and configuration with LCFGng Maite Barroso - WP4
PRICING By: Steve Moeller & Ron Stogsdill, Sr.. Menu 5.3 (Old) Menu 5.3 Customer Discounts Column A is for Product Class and Category - allows only one.
1 The new Fabric Management Tools in Production at CERN Thorsten Kleinwort for CERN IT/FIO HEPiX Autumn 2003 Triumf Vancouver Monday, October 20, 2003.
Quattor-for-Castor Jan van Eldik Sept 7, Outline Overview of CERN –Central bits CDB template structure SWREP –Local bits Updating profiles.
VERITAS Cluster Server for Solaris Event Notification.
Slide #1 Computerised Transit Computer System Training Session Trader Application Users.
Systematic Experimentation: Automating Experiments and ExoGENI Image Snapshots Paul Ruth, RENCI / UNC Chapel Hill.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Large Farm 'Real Life Problems' and their Solutions Thorsten Kleinwort CERN IT/FIO HEPiX II/2004 BNL.
20-May-2003HEPiX Amsterdam EDG Fabric Management on Solaris G. Cancio Melia, L. Cons, Ph. Defert, I. Reguero, J. Pelegrin, P. Poznanski, C. Ungil Presented.
G. Cancio, L. Cons, Ph. Defert - n°1 October 2002 Software Packages Management System for the EU DataGrid G. Cancio Melia, L. Cons, Ph. Defert. CERN/IT.
Installing, running, and maintaining large Linux Clusters at CERN Thorsten Kleinwort CERN-IT/FIO CHEP
Altman IM Ltd | | process | verify | convert | route | connect Prism Software’s solutions provide advanced workflow.
SPMA & SWRep: Basic exercises HEPiX hands-on, NIKHEF 5/03 German Cancio
ESA UNCLASSIFIED – For Official Use Workshop #23 Pasadena, USA 25 rd March 2015 Sam Cooper Common services update (part 2)
Slide 1 Extending Tuscany Raymond Feng Apache Tuscany committer.
Maite Barroso - 10/05/01 - n° 1 WP4 PM9 Deliverable Presentation: Interim Installation System Configuration Management Prototype
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
REGISTRY WORKGROUP Brief: The registry group has been working on a registry query web service, AstroLog, and AstroMQ. Progress: The registry group has.
CDB Namespaces, “service templates” and profile structure Véronique Lefébure June the 13 th 2008 ELFms Brainstorming meeting.
Timer Alarm. What Is The Timer Alarm? The Timer Alarm provides a method for triggering time- based alarms during script playback.
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
1 Murthy Esakonu June 3rd, 2009 Shenzhen China OpenSAF Developer Days 2009 Writing First OpenSAF Application Session OpenSAF.
Linux Administration Working with the BASH Shell.
© 2009 IBM Corporation IWS z/OS SPEs Auditing enhancements.
Fabric Management: Progress and Plans PEB Tim Smith IT/FIO.
AI How to: System Update and Additional Software
How to link a test to a launcher (in this case a shell launcher)
z/Ware 2.0 Technical Overview
Delegates and Events 14: Delegates and Events
Object Oriented Programming using Java - Class Instance Variables
Presented by, Mr. Satish Pise
Organization of Programming Languages
Package functions and tools in CDB
Hi and welcome to the Order Centre – Ordering training.
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
Configuration Of A Pull Network.
ILogic What’s New.
Batch Setup.
Annuity Batch Setup.
Introduction to Bash Programming, part 3
SET-UP AND MODIFY SEARCH AGENTS
Production client status
Presentation transcript:

SMS Enhancements on the Client Side Véronique Lefébure ELFms Meeting 23 rd of August 2005

Outline SMS Design Details –Reminder –What is new CVS and RPM’s CDB Templates

SMS Use Cases Diagram from No Change

“Set Desired State” SMS Use case Sequence Diagram from 1) Authorisation 2) CDBSQL update 3) Notify Host(s) 4) Return Results No Change

SMS Notification Sequence Diagram from Enhancements here “old” SetToDesiredState.pl: For FS-managed clusters only 1) Notify Host 2) Get State Info from CDBSQL 3) Act on the Host

What has changed (on the client side) Before: sms-set-state.pl would call SetToDesiredState.pl which was implemented according to FS clusters needs Now: sms-set-state.pl calls SetToDesiredState which in turns looks for the appropriate script to be run according to a configuration parameter defined in CDB

How it works now, on the client: /usr/sbin/sms-set-state.pl 1.Gets XML data from CDBSQL and creates or updates 1./etc/state.desired 2./etc/state.desired.reasons 2.Runs /usr/sbin/SetToDesiredState –-state= --reason= which calls the first script found on the host: 1./usr/sbin/SetToDesiredState. 2./usr/sbin/SetToDesiredState. 3./usr/sbin/SetToDesiredState. 4./usr/sbin/SetToDesiredState. 5./usr/sbin/SetToDesiredState. 6./usr/sbin/SetToDesiredState.default

Calling Sequence Sms-set-state.pl  SetToDesiredState  SetToDesiredState. Sms-set-state.pl can be triggered by SMS at boot by hand CDB Configuration Parameters from “ pro_declaration_component _settodesiredstate ”

Settodesiredstate NCM Component Reads the “ /software/components/settodesiredstate ” CDB configuration data Updates “/etc/sysconfic/settodesiredstate”: RUN_AT_BOOT="no" SCRIPT_EXT= CDB_SUB_CLUSTER= CDB_CLUSTER="lxplus" CC_DOMAIN=

/usr/sbin/sms-set-state.pl --help The following options are available: --cfgfile Configuration file for this application --logfile (default: '/var/log/sms.log') log path/filename to use --stateChanger (default: '/usr/sbin/SetToDesiredState') Script that will act on the host --statefile (default: '/etc/state.desired') Where to store the desired state locally on the host --statereasonfile (default: '/etc/state.desired.reasons') Where to store the state reason(s) locally on the host --urlroot (default: ' Where to get the state and reasons from 2005/08/22-11:56:44 \ [INFO] /usr/sbin/sms-set-state.pl Invoked 2005/08/22-11:56:44 \ [INFO] Running /usr/sbin/SetToDesiredState \ --state=production 2005/08/22-11:56:49 \ [INFO] State set to "production" completed.

/usr/sbin/SetToDesiredState --help The following options are available: --cfgfile Configuration file for this application --logfile (default: '/var/log/SetToDesiredState.log') log path/filename to use --reason input reason for state --state input desired state

“ SetToDesiredState.default ” #!/bin/bash # # SetToDesiredState Default # STATE=$1 REASON=$2 case $STATE in production) echo "$0: State production: remove /etc/nologin"; rm -f /etc/nologin; ;; maintenance) echo "$0: State maintenance: doing nothing"; ;; standby) echo "$0: State standby: doing nothing"; ;; *) echo "$0: Unknown state \"$STATE\"." ;; esac

CVS Code and RPM for sms-set-state [fio]/fabric/sms-set-state/SRC –SetToDesiredStateSetToDesiredState –SetToDesiredState.default SetToDesiredState.default –settodesiredstate.sysconfig settodesiredstate.sysconfig –sms-set-state.pl sms-set-state.pl –sms-set-state.rcsms-set-state.rc –sms.logrotate sms.logrotate –sms.notdsms.notd [fio]/fabric/sms-set-state/RPM –rpm -ql CERN-CC-sms-set-state : /etc/logrotate.d/sms-set-state /etc/not.d /etc/not.d/sms-set-state /etc/rc.d/init.d/sms-set-state /etc/sysconfig/settodesiredstate /usr/sbin/SetToDesiredState /usr/sbin/SetToDesiredState.default /usr/sbin/sms-set-state.pl

CVS Code and RPM for ncm-settodesiredstate [elfms]/elfms/quattor/ncm-components/cern-it-fio/ncm-settodesiredstate: –ChangeLogChangeLog –LICENSELICENSE –MAINTAINERMAINTAINER –MakefileMakefile –READMEREADME –config.mk config.mk –pro_declaration_component_settodesiredstate.tpl.cin pro_declaration_component_settodesiredstate.tpl.cin –settodesiredstate.pm.cin settodesiredstate.pm.cin –settodesiredstate.pod.cinsettodesiredstate.pod.cin rpm -ql ncm-settodesiredstate –/usr/lib/ncm/config/settodesiredstate –/usr/lib/perl/NCM/Component/settodesiredstate.pm –/usr/share/doc/ncm-settodesiredstate –/usr/share/doc/ncm-settodesiredstate-1.0.9/ChangeLog –/usr/share/doc/ncm-settodesiredstate-1.0.9/LICENSE –/usr/share/doc/ncm-settodesiredstate-1.0.9/MAINTAINER –/usr/share/doc/ncm-settodesiredstate-1.0.9/README –/usr/share/doc/ncm-settodesiredstate-1.0.9/settodesiredstate.pod –/usr/share/doc/pan-templates/components/pro_declaration_component_settodesiredstate.tpl –/usr/share/man/man8/ncm-settodesiredstate.8.gz

SetToDesiredState Scripts for FS clusters [fio]/fabric/settodesiredstate-FS/SRC: –SetToDesiredState.lsfmaster SetToDesiredState.lsfmaster –SetToDesiredState.lxbatchSetToDesiredState.lxbatch –SetToDesiredState.lxbuildSetToDesiredState.lxbuild –SetToDesiredState.lxdevSetToDesiredState.lxdev –SetToDesiredState.lxgateSetToDesiredState.lxgate –SetToDesiredState.lxplusSetToDesiredState.lxplus –SetToDesiredState.lxservSetToDesiredState.lxserv All stored in one RPM “CERN-CC-settodesiredstate-FS”

CDB Templates pro_declaration_component_settodesiredstate.tpl : declaration template pro_declaration_component_settodesiredstate; include pro_declaration_component_type; define type component_settodesiredstate_type = { include component_type "run_at_boottime" : string with match (self,'yes|no') "script_ext" ? string }; type "/software/components/settodesiredstate" = component_settodesiredstate_type;pro_declaration_component_type pro_software_packages_state.tpl: template pro_software_packages_state; "/software/packages"=pkg_add("CERN-CC-sms-set-state","3.2-6”,"noarch"); In pro_software_lxplus_slc3.tpl: include pro_software_packages_state; "/software/packages"=pkg_add("CERN-CC-settodesiredstate-FS","1.0-2“,"noarch");

More ? Authors/Maintainers/Responsibles are Thorsten and Veronique Feedback, wishes, …are welcome