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.