2298

PING

C:\>pingUsage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] target_nameOptions: -t Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -a Resolve addresses to hostnames. -n count Number of echo requests to send. -l size Send buffer size. -f Set Don't Fragment flag in packet. -i TTL Time To Live. -v TOS Type Of Service. -r count Record route for count hops. -s count Timestamp for count hops. -j host-list Loose source route along host-list. -k host-list Strict source route along host-list. -w timeout Timeout in milliseconds to wait for each reply.
0
zorrogfs24 Августа 2004, 02:55
Z
zorrogfs24 Августа 2004, 02:55

WOW, кто бы мог подумать...

0
  • 0
  • 0
san24 Августа 2004, 03:05
S
san24 Августа 2004, 03:05
zorrogfs
...WOW, кто бы мог подумать......

А чё это ?

0
  • 0
  • 0
STASon24 Августа 2004, 03:08
STASon24 Августа 2004, 03:08

что свинья в апельсинах ....Я в смысле.)))

0
  • 0
  • 0
alexander-124 Августа 2004, 03:51
A
alexander-124 Августа 2004, 03:51

вот ещё чуть...

tracert

Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name

Options:
-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose source route along host-list.
-w timeout Wait timeout milliseconds for each reply.

0
  • 0
  • 0
san24 Августа 2004, 03:58
S
san24 Августа 2004, 03:58
alexander-1
...вот ещё чуть... tracert Usage: tracert [-d] [-h maximum_hops]...

Дарофф ! А с чем это едят ?

0
  • 0
  • 0
grundic24 Августа 2004, 03:59
G
grundic24 Августа 2004, 03:59
alexander-1
...вот ещё чуть... tracert Usage: tracert [-d] [-h maximum_hops]...

офф: здарофф!

0
  • 0
  • 0
c0t24 Августа 2004, 05:49
C
c0t24 Августа 2004, 05:49

фигасе хакиры

внесу и я свой посильный вклад. итак. встречаем - DIR

Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

[drive:][path][filename]
Specifies drive, directory, and/or files to list.

/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/B Uses bare format (no heading information or summary).
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field displayed or used for sorting
timefield C Creation
A Last Access
W Last Written
/W Uses wide list format.
/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.
/4 Displays four-digit years

Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.

0
  • 0
  • 0
intel24 Августа 2004, 12:43
I
intel24 Августа 2004, 12:43

Formats a disk for use with Windows.

FORMAT volume [/FS:file-system] [/V:label] [/Q] [/A:size] [/C] [/X]
FORMAT volume [/V:label] [/Q] [/F:size]
FORMAT volume [/V:label] [/Q] [/T:tracks /N:sectors]
FORMAT volume [/V:label] [/Q]
FORMAT volume [/Q]

volume Specifies the drive letter (followed by a colon),
mount point, or volume name.
/FS:filesystem Specifies the type of the file system (FAT, FAT32, or NTFS).
/V:label Specifies the volume label.
/Q Performs a quick format.
/C NTFS only: Files created on the new volume will be compressed
by default.
/X Forces the volume to dismount first if necessary. All opened
handles to the volume would no longer be valid.
/A:size Overrides the default allocation unit size. Default settings
are strongly recommended for general use.
NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K.
FAT supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K,
(128K, 256K for sector size > 512 bytes).
FAT32 supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K,
(128K, 256K for sector size > 512 bytes).

Note that the FAT and FAT32 files systems impose the
following restrictions on the number of clusters on a volume:

FAT: Number of clusters FAT32: 65526
Format will immediately stop processing if it decides that
the above requirements cannot be met using the specified
cluster size.

NTFS compression is not supported for allocation unit sizes
above 4096.

/F:size Specifies the size of the floppy disk to format (1.44)
/T:tracks Specifies the number of tracks per disk side.
/N:sectors Specifies the number of sectors per track.

Вот самое нужное

0
  • 0
  • 0
Administrator@@_25 Августа 2004, 12:53
A
Administrator@@_25 Августа 2004, 12:53
intel
...Formats a disk for use with Windows. FORMAT volume...

У моего винта полетели кластеры - шо с ним делать(варианты -выбросить,сжечь не проходят)

0
  • 0
  • 0
intel25 Августа 2004, 13:41
I
intel25 Августа 2004, 13:41
Administrator@@_
...8 У моего винта полетели кластеры - шо с ним делать(варианты...

если о сектор то выбрось, а если нет то отформать и пометь бэды

0
  • 0
  • 0
mishka125 Августа 2004, 16:19
M
mishka125 Августа 2004, 16:19
Administrator@@_
...8 У моего винта полетели кластеры - шо с ним делать(варианты...

low level format

0
  • 0
  • 0
huligan25 Августа 2004, 17:43
H
huligan25 Августа 2004, 17:43
...C:\>pingUsage: ping [-t] [-a] [-n count] [-l size]...

и др.
Блин люди... Вы херней страдаете... Не позорьте себя показухой допотопными знаниями. Тема называется “В помощь сисадмину”, а такие секреты известны даже обычным юзерам как я.

0
  • 0
  • 0
Administrator@@_25 Августа 2004, 19:39
A
Administrator@@_25 Августа 2004, 19:39
zorrogfs
...WOW, кто бы мог подумать......

не нуливой но поменяю обезательно

mishka1
...low level format...

пробовал не катит "спасиба мэй"

huligan
...0 и др. Блин люди... Вы херней страдаете... Не позорьте...

не мешай людям

0
  • 0
  • 0
kexs25 Августа 2004, 20:40
K
kexs25 Августа 2004, 20:40
Administrator@@_
...8 У моего винта полетели кластеры - шо с ним делать(варианты...

format hdd:
© by giga...

0
  • 0
  • 0
vakero27 Августа 2004, 02:43
V
vakero27 Августа 2004, 02:43

User Commands env(1)

NAME
env - set environment for command invocation

SYNOPSIS
/usr/bin/env [ -i | - ] [ name=value ... ] [ utility [
arg ... ] ]

/usr/xpg4/bin/env [ -i | - ] [ name=value ... ] [ utility
[ arg ... ] ]

DESCRIPTION
The env utility obtains the current environment, modifies it
according to its arguments, then invokes the utility named
by the utility operand with the modified environment.

Optional arguments are passed to utility. If no utility
operand is specified, the resulting environment is written
to the standard output, with one name=value pair per line.

/usr/bin/env
If env executes commands with arguments, it uses the default
shell /usr/bin/sh (see sh(1)).

/usr/xpg4/bin/env
If env executes commands with arguments, it uses
/usr/xpg4/bin/sh, which is equivalent to /usr/bin/ksh (see
ksh(1)).

OPTIONS
The following options are supported:

-i | -
Ignore the environment that would otherwise be inher-
ited from the current shell. Restricts the environ-
ment for utility to that specified by the arguments.

OPERANDS

The following operands are supported:

name=value
Arguments of the form name=value modify the execution
environment, and are placed into the inherited
environment before utility is invoked.

utility
The name of the utility to be invoked. If utility
names any of the special shell built-in utilities, the
results are undefined.

arg A string to pass as an argument for the invoked util-
ity.

SunOS 5.8 Last change: 18 Mar 1997 1

EXAMPLES
Example 1: Invoking utilities with new PATH values.

The following utility:

example% env -i PATH=/mybin mygrep xyz myfile

invokes the utility mygrep with a new PATH value as the only
entry in its environment. In this case, PATH is used to
locate mygrep, which then must reside in /mybin.

ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment
variables that affect the execution of env: LC_CTYPE,
LC_MESSAGES, and NLSPATH.

EXIT STATUS
If utility is invoked, the exit status of env is the exit
status of utility; otherwise, the env utility is with one of
the following values:

0 Successful completion.

1-125 An error occurred.

126 utility was found but could not be invoked.

127 utility could not be found.

ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:

/usr/bin/env
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| Availability | SUNWcsu |
| CSI | enabled |
|_____________________________|_____________________________|

/usr/xpg4/bin/env
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |

| Availability | SUNWxcu4 |
| CSI | enabled |
|_____________________________|_____________________________|

SEE ALSO
ksh(1), sh(1), exec(2), profile(4), attributes(5),
environ(5), XPG4(5)

SunOS 5.8 Last change: 18 Mar 1997 2

Мастдайники гребанные )))

0
  • 0
  • 0
музыка27 Августа 2004, 09:14
М
музыка27 Августа 2004, 09:14

1 - однозначно :-)))

0
  • 0
  • 0
grisha27 Августа 2004, 09:58
G
grisha27 Августа 2004, 09:58

гыыыы

0
  • 0
  • 0
sergun127 Августа 2004, 17:29
S
sergun127 Августа 2004, 17:29

Usage: pathping [-n] [-h maximum_hops] [-g host-list] [-p period]
[-q num_queries] [-w timeout] [-t] [-R] [-r] target_name

Options:
-n Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-g host-list Loose source route along host-list.
-p period Wait period milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout milliseconds for each reply.
-T Test connectivity to each hop with Layer-2 priority tags.

-R Test if each hop is RSVP aware.

Синтаксис
pathping [-n] [-h максимальное_число_переходов] [-g список_узлов] [-p период] [-q число_запросов [-w интервал] [-T] [-R] [имя_конечного_компьютера]

Параметры
-n
Предотвращает попытки команды pathping сопоставить IP-адреса промежуточных маршутизаторов с их именами. Это позволяет ускорить вывод результатов команды pathping.
-h максимальное_число_переходов
Задает максимальное количество переходов на пути при поиске конечного пункта назначения. Значение по умолчанию равно 30.
-g список_узлов
Указывает для сообщений с эхо-запросом использование параметра свободной маршрутизации в IP-заголовке с набором промежуточных мест назначения, указанным в списке_компьютеров. При свободной маршрутизации последовательные промежуточные места назначения могут быть разделены одним или несколькими маршрутизаторами. Максимальное число адресов или имен в списке равно 9. Список_адресов представляет собой набор IP-адресов (в точечно-десятичной нотации), разделенных пробелами.
-p период
Задает время ожидания между последовательными проверками связи (в миллисекундах). Значение по умолчанию равно 250 миллисекунд.
-q число_запросов
Задает количество сообщений с эхо-запросом, отправленных каждому маршрутизатору пути. По умолчанию - 100.
-w интервал
Задает время ожидания каждого отклика (в миллисекундах). Значение по умолчанию равно 3000 миллисекунд.
-T
Присоединяет тег приоритета уровня 2 (например 802.1p) к сообщениям с эхо-запросом, отправляемым каждому сетевому устройству на маршруте. Это помогает обнаружить сетевые устройства, для которых не настроен приоритет уровня 2. Он предназначен для проверки соединений, использующих спецификации QoS.
-R
Проверяет, все ли сетевые устройства вдоль маршрута поддерживают протокол RSVP (Resource Reservation Setup Protocol, протокол настройки резервирования ресурсов), который позволяет главному компьютеру резервировать определенную часть пропускной способности для потока данных. Этот параметр предназначен для проверки соединений, использующих спецификации QoS.
имя_конечного_компьютера
Задает пунтк назначения, идентифицированный IP-адресом или именем узла.
/?
Отображает справку в командной строке.
Примечания
Параметры команды Pathping вводятся с учетом регистра.

Во избежание перегрузки сети пакеты должны передаваться через довольно большие интервалы времени.

Чтобы минимизировать эффект потери пакетов, не нужно слишком часто выполнять проверку связи.

После запуска pathping сначала выводится путь. Это тот же путь, который выводится командой tracert. Далее в течение 90 секунд команда выдает сообщение о том, что она занята (это время варьируется в зависимости от числа переходов).В течение этого времени происходит сбор сведений со всех маршрутизаторов, перечисленных выше, и со всех соединений между ними. По завершении этого периода выводятся результаты проверки.

0
  • 0
  • 0
Administrator@@_28 Августа 2004, 12:22
A
Administrator@@_28 Августа 2004, 12:22

Пингуем (Ping) под Delphi
Протокол Ping предназначен для тестирования компьютерных соединений в Интернете путём посылки через протокол Internet Protocol (IP) по обределённому адресу сообщения и ожидания от него ответа.

ICMP - Internet Control Message Protocol. ICMP служит для передачи сообщений об ошибках а так же управляющих сообщений . ICMP-тест может показать насколько быстро проходит информация между двумя узлами в Интернете.

Запускаем Delphi;
В Новом проекте добавляем в форму Tbutton, Tedit и Tmemo;
Вставляем “winsock”;
объявляем структурку для IP-заголовка:
type IPINFO = record
Ttl : char;
Tos : char;
IPFlags : char;
OptSize : char;
Options : ^char;
end;

5. объявляем структурку для хранения ICMP пакета:

type ICMPECHO = record
Source : longint;
Status : longint;
RTTime : longint;
DataSize : Shortint;
Reserved : Shortint;
pData : ^variant;
i_ipinfo : IPINFO;
end;

6. Объявляем функции и процедуры, которые мы будем вызывать из ICMP.DLL

TIcmpCreateFile =
function():integer;{$IFDEF WIN32} stdcall; {$ENDIF}
TIcmpCloseHandle =
procedure(var handle:integer);{$IFDEF WIN32} stdcall;{$ENDIF}
TIcmpSendEcho =
function(var handle:integer; endereco:DWORD; buffer:variant;
tam:WORD; IP:IPINFO; ICMP:ICMPECHO; tamicmp:DWORD;
tempo:DWORD):DWORD;{$IFDEF WIN32} stdcall; {$ENDIF}

7. В Tbutton в событие Onclick вставляем следующий код:

procedure TForm1.Button1Click(Sender: TObject);
var
wsadt : wsadata;
icmp :icmpecho;
HNDicmp : integer;
hndFile :integer;
Host :PHostEnt;
Destino :in_addr;
Endereco :^DWORD;
IP : ipinfo;
Retorno :integer;
dwRetorno :DWORD;
x :integer;

IcmpCreateFile : TIcmpCreateFile;
IcmpCloseHandle : TIcmpCloseHandle;
IcmpSendEcho : TIcmpSendEcho;

begin
if (edit1.Text = '') then begin
Application.MessageBox('Enter a HostName ro a IP Adress',
'Error', MB_OK);
exit;
end;
HNDicmp := LoadLibrary('ICMP.DLL');
if (HNDicmp 0) then begin
@IcmpCreateFile := GetProcAddress(HNDicmp,'IcmpCreateFile');
@IcmpCloseHandle := GetProcAddress(HNDicmp,'IcmpCloseHandle');
@IcmpSendEcho := GetProcAddress(HNDicmp,'IcmpSendEcho');
if (@IcmpCreateFile=nil) or (@IcmpCloseHandle=nil) or
(@IcmpSendEcho=nil) then begin
Application.MessageBox('Error getting ICMP Adress','Error', MB_OK);
FreeLibrary(HNDicmp);
end;
end;
Retorno := WSAStartup($0101,wsadt);

if (Retorno 0) then begin
Application.MessageBox('Can?t Load WinSockets','WSAStartup', MB_OK);
WSACleanup();
FreeLibrary(HNDicmp);
end;

Destino.S_addr := inet_addr(Pchar(Edit1.text));
if (Destino.S_addr = 0) then begin
Host := GetHostbyName(PChar(Edit1.text));
end
else begin
Host := GetHostbyAddr(@Destino,sizeof(in_addr), AF_INET);
end;

if (host = nil) then begin
Application.MessageBox('Host not found','Error', MB_OK);
WSACleanup();
FreeLibrary(HNDicmp);
exit;
end;
memo1.Lines.Add('Pinging ' + Edit1.text);

Endereco := @Host.h_addr_list;

HNDFile := IcmpCreateFile();
for x:= 0 to 4 do begin
Ip.Ttl := char(255);
Ip.Tos := char(0);
Ip.IPFlags := char(0);
Ip.OptSize := char(0);
Ip.Options := nil;

dwRetorno := IcmpSendEcho(
HNDFile,
Endereco^,
null,
0,
Ip,
Icmp,
sizeof(Icmp),
DWORD(5000));
Destino.S_addr := icmp.source;
Memo1.Lines.Add('Ping ' + Edit1.text);
end;

IcmpCLoseHandle(HNDFile);
FreeLibrary(HNDicmp);
WSACleanup();
end;

У данного примера есть один недостаток - программа не воспримет доменное имя, только IP-адресс. Для пользователей NT не используйте функцию IcmpCloseHandle. Это всё.....

Ну и в конце полный исходный код примера:

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
winsock, StdCtrls;

type
IPINFO = record
Ttl :char;
Tos :char;
IPFlags :char;
OptSize :char;
Options :^char;
end;

type
ICMPECHO = record
Source :longint;
Status :longint;
RTTime :longint;
DataSize:Shortint;
Reserved:Shortint;
pData :^variant;
i_ipinfo:IPINFO;
end;

TIcmpCreateFile =
function():integer; {$IFDEF WIN32} stdcall; {$ENDIF}
TIcmpCloseHandle =
procedure(var handle:integer);{$IFDEF WIN32} stdcall; {$ENDIF}
TIcmpSendEcho =
function(var handle:integer; endereco:DWORD; buffer:variant;
tam:WORD; IP:IPINFO; ICMP:ICMPECHO; tamicmp:DWORD;
tempo:DWORD):DWORD;{$IFDEF WIN32} stdcall; {$ENDIF}

type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Edit1: TEdit;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public

end;

var
Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
var
wsadt : wsadata;
icmp :icmpecho;
HNDicmp : integer;
hndFile :integer;
Host :PHostEnt;
Destino :in_addr;
Endereco :^DWORD;
IP : ipinfo;
Retorno :integer;
dwRetorno :DWORD;
x :integer;

IcmpCreateFile : TIcmpCreateFile;
IcmpCloseHandle : TIcmpCloseHandle;
IcmpSendEcho : TIcmpSendEcho;

begin
if (edit1.Text = '') then begin
Application.MessageBox('Digite um HostName ou um End. IP',
'Error', MB_OK);
exit;
end;
HNDicmp := LoadLibrary('ICMP.DLL');
if (HNDicmp 0) then begin
@IcmpCreateFile := GetProcAddress(HNDicmp,'IcmpCreateFile');
@IcmpCloseHandle := GetProcAddress(HNDicmp,'IcmpCloseHandle');
@IcmpSendEcho := GetProcAddress(HNDicmp,'IcmpSendEcho');
if (@IcmpCreateFile=nil) or (@IcmpCloseHandle=nil) or
(@IcmpSendEcho=nil) then begin
Application.MessageBox('Erro pegando endereзos ICMP','Error', MB_OK);
FreeLibrary(HNDicmp);
end;
end;
Retorno := WSAStartup($0101,wsadt);

if (Retorno 0) then begin
Application.MessageBox('Nгo foi possнvel carregar WinSockets',
'WSAStartup',MB_OK);
WSACleanup();
FreeLibrary(HNDicmp);
end;

Destino.S_addr := inet_addr(Pchar(Edit1.text));
if (Destino.S_addr = 0) then begin
Host := GetHostbyName(PChar(Edit1.text));
end
else begin
Host := GetHostbyAddr(@Destino,sizeof(in_addr), AF_INET);
end;

if (host = nil) then begin
Application.MessageBox('Host nгo encontrado','Error', MB_OK);
WSACleanup();
FreeLibrary(HNDicmp);
exit;
end;
memo1.Lines.Add('Pinging ' + Edit1.text);

Endereco := @Host.h_addr_list;

HNDFile := IcmpCreateFile();
for x:= 0 to 4 do begin
Ip.Ttl := char(255);
Ip.Tos := char(0);
Ip.IPFlags := char(0);
Ip.OptSize := char(0);
Ip.Options := nil;

dwRetorno := IcmpSendEcho(
HNDFile,
Endereco^,
null,
0,
Ip,
Icmp,
sizeof(Icmp),
DWORD(5000));
Destino.S_addr := icmp.source;
Memo1.Lines.Add('Pingou ' + Edit1.text);
end;

IcmpCLoseHandle(HNDFile);
FreeLibrary(HNDicmp);
WSACleanup();
end;

end.

0
  • 0
  • 0
Administrator@@_30 Августа 2004, 21:30
A
Administrator@@_30 Августа 2004, 21:30

pathping :)

nadeiusi obtsii ne nujni :)

0
  • 0
  • 0
DIMEX10 Июля 2006, 23:20
DIMEX10 Июля 2006, 23:20

Опа,интересантэ информацие :)

0
  • 0
  • 0
grabbej25 Июня 2009, 13:02
G
grabbej25 Июня 2009, 13:02
...C:\>pingUsage: ping [-t] [-a] [-n count] [-l size]...

alexander-1
...вот ещё чуть... tracert Usage: tracert [-d] [-h maximum_hops]...

c0t
...фигасе хакиры внесу и я свой посильный вклад. итак....

intel
...Formats a disk for use with Windows. FORMAT volume...

жгёте :)))

0
  • 0
  • 0