Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
See matching posts in thread - I ran the exact same code and on my switch, it j...
user@host> show system processes extensive last pid: 544; load averages: 0.00, 0.00, 0.00 18:30:33 37 processes: 1 running, 36 sleeping Mem: 25M Active, 3968K Inact, 19M Wired, 184K Cache, 8346K Buf, 202M Free Swap: 528M Total, 64K Used, 528M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 544 root 30 0 604K 768K RUN 0:00 0.00% 0.00% top 3 root 28 0 0K 12K psleep 0:00 0.00% 0.00% vmdaemon 4 root 28 0 0K 12K update 0:03 0.00% 0.00% update 528 aviva 18 0 660K 948K pause 0:00 0.00% 0.00% tcsh 204 root 18 0 300K 544K pause 0:00 0.00% 0.00% csh 131 root 18 0 332K 532K pause 0:00 0.00% 0.00% cron 186 root 18 0 196K 68K pause 0:00 0.00% 0.00% watchdog 27 root 10 0 512M 16288K mfsidl 0:00 0.00% 0.00% mount mfs 1 root 10 0 620K 344K wait 0:00 0.00% 0.00% init 304 root 3 0 884K 900K ttyin 0:00 0.00% 0.00% bash 200 root 3 0 180K 540K ttyin 0:00 0.00% 0.00% getty 203 root 3 0 180K 540K ttyin 0:00 0.00% 0.00% getty 202 root 3 0 180K 540K ttyin 0:00 0.00% 0.00% getty 201 root 3 0 180K 540K ttyin 0:00 0.00% 0.00% getty 194 root 2 0 2248K 1640K select 0:11 0.00% 0.00% rpd 205 root 2 0 964K 800K select 0:12 0.00% 0.00% tnp.chassisd 189 root 2 -12 352K 740K select 0:03 0.00% 0.00% xntpd 114 root 2 0 296K 612K select 0:00 0.00% 0.00% amd 188 root 2 0 780K 600K select 0:00 0.00% 0.00% dcd 527 root 2 0 176K 580K select 0:00 0.00% 0.00% rlogind 195 root 2 0 212K 552K select 0:00 0.00% 0.00% inetd 187 root 2 0 192K 532K select 0:00 0.00% 0.00% tnetd 83 root 2 0 188K 520K select 0:00 0.00% 0.00% syslogd 538 root 2 0 1324K 516K select 0:00 0.00% 0.00% mgd 99 daemon 2 0 176K 492K select 0:00 0:00% 0:00% portmap 163 root 2 0 572K 420K select 0:00 0.00% 0.00% nsrexecd 192 root 2 0 560K 400K select 0:10 0.00% 0.00% snmpd 191 root 2 0 1248K 376K select 0:00 0.00% 0.00% mgd 537 aviva 2 0 636K 364K select 0:00 0.00% 0.00% cli 193 root 2 0 312K 204K select 0:07 0.00% 0.00% mib2d 5 root 2 0 0K 12K pfesel 0:00 0.00% 0.00% if pfe 2 root -18 0 0K 12K psleep 0:00 0.00% 0.00% pagedaemon 0 root -18 0 0K 0K sched 0:00 0.00% 0.00% swapper For information about the show system processes extensive command’s output fields, see the following table: Field Name Field Description Mem
See matching posts in thread - Page 14 has all the PIMs you can install, chose ...
QQ 180 - The commit will fail if this is the case. 181 */ 182 /* 183 - This is where we can generate custom error/warning messages 184 - by modifying the default templates. 185 */ 186 template warn-if-missing ($must, $statement = "unknown", $message = "missing mandatory configuration statement") ( 187 188 if (not($must)) ( 189 <xnm:warning> ( 190 <edit-path> ( 191 copy-of $statement; 192 ) 193 <message> ( 194 copy-of $message; 195 ) 196 ) 197 ) 198 ) 199 /* 200 - 201 - 202 - 203 */ 204 template error-if-missing ($must, $statement = "unknown", $message = "missing mandatory configuration statement") ( 205 206 if (not($must)) ( 207 <xnm:error> ( 208 <edit-path> ( 209 copy-of $statement; 210 ) 211 <message> ( 212 copy-of $message; 213 ) 214 ) 215 ) 216 ) 217 /* 218 - 219 - 220 - 221 */ 222 template error-if-present ($must = 1, $message = "invalid configuration statement") ( 223 /* give error if param missing */ 224 225 for-each ($must) ( 226 <xnm:error> ( 227 call jcs:edit-path(); 228 call jcs:statement(); 229 <message> ( 230 copy-of $message; 231 ) 232 ) 233 ) 234 ) #errors #ScriptingHow-To #commitscript #How-To #Slax
See matching posts in thread - Listening on ae2, capture size 9999 bytes In IP ...
See matching posts in thread - This is also reflected in the Hardware compabili...
Source Code and GitHub Links The source code below is also available from GitHub at the following locations: check-atm-interfaces in Junoscriptorium on GitHub Example Configuration Example Output SLAX Script Contents XML Script Contents Example Configuration 001 groups ( 002 class-gold ( 003 interfaces ( 004 <*> ( 005 unit <*> ( 006 family inet ( 007 filter ( 008 input gold-filter; 009 output gold-filter; 010 ) 011 ) 012 ) 013 ) 014 ) 015 ) 016 class-silver ( 017 interfaces ( 018 <*> ( 019 unit <*> ( 020 family inet ( 021 filter ( 022 input silver-filter; 023 output silver-filter; 024 ) 025 ) 026 ) 027 ) 028 ) 029 ) 030 class-bronze ( 031 interfaces ( 032 <*> ( 033 unit <*> ( 034 family inet ( 035 filter ( 036 input bronze-filter; 037 output bronze-filter; 038 ) 039 ) 040 ) 041 ) 042 ) 043 ) 044 ) 045 system ( 046 scripts ( 047 commit ( 048 file check-atm.slax; 049 ) 050 ) 051 ) 052 interfaces ( 053 apply-macro limits ( 054 bronze-max 60; 055 gold-max 20; 056 silver-max 40; 057 ) 058 at-1/2/3 ( 059 atm-options ( 060 pic-type atm1; 061 vpi 0 ( 062 maximum-vcs 100; 063 ) 064 ) 065 066 unit 15 ( 067 family inet ( 068 address 10.12.13.14/20; 069 ) 070 ) 071 unit 16 ( 072 family inet ( 073 address 10.12.13.15/20; 074 ) 075 ) 076 unit 17 ( 077 family inet ( 078 address 10.12.13.16/20; 079 ) 080 ) 081 unit 18 ( 082 family inet ( 083 address 10.12.13.17/20; 084 ) 085 ) 086 unit 19 ( 087 family inet ( 088 address 10.12.13.18/20; 089 ) 090 ) 091 unit 20 ( 092 family inet ( 093 address 10.12.13.19/20; 094 ) 095 ) 096 unit 21 ( 097 family inet ( 098 address 10.12.13.20/20; 099 ) 100 ) 101 unit 22 ( 102 family inet ( 103 address 10.12.13.21/20; 104 ) 105 ) 106 unit 23 ( 107 family inet ( 108 address 10.12.13.22/20; 109 ) 110 ) 111 unit 24 ( 112 family inet ( 113 address 10.12.13.23/20; 114 ) 115 ) 116 unit 25 ( 117 family inet ( 118 address 10.12.13.24/20; 119 ) 120 ) 121 unit 26 ( 122 family inet ( 123 address 10.12.13.25/20; 124 ) 125 ) 126 unit 27 ( 127 family inet ( 128 address 10.12.13.26/20; 129 ) 130 ) 131 unit 28 ( 132 family inet ( 133 address 10.12.13.27/20; 134 ) 135 ) 136 unit 29 ( 137 family inet ( 138 address 10.12.13.28/20; 139 ) 140 ) 141 unit 30 ( 142 family inet ( 143 address 10.12.13.29/20; 144 ) 145 ) 146 unit 31 ( 147 family inet ( 148 address 10.12.13.30/20; 149 ) 150 ) 151 unit 32 ( 152 family inet ( 153 address 10.12.13.31/20; 154 ) 155 ) 156 unit 33 ( 157 family inet ( 158 address 10.12.13.32/20; 159 ) 160 ) 161 unit 34 ( 162 family inet ( 163 address 10.12.13.33/20; 164 ) 165 ) 166 unit 35 ( 167 family inet ( 168 address 10.12.13.34/20; 169 ) 170 ) 171 unit 36 ( 172 family inet ( 173 address 10.12.13.35/20; 174 ) 175 ) 176 unit 37 ( 177 family inet ( 178 address 10.12.13.36/20; 179 ) 180 ) 181 unit 38 ( 182 family inet ( 183 address 10.12.13.37/20; 184 ) 185 ) 186 unit 39 ( 187 family inet ( 188 address 10.12.13.38/20; 189 ) 190 ) 191 unit 40 ( 192 family inet ( 193 address 10.12.13.39/20; 194 ) 195 ) 196 unit 41 ( 197 family inet ( 198 address 10.12.13.40/20; 199 ) 200 ) 201 unit 42 ( 202 family inet ( 203 address 10.12.13.41/20; 204 ) 205 ) 206 unit 43 ( 207 family inet ( 208 address 10.12.13.42/20; 209 ) 210 ) 211 unit 44 ( 212 family inet ( 213 address 10.12.13.43/20; 214 ) 215 ) 216 unit 45 ( 217 family inet ( 218 address 10.12.13.44/20; 219 ) 220 ) 221 unit 46 ( 222 family inet ( 223 address 10.12.13.45/20; 224 ) 225 ) 226 unit 47 ( 227 family inet ( 228 address 10.12.13.46/20; 229 ) 230 ) 231 unit 48 ( 232 family inet ( 233 address 10.12.13.47/20; 234 ) 235 ) 236 unit 49 ( 237 family inet ( 238 address 10.12.13.48/20; 239 ) 240 ) 241 unit 50 ( 242 family inet ( 243 address 10.12.13.49/20; 244 ) 245 ) 246 unit 51 ( 247 family inet ( 248 address 10.12.13.50/20; 249 ) 250 ) 251 unit 52 ( 252 family inet ( 253 address 10.12.13.51/20; 254 ) 255 ) 256 unit 53 ( 257 family inet ( 258 address 10.12.13.52/20; 259 ) 260 ) 261 unit 54 ( 262 family inet ( 263 address 10.12.13.53/20; 264 ) 265 ) 266 unit 55 ( 267 family inet ( 268 address 10.12.13.54/20; 269 ) 270 ) 271 unit 56 ( 272 family inet ( 273 address 10.12.13.55/20; 274 ) 275 ) 276 unit 57 ( 277 family inet ( 278 address 10.12.13.56/20; 279 ) 280 ) 281 unit 58 ( 282 family inet ( 283 address 10.12.13.57/20; 284 ) 285 ) 286 unit 59 ( 287 family inet ( 288 address 10.12.13.58/20; 289 ) 290 ) 291 unit 60 ( 292 family inet ( 293 address 10.12.13.59/20; 294 ) 295 ) 296 unit 61 ( 297 family inet ( 298 address 10.12.13.60/20; 299 ) 300 ) 301 unit 62 ( 302 family inet ( 303 address 10.12.13.61/20; 304 ) 305 ) 306 unit 63 ( 307 family inet ( 308 address 10.12.13.62/20; 309 ) 310 ) 311 unit 64 ( 312 family inet ( 313 address 10.12.13.63/20; 314 ) 315 ) 316 unit 65 ( 317 family inet ( 318 address 10.12.13.64/20; 319 ) 320 ) 321 ) 322 ) 323 firewall ( 324 filter gold-filter ( 325 term one ( 326 then forwarding-class assured-forwarding; 327 ) 328 ) 329 filter silver-filter ( 330 term one ( 331 then forwarding-class expedited-forwarding; 332 ) 333 ) 334 filter bronze-filter ( 335 term one ( 336 then forwarding-class best-effort; 337 ) 338 ) 339 ) Example Output 001 [edit] 002 phil@dent# show | display commit-scripts 003 ## Last changed: 2007-10-09 15:38:27 EDT 004 groups ( 005 class-gold ( 006 interfaces ( 007 <*> ( 008 unit <*> ( 009 family inet ( 010 filter ( 011 input gold-filter; 012 output gold-filter; 013 ) 014 ) 015 ) 016 ) 017 ) 018 ) 019 class-silver ( 020 interfaces ( 021 <*> ( 022 unit <*> ( 023 family inet ( 024 filter ( 025 input silver-filter; 026 output silver-filter; 027 ) 028 ) 029 ) 030 ) 031 ) 032 ) 033 class-bronze ( 034 interfaces ( 035 <*> ( 036 unit <*> ( 037 family inet ( 038 filter ( 039 input bronze-filter; 040 output bronze-filter; 041 ) 042 ) 043 ) 044 ) 045 ) 046 ) 047 ) 048 system ( 049 scripts ( 050 commit ( 051 file check-atm.slax; 052 ) 053 ) 054 ## Warning: missing mandatory statement(s): 'root-authentication' 055 ) 056 interfaces ( 057 apply-macro limits ( 058 bronze-max 60; 059 gold-max 20; 060 silver-max 40; 061 ) 062 at-1/2/3 ( 063 atm-options ( 064 pic-type atm1; 065 vpi 0 ( 066 maximum-vcs 100; 067 ) 068 ) 069 unit 15 ( 070 apply-groups class-gold; 071 vci 15; 072 family inet ( 073 address 10.12.13.14/20; 074 ) 075 ) 076 unit 16 ( 077 apply-groups class-gold; 078 vci 16; 079 family inet ( 080 address 10.12.13.15/20; 081 ) 082 ) 083 unit 17 ( 084 apply-groups class-gold; 085 vci 17; 086 family inet ( 087 address 10.12.13.16/20; 088 ) 089 ) 090 unit 18 ( 091 apply-groups class-gold; 092 vci 18; 093 family inet ( 094 address 10.12.13.17/20; 095 ) 096 ) 097 unit 19 ( 098 apply-groups class-gold; 099 vci 19; 100 family inet ( 101 address 10.12.13.18/20; 102 ) 103 ) 104 unit 20 ( 105 apply-groups class-gold; 106 vci 20; 107 family inet ( 108 address 10.12.13.19/20; 109 ) 110 ) 111 unit 21 ( 112 apply-groups class-silver; 113 vci 21; 114 family inet ( 115 address 10.12.13.20/20; 116 ) 117 ) 118 unit 22 ( 119 apply-groups class-silver; 120 vci 22; 121 family inet ( 122 address 10.12.13.21/20; 123 ) 124 ) 125 unit 23 ( 126 apply-groups class-silver; 127 vci 23; 128 family inet ( 129 address 10.12.13.22/20; 130 ) 131 ) 132 unit 24 ( 133 apply-groups class-silver; 134 vci 24; 135 family inet ( 136 address 10.12.13.23/20; 137 ) 138 ) 139 unit 25 ( 140 apply-groups class-silver; 141 vci 25; 142 family inet ( 143 address 10.12.13.24/20; 144 ) 145 ) 146 unit 26 ( 147 apply-groups class-silver; 148 vci 26; 149 family inet ( 150 address 10.12.13.25/20; 151 ) 152 ) 153 unit 27 ( 154 apply-groups class-silver; 155 vci 27; 156 family inet ( 157 address 10.12.13.26/20; 158 ) 159 ) 160 unit 28 ( 161 apply-groups class-silver; 162 vci 28; 163 family inet ( 164 address 10.12.13.27/20; 165 ) 166 ) 167 unit 29 ( 168 apply-groups class-silver; 169 vci 29; 170 family inet ( 171 address 10.12.13.28/20; 172 ) 173 ) 174 unit 30 ( 175 apply-groups class-silver; 176 vci 30; 177 family inet ( 178 address 10.12.13.29/20; 179 ) 180 ) 181 unit 31 ( 182 apply-groups class-silver; 183 vci 31; 184 family inet ( 185 address 10.12.13.30/20; 186 ) 187 ) 188 unit 32 ( 189 apply-groups class-silver; 190 vci 32; 191 family inet ( 192 address 10.12.13.31/20; 193 ) 194 ) 195 unit 33 ( 196 apply-groups class-silver; 197 vci 33; 198 family inet ( 199 address 10.12.13.32/20; 200 ) 201 ) 202 unit 34 ( 203 apply-groups class-silver; 204 vci 34; 205 family inet ( 206 address 10.12.13.33/20; 207 ) 208 ) 209 unit 35 ( 210 apply-groups class-silver; 211 vci 35; 212 family inet ( 213 address 10.12.13.34/20; 214 ) 215 ) 216 unit 36 ( 217 apply-groups class-silver; 218 vci 36; 219 family inet ( 220 address 10.12.13.35/20; 221 ) 222 ) 223 unit 37 ( 224 apply-groups class-silver; 225 vci 37; 226 family inet ( 227 address 10.12.13.36/20; 228 ) 229 ) 230 unit 38 ( 231 apply-groups class-silver; 232 vci 38; 233 family inet ( 234 address 10.12.13.37/20; 235 ) 236 ) 237 unit 39 ( 238 apply-groups class-silver; 239 vci 39; 240 family inet ( 241 address 10.12.13.38/20; 242 ) 243 ) 244 unit 40 ( 245 apply-groups class-silver; 246 vci 40; 247 family inet ( 248 address 10.12.13.39/20; 249 ) 250 ) 251 unit 41 ( 252 apply-groups class-bronze; 253 vci 41; 254 family inet ( 255 address 10.12.13.40/20; 256 ) 257 ) 258 unit 42 ( 259 apply-groups class-bronze; 260 vci 42; 261 family inet ( 262 address 10.12.13.41/20; 263 ) 264 ) 265 unit 43 ( 266 apply-groups class-bronze; 267 vci 43; 268 family inet ( 269 address 10.12.13.42/20; 270 ) 271 ) 272 unit 44 ( 273 apply-groups class-bronze; 274 vci 44; 275 family inet ( 276 address 10.12.13.43/20; 277 ) 278 ) 279 unit 45 ( 280 apply-groups class-bronze; 281 vci 45; 282 family inet ( 283 address 10.12.13.44/20; 284 ) 285 ) 286 unit 46 ( 287 apply-groups class-bronze; 288 vci 46; 289 family inet ( 290 address 10.12.13.45/20; 291 ) 292 ) 293 unit 47 ( 294 apply-groups class-bronze; 295 vci 47; 296 family inet ( 297 address 10.12.13.46/20; 298 ) 299 ) 300 unit 48 ( 301 apply-groups class-bronze; 302 vci 48; 303 family inet ( 304 address 10.12.13.47/20; 305 ) 306 ) 307 unit 49 ( 308 apply-groups class-bronze; 309 vci 49; 310 family inet ( 311 address 10.12.13.48/20; 312 ) 313 ) 314 unit 50 ( 315 apply-groups class-bronze; 316 vci 50; 317 family inet ( 318 address 10.12.13.49/20; 319 ) 320 ) 321 unit 51 ( 322 apply-groups class-bronze; 323 vci 51; 324 family inet ( 325 address 10.12.13.50/20; 326 ) 327 ) 328 unit 52 ( 329 apply-groups class-bronze; 330 vci 52; 331 family inet ( 332 address 10.12.13.51/20; 333 ) 334 ) 335 unit 53 ( 336 apply-groups class-bronze; 337 vci 53; 338 family inet ( 339 address 10.12.13.52/20; 340 ) 341 ) 342 unit 54 ( 343 apply-groups class-bronze; 344 vci 54; 345 family inet ( 346 address 10.12.13.53/20; 347 ) 348 ) 349 unit 55 ( 350 apply-groups class-bronze; 351 vci 55; 352 family inet ( 353 address 10.12.13.54/20; 354 ) 355 ) 356 unit 56 ( 357 apply-groups class-bronze; 358 vci 56; 359 family inet ( 360 address 10.12.13.55/20; 361 ) 362 ) 363 unit 57 ( 364 apply-groups class-bronze; 365 vci 57; 366 family inet ( 367 address 10.12.13.56/20; 368 ) 369 ) 370 unit 58 ( 371 apply-groups class-bronze; 372 vci 58; 373 family inet ( 374 address 10.12.13.57/20; 375 ) 376 ) 377 unit 59 ( 378 apply-groups class-bronze; 379 vci 59; 380 family inet ( 381 address 10.12.13.58/20; 382 ) 383 ) 384 unit 60 ( 385 apply-groups class-bronze; 386 vci 60; 387 family inet ( 388 address 10.12.13.59/20; 389 ) 390 ) 391 unit 61 ( 392 vci 61; 393 family inet ( 394 address 10.12.13.60/20; 395 ) 396 ) 397 unit 62 ( 398 vci 62; 399 family inet ( 400 address 10.12.13.61/20; 401 ) 402 ) 403 unit 63 ( 404 vci 63; 405 family inet ( 406 address 10.12.13.62/20; 407 ) 408 ) 409 unit 64 ( 410 vci 64; 411 family inet ( 412 address 10.12.13.63/20; 413 ) 414 ) 415 unit 65 ( 416 vci 65; 417 family inet ( 418 address 10.12.13.64/20; 419 ) 420 ) 421 ) 422 ) 423 firewall ( 424 filter gold-filter ( 425 term one ( 426 then forwarding-class assured-forwarding; 427 ) 428 ) 429 filter silver-filter ( 430 term one ( 431 then forwarding-class expedited-forwarding; 432 ) 433 ) 434 filter bronze-filter ( 435 term one ( 436 then forwarding-class best-effort; 437 ) 438 ) 439 ) SLAX Script Contents 01 /* Machine Crafted with Care (tm) by slaxWriter */ 02 version 1.0; 03 04 05 /* 06 - $Id: check-atm.slax,v 1.1 2007/10/17 18:37:04 phil Exp $ 07 - 08 - Copyright (c) 2004-2005, Juniper Networks, Inc. 09 - All rights reserved. 10 - 11 */ 12 ns junos = "http://xml.juniper.net/junos/*/junos"; 13 ns xnm = "http://xml.juniper.net/xnm/1.1/xnm"; 14 ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0"; 15 16 import "
See matching posts in thread - v=y7O0cMHZ2Pc And a day one guide if you need mo...
See matching posts in thread - Configuration: set class-of-service classifiers ...