Cisco SR224T Administration Guide - Page 122

Smartport Macros, Applying a Smartport Type to an Interface

Page 122 highlights

Smartports Smartport Macros 10 NOTE Throughout this section, the term "aged out" is used to describe the LLDP and CDP messages via their TTL. If Auto Smartport is enabled, and persistent status is disabled, and no more CDP or LLDP messages are received on the interface before both TTLs of the most recent CDP and LLDP packets decrease to 0, then the antimacro is run, and the Smartport type returns to default. Smartport Macros A Smartport macro is a script that configure an interface appropriately for a particular network device. Smartport macros should not be confused with global macros. Global macros configure the switch globally, however, the scope of a Smartport macro is limited to the interface on which it is applied. The macro source may be found by clicking the View Macro Source button on the Smartport Type Settings page. A macro and the corresponding anti-macro are paired together in association with each Smartport type. The macro applies the configuration and the anti-macro removes it. Two Smartport macros are paired by their names as follows: • macro_name (for example: printer) • no_macro_name (for example: no_printer, the anti Smartport macro of Smartport macro printer) See Built-in Smartport Macros for a listing of the built-in Smartport macros for each device type. Applying a Smartport Type to an Interface When Smartport types are applied to interfaces, the Smartport types and configuration in the associated Smartport macros are saved in the Running Configuration File. If the administrator saves the Running Configuration File into the Startup Configuration File, the switch applies the Smartport types and the Smartport macros to the interfaces after reboot as follows: • If the Startup Configuration File does not specify a Smartport type for an interface, its Smartport type is set to Default. Cisco Small Business 200 Series Smart Switch Administration Guide 123

  • 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
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283

Smartports
Smartport Macros
Cisco Small Business 200 Series Smart Switch Administration Guide
123
10
NOTE
Throughout this section, the term “aged out” is used to describe the LLDP and CDP
messages via their TTL. If Auto Smartport is enabled, and persistent status is
disabled, and no more CDP or LLDP messages are received on the interface before
both TTLs of the most recent CDP and LLDP packets decrease to 0, then the anti-
macro is run, and the Smartport type returns to default.
Smartport Macros
A Smartport macro is a script that configure an interface appropriately for a
particular network device.
Smartport macros should not be confused with global macros. Global macros
configure the switch globally, however, the scope of a Smartport macro is limited
to the interface on which it is applied.
The macro source may be found by
clicking the
View Macro Source
button on
the
Smartport Type Settings
page.
A macro and the corresponding anti-macro are paired together in association with
each Smartport type. The macro applies the configuration and the anti-macro
removes it.
Two Smartport macros are paired by their names as follows:
macro_name (for example: printer)
no_macro_name (for example: no_printer, the anti Smartport macro of
Smartport macro printer)
See
Built-in Smartport Macros
for a listing of the built-in Smartport macros for
each device type.
Applying a Smartport Type to an Interface
When Smartport types are applied to interfaces, the Smartport types and
configuration in the associated Smartport macros are saved in the Running
Configuration File. If the administrator saves the Running Configuration File into the
Startup Configuration File, the switch applies the Smartport types and the
Smartport macros to the interfaces after reboot as follows:
If the Startup Configuration File does not specify a Smartport type for an
interface, its Smartport type is set to Default.