nimconfig tool is used to access the NIMs (Network Interface Modules).
When specifying the address, a linear addressing scheme is used and the following rules apply:
- The basic 0xA0 address space is mapped to linear address [0..0xFF].
- The extended 0xA2 address space (if any) is mapped to [0x100..0x1FF].
- If paging is used (XFP, QSFP+, QSFP28), page zero is mapped to [0x80..0xFF], page one is mapped to [0x100..0x17F], and so on, and the page select mechanism is handled automatically. Note that not all pages are necessarily valid, and if invalid, wrap around to page zero.
- CFP register space is [0x8000..0xFFFF]
Caching is used, so it generally takes longer time to read data the first time.
nimconfig terminates, it returns one of the following exit codes to the environment:
|An illegal option in the command line|
|An option argument was missing, invalid or out of range|
|Conflict between options or option values|
|Missing option(s) in the command line|
|There is a conflict in the configuration|
|A Napatech API function returned an error|
|An internal test has failed|
The tool is controlled by a number of command line options. All values can be entered in decimal or hex notation (
nimconfig --read --port <value> --addr <value> --len <value>
|Show help text and exit|
|Dump data from a specified area.|
|The port to access.|
|Address to access using linear addressing.|
|Length [1..128] of data in bytes.|
- Dump NIM data in hex format
nimconfig --read -p 0 --addr 0 --len 128