Précédent   Forum des professionnels en informatique > Systèmes > Autres systèmes > Unix > Contribuez
Contribuez Vos contributions pour la rubrique Unix
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
Vieux 13/08/2007, 13h40   #1
Expert Confirmé
 
Avatar de Katyucha
 
Inscription : mars 2004
Messages : 3 053
Détails du profil
Informations personnelles :
Âge : 31

Informations forums :
Inscription : mars 2004
Messages : 3 053
Points : 2 933
Points : 2 933
Par défaut Création d'une FAQ Solaris!

Bonjour,

Vu l'interet porté par plusieurs d'entre vous sur Solaris 10, je vous propose la création d'une FAQ sur cet OS.

Qui peut y participer ? Bah tout le monde évidemment !

Comment ?
Poster en dessous votre Q/Rs comme ci dessous :



Question : Comment atteindre l'OBP ?

Réponse :
L'OBP n'est disponible que sur les ordinateurs à technologie SPARC (les non-PCs)
Il existe plusieurs façon d'atteindre l'OBP
Soit en faisant simplement : halt en root
Soit sur un clavier solaris via la touche STOP A
Soit sur une console vt, avec la combinaison : CTRL+SHIFT+B


A vos claviers
__________________
Ancien Rédacteur Linux && Unix / Nouveau retraité de DVP
The UNIX way of sex:
gunzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep

Je ne réponds ni aux messages privées, ni aux messages plein de fautes...
Katyucha est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/10/2007, 15h16   #2
Membre habitué
 
Avatar de ixterm
 
Inscription : mars 2005
Messages : 277
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 277
Points : 145
Points : 145
Question : comment monter ses partitions FAT?

Réponse : faire d'abord :
Code :
prtvtoc /dev/dsk/c0d0p0
(si vous n'avez qu'un seul disque)

le résultat vous donne le numéro des partitions montables ou non

ensuite :

Code :
mount -Fpcfs /dev/dsk/c0d0p0:1  /mnt/point_de_montage
(le "1" étant l'une des partitions FAT dont vous disposez)
ixterm est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/12/2007, 10h18   #3
Rédacteur/Modérateur
 
Avatar de millie
 
Inscription : juin 2006
Messages : 6 934
Détails du profil
Informations personnelles :
Localisation : Luxembourg

Informations forums :
Inscription : juin 2006
Messages : 6 934
Points : 6 713
Points : 6 713
Question : Comment tracer les appels systèmes d'un programme

Réponse : Utilisez la commande truss

Il est possible d'utiliser l'option -u pour ajouter des bibliothèques contenant des fonctions supplémentaires à tracer.

Code :
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
[millie@localhost:~/dvp]# uname -a
SunOS localhost 5.9 Generic_118558-08 sun4u sparc SUNW,Ultra-4
[millie@localhost:~/dvp]# truss date
execve("/usr/bin/date", 0xFFBFF85C, 0xFFBFF864)  argc = 1
resolvepath("/usr/bin/date", "/usr/bin/date", 1023) = 13
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
stat("/usr/bin/date", 0xFFBFF630)               = 0
open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
stat("/opt/lib/libc.so.1", 0xFFBFF138)   Err#2 ENOENT
stat("/opt/X11R6/lib/libc.so.1", 0xFFBFF138)    Err#2 ENOENT
stat("/net/solaris/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/usr/openwin/lib/libc.so.1", 0xFFBFF138)  Err#2 ENOENT
stat("/opt/X11R5/lib/libc.so.1", 0xFFBFF138)    Err#2 ENOENT
stat("/opt/X11R6/lib/libc.so.1", 0xFFBFF138)    Err#2 ENOENT
stat("/opt/local/lib/libc.so.1", 0xFFBFF138)    Err#2 ENOENT
stat("/usr/lib/libc.so.1", 0xFFBFF138)          = 0
resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
open("/usr/lib/libc.so.1", O_RDONLY)            = 3
mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000
mmap(0xFF280000, 701788, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
mmap(0xFF33C000, 24664, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000
munmap(0xFF32C000, 65536)                       = 0
memcntl(0xFF280000, 117372, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
stat("/opt/lib/libdl.so.1", 0xFFBFF138)  Err#2 ENOENT
stat("/opt/X11R6/lib/libdl.so.1", 0xFFBFF138)   Err#2 ENOENT
stat("/net/solaris/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/usr/openwin/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R5/lib/libdl.so.1", 0xFFBFF138)   Err#2 ENOENT
stat("/opt/X11R6/lib/libdl.so.1", 0xFFBFF138)   Err#2 ENOENT
stat("/opt/local/lib/libdl.so.1", 0xFFBFF138)   Err#2 ENOENT
stat("/usr/lib/libdl.so.1", 0xFFBFF138)         = 0
resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
open("/usr/lib/libdl.so.1", O_RDONLY)           = 3
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00002000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3FA000
mmap(0xFF3FA000, 1894, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3FA000
close(3)                                        = 0
stat("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", 0xFFBFEF28) = 0
resolvepath("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", "/usr/platform/sun4u/lib/libc_psr.so.1", 1023) = 37
open("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00002000, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3E6000
mmap(0xFF3E6000, 13544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3E6000
close(3)                                        = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF390000
munmap(0xFF3A0000, 8192)                        = 0
getustack(0xFFBFF46C)
getrlimit(RLIMIT_STACK, 0xFFBFF464)             = 0
getcontext(0xFFBFF2A0)
setustack(0xFF343A5C)
brk(0x00022508)                                 = 0
brk(0x00024508)                                 = 0
time()                                          = 1196500531
brk(0x00024508)                                 = 0
brk(0x00026508)                                 = 0
brk(0x00026508)                                 = 0
brk(0x00028508)                                 = 0
open("/usr/share/lib/zoneinfo/MET", O_RDONLY)   = 3
fstat64(3, 0xFFBFF608)                          = 0
read(3, " T Z i f\0\0\0\0\0\0\0\0".., 755)      = 755
close(3)                                        = 0
ioctl(1, TCGETA, 0xFFBFF59C)                    = 0
fstat64(1, 0xFFBFF4B8)                          = 0
Sat Dec  1 10:15:31 MET 2007
write(1, " S a t   D e c     1   1".., 29)      = 29
_exit(0)
Sous linux, il est possible d'utiliser strace
__________________
Je ne répondrai à aucune question technique en privé
millie est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/12/2007, 22h17   #4
Membre habitué
 
Avatar de ixterm
 
Inscription : mars 2005
Messages : 277
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 277
Points : 145
Points : 145
Question : comment afficher toutes les informations sur votre materiel?

Réponse : en root, utilisez
en plus du dmesg, on a donc cette commande qui est l'équivalent du lspci sous linux
ixterm est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +1. Il est actuellement 17h37.


 
 
 
 
Partenaires

Hébergement Web