(Free)BSD postez moi votre /var/run/dmesg.boot et autres questions

BSD postez moi votre /var/run/dmesg.boot et autres questions (Free) - Logiciels - Linux et OS Alternatifs

Marsh Posté le 24-01-2004 à 13:33:51    

siouplé, c'est pour développer (gdesklets) et j'ai pas de FreeBSD sous la main
 
 
je suis intéressé aussi par Open et Net si ce fichier existe également. le but étant de récupérer des informations sur le système (modèle CPU par exemple)
 
autre question :
 
quel est l'emplacement de ifconfig sur ces BSD ?
 
/sbin/ifconfig ?
 
 
merki


Message édité par Taz le 24-01-2004 à 13:43:07
Reply

Marsh Posté le 24-01-2004 à 13:33:51   

Reply

Marsh Posté le 24-01-2004 à 13:43:07    

alors sous openbsd :
le dmesg :

Citation :


avail mem = 242352128 (236672K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 01/21/03, BIOS32 rev. 0 @ 0xfdae0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, no battery
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf78c0/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SIS 85C503 PCI System I/O Chipset" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SIS 735 Host-PCI" rev 0x01
ppb0 at pci0 dev 1 function 0 "SIS 86C201 Host-AGP" rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 2 function 0 "SIS 85C503 PCI System I/O Chipset" rev 0x00
ohci0 at pci0 dev 2 function 2 "SIS 5597/5598 USB" rev 0x07: irq 12, OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3 "SIS 5597/5598 USB" rev 0x07: irq 5, OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pciide0 at pci0 dev 2 function 5 "SIS 5513 EIDE" rev 0xd0: 735: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALL EX6.4A>
wd0: 16-sector PIO, LBA, 6149MB, 13328 cyl, 15 head, 63 sec, 12594960 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: <MAXTOR 6L040J2>
wd1: 16-sector PIO, LBA, 38172MB, 16383 cyl, 16 head, 63 sec, 78177792 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
auich0 at pci0 dev 2 function 7 "SIS 7012 AC97 Audio" rev 0xa0: irq 10, SiS7012 AC97
ac97: codec id 0x434d4941
audio0 at auich0
sis0 at pci0 dev 3 function 0 "SIS 900 10/100BaseTX" rev 0x90: irq 5 address 00:0a:e6:7a:ef:18
ukphy0 at sis0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000020, model 0x0020, rev. 1
vga1 at pci0 dev 9 function 0 "S3 ViRGE DX/GX" rev 0x01
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ne3 at pci0 dev 13 function 0 "Realtek 8029" rev 0x00: irq 10
ne3: address 52:54:05:fd:b2:99
uhci0 at pci0 dev 19 function 0 "VIA VT83C572 USB" rev 0x50: irq 11
usb2 at uhci0: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 19 function 1 "VIA VT83C572 USB" rev 0x50: irq 11
usb3 at uhci1: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
"VIA VT6202 USB 2.0" rev 0x51 at pci0 dev 19 function 2 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask d860 netmask dc60 ttymask dce2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
wd1: no disk label
dkcsum: wd1 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uhub2: port error, restarting port 1
uhub2: port error, giving up port 1
uhub2: port error, restarting port 2
uhub2: port error, giving up port 2
uhub3: port error, restarting port 1
uhub3: port error, giving up port 1
uhub3: port error, restarting port 2
uhub3: port error, giving up port 2
wd1: no disk label
syncing disks... OpenBSD 3.4 (GENERIC) #18: Wed Sep 17 03:34:47 MDT 2003
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon Model 4 (Thunderbird) ("AuthenticAMD" 686-class) 697 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267956224 (261676K)
avail mem = 242352128 (236672K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 01/21/03, BIOS32 rev. 0 @ 0xfdae0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, no battery
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf78c0/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SIS 85C503 PCI System I/O Chipset" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SIS 735 Host-PCI" rev 0x01
ppb0 at pci0 dev 1 function 0 "SIS 86C201 Host-AGP" rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 2 function 0 "SIS 85C503 PCI System I/O Chipset" rev 0x00
ohci0 at pci0 dev 2 function 2 "SIS 5597/5598 USB" rev 0x07: irq 12, OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3 "SIS 5597/5598 USB" rev 0x07: irq 5, OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pciide0 at pci0 dev 2 function 5 "SIS 5513 EIDE" rev 0xd0: 735: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALL EX6.4A>
wd0: 16-sector PIO, LBA, 6149MB, 13328 cyl, 15 head, 63 sec, 12594960 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: <MAXTOR 6L040J2>
wd1: 16-sector PIO, LBA, 38172MB, 16383 cyl, 16 head, 63 sec, 78177792 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
auich0 at pci0 dev 2 function 7 "SIS 7012 AC97 Audio" rev 0xa0: irq 10, SiS7012 AC97
ac97: codec id 0x434d4941
audio0 at auich0
sis0 at pci0 dev 3 function 0 "SIS 900 10/100BaseTX" rev 0x90: irq 5 address 00:0a:e6:7a:ef:18
ukphy0 at sis0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000020, model 0x0020, rev. 1
vga1 at pci0 dev 9 function 0 "S3 ViRGE DX/GX" rev 0x01
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ne3 at pci0 dev 13 function 0 "Realtek 8029" rev 0x00: irq 10
ne3: address 52:54:05:fd:b2:99
uhci0 at pci0 dev 19 function 0 "VIA VT83C572 USB" rev 0x50: irq 11
usb2 at uhci0: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 19 function 1 "VIA VT83C572 USB" rev 0x50: irq 11
usb3 at uhci1: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
"VIA VT6202 USB 2.0" rev 0x51 at pci0 dev 19 function 2 not configured
byte 7232
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask d860 netmask dc60 ttymask dce2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


 
et ifconfig est ds :  # /sbin/ifconfig
 
vala :)

Reply

Marsh Posté le 24-01-2004 à 13:43:43    

ok, merci :D

Reply

Marsh Posté le 24-01-2004 à 13:45:21    

kenshln a écrit :

alors sous openbsd :
le dmesg :

c'est une commande ou bel et bien (accessible en tant qu'utilisateur?) /var/run/dmesg.boot ?

Reply

Marsh Posté le 24-01-2004 à 13:57:12    

c'est une commande, mais (sous freebsd du moins) il garde une copie des messages du boot, car dmesg ne peut contenir qu'une quantité limitée de messages, messages qui sont remplacés par les nouveaux, un peu comme avec Linux.

Reply

Marsh Posté le 24-01-2004 à 14:02:27    

Code :
  1. $ uname -a
  2. OpenBSD brutus.stdc.org 3.4 J#0 i386
  3. $ cat /var/run/dmesg.boot
  4. OpenBSD 3.4-current (J) #0: Fri Jan 23 08:09:32 CET 2004
  5.     root@brutus.stdc.org:/usr/src/sys/arch/i386/compile/J
  6. cpu0: Intel Pentium III ("GenuineIntel" 686-class, 128KB L2 cache) 568 MHz
  7. cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXS
  8. R,SIMD
  9. real mem  = 469348352 (458348K)
  10. avail mem = 311332864 (304036K)
  11. using 4278 buffers containing 141430784 bytes (138116K) of memory
  12. mainbus0 (root)
  13. bios0 at mainbus0: AT/286+(a3) BIOS, date 06/28/00, BIOS32 rev. 0 @ 0xfb380
  14. apm0 at bios0: Power Management spec V1.2
  15. apm0: AC on, battery charge unknown
  16. pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xb808
  17. pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf00/144 (7 entries)
  18. pcibios0: PCI Exclusive IRQs: 5 10 11 12
  19. pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00)
  20. pcibios0: PCI bus #1 is the last bus
  21. bios0: ROM list: 0xc0000/0x8000
  22. pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
  23. pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
  24. ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
  25. pci1 at ppb0 bus 1
  26. pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
  27. pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wi
  28. red to compatibility, channel 1 wired to compatibility
  29. wd0 at pciide0 channel 0 drive 0: <ST330630A>
  30. wd0: 16-sector PIO, LBA, 29188MB, 59777640 sectors
  31. wd1 at pciide0 channel 0 drive 1: <SAMSUNG SW0434A (4.3GB)>
  32. wd1: 16-sector PIO, LBA, 4104MB, 8406720 sectors
  33. wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
  34. wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
  35. atapiscsi0 at pciide0 channel 1 drive 0
  36. scsibus0 at atapiscsi0: 2 targets
  37. cd0 at scsibus0 targ 0 lun 0: <MATSHITA, CD-ROM CR-5850, ZD18> SCSI0 5/cdrom rem
  38. ovable
  39. cd0(pciide0:1:0): using PIO mode 0, DMA mode 1
  40. uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
  41. usb0 at uhci0: USB revision 1.0
  42. uhub0 at usb0
  43. uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  44. uhub0: 2 ports with 2 removable, self powered
  45. "Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 7 function 3 not configured
  46. vga1 at pci0 dev 9 function 0 "Tseng Labs ET6000/ET6100" rev 0x30
  47. wsdisplay0 at vga1: console (80x25, vt100 emulation)
  48. wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
  49. vr0 at pci0 dev 11 function 0 "VIA RhineII-2" rev 0x43: irq 5 address 00:50:ba:2
  50. b:f0:2a
  51. ukphy0 at vr0 phy 8: Generic IEEE 802.3u media interface
  52. ukphy0: OUI 0x0005be, model 0x0008, rev. 0
  53. vr1 at pci0 dev 13 function 0 "VIA RhineII-2" rev 0x43: irq 12 address 00:50:ba:
  54. 2b:d5:71
  55. ukphy1 at vr1 phy 8: Generic IEEE 802.3u media interface
  56. ukphy1: OUI 0x0005be, model 0x0008, rev. 0
  57. wi0 at pci0 dev 15 function 0 "Intersil PRISM2.5 Mini-PCI WLAN" rev 0x01: irq 10
  58. wi0: PRISM2.5 ISL3874A(Mini-PCI), Firmware 1.0.7 (primary), 1.3.6 (station), add
  59. ress 00:09:5b:41:d8:19
  60. ne3 at pci0 dev 17 function 0 "Realtek 8029" rev 0x00: irq 11
  61. ne3: address 00:80:ad:97:92:c8
  62. isa0 at pcib0
  63. isadma0 at isa0
  64. pckbc0 at isa0 port 0x60/5
  65. pckbd0 at pckbc0 (kbd slot)
  66. pckbc0: using irq 1 for kbd slot
  67. wskbd0 at pckbd0: console keyboard, using wsdisplay0
  68. pcppi0 at isa0 port 0x61
  69. midi0 at pcppi0: <PC speaker>
  70. sysbeep0 at pcppi0
  71. lpt0 at isa0 port 0x378/4 irq 7
  72. lm0 at isa0 port 0x290/8: LM79
  73. npx0 at isa0 port 0xf0/16: using exception 16
  74. pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
  75. pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
  76. fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
  77. fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
  78. biomask c840 netmask dc60 ttymask dce2
  79. pctr: 686-class user-level performance counters enabled
  80. mtrr: Pentium Pro MTRR support
  81. root on wd0a
  82. rootdev=0x0 rrootdev=0x300 rawdev=0x302


Reply

Marsh Posté le 24-01-2004 à 14:06:48    

taz a écrit :


le but étant de récupérer des informations sur le système (modèle CPU par exemple)


 
Pourquoi tu n'utilises pas les sysctl plutot ?
 
Car ce qui se trouve dans le dmesg.boot n'a pas un format fixe, c'est susceptible d'etre change du jour au lendemain car destine a l'utilisateur, pas a etre parsé.
 
> quel est l'emplacement de ifconfig sur ces BSD ?
 
/sbin/ifconfig sous OpenBSD.
 

Reply

Marsh Posté le 24-01-2004 à 14:14:25    

merci, ça va j'ai ce que je veux.

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed