![DSS NETWORKS Gig-cPCI-3U User Manual Download Page 37](http://html1.mh-extra.com/html/dss-networks/gig-cpci-3u/gig-cpci-3u_user-manual_2535444037.webp)
GigMAC-CPCI-3U Network Interface Cards
Gig-CPCI-3U Gigabit Ethernet Switches
Board and Driver Users Manual
DSS NETWORKS, INC.
Doc
Version: 1.2
Page: 37
10.3.11 SWITCH STATUS SHOW FUNCTION
Note: This function is applicable for Model C5468 Gig-cPCI-3U switch/interface card
only.
vxWorks usage:
inShowSwitch(unit)
# unit = device index starting from 0
Linux usage:
./dmUtil –sw eth1
# eth1, eth2, etc.
Command output:
-> inShowSwitch
unit: 0, switch link sts: 0x39, rctl: 0x1
link: 0, upFlg: 1 (UP)
link: 1, upFlg: 0 (DOWN)
link: 2, upFlg: 0 (DOWN)
link: 3, upFlg: 1 (UP)
link: 4, upFlg: 1 (UP)
link: 5, upFlg: 1 (UP)
link: 6, upFlg: 0 (DOWN)
link: 7, upFlg: 0 (DOWN)
10.4 DPM DRIVER MANAGEMENT API
The dpm network driver management API is an api extension primarily used by the
‘dmUtil’ command line utility to enable various management functions or to acquire
driver status and statistics. The typical api usage sequence is as follows:
1. User enters ‘dmUtil’ command and parameters as shown in the following
example:
./dmUtil –s eth1
2. dmUtil parses command line and prepares an “ioctl” request block to send to
driver. A pointer to a application buffer to hold the text message results (for
example formatted statistics) is provided by dmUtil in the request block.
3. Driver receives ioctl request block performs action and copies result data to
applications message buffer.
The following is an API description of the management ioctl commands issued to the
driver from the ‘dmUtil’ application’s viewpoint: