Dell FORCE10 Open Automation Open Automation Guide - Page 14

Use Cases - solutions

Page 14 highlights

www.dell.com | support.dell.com Smart Scripting also offers solutions in a UNIX environment that are useful to cloud administrators who are familiar with working directly in a UNIX shell. Script support in a UNIX environment allows you to invoke standard UNIX utilities, such as netstat, tcpdump, ls, chmod, chown, and so on. Smart Scripting includes a convenient set of API function libraries to which script developers can refer when they create PERL, Python, and UNIX scripts. A representation of CLI functions to retrieve data from the FTOS operating system and change configuration parameters on Dell Force10 switches is provided in the API libraries. Script writers include API function calls made directly on the FTOS command-line interface in their PERL, Python, and UNIX scripts. For example, the API functions used in a script include setting up a telnet session, gathering data on the switch, sending information to the CLI, and closing telnet sessions. By using simple function calls, script writers do not have to include the parsing code required for telnet sessions and retrieving configuration information. Smart Scripting supports running a script either from the FTOS CLI or directly from a UNIX shell. This chapter includes the following sections: • Use Cases • Downloading the Smart Scripting Package • Installing Smart Scripting • Limits on System Usage • Supported UNIX Utilities • Creating a User Name and Password for Smart Scripting • Running a Script from the FTOS CLI • Logging in to a NetBSD UNIX Shell • Running a Script from the UNIX Shell • Using the PERL API • Using the Python API • Using UNIX Shell Scripting Use Cases Smart Scripting allows you to automate common management and maintenance tasks, such as: • Building visibility and/or discovery programs. • Creating custom logging. • Reporting configuration information. 14 | Smart Scripting

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98

14
|
Smart Scripting
www.dell.com
|
support.dell.com
Smart Scripting also offers solutions in a UNIX environment that are useful to cloud
administrators who are familiar with working directly in a UNIX shell. Script support
in a UNIX environment allows you to invoke standard UNIX utilities, such as netstat,
tcpdump, ls, chmod, chown, and so on.
Smart Scripting includes a convenient set of API function libraries to which script
developers can refer when they create PERL, Python, and UNIX scripts. A
representation of CLI functions to retrieve data from the FTOS operating system and
change configuration parameters on Dell Force10 switches is provided in the API
libraries. Script writers include API function calls made directly on the FTOS
command-line interface in their PERL, Python, and UNIX scripts.
For example, the API functions used in a script include setting up a telnet session,
gathering data on the switch, sending information to the CLI, and closing telnet
sessions. By using simple function calls, script writers do not have to include the
parsing code required for telnet sessions and retrieving configuration information.
Smart Scripting supports running a script either from the FTOS CLI or directly from
a UNIX shell.
This chapter includes the following sections:
Use Cases
Downloading the Smart Scripting Package
Installing Smart Scripting
Limits on System Usage
Supported UNIX Utilities
Creating a User Name and Password for Smart Scripting
Running a Script from the FTOS CLI
Logging in to a NetBSD UNIX Shell
Running a Script from the UNIX Shell
Using the PERL API
Using the Python API
Using UNIX Shell Scripting
Use Cases
Smart Scripting allows you to automate common management and maintenance
tasks, such as:
Building visibility and/or discovery programs.
Creating custom logging.
Reporting configuration information.