someload

command module
v0.0.0-...-f57a888 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: GPL-2.0 Imports: 15 Imported by: 0

README

someload

Generate load via external scripts

Installation

Download and install go.

Then from your go path

# go get github.com/julsemaan/someload

Switch to the directory that contains the code

# go get ../.
# go install someload.go

Example usage :

# someload --help
# someload -t 300 -l /dev/shm/someload.log -x mock_data.csv -type radius_eap -w 15 -- -a 10.0.0.100 -s radius -N30:s:02:02:00:00:00:02:example -N4:x:ac150284 -N87:s:10003
# someload -t 300 -l /dev/shm/someload.log -x mock_data.csv -type http -w 8 -- https://10.0.0.100/captive-portal --insecure
# someload -t 300 -l /dev/shm/someload.log -x mock_data.csv -type acct -w 15 -- --server=10.0.0.100 --secret=radius --nas-ip-address=172.21.2.132
# someload -t 300 -l /dev/shm/someload.log -x mock_data.csv -type dhcp -w 1 -- --server=10.0.0.100

Arguments after -- are passed to the script that is called.

Mock data is | separated and must be of the following format : username|password|mac_address|ip_address|dhcp_fingerprint|dhcp_vendor

External scripts used by type (must be in the path)

  • radius_eap : eapol_test
  • dhcp : dhcp_test
  • acct : acct_test
  • http : curl

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL