Professional Web Applications Themes

HW description -> NIC names - Sun Solaris

Hello All, I need to automatically generate the list of available network interface names (in the form like "eri0,hme0,hme1,qfe0,qfe1,qfe2,qfe3") from [sort-of :-] formalized hardware description, where machine model, CPUs, SBus/PCI cards are listed in the form, as much close to Sun FRU names as possible. It seemed simple at first - if I've got a QFE card, just add 4 other qfe's.. But what if it's a e4500 with extra hme on each board? I'm sure I'll miss something while counting the boards ... Luckily, the hardware variations in the house are limited. However, the script must be "looser friendly", ...

  1. #1

    Default HW description -> NIC names

    Hello All,

    I need to automatically generate the list of available
    network interface names (in the form like
    "eri0,hme0,hme1,qfe0,qfe1,qfe2,qfe3")
    from [sort-of :-] formalized hardware description,
    where machine model, CPUs, SBus/PCI cards are listed
    in the form, as much close to Sun FRU names as possible.

    It seemed simple at first - if I've got a QFE card,
    just add 4 other qfe's.. But what if it's a e4500
    with extra hme on each board? I'm sure I'll miss something
    while counting the boards ...
    Luckily, the hardware variations in the house
    are limited. However, the script must be "looser friendly",
    and make addition of new hardware variations trivial.
    "Just add a line to the config file..."
    Or maybe...
    "Just wget a new version from http://..." ?

    Somehow it sounds to me like I'm reinventing the wheel.
    Could someone confirm it, please?
    Any pieces of code that can be utilised are welcome,
    as are any raw ideas.

    Thank you,
    Andrei
    aryzhov Guest

  2. #2

    Default Re: HW description -> NIC names



    On Tue, 24 Jun 2003, aryzhov wrote:
    > Hello All,
    >
    > I need to automatically generate the list of available
    > network interface names (in the form like
    > "eri0,hme0,hme1,qfe0,qfe1,qfe2,qfe3")
    > from [sort-of :-] formalized hardware description,
    > where machine model, CPUs, SBus/PCI cards are listed
    > in the form, as much close to Sun FRU names as possible.
    Well, you could scan the /etc/path_to_inst file for network cards that
    file would give you the name AND the instance, even if its not used. The
    problem being that it "saves" configuration data, even if the card is
    removed.

    "/sbus6,0/SUNW,qfe2,8c00000" 0 "qfe"
    "/sbus6,0/SUNW,qfe2,8c10000" 1 "qfe"
    "/sbus6,0/SUNW,qfe2,8c20000" 2 "qfe"
    "/sbus6,0/SUNW,qfe2,8c30000" 3 "qfe"

    Do you only want those that are actually used? then ifconfig -a could be
    used as a base, or any of the netstat outputs maybe, which also list used
    interfaces.

    'netstat -i | cut -f1 -d\ | tail +2'

    That is probably more easy...
    > It seemed simple at first - if I've got a QFE card,
    > just add 4 other qfe's.. But what if it's a e4500
    > with extra hme on each board? I'm sure I'll miss something
    > while counting the boards ...
    > Luckily, the hardware variations in the house
    > are limited. However, the script must be "looser friendly",
    > and make addition of new hardware variations trivial.
    > "Just add a line to the config file..."
    > Or maybe...
    > "Just wget a new version from http://..." ?
    >
    > Somehow it sounds to me like I'm reinventing the wheel.
    > Could someone confirm it, please?
    > Any pieces of code that can be utilised are welcome,
    > as are any raw ideas.
    >
    > Thank you,
    > Andrei
    >
    /Johan A

    Mr. Johan Andersson Guest

  3. #3

    Default Re: HW description -> NIC names



    On Wed, 25 Jun 2003, Mr. Johan Andersson wrote:
    >
    >
    > On Tue, 24 Jun 2003, aryzhov wrote:
    >
    > > Hello All,
    > >
    > > I need to automatically generate the list of available
    > > network interface names (in the form like
    > > "eri0,hme0,hme1,qfe0,qfe1,qfe2,qfe3")
    > > from [sort-of :-] formalized hardware description,
    > > where machine model, CPUs, SBus/PCI cards are listed
    > > in the form, as much close to Sun FRU names as possible.
    >
    > Well, you could scan the /etc/path_to_inst file for network cards that
    > file would give you the name AND the instance, even if its not used. The
    > problem being that it "saves" configuration data, even if the card is
    > removed.
    >
    > "/sbus6,0/SUNW,qfe2,8c00000" 0 "qfe"
    > "/sbus6,0/SUNW,qfe2,8c10000" 1 "qfe"
    > "/sbus6,0/SUNW,qfe2,8c20000" 2 "qfe"
    > "/sbus6,0/SUNW,qfe2,8c30000" 3 "qfe"
    >
    > Do you only want those that are actually used? then ifconfig -a could be
    > used as a base, or any of the netstat outputs maybe, which also list used
    > interfaces.
    >
    > 'netstat -i | cut -f1 -d\ | tail +2'
    >
    > That is probably more easy...
    >
    > > It seemed simple at first - if I've got a QFE card,
    > > just add 4 other qfe's.. But what if it's a e4500
    > > with extra hme on each board? I'm sure I'll miss something
    > > while counting the boards ...
    > > Luckily, the hardware variations in the house
    > > are limited. However, the script must be "looser friendly",
    > > and make addition of new hardware variations trivial.
    > > "Just add a line to the config file..."
    > > Or maybe...
    > > "Just wget a new version from http://..." ?
    > >
    > > Somehow it sounds to me like I'm reinventing the wheel.
    > > Could someone confirm it, please?
    > > Any pieces of code that can be utilised are welcome,
    > > as are any raw ideas.
    > >
    > > Thank you,
    > > Andrei
    > >
    >
    > /Johan A
    Sorry, didnt read the question well enough...
    I would probably use a db and perl script for this.

    /Johan A

    Mr. Johan Andersson Guest

  4. #4

    Default Re: HW description -> NIC names

    "Mr. Johan Andersson" <johansolace.mh.se> wrote in message news:<Pine.GSO.4.53.0306251937550.18103krynn.sola ce.mh.se>...
    > On Wed, 25 Jun 2003, Mr. Johan Andersson wrote:
    >
    > >
    > >
    > > On Tue, 24 Jun 2003, aryzhov wrote:
    > >
    > > > Hello All,
    > > >
    > > > I need to automatically generate the list of available
    > > > network interface names (in the form like
    > > > "eri0,hme0,hme1,qfe0,qfe1,qfe2,qfe3")
    > > > from [sort-of :-] formalized hardware description,
    > > > where machine model, CPUs, SBus/PCI cards are listed
    > > > in the form, as much close to Sun FRU names as possible.
    > >
    > > Well, you could scan the /etc/path_to_inst file for network cards that
    > > file would give you the name AND the instance, even if its not used. The
    > > problem being that it "saves" configuration data, even if the card is
    > > removed.
    > >
    > > "/sbus6,0/SUNW,qfe2,8c00000" 0 "qfe"
    > > "/sbus6,0/SUNW,qfe2,8c10000" 1 "qfe"
    > > "/sbus6,0/SUNW,qfe2,8c20000" 2 "qfe"
    > > "/sbus6,0/SUNW,qfe2,8c30000" 3 "qfe"
    > >
    >
    > Sorry, didnt read the question well enough...
    > I would probably use a db and perl script for this.
    >
    > /Johan A
    Yeah, I should have made it clear - the script must run at pre-jumpstart phase
    of client configuration (the client isn't booted yet), so the HW info
    is available mostly from the procurement database.

    'Course it would be alot easier to fetch this information at Jumpstart
    runtime (like, in begin script), but it isn't an option :-(
    All must be configured while the machine isn't yet unpacked.
    aryzhov Guest

Similar Threads

  1. Description Search
    By Paul D. Kraus in forum PERL Beginners
    Replies: 6
    Last Post: October 18th, 08:36 AM
  2. Description of onstat -C
    By Art S. Kagel in forum Informix
    Replies: 1
    Last Post: August 28th, 01:41 PM
  3. Associate a description to a jpg
    By Gianluca in forum Macromedia Flash
    Replies: 1
    Last Post: August 12th, 07:42 AM
  4. HELP! pstack description...
    By williechoi in forum UNIX Programming
    Replies: 2
    Last Post: July 31st, 06:55 PM
  5. Machine names v. User names
    By Pete Bradshaw in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 15th, 03:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139