Appendix A: Linux Commands and Source Code

Appendix A. Linux Commands and Source Code

The console server platform is a dedicated Linux computer, optimized to provide monitoring and secure access to serial and network consoles of critical server systems and their supporting power and networking infrastructure.

Black Box console servers are built on the 2.4 uCLinux kernel as developed by the uCLinux project. This is GPL code and source can be found at      . Some uCLinux commands have config files that can be altered (e.g. portmanager, inetd, init, ssh/sshd/scp/sshkeygen,

ucd-snmpd, samba, fnord, sslwrap). Other commands you can run and do neat stuff with (e.g. loopback, bash (shell), ftp, hwclock, iproute, iptables, netcat, ifconfig, mii-tool,netstat, route, ping, portmap, pppd, routed, setserial, smtpclient, stty, stunel, tcpdump, tftp, tip, traceroute) Below are most of the standard uCLinux and BusyBox commands (and some custom Black Box commands) that are in the default build tree. The Administrator can use these to configure the console server, and monitor and manage attached serial console and host devices:

addgroup * adduser * agetty arp arping bash busybox cat *

chat chgrp * chmod * chown * config cp * date *

dd*

deluser * df * dhcpd discard dmesg * echo * erase eraseall false * find flashw flatfsd ftp gen-keys getopt * gettyd grep * gunzip * gzip * hd hostname * httpd hwclock inetd inetd-echo init

ip ipmitool iptables

Add a group or add an user to a group Add an user

alternative Linux getty Manipulate the system ARP cache Send ARP requests/replies

GNU Bourne-Again Shell

Swiss army knife of embedded Linux commands Concatenate FILE(s) and print them to stdout

Useful for interacting with a modem connected to stdin/stdout Change file access permissions

Change file access permissions Change file owner and group

Black Box tool to manipulate and query the system configuration from the command line Copy files and directories

Print or set the system date and time Convert and copy a file

Delete USER from the system Report filesystem disk space usage Dynamic Host Configuration Protocol server Network utility that listens on the discard port Print or control the kernel ring buffer

Print the specified ARGs to stdout Tool for erasing MTD partitions Tool for erasing entire MTD partitions Do nothing, unsuccessful

Search for files

Write data to individual flash devices

Daemon to save RAM file systems back to FLASH Internet file transfer program

SSH key generation program Parses command options Getty daemon

Print lines matching a pattern Compress or expand files Compress or expand files

ASCII, decimal, hexadecimal, octal dump Get or set hostname or DNS domain name Listen for incoming HTTP requests Query and set hardware clock (RTC) Network super-server daemon

Network echo utility Process control initialization

Show or manipulate routing, devices, policy routing and tunnels Linux IPMI manager

Administration tool for IPv4 packet filtering and NAT

724-746-5500 blackbox.com

161

Page 161
Image 161
Black Box 1101, 1102 manual Appendix a Linux Commands and Source Code, Appendix A. Linux Commands and Source Code