API Reference

Command Line Interface

The help command will return all possible commands that can be run in netBooter B and netBooter DU series PDUs.

The following tables summarize various CLI commands available via Telnet or direct serial port connection.

Network Configuration Commands

CLI CommandDescription
nwshowDisplays network settings and status, including IP address, gateway, MAC address, and more.
nwsetResets the network interface.
dhcp xSets IP to DHCP mode 1 or Static mode 0.
ip ip maskSets the static IP address of the device to ip and the mask to mask. Only applicable if DHCP mode is disabled.
gw gwSets gateway IP to gw for static IP mode. Only applicable if DHCP mode is disabled.
macDisplays the Ethernet port MAC address.
web xEnables or disables web access. Setting to "1" = Web access On, "0" = Web access Off.
mask xSets the subnet mask of the device to x.
emailsendSends a test mail to the configured email(s).
hp xSets the HTTP port to x.
tp portSets the Telnet port to x.
helpDisplays the help menu.
ipsrc ipSets filtered source IP to ip, allowing only that IP to access the unit.
loginLogs into the unit.
logoutLogs out of the unit.
sysshowShows system information.
verShows firmware version.

Power Outlet Operations

CLI CommandDescription
pset arg1 arg2Sets outlet arg1 state to value arg2, where state 0 = OFF, 1 = ON.
Example: pset 2 1 sets outlet 2 to ON.
ps xSets all outlets to state x, where 0 = OFF and 1 = ON.
pshowDisplays outlet status.
rb xReboots outlet x.
gpset arg1 arg2Sets outlet group arg1 to state arg21 (0 = OFF, 1 = ON).
Example: gpset 1 0 turns off all outlets in group 1.
grb nReboots outlet group n.