Statseeker Add-ons
Statseeker has produced a series of generic scripts based on recent feedback from our customer base. These scripts are currently being added to the product and will be made available in an upcoming release. In the mean time, we have made these scripts available to Customers for immediate deployment onto Version 3.5 sites. This document describes the functionality of these scripts and how to access these scripts.
If you have a request or suggestion for a new Add-on or product enhancement, please contact our Customer Service Team at csm@statseeker.com.
How to Install Add-onsVersion 3.5 includes a new Manage Scripts section in the Administration Tool, specifically designed to provide customers with a simple method for installing, upgrading and deleting Add-on script packages. Customers should upgrade to Version 3.5 before installing Add-ons. To add a script:
NOTE: Do not unzip this file.
Note: The method above is also used to upgrade scripts. To delete a script, select the
Add-ons
This script provides the ability to add entities to groups and make bulk configuration changes to items within these groups. Regular Expressions can be applied to almost any device or interface configuration item to automatically populate groups. This list of configuration items include: To use this script: Note: It is highly recommended that the -z option is used to verify what changes will be made to the system before applying any scs-grouping commands. As an example: If a User wanted to add everything in groups "Melbourne-core" and "Melbourne-Edge" to group "Melbourne-All", the command should first be entered as: scs-grouping –g “Melbourne-Core,Melbourne-Edge” –z This will print a list on the screen of all the devices that have been filtered with the above command. If the User is satisfied with the output, the following command can be run: scs-grouping -g "Melboune-Core,Melbourne-Edge" -a "Melbourne-All" Examples: Add all devices that match "Melbourne" in the name to group "Melbourne" but remove all entries from the group first (ie if it doesn't match Melbourne it will no longer be in the group): scs-grouping -d 'name=Melbourne' -r -a "Melbourne" Add all devices not in any group to the group "No Group": scs-grouping -N -a "No Group" Create a list of devices that have 10G interfaces. The -D flag makes it a device group: scs-grouping -i 'ifSpeed=^10000000000$' -D -a Switches10G Alternate method for above: scs-grouping -g 'Interface: Speed 10G' -D -a Switches10G Turn polling off for all interfaces in the 'not polled' group: scs-grouping -g 'not polled' -s 'ifPoll=off' -l Add all interfaces that match 'Vl' to the group 'virtual' and set ifOperstatus polling to nopoll: scs-grouping -i 'ifName=^Vl\d+$' -a virtual -s 'ifOperStatus=nopoll' Append '-core' to all ifTitles that are in the 'core routers' group: scs-grouping -g 'core routers' -I -s 'ifTitle=s/(.*)/$1-core/' Remove -core from the ifTitles ending in –core: scs-grouping -g 'core routers' -s 'ifTitle=s/^(.*)-core/$1/' Change the snmp community of all devices in group "Site1" to "site1pub": scs-grouping -g 'Site1' -D -s 'community=site1pub' See the help documentation provided within the script for the full list of the options available.
This script provides multiple options for email alerting. Functionality of this script includes: To use this script:
Examples: Send a bundled email to multiple addresses when devices are unreachable for 5 minutes: scs-alert-emailer –b 2 –t ‘bundleandwait’ –w 5 –e njc@statseeker.com,training@statseeker.com Send the same email but with a customized subject line and message body: scs-alert-emailer –b 2 –t ‘bundleandwait’ –w 5 -s "Devices Down for 5mins (%Cd) Up (%Cu)" -B "%d %n %i %e %D" –e njc@statseeker.com,training@statseeker.com See the help documentation provided within the script for the full list of the options available.
This script automates the scheduling and emailing of reports. Functionality of this script includes: Note: this script will not convert the reports to PDF or HTML. This is on our enhancement list. See the help documentation provided within the script for the full list of the options available.
This script uses a Host File to load devices into a configuration as ‘ping only’ devices. This provides the ability to: To use this script: See the help documentation provided within the script for the full list of the options available.
This script bulk deletes devices via the Statseeker Command Line Interface. It also works in conjunction with the scs_grouping script to enable the bulk deletion of every device in a group, or every device that matches a regular expression across any of the grouping fields. For example, delete every device that contains the text ‘UPS’ in the ‘sysDescr’. See the help documentation provided within the script for the full list of the options available.
When a device goes down, the devices behind or downstream from that device will also be seen as unreachable by Statseeker. This makes it difficult to identify the actual faulty device, as multiple email alerts will be generated for all downstream devices connected to the faulty device. This script asks the User to identify the upstream devices for each device or group of devices, so that email alerts are only sent for the 'root cause' of the problem. See the help documentation provided within the script for the full list of the options available.
This script exports timeseries data for a group of interfaces. This is similar to the "Export" option from the Advanced Interface Reporting Tool. This script provides the additional option of exporting the data in columns instead of rows. The interfaces to export are specified via a group. These can be further limited via a filter in the same style as the scs-grouping script. Examples: To export to stdout, the last 24 hours of utilization data, on all Interfaces in the group 'Primary WAN Links' that contain Gi1 in their ifName: scs-export -g ‘Primary WAN Links’ -i 'ifName=Gi1' -t "range = now - 1d to now" To export to a file 'output.csv', today's Bytes data for all of the interfaces in the group 'Uplinks' in columns, instead of rows (default): scs-export -g ‘Uplinks’ -t Today -r Bytes -v -o output.csv See the help documentation provided within the script for the full list of the options available.
This script creates an alert when snmp polling fails for a device. NOTE: It does NOT create an event or keep any history. An Action can be passed as a parameter, otherwise the output will go to stdout which is suitable for piping into an alert-emailing script. Output format is: event_time,0,ega_id,ega_name,snmp_state (up|down) Examples: Use action "Email Me": scs-snmp-alert "Email Me" Pipe stdout into scs-alert-emailer: scs-snmp-alert | scs-alert-emailer -e njc@statseeker.com See the help documentation provided within the script for the full list of the options available.
|
| © 1998-2012 Statseeker Pty Ltd. All rights reserved. |