source: people/peter.buschman/backup_monitoring/parsing/parsers/bpimagelist/test.py

Last change on this file was 976, checked in by peter, on Dec 6, 2011 at 10:19:33 AM

Raw checkin of current NetBackup / TSM parsing code.

File size: 376 bytes
Line 
1
2import time
3
4from backup_monitoring.parsing.parsers import bpimagelist as parser
5
6file = open('test.txt', 'r')
7
8stream = parser.stream(file)
9
10i = 0
11
12for record in stream:
13
14 i += 1
15
16 print i
17
18 instance = parser.parse(record)
19
20 for key, value in instance.items():
21 print '[%s] = [%s]' % (key, value)
22
23 time.sleep(5)
24
25file.close()
Note: See TracBrowser for help on using the repository browser.