Jeff needs external account statistics by Thursday (#active accounts, #accounts created, Avg new accounts per month, Avg # of interactive sessions per month, 
Avg # of batch jobs per month

For both nm- and cv- accounts


ItemNMCV
#active accounts1204
#accounts created1141212
Avg new accounts per month133
Avg # of interactive sessions per month678
Avg # of batch jobs per month656


Showing my work

#active accounts

zia krowe >ypcat passwd|grep "nm-"|grep -v closed|wc -l

120


cvpost-master-2 root >ypcat passwd|grep "cv-"|grep -v closed|wc -l

4

#accounts created

zia krowe >grep "^Subject: NRAO account nm-" /lustre/aoc/admin/mail/newacct | sort | uniq|wc -l

1141

1141 accounts created since first record on Feb. 20, 2015.

152 of these accounts were created in the last 365 days.


cvpost-master-2 root >grep "^Subject: NRAO account cv-" /lustre/cv/admin/mail/newacct | sort | uniq|wc -l

212

212 accounts created since first record on  Jul. 6, 2015.

17 of these accounts were created in the last 365 days.

Avg new accounts per month

I used 90 months here because the first nm- account we created was on Feb. 20, 2015.

1141 accounts / 90 months = 12.7 new accounts per month in NM since first record on Feb. 20, 2015.

152 accounts / 12 months = 12.6 new accounts per month in NM in the last 365 days.


212 accounts / 84 months = 2.5 new accounts per month in CV since first record on Jul. 6, 2015.

17 accounts / 12 months = 1.4 new accounts per month in CV in the last 365 days.

Avg # of interactive sessions per month

nmpost-serv-1 root >/opt/services/moab/tools/moab/showhist.moab.pl -queue interactive -n 365 | grep "^User Name" | grep "nm\-" | wc -l
807

807 interactive jobs / 12 months = 67.3 interactive jobs per month in NM

[root@cvpost-serv-2 ~]# /opt/services/moab/tools/moab/showhist.moab.pl -queue interactive -n 365 | grep "^User Name" | grep "cv\-" | wc -l
95

95 interactive jobs / 12 months = 7.9 interactive jobs per month in CV

Avg # of batch jobs per month

nmpost-serv-1 root >/opt/services/moab/tools/moab/showhist.moab.pl -queue batch -n 365 | grep "^User Name" | grep "nm\-" | wc -l
780

780 batch jobs / 12 months = 65.0 batch jobs per month in NM


[root@cvpost-serv-2 ~]# /opt/services/moab/tools/moab/showhist.moab.pl -queue batch -n 365 | grep "^User Name" | grep "cv\-" | wc -l
74

74 batch jobs / 12 months = 6.2 batch jobs per month in CV




  • No labels