DFTSimuLab
Logic simulators and fault simulators



How to find host ID numbers and system info

  • Sun Solaris

  • Linux


    Solaris 2.6-2.8, Sun Blade, Ultra, Sparcstation

    1. Host name
      % /bin/hostname
      Example:
          % hostname
          timotej
      

    2. Host id
      % /bin/hostid
      Example:
          % hostid
          7275a099
      

    3. IP-number
      % /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
      

    4. Display OS version and hardware platform
      % /bin/uname -a
      Example:
          % uname -a
          SunOS unknown 5.7 Generic_xx sun4m sparc SUNW,SPARCstation-10
      

    Linux

    1. Linux kernel version
      % /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.
      

    2. Display gcc and glibc versions (for SCPAI simulator versions)
      % 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.
      

    3. Host name
      % /bin/hostname
      Example:
          % hostname
          kaktus.dftsimulab.com
      

    4. Network card (NIC) physical address
      % /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
      




    Home Products Ordering Contact

    Copyright © 2002-2003 DFTSimuLab. All rights reserved.