[j-nsp] USB detection in RE-A-2000
Alain Briant
alain.briant at c-s.fr
Thu Jan 17 05:18:57 EST 2008
Hi dong bei
I don't have this kind of card here with me but when I want to check the
insertion removal of an external storage device I first do
a "monitor start messages"
for example after the insertion of a compact-Flash on an M7i you have this:
Jan 17 10:30:03.240 2008 BFD_CNCE_Alain_Sam /kernel: pccard: card
inserted, slot 0
Jan 17 10:30:06.716 2008 BFD_CNCE_Alain_Sam chassisd[3031]:
CHASSISD_SNMP_TRAP7: SNMP trap generated: FRU insertion
(jnxFruContentsIndex 9, jnxFruL1Index 1, jnxFruL2Index 1, jnxFruL3Index
0, jnxFruName Routing Engine PCMCIA Card 0, jnxFruType 6, jnxFruSlot 1)
Jan 17 10:30:08.986 2008 BFD_CNCE_Alain_Sam pccardd[2929]: Card
"SanDisk"("SDP") [5/3 0.6] [[none]] matched "SanDisk" ("/.*/") [(null)]
[(null)]
Jan 17 10:30:14.248 2008 BFD_CNCE_Alain_Sam /kernel: ata4 at port
0x240-0x247,0x24e irq 15 slot 0 on pccard0
Jan 17 10:30:14.339 2008 BFD_CNCE_Alain_Sam /kernel: ad3: 488MB
<SanDisk SDCFH-512> [993/16/63] at ata4-master BIOSPIO
Jan 17 10:30:14.339 2008 BFD_CNCE_Alain_Sam pccardd[2929]: ata4:
SanDisk (/.*/) inserted.
Jan 17 10:30:16.439 2008 BFD_CNCE_Alain_Sam /kernel: ad3: cannot find
label (no disk label)
Jan 17 10:30:16.440 2008 BFD_CNCE_Alain_Sam /kernel: ad3s2: cannot find
label (no disk label)
Jan 17 10:30:21.439 2008 BFD_CNCE_Alain_Sam /kernel: ad3: cannot find
label (no disk label)
Jan 17 10:30:21.440 2008 BFD_CNCE_Alain_Sam /kernel: ad3s2: cannot find
label (no disk label)
after the insertion of a usb KEY on a J serie you have this:
Jan 17 10:58:05 CE1_J6300 /kernel: umass0: SanDisk Corporation Cruzer
Micro, rev 2.00/0.10, addr 2
Jan 17 10:58:05 CE1_J6300 chassisd[2898]: CHASSISD_SNMP_TRAP7: SNMP
trap generated: FRU insertion (jnxFruContentsIndex 9, jnxFruL1Index 1,
jnxFruL2Index 1, jnxFruL3Index 0, jnxFruName USB Hub, jnxFruType 6,
jnxFruSlot 1)
Jan 17 10:58:05 CE1_J6300 /kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jan 17 10:58:05 CE1_J6300 /kernel: da0: <SanDisk Cruzer Micro 0.1>
Removable Direct Access SCSI-2 device
Jan 17 10:58:05 CE1_J6300 /kernel: da0: 650KB/s transfers
Jan 17 10:58:05 CE1_J6300 /kernel: da0: 488MB (1000944 512 byte
sectors: 64H 32S/T 488C)
Finally you can type some show commands to see the recognized devices:
"show chassis hardware detail":
on M7i with Compact-Flash istalled
Routing Engine REV 09 740-009459 1000606414 RE-5.0
ad0 244 MB 256MB CHH 5073I8C25A4027001A Compact Flash
ad1 19077 MB HTS548020M9AT00 MRL122L1GPVAKB Hard Disk
ad3 488 MB SanDisk SDCFH-512 016615A1806O5936 PCCard
on M7i without Compact-Flash istalled
Routing Engine REV 09 740-009459 1000606414 RE-5.0
ad0 244 MB 256MB CHH 5073I8C25A4027001A Compact Flash
ad1 19077 MB HTS548020M9AT00 MRL122L1GPVAKB Hard Disk
On the J serie with USB installed:
Routing Engine REV 09 750-010006 BTRD50500566 RE-J.3
ad0 244 MB Hitachi XX.V.3.4.0.0 X0502 20041202221804 Compact Flash
usb0 (addr 1) UHCI root hub 0 Intel uhub0
usb0 (addr 2) Cruzer Micro 20817 SanDisk Corporation umass0
On the J serie without USB installed:
Routing Engine REV 09 750-010006 BTRD50500566 RE-J.3
ad0 244 MB Hitachi XX.V.3.4.0.0 X0502 20041202221804 Compact Flash
At least be careful of the brand of USB you use
I understand that the USB should come delivered with the router (so this
shouldn't be an issue)
Let me know if this helps you
regards
Alain
wang dong bei a écrit :
>Hi,
>
>I have got RE-A-2000-4096-S as my routing-engines. Are there any commands,
>or "under the hood" ways, to verify whether the USB drive has been attached
>to it?
>
>thanks and regards,
>
>dong bei
>_______________________________________________
>juniper-nsp mailing list juniper-nsp at puck.nether.net
>https://puck.nether.net/mailman/listinfo/juniper-nsp
>
>
>
>
More information about the juniper-nsp
mailing list