farhan has asked for the wisdom of the Perl Monks concerning the following question:
I want to grab all devices name like cgw01.dub01.nsw.sptel.net.au-POS1/0-Path ,before the "Action:" option But be rememebr these devices name change frquently. So i need perl pattern matching that can grab all the devices name. Thanks for your timeNew Elements ------------ cgw01.dub01.nsw.sptel.net.au-POS1/0-Path (171) Action: Resolved New (not saved) sysName: cgw01.dub01.nsw.sptel.net.au IP Address: 202.168.55.185 Index1: 9 ifDescr: POS1/0 cgw01.dub01.nsw.sptel.net.au-RH-power-AstecDCPowerSupply-1 (EnvCPU- +power) Action: Resolved New (not saved) sysName: cgw01.dub01.nsw.sptel.net.au IP Address: 202.168.55.185 Index1: 1 ifDescr: EnvCPU-Astec DC Power Supply cgw01.dub01.nsw.sptel.net.au-RH-power-AstecDCPowerSupply-2 (EnvCPU +-power) Action: Resolved New (not saved) sysName: cgw01.dub01.nsw.sptel.net.au IP Address: 202.168.55.185 Index1: 2 ifDescr: EnvCPU-Astec DC Power Supply GROUP ASSIGNMENT DETAILS ========================
Edited by planetscape - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Matching
by McDarren (Abbot) on Apr 14, 2006 at 02:10 UTC | |
by Anonymous Monk on Apr 14, 2006 at 04:32 UTC | |
by McDarren (Abbot) on Apr 14, 2006 at 05:34 UTC | |
by QM (Parson) on Apr 14, 2006 at 16:19 UTC | |
| |
|
Re: Pattern Matching
by strat (Canon) on Apr 14, 2006 at 09:22 UTC | |
|
Re: Pattern Matching
by QM (Parson) on Apr 14, 2006 at 16:29 UTC |