Documentation ¶
Index ¶
- Constants
- Variables
- func DaemonAction(actionName, saptuneVersion string, tuneApp *app.App)
- func NoteAction(actionName, noteID, newNoteID string, tuneApp *app.App)
- func NoteActionApply(writer io.Writer, noteID string, tuneApp *app.App)
- func NoteActionCreate(noteID string, tuneApp *app.App)
- func NoteActionCustomise(noteID string, tuneApp *app.App)
- func NoteActionDelete(reader io.Reader, writer io.Writer, ...)
- func NoteActionEnabled(writer io.Writer, tuneApp *app.App)
- func NoteActionList(writer io.Writer, tuneApp *app.App, tOptions note.TuningOptions)
- func NoteActionRename(reader io.Reader, writer io.Writer, ...)
- func NoteActionRevert(writer io.Writer, noteID string, tuneApp *app.App)
- func NoteActionShow(writer io.Writer, noteID, noteTuningSheets, extraTuningSheets string, ...)
- func NoteActionSimulate(writer io.Writer, noteID string, tuneApp *app.App)
- func NoteActionVerify(writer io.Writer, noteID string, tuneApp *app.App)
- func PrintHelpAndExit(writer io.Writer, exitStatus int)
- func PrintNoteFields(writer io.Writer, header string, ...)
- func RevertAction(writer io.Writer, actionName string, tuneApp *app.App)
- func SelectAction(stApp *app.App, saptuneVers string)
- func ServiceAction(actionName, saptuneVersion string, tApp *app.App)
- func ServiceActionApply(tuneApp *app.App)
- func ServiceActionDisable()
- func ServiceActionEnable()
- func ServiceActionRevert(tuneApp *app.App)
- func ServiceActionStart(enableService bool, tuneApp *app.App)
- func ServiceActionStatus(writer io.Writer, tuneApp *app.App, saptuneVersion string)
- func ServiceActionStop(disableService bool)
- func SolutionAction(actionName, solName string, tuneApp *app.App)
- func SolutionActionApply(writer io.Writer, solName string, tuneApp *app.App)
- func SolutionActionEnabled(writer io.Writer, tuneApp *app.App)
- func SolutionActionList(writer io.Writer, tuneApp *app.App)
- func SolutionActionRevert(writer io.Writer, solName string, tuneApp *app.App)
- func SolutionActionSimulate(writer io.Writer, solName string, tuneApp *app.App)
- func SolutionActionVerify(writer io.Writer, solName string, tuneApp *app.App)
- func VerifyAllParameters(writer io.Writer, tuneApp *app.App)
Constants ¶
const ( SaptuneService = "saptune.service" SapconfService = "sapconf.service" TunedService = "tuned.service" )
define constants and variables for the whole package
Variables ¶
var ExtraTuningSheets = "/etc/saptune/extra/"
ExtraTuningSheets is a directory located on file system for external parties to place their tuning option files.
var NoteTuningSheets = "/usr/share/saptune/notes/"
NoteTuningSheets is the directory for the sap notes shipped with the satune package
var OverrideTuningSheets = "/etc/saptune/override/"
OverrideTuningSheets is the directory for the override files
var RPMDate = "undef"
RPMDate is the date of package build
var RPMVersion = "undef"
RPMVersion is the package version from package build process
Functions ¶
func DaemonAction ¶
DaemonAction handles daemon actions like start, stop, status asm. still available for compatibility reasons
func NoteAction ¶
NoteAction Note actions like apply, revert, verify asm.
func NoteActionApply ¶
NoteActionApply applies Note parameter settings to the system
func NoteActionCreate ¶
NoteActionCreate helps the customer to create an own Note definition
func NoteActionCustomise ¶
NoteActionCustomise creates an override file and allows to editing the Note definition file
func NoteActionDelete ¶
func NoteActionDelete(reader io.Reader, writer io.Writer, noteID, noteTuningSheets, extraTuningSheets, ovTuningSheets string, tuneApp *app.App)
NoteActionDelete deletes a custom Note definition file and the corresponding override file
func NoteActionEnabled ¶
NoteActionEnabled lists all enabled Note definitions as list separated by blanks
func NoteActionList ¶
NoteActionList lists all available Note definitions
func NoteActionRename ¶
func NoteActionRename(reader io.Reader, writer io.Writer, noteID, newNoteID, noteTuningSheets, extraTuningSheets, ovTuningSheets string, tuneApp *app.App)
NoteActionRename renames a custom Note definition file and the corresponding override file
func NoteActionRevert ¶
NoteActionRevert reverts all parameter settings of a Note back to the state before 'apply'
func NoteActionShow ¶
func NoteActionShow(writer io.Writer, noteID, noteTuningSheets, extraTuningSheets string, tuneApp *app.App)
NoteActionShow shows the content of the Note definition file
func NoteActionSimulate ¶
NoteActionSimulate shows all changes that will be applied to the system if the Note will be applied.
func NoteActionVerify ¶
NoteActionVerify compares all parameter settings from a Note definition against the system settings
func PrintHelpAndExit ¶
PrintHelpAndExit prints the usage and exit
func PrintNoteFields ¶
func PrintNoteFields(writer io.Writer, header string, noteComparisons map[string]map[string]note.FieldComparison, printComparison bool)
PrintNoteFields Print mismatching fields in the note comparison result. func PrintNoteFields(header string, noteComparisons map[string]map[string]note.FieldComparison, printComparison bool) {
func RevertAction ¶
RevertAction Revert all notes and solutions
func SelectAction ¶
SelectAction selects the choosen action depending on the first command line argument
func ServiceAction ¶
ServiceAction handles service actions like start, stop, status, enable, disable it controlles the systemd saptune.service func ServiceAction(actionName string, tuneApp *app.App) {
func ServiceActionApply ¶
ServiceActionApply is only used by saptune service, hence it is not advertised to the end user. It is used to tune the system after reboot
func ServiceActionDisable ¶
func ServiceActionDisable()
ServiceActionDisable disables the saptune service
func ServiceActionEnable ¶
func ServiceActionEnable()
ServiceActionEnable enables the saptune service
func ServiceActionRevert ¶
ServiceActionRevert is only used by saptune service, hence it is not advertised to the end user. It is used to revert all the tuned parameters right before a system reboot
func ServiceActionStart ¶
ServiceActionStart starts the saptune service enable service before start, if enableService is true
func ServiceActionStatus ¶
ServiceActionStatus checks the status of the saptune service
func ServiceActionStop ¶
func ServiceActionStop(disableService bool)
ServiceActionStop stops the saptune service disable service before stop, if disableService is true
func SolutionAction ¶
SolutionAction Solution actions like apply, revert, verify asm.
func SolutionActionApply ¶
SolutionActionApply applies parameter settings defined by the solution to the system
func SolutionActionEnabled ¶
SolutionActionEnabled prints out the enabled solution definition
func SolutionActionList ¶
SolutionActionList lists all available solution definitions
func SolutionActionRevert ¶
SolutionActionRevert reverts all parameter settings of a solution back to the state before 'apply'
func SolutionActionSimulate ¶
SolutionActionSimulate shows all changes that will be applied to the system if the solution will be applied.
func SolutionActionVerify ¶
SolutionActionVerify compares all parameter settings from a solution definition against the system settings
Types ¶
This section is empty.