Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf ·...

17
nexec Guide v1.3 series Nimsoft® Monitor™

Transcript of Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf ·...

Page 1: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

nexec Guide v1.3 series

Nimsoft® Monitor™

Page 2: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

Legal Notices Copyright © 2012, Nimsoft Corporation

Warranty

The material contained in this document is provided "as is," and is subject to being changed, without notice, in future editions. Further, to the maximum extent permitted by applicable law, Nimsoft Corporation disclaims all warranties, either express or implied, with regard to this manual and any information contained herein, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Nimsoft Corporation shall not be liable for errors or for incidental or consequential damages in connection with the furnishing, use, or performance of this document or of any information contained herein. Should Nimsoft Corporation and the user have a separate written agreement with warranty terms covering the material in this document that conflict with these terms, the warranty terms in the separate agreement shall control.

Technology Licenses

The hardware and/or software described in this document are furnished under a license and may be used or copied only in accordance with the terms of such license.

No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from Nimsoft Corporation as governed by United States and international copyright laws.

Restricted Rights Legend

If software is for use in the performance of a U.S. Government prime contract or subcontract, Software is delivered and licensed as "Commercial computer software" as defined in DFAR 252.227-7014 (June 1995), or as a "commercial item" as defined in FAR 2.101(a) or as "Restricted computer software" as defined in FAR 52.227-19 (June 1987) or any equivalent agency regulation or contract clause. Use, duplication or disclosure of Software is subject to Nimsoft Corporation’s standard commercial license terms, and non-DOD Departments and Agencies of the U.S. Government will receive no greater than Restricted Rights as defined in FAR 52.227-19(c)(1-2) (June 1987). U.S. Government users will receive no greater than Limited Rights as defined in FAR 52.227-14 (June 1987) or DFAR 252.227-7015 (b)(2) (November 1995), as applicable in any technical data.

Trademarks

Adobe®, Acrobat®, Acrobat Reader®, and Acrobat Exchange® are registered trademarks of Adobe Systems Incorporated.

Intel® and Pentium® are U.S. registered trademarks of Intel Corporation.

Java(TM) is a U.S. trademark of Sun Microsystems, Inc.

Microsoft® and Windows® are U.S. registered trademarks of Microsoft Corporation.

Netscape(TM) is a U.S. trademark of Netscape Communications Corporation.

Oracle® is a U.S. registered trademark of Oracle Corporation, Redwood City, California.

UNIX® is a registered trademark of the Open Group.

Page 3: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

Contact Nimsoft

For your convenience, Nimsoft provides a single site where you can access information about Nimsoft products.

At http://support.nimsoft.com/, you can access the following:

■ Online and telephone contact information for technical assistance and customer services

■ Information about user communities and forums

■ Product and documentation downloads

■ Nimsoft Support policies and guidelines

■ Other helpful resources appropriate for your product

Provide Feedback

If you have comments or questions about Nimsoft product documentation, you can send a message to [email protected].

Page 4: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root
Page 5: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

Contents 5

Contents

Chapter 1: nexec 1.3 7

nexec configuration ...................................................................................................................................................... 9

The nexec GUI ............................................................................................................................................................ 10

The Setup tab ...................................................................................................................................................... 11

The Configure tab ................................................................................................................................................ 12

The Start tab ........................................................................................................................................................ 15

Page 6: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root
Page 7: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

Chapter 1: nexec 1.3 7

Chapter 1: nexec 1.3

This description applies to nexec probe version 1.3.

The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root access on the servers) to run a range of admin actions from Nimsoft Infrastructure Manager. Examples of these would be running a logger command to generate a test message, cat'ing a configuration file or deleting a log file.

The probe allows the pre-defined commands to be run with optional parameters on the system, either on a schedule specified for the profile, or manually by the operator. The result is presented back to the user. This allows any user logged in to Nimsoft Infrastructure Manager (with appropriate ACL set) or a probe to run a command on a server with this probe installed on it. The probe is able to run command line programs, but not GUI programs.

This section contains the following topics:

Documentation Changes (see page 8) nexec configuration (see page 9) The nexec GUI (see page 10)

Page 8: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

nexec configuration

8 nexec Guide

Documentation Changes

This table describes the version history for this document.

Version Date What's New?

1.3 Feb 2011 Added support for HPUX platforms; corrected the set_loglevel callback so that it is compatible with 64-bit systems.

1.2 Nov 2010 Note: Requires hub v5.10 or higher set up to allow LDAP login.

1.1 Jun 2010 Added feature to run programs in a defined user context. Added support for Solaris 10 (i386).

Related Documentation

Documentation for other versions of the nexec probe

Getting Started with Nimsoft® Probes

Nimsoft® Probes Reference

Page 9: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

nexec configuration

Chapter 1: nexec 1.3 9

nexec configuration

The probe is configured by double-clicking the probe in the Infrastructure Manager, which brings up the GUI (configuration tool).

Configuring command profiles

To configure the probe, the user must be associated with the Basic Configuration ACL. Users that are NOT associated with this ACL will only see the Start tab of the GUI.

When setting up command profiles, the command profile is assigned an ACL requirement. The ACLs requirements define the privileges for the user. There are four different levels:

■ Available to all

All Nimsoft users can access and use this command in the nexec probe.

■ ACL execution level 1

Nimsoft users associated with ACL execution level 1 can access and use commands with ACL requirement ACL execution level 1, Available to all) in the nexec probe.

■ ACL execution level 2

Nimsoft users associated with ACL execution level 2 can access and use commands with ACL requirement ACL execution level 2, ACL execution level 1, Available to all) in the nexec probe.

■ ACL execution level 3

All Nimsoft users can access and use all command in the nexec probe.

Page 10: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

10 nexec Guide

The nexec GUI

The GUI consists of three tabs:

■ Setup

This tab defines the general properties for the probe.

■ Configure

This tab defines the command profiles. Assigning the command profile an ACL requirement, you can make the command available to certain users. You can also configure the profile to be run on a schedule.

■ Start

The tab lists available commands to the user and lets the user run the commands.

Page 11: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

Chapter 1: nexec 1.3 11

The Setup tab

This tab defines the general properties for the probe.

Field Description

Log settings

Log level Sets the level of details written to the probe’s log file. It is recommended to log as little as possible during normal operation, to minimize disk consumption.

Log size Sets the size of the probe’s log file to which probe-internal log messages are written. The default size is 100 KB.

When this size is reached, the contents of the file are cleared.

Audit If you select the Generate audit messages on profile run option, audit messages will be written to the audit log file specified each time a command is run.

Audit log file Specify the name of the log file to which you want to log audit messages. Default file is audit.log in the Nimsoft installation directory in the folder \probes\service\nexec.

Post output of scheduled commands

Posts the output of scheduled commands as a Nimsoft message with subject as specified

Page 12: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

12 nexec Guide

The Configure tab

This tab lists the command profiles defined.

Right-clicking in the list, you are also allowed to create new command profiles and edit or delete existing ones.

Page 13: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

Chapter 1: nexec 1.3 13

Defining a command profile

Right-clicking in the command list, a dialog pops up, enabling you to create a new command profile.

Field Description

Name Specify a descriptive name of the command profile.

Active Checking the Active flag, the profile will be activated and can be executed, either manually by the user or scheduled.

Description This field is optional and lets you give a brief description of the command.

Command Specify the command to be executed in this field. Note that the command can be executed either manually by the user or scheduled.

Arguments Specify the arguments (if any) for the command specified.

Exclusive If you enable this flag, it will not be possible to run more than one instance of the command simultaneously.

Page 14: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

14 nexec Guide

Field Description

Schedule Normally command profiles are run manually by the user. However, it is also possible to define a command to be automatically executed on a specified schedule.

Selecting this option and clicking the Modify schedule button opens Schedule profile dialog enabling you set such a schedule:

Range

If you wish to start with the command execution immediately, choose the Start now option.

Alternatively, you can specify a date and time when the command first should be executed, and when the execution of the command should be terminated (after n occurrences or at a specified date and time. You may also select No end date if you want the command to be executed continuously.

Pattern

You can specify how often the command profile should be run, e.g. minutely, hourly, daily etc., every n day(s) or every weekday, or at specified time intervals (hour and minutes).

Username Enter a valid username (either a local administrator or a domain user).

Password Enter a valid password for the username

ACL required When setting up command profiles, the command profile is assigned an ACL requirement. The ACLs requirements define the privileges for the user. There are four different levels:

Available to all

All Nimsoft users can access and use this command in the nexec probe.

ACL execution level 1

Nimsoft users associated with ACL execution level 1 can access and use commands with ACL requirement ACL execution level 1, Available to all) in the nexec probe.

ACL execution level 2

Nimsoft users associated with ACL execution level 2 can access and use commands with ACL requirement ACL execution level 2, ACL execution level 1, Available to all) in the nexec probe.

ACL execution level 3

All Nimsoft users can access and use all command in the nexec probe.

Timeout This timeout defines the maximum execution time for the command. If this timeout is exceeded, the command is terminated and an error code is issued.

The default timeout is 30 seconds.

Page 15: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

Chapter 1: nexec 1.3 15

Field Description

Parameters This field lists parameters for the command. Right-clicking in the list lets you add, edit or delete parameters.

Note that the user must be associated with ACL execution level 3 to be allowed to do this.

These parameters may be overridden by the user when running the commands manually (from the Start tab.

The Start tab

The Start tab lists the command profiles defined.

Page 16: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

16 nexec Guide

To refresh the list, right-click in the window and select Refresh OR press the F5 key on your keyboard.

Running a command

Right-clicking a command, selecting Run, the selected profile dialog will be opened.

The dialog contains the list of parameters (if any) defined for the command profile. Right-clicking a parameter, selecting Edit (or double-clicking it) opens the properties dialog for the parameter. This lets you override the parameter value specified.

Page 17: Nimsoft Monitor nexec Guidedocs.nimsoft.com/prodhelp/en_US/Probes/Catalog/nexec/1.3/nexec.pdf · The nexec probe allows unprivileged users (i.e. support staff who do not have admin/root

The nexec GUI

Chapter 1: nexec 1.3 17

Click the OK button to activate the modified value and exit the properties dialog for the parameter.

Now click the Run button in the profile dialog to execute the command. Return values will appear in the lower part of the dialog.