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
In reply to Pattern Matching by farhan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |