Skip to content

Newlode/forcepoint-ngfw-licenses

Repository files navigation

Forcepoint-ngfw-licenses

config.yml sample

contact_info section is mandatory

---
concurrent_workers: 12             # Optional, default: 8
licences_output_dir: "out"         # Optional, default: jar-files
resseller: ""                      # Optional, default: ""
binding: "xxxxx-xxxxx-xxxxx-xxxxx" # Optional, default: ""

contact_info:
  firstname: "Foo"
  lastname:  "Bar"
  email:     "foo.bar@corp.com"
  phone:     "+33612345678"
  company:   "My Corp"
  address:   "12 rue Portalis"
  zip:       "75008"
  city:      "Paris"
  country:   "FR"
  state:     "75"

# Feature not yet implemented
#smc: # install licences on the SMC
#  ip: ""
#  port: ""
#  api_key: ""

Usage

You have to download "Purchase" html files, or put all engines PoS into one or many files and give them to forcepoint-licenses binary as arguments.

To verify PoS validity and status

This command will parse all files given from commande line and search for Forcepoint NGFW PoS. Each of them will be load on Forcepoint license center and registration status will be retrived.

You can use --format flag to request JSON or CSV output.

> forcepoint-licenses verify Purchase-Distributor-2019-08-15_151007.html engine_list.txt
7 PoS read from 2 files

Found 7 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"VALID", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"VALID", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

To register PoS

This command will verify all PoS, and register them, using informations from config.yml file.

> forcepoint-licenses register Purchase-Distributor-2019-08-15_151007.html engine_list.txt
7 PoS read from 2 files

Found 7 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", Company:"My Corp"}MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", 
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"VALID", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"VALID", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

2 new PoS have been registred

Found 7 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

To download PoS

This command will verify and register all PoS using informations from config.yml, and then download licenses files.

> forcepoint-licenses download Purchase-Distributor-2019-08-15_151007.html engine_list.txt
7 PoS read from 2 files

Found 7 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

0 new PoS have been registred

Found 7 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 1105 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 2101 Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

7 license files have been downloaded in './out/' directory

All steps can be done at once:

> forcepoint-licenses download Purchase-Distributor-2019-08-15_151007.html
1 PoS read from 1 files

Found 1 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"VALID", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

1 new PoS have been registred

Found 1 valid PoS:
- XXXXXXXXXX-XXXXXXXXXX {LicenseStatus:"REGISTERED", SN:"N0CXXXXXXXXX", ProductName:"Forcepoint NGFW 120W Appliance", MaintenanceStatus:"Activated", MaintenanceEndDate:"2023-12-22", Company:"My Corp"}

1 license files have been downloaded in './out/' directory