source: people/peter.buschman/backup_monitoring/parsing/parsers/puredisk_status/test.py@ 1273

Last change on this file since 1273 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: 342 bytes
Line 
1
2import time
3
4from backup_monitoring.parsing.parsers import puredisk_status as parser
5
6file = open('test.txt', 'r')
7
8stream = parser.stream(file)
9
10for record in stream:
11
12 #print record
13
14 instance = parser.parse(record)
15
16 for key, value in instance.items():
17 print '[%s] = [%s]' % (key, value)
18
19file.close()
Note: See TracBrowser for help on using the repository browser.