Last active
October 31, 2018 16:32
-
-
Save cmcdevitt/cca9cb1933054fd65ea52d197ed8db97 to your computer and use it in GitHub Desktop.
How many Vulnerability Groups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var count = new GlideAggregate('sn_vul_vulnerability'); | |
| count.addAggregate('COUNT'); | |
| //count.addEncodedQuery('state=2'); //State = Under Investigation | |
| count.query(); | |
| var vul_grp = 0; | |
| if (count.next()) { | |
| vul_grp = count.getAggregate('COUNT'); | |
| } | |
| gs.info('Number of VulGrps: ' + vul_grp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment