SNMP APIs and Libraries
SilverCreek's APIs are written in C++ and are accessible through a Tcl or Python shell or command line or a Tcl or Python program. Python is an interpreted, high-level, general-purpose programming language. Tcl, the Tool Command Language, is a flexible, interpretive language, popular for network applications.
APIs are application programming interfaces that execute requests for services (for example getting the value of an SNMP object identifier) on behalf of a program making the request.
Good quality and mature APIs can greatly reduce development time, because the developer can use the APIs as building blocks to create his application, without having to create the building blocks themselves.
With our SilverCreek APIs and libraries, developers can migrate home grown applications from obsolete and/or unsupported libraries and APIs, thereby preserving the investment in these applications.
SilverCreek Developer's Guide
Table of Contents
The SilverCreek SNMP APIs example scripts
SAMPLES OF USING TCL API IN A STAND-ALONE TCL INTERPRETER
SAMPLES OF USING PYTHON API IN A STAND-ALONE PYTHON INTERPRETER
SAMPLES OF WRITING TESTS RUN UNDER SILVERCREEK GUI
Example of Sending SNMP Requests
Example of Receiving Notifications (Traps)
SAMPLES OF USING COMMAND LINE INTERFACE TO AUTOMATE TESTING
Example of Automating using Tcl Scripting
Example of Automating using Python Scripting
SAMPLES OF USING REMOTE INTERFACE TO AUTOMATE TESTING
Example of Automating using Remote Interface
Developing Tests for SilverCreek
LOADING MIB FILES
MIB_PATH Environment Variable
Methods of Loading MIBs:
Loading multiple set of MIBs at runtime in your scripts
CREATING TEST SUITES
Creating the Directory Structure
Adding a Test Suite in testset.tcl
Changing the Order of Tests shown on GUI
IWL_PRIVTEST Environment Variable
CREATING TEST FILES
Choose the Test Number
Create Test Script Files
GUIDELINES TO WRITING TEST SCRIPT
IMPORTANT PRE-DEFINED GLOBAL VARIABLES
Automation and integration
USING COMMAND LINE INTERFACE
Loading Journal file into ODBC Database in CLI
USING REMOTE INTERFACE
Remote Control Tcl Commands
LOGGING DETAILS OF TESTING IN A JOURNAL FILE
INTERACTIVE TEST AUTOMATION (CONTEXT CONFIGURATION)
ADVANCED CONTEXT CONFIGURATION COMMANDS
Defining an Interactive Test Automation Parameter
Porting Information
DISPLAY-HINT BEHAVIORAL CHANGES
TRAP CALLBACK CONVENTIONS
‘gethostent’ function
TEST RESULT PRECEDENCE
COUNTER64 VALUE FORMAT
WARNING RESULT AND PREREQUISITES
PORTING TESTS TO RUN IN THE NEW NAMESPACE
SNMPTEST:RESULTS USAGE WITH THE REMOTE INTERFACE
CHAPTER 8 MIGRATING FROM SCOTTY TO SILVERCREEK API
MIGRATING SCOTTY 'MIB' COMMAND
MIGRATING SCOTTY 'SNMP' COMMAND
SILVERCREEK SCOTTY/TNM INTERFACE PACKAGE
SILVERCREEK TNM:MIB COMMAND MANUAL
SILVERCREEK TNM:SNMP COMMAND MANUAL
REFERENCES
SilverCreek command reference
WHAT COMMANDS SHOULD I USE?
COMMANDS IN GLOBAL NAMESPACE OVERVIEWsnmpinfo Command
snmpmisc Command
mosy command
Agent Context Procedures
GLOBAL NAMESPACE COMMAND MANUAL
COMMANDS IN SNMPTCL NAMESPACE OVERVIEW
Creating and Configuring Agent Context Procedures
SNMP Request Commands
snmptcl::snmpget/set/next/bulExamples
Example: Use snmptcl::snmpset to Create New Rows
Example: Reboot Cable Modem via SNMP
Lightweight SNMP request Commands
Other Miscellaneous Commands in Snmptcl namespace
SNMPTCL NAMESPACE COMMAND MANUAL
COMMANDS IN SNMPTEST NAMESPACE OVERVIEW
Snmptest Namespace SNMP Request Commands
Snmptest::snmpget/set/next/bulk Examples
HOW DO I CREATE AND DELETE A ROW
Examples of Using snmptest::rowStatusOp
SILVERCREEK PYTHON API REFERENCE
Methods defined in Class SNMPPython for SNMP Operations
Methods defined in Class SNMPPython for Light-weight SNMP Operations
REMOTE CONTROL COMMAND REFERENCE
COMMAND QUICK LISTCommand Manual
TCL COMMAND LINE CONTROL COMMAND REFERENCE
Tcl Command Quick List
Command Manual
PYTHON COMMAND LINE CONTROL COMMAND REFERENCE
class SNMPPython
Methods defined in class SNMPPython
Python Command Line Control Command Manual
MISCELLANEOUS COMMANDS
Command Quick List
Command Manual
© Copyright 2021 InterWorking Labs, Inc. dba IWL.
Web: https://iwl.com
Phone: +1.831.460.7010
Email: info@iwl.com