All,
I am trying to extract specific lines of info from a capture file that My script is capturing. The equipment outputs about two pages of data and I only need a couple of lines of it. Here is an example of the output and the lines that I need:
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]] ]]]] ]]] ]]] ]]]]]]]] ]]] ]]]]
]]]]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ] ]]]]]]] ]]] ] ]]]]
]]]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]] ]]]]]] ]]] ]] ]]]]
]]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]] ]]]]] ]]] ]]] ]]]]
]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]] ]]]] ]]]] ]]] ]]]]
]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]]]] ]]] ]]] ]]]]] ]]]]
]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]]]]] ]] ]]] ]]]]]] ]]]]
]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]]]]]] ]]] ]]]]]]] ]]]]
]]]] ]]] ]]] ]]] ]]]]]]]] ]]] ]]]]]]]] ]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
Core Director (TM) Craft Interface...
Copyright (c) CIENA Corporation, 2001.
NOTICE: Unauthorized access or use of this system will lead to prosecution.
Core Director CLI Login
UserId:
Password:
---- C I E N A C O R E D I R E C T O R ----
---- C M C L I M E N U ----
--------------------------------------------------------------
---- 1. Display current install settings
---- 2. Display general information about this CM
---- 3. Go to TL-1 CLI
---- 4. Enter Upgrade mode
---- 5. Enter Backup and Restore mode
---- 6. Change CLI Login User Id
---- 7. Change CLI Login Password
---- 8. Reset Timing Plane
---- 9. Reset Other CM
---- 10. Logout
--------------------------------------------------------------
Enter Choice (? for help anytime): 11
Invalid choice!
---- C I E N A C O R E D I R E C T O R ----
---- C M C L I M E N U ----
--------------------------------------------------------------
---- 1. Display current install settings
---- 2. Display general information about this CM
---- 3. Go to TL-1 CLI
---- 4. Enter Upgrade mode
---- 5. Enter Backup and Restore mode
---- 6. Change CLI Login User Id
---- 7. Change CLI Login Password
---- 8. Reset Timing Plane
---- 9. Reset Other CM
---- 10. Logout
--------------------------------------------------------------
Enter Choice (? for help anytime): 1
CMName .........................................SMYRGAFEH00
CoreDirector's Main Management IP address.............xxx.xxx.xxx.xxx
CoreDirector's Main Management IP address netmask.....255.255.255.0
CoreDirector's Internal Network Base address..........10.200
A-CM's Main IP address................................xxx.xxx.xxx.xxx
A-CM's Main IP address netmask........................xxx.xxx.xxx.xxx
C-CM's Main IP address................................xxx.xxx.xxx.xxx
C-CM's Main IP address netmask........................255.255.255.0
OSAgent's IP Address..................................unknown
CoreDirector IP gateway address.......................xxx.xxx.xxx.xxx
CoreDirector Auxiliary Management IP address..........unknown
CoreDirector Auxiliary Management IP address netmask..unknown
A-CM's Auxiliary IP address...........................unknown
A-CM's Auxiliary IP address netmask...................unknown
C-CM's Auxiliary IP address...........................unknown
C-CM's Auxiliary IP Address netmask...................unknown
OSRP Node Address.....................................45.000000010001000100010104.00000000ffff.00
CoreDirector CORBA BOA Main Port Number...............unknown
CoreDirector CORBA BOA Auxiliary Port Number..........unknown
CoreDirector TLI Module Port Number...................unknown
CoreDirector HTTP Port Number.........................unknown
CoreDirector Echo Port Number.........................unknown
DPFI Fault Isolation Disable..........................unknown
Current System time: .................................08/16/2002 16:47:31
---- C I E N A C O R E D I R E C T O R ----
---- C M C L I M E N U ----
--------------------------------------------------------------
---- 1. Display current install settings
---- 2. Display general information about this CM
---- 3. Go to TL-1 CLI
---- 4. Enter Upgrade mode
---- 5. Enter Backup and Restore mode
---- 6. Change CLI Login User Id
---- 7. Change CLI Login Password
---- 8. Reset Timing Plane
---- 9. Reset Other CM
---- 10. Logout
--------------------------------------------------------------
Enter Choice (? for help anytime): 2
Current Role..........................Primary
Current CM Instance...................CM0
Current Software Version..............2.0.4.cn88563
Current Software build timestamp......02/07/2002 03:23:35
Current Software build name...........R2.0_88563-2.0.4_txn
Current Software change number........88563
Current time stamp on this CM ........08/16/2002 16:47:32
Available memory on this CM ..........78307696 / 239870400 = %32
Memory usage per block size. Format: Size/#Reserved/#InUse; ... :
8/0/0; 16/0/0; 32/36806/698421; 64/87252/610075; 128/42252/109792;
256/466/4136; 512/573/2881; 1024/209/2350; 2048/55/6983; 4096/123/2275;
8192/260/1736; 16384/9/95; 32768/3/31
The only two lines that I need are the ones that start out with :
CMName .........................................SMYRGAFEH00
Available memory on this CM ..........78307696 / 239870400 = %32
This is the info that gets pulled off of each node (total 29 Nodes) so the capture file gets pretty bulky. I need the two lines mentioned above from each node. If anyone can help me I would greatly appriciate it.
Thanks,
David Melle
I am trying to extract specific lines of info from a capture file that My script is capturing. The equipment outputs about two pages of data and I only need a couple of lines of it. Here is an example of the output and the lines that I need:
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]] ]]]] ]]] ]]] ]]]]]]]] ]]] ]]]]
]]]]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ] ]]]]]]] ]]] ] ]]]]
]]]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]] ]]]]]] ]]] ]] ]]]]
]]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]] ]]]]] ]]] ]]] ]]]]
]]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]] ]]]] ]]]] ]]] ]]]]
]]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]]]] ]]] ]]] ]]]]] ]]]]
]]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]]]]] ]] ]]] ]]]]]] ]]]]
]]]]] ]]]]]]]]]]]] ]]] ]]]]]]]]]]] ]]]]]]] ]]] ]]]]]]] ]]]]
]]]] ]]] ]]] ]]] ]]]]]]]] ]]] ]]]]]]]] ]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
Core Director (TM) Craft Interface...
Copyright (c) CIENA Corporation, 2001.
NOTICE: Unauthorized access or use of this system will lead to prosecution.
Core Director CLI Login
UserId:
Password:
---- C I E N A C O R E D I R E C T O R ----
---- C M C L I M E N U ----
--------------------------------------------------------------
---- 1. Display current install settings
---- 2. Display general information about this CM
---- 3. Go to TL-1 CLI
---- 4. Enter Upgrade mode
---- 5. Enter Backup and Restore mode
---- 6. Change CLI Login User Id
---- 7. Change CLI Login Password
---- 8. Reset Timing Plane
---- 9. Reset Other CM
---- 10. Logout
--------------------------------------------------------------
Enter Choice (? for help anytime): 11
Invalid choice!
---- C I E N A C O R E D I R E C T O R ----
---- C M C L I M E N U ----
--------------------------------------------------------------
---- 1. Display current install settings
---- 2. Display general information about this CM
---- 3. Go to TL-1 CLI
---- 4. Enter Upgrade mode
---- 5. Enter Backup and Restore mode
---- 6. Change CLI Login User Id
---- 7. Change CLI Login Password
---- 8. Reset Timing Plane
---- 9. Reset Other CM
---- 10. Logout
--------------------------------------------------------------
Enter Choice (? for help anytime): 1
CMName .........................................SMYRGAFEH00
CoreDirector's Main Management IP address.............xxx.xxx.xxx.xxx
CoreDirector's Main Management IP address netmask.....255.255.255.0
CoreDirector's Internal Network Base address..........10.200
A-CM's Main IP address................................xxx.xxx.xxx.xxx
A-CM's Main IP address netmask........................xxx.xxx.xxx.xxx
C-CM's Main IP address................................xxx.xxx.xxx.xxx
C-CM's Main IP address netmask........................255.255.255.0
OSAgent's IP Address..................................unknown
CoreDirector IP gateway address.......................xxx.xxx.xxx.xxx
CoreDirector Auxiliary Management IP address..........unknown
CoreDirector Auxiliary Management IP address netmask..unknown
A-CM's Auxiliary IP address...........................unknown
A-CM's Auxiliary IP address netmask...................unknown
C-CM's Auxiliary IP address...........................unknown
C-CM's Auxiliary IP Address netmask...................unknown
OSRP Node Address.....................................45.000000010001000100010104.00000000ffff.00
CoreDirector CORBA BOA Main Port Number...............unknown
CoreDirector CORBA BOA Auxiliary Port Number..........unknown
CoreDirector TLI Module Port Number...................unknown
CoreDirector HTTP Port Number.........................unknown
CoreDirector Echo Port Number.........................unknown
DPFI Fault Isolation Disable..........................unknown
Current System time: .................................08/16/2002 16:47:31
---- C I E N A C O R E D I R E C T O R ----
---- C M C L I M E N U ----
--------------------------------------------------------------
---- 1. Display current install settings
---- 2. Display general information about this CM
---- 3. Go to TL-1 CLI
---- 4. Enter Upgrade mode
---- 5. Enter Backup and Restore mode
---- 6. Change CLI Login User Id
---- 7. Change CLI Login Password
---- 8. Reset Timing Plane
---- 9. Reset Other CM
---- 10. Logout
--------------------------------------------------------------
Enter Choice (? for help anytime): 2
Current Role..........................Primary
Current CM Instance...................CM0
Current Software Version..............2.0.4.cn88563
Current Software build timestamp......02/07/2002 03:23:35
Current Software build name...........R2.0_88563-2.0.4_txn
Current Software change number........88563
Current time stamp on this CM ........08/16/2002 16:47:32
Available memory on this CM ..........78307696 / 239870400 = %32
Memory usage per block size. Format: Size/#Reserved/#InUse; ... :
8/0/0; 16/0/0; 32/36806/698421; 64/87252/610075; 128/42252/109792;
256/466/4136; 512/573/2881; 1024/209/2350; 2048/55/6983; 4096/123/2275;
8192/260/1736; 16384/9/95; 32768/3/31
The only two lines that I need are the ones that start out with :
CMName .........................................SMYRGAFEH00
Available memory on this CM ..........78307696 / 239870400 = %32
This is the info that gets pulled off of each node (total 29 Nodes) so the capture file gets pretty bulky. I need the two lines mentioned above from each node. If anyone can help me I would greatly appriciate it.
Thanks,
David Melle