Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string cr2016 = "HM-RC-4\tHM-RC-4-B\tHM-RC-Key3\tHM-RC-Key3-B\tHM-RC-P1\tHM-RC-Sec3\tHM-RC-Sec3-B";
- string cr2032 = "HM-PB-2-WM\tHM-PB-4-WM\tHM-PBI-4-FM\tHM-SCI-3-FM\tHM-Sec-TiS\tHM-SwI-3-FM\tHM-Sec-TiS";
- string lr14x2 = "HM-Sec-Sir-WM\tHM-OU-CFM-TW";
- string lr44x2 = "HM-Sec-SC\tHM-Sec-SC2\tHM-Sec-SC-2\tHM-Sec-RHS";
- string lr6x2 = "HM-CC-VD\tHM-CC-RT-DN\tHM-Sec-WDS\tHM-Sec-WDS-2\tHM-CC-TC\tHM-Dis-TD-T\tHB-UW-Sen-THPL-I\tHM-TC-IT-WM-W-EU\tHM-WDS40-TH-I\tHM-WDS40-TH-I-2\tHM-WDS10-TH-O\tHmIP-SMI\tHMIP-eTRV\tHM-WDS30-OT2-SM-2\tHmIP-SMO\tHmIP-SMO-A\tHmIP-SPI\tHmIP-STHD";
- string lr6x3 = "HM-Sec-MDIR\tHM-Sec-MDIR-2\tHM-Sec-SD\tHM-Sec-Key\tHM-Sec-Key-S\tHM-Sec-Key-O\tHM-Sen-Wa-Od\tHM-Sen-MDIR\tHM-Sen-MDIR-O\tHM-Sen-MDIR-O-2\tHM-WDS100-C6-O\tHM-WDS100-C6-O-2\tHM-WDS100-C6-O-2\tHmIP-ASIR";
- string lr6x4 = "HM-CCU-1\tHM-ES-TX-WM\tHM-WDC7000";
- string lr3x1 = "HM-RC-4-2\tHM-RC-4-3\tHM-RC-Key4-2\tHM-RC-Key4-3\tHM-RC-Sec4-2\tHM-RC-Sec4-3\tHM-Sec-RHS-2\tHM-Sec-SCo\tHmIP-KRC4\tHmIP-KRCA\tHmIP-RC8\tHmIP-SRH\tHMIP-SWDO";
- string lr3x2 = "HM-Dis-WM55\tHM-Dis-EP-WM55\tHM-PB-2-WM55\tHM-PB-2-WM55-2\tHM-PB-6-WM55\tHM-PBI-2-FM\tHM-RC-8\tHM-Sen-DB-PCB\tHM-Sen-EP\tHM-Sen-MDIR-SM\tHM-Sen-MDIR-WM55\tHM-TC-IT-WM-W-EU\tHM-WDS30-T-O\tHM-WDS30-OT2-SM\tHmIP-STH\tHMIP-WRC2\tHMIP-WRC6\tHMIP-WTH\tHMIP-WTH-2";
- string lr3x3 = "HM-PB-4Dis-WM\tHM-PB-4Dis-WM-2\tHM-RC-Dis-H-x-EU\tHM-Sen-LI-O";
- string lr3x3a = "HM-RC-19\tHM-RC-19-B\tHM-RC-12\tHM-RC-12-B\tHM-RC-12-W";
- string block9 = "HM-LC-Sw1-Ba-PCB\tHM-LC-Sw4-PCB\tHM-MOD-EM-8\tHM-MOD-Re-8\tHM-Sen-RD-O\tHM-OU-CM-PCB\tHM-LC-Sw4-WM";
- string fixed = "HM-Sec-SD-2\tHMIP-SWSD";
- string recharge = "HM-Sec-Win\tHM-Sec-SFA-SM";
- integer num_lr3 = 0;
- integer num_lr3a = 0;
- integer num_lr6 = 0;
- integer num_lr14 = 0;
- integer num_lr44 = 0;
- integer num_cr2016 = 0;
- integer num_cr2032 = 0;
- integer num_block9 = 0;
- integer num_fixed = 0;
- integer num_recharge = 0;
- object devs = dom.GetObject( ID_DEVICES );
- string dev = "";
- foreach (dev, devs.EnumIDs()) {
- object oDev = dom.GetObject(dev);
- string index;
- foreach (index, cr2016) {if (index == oDev.HssType()) {num_cr2016 = num_cr2016 + 1;}}
- foreach (index, cr2032) {if (index == oDev.HssType()) {num_cr2032 = num_cr2032 + 1;}}
- foreach (index, lr14x2) {if (index == oDev.HssType()) {num_lr14 = num_lr14 + 2;}}
- foreach (index, lr44x2) {if (index == oDev.HssType()) {num_lr44 = num_lr44 + 2;}}
- foreach (index, lr6x2) {if (index == oDev.HssType()) {num_lr6 = num_lr6 + 2;}}
- foreach (index, lr6x3) {if (index == oDev.HssType()) {num_lr6 = num_lr6 + 3;}}
- foreach (index, lr6x4) {if (index == oDev.HssType()) {num_lr6 = num_lr6 + 4;}}
- foreach (index, lr3x1) {if (index == oDev.HssType()) {num_lr3 = num_lr3 + 1;}}
- foreach (index, lr3x2) {if (index == oDev.HssType()) {num_lr3 = num_lr3 + 2;}}
- foreach (index, lr3x3) {if (index == oDev.HssType()) {num_lr3 = num_lr3 + 3;}}
- foreach (index, lr3x3a) {if (index == oDev.HssType()) {num_lr3a = num_lr3a + 1;}}
- foreach (index, block9) {if (index == oDev.HssType()) {num_block9 = num_block9 + 1;}}
- foreach (index, fixed) {if (index == oDev.HssType()) {num_fixed = num_fixed + 1;}}
- foreach (index, recharge) {if (index == oDev.HssType()) {num_recharge = num_recharge + 1;}}
- }
- WriteLine("Anzahl CR2016 = "#num_cr2016);
- WriteLine("Anzahl CR2032 = "#num_cr2032);
- WriteLine("Anzahl LR03 = "#num_lr3);
- WriteLine("Anzahl LR06 = "#num_lr6);
- WriteLine("Anzahl LR14 = "#num_lr14);
- WriteLine("Anzahl LR44 = "#num_lr44);
- WriteLine("Anzahl LR3a = "#num_lr3a);
- WriteLine("Anzahl 9VBlock= "#num_block9);
- WriteLine("Anzahl Fixed = "#num_fixed);
- WriteLine("Anzahl Rechar.= "#num_recharge);
Advertisement
Add Comment
Please, Sign In to add comment