Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nv_NODE_DATE_TIME
- Nv_stats_172550_160211_230030
- Nv_stats_172550_160212_142624
- Nv_stats_75AKPD0_160211_230030
- Nv_stats_75AKPD0_160212_142624
- Nv_stats_172550_160211_230030
- Nv_stats_75AKPD0_160212_142624
- Nv_stats_172550_160211_230030
- Nv_stats_75AKPD0_160212_142624
- import os
- iostatslocalpath="/root/svc/testing/"
- svchost='SVC_Cluster01'
- nodenames=['75AKMX0', '75AKPD0', '172550', '172561']
- filelist=sorted(os.listdir(iostatslocalpath+svchost+'/.'))
- totalfilenumber=len(filelist)
- def parse(filename, length):
- print filename[0]
- print test[length-1]
- for nodename in nodenames:
- test=[]
- test[:]=[]
- for file in filelist:
- if nodename and "Nv" in file:
- test.append(file)
- parse(test, len(test))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement