| DFTSimuLab |
| Logic simulators and fault simulators |
% /bin/hostname
Example:
% hostname
timotej
% /bin/hostid
Example:
% hostid
7275a099
% /sbin/ifconfig -a
Example:
% /sbin/ifconfig -a
lo0: flags=849 UP,LOOPBACK,RUNNING,MULTICAST mtu 8232
inet 127.0.0.1 netmask ff000000
le0: flags=4843 UP,BROADCAST,RUNNING,MULTICAST,DHCP mtu 1500
inet 192.168.1.101 netmask ffffff00 broadcast ...
!!! Your local IP-number in this example is: 192.168.1.101
% /bin/uname -a
Example:
% uname -a
SunOS unknown 5.7 Generic_xx sun4m sparc SUNW,SPARCstation-10
% /bin/uname -a
Example:
% uname -a
Linux kaktus.attbi.com 2.4.18-6mdk #1 ... i686 unknown
!!! Your Linux kernel version is 2.4.18.
% gcc -v
% rpm -q glibc (For Redhat rpm packages) or
% ls -l /lib/libc.so.6
Example:
% gcc -v
Reading specs from /usr/lib/gcc-lib/ix86-[dist]/2.96/specs
gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)
% ls -l /lib/libc.so.6
... /lib/libc.so.6 -> libc-2.2.4.so
!!! Your gcc version is 2.96 and glibc version is 2.2.
% /bin/hostname
Example:
% hostname
kaktus.dftsimulab.com
% /sbin/ifconfig -a
Example, assuming eth0 is your primary interface:
% /sbin/ifconfig -a | grep "eth0"
eth0 Link encap:Ethernet HWaddr 00:10:DC:60:C7:DC
!!! Your NIC address (48 bits) is: 0010DC60C7DC
Example of obtaining local IP-number:
% /sbin/ifconfig -a | grep "inet addr" | head -1
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask: ...
!!! Your local IP-number in this example is: 192.168.1.100
|
Copyright
© 2002-2003 DFTSimuLab. All rights reserved.