Error unrecognized command found at position

Error unrecognized command found at position Добрый день!Был запороленный коммутатор A3100, с помощью подключения по консоли в режиме загрузки был сброшен пароль и стерт startup конфиг, перезагружен по питанию. После этого приглашение сразу выпадает в формат: Не спрашивая логина, пароля.список возможных команд урезан, то есть он не админский, поднять привилегии командой _cmdline-mode on не […]

Error unrecognized command found at position

Добрый день!
Был запороленный коммутатор A3100, с помощью подключения по консоли в режиме загрузки был сброшен пароль и стерт startup конфиг, перезагружен по питанию. После этого приглашение сразу выпадает в формат:

Не спрашивая логина, пароля.
список возможных команд урезан, то есть он не админский, поднять привилегии командой _cmdline-mode on не получается, ругается, что нет такой команды.

_cmdline-mode on
^
% Unrecognized command found at ‘^’ position.

Подскажите, пожалуйста, как попасть в режим администратора.

Ответить | Правка | Cообщить модератору

  • gt оверквотинг удален Попробуйте ввести system-view вместо _cmdline-mode on, Andrey (??), 13:01 , 23-Янв-20, (1)
    • После ввода этой команды свич переходит в режим просмотра системы HP system-vie, polka (ok), 15:07 , 23-Янв-20, (2)
      • A3100 наследник 3Сom У них вместо enable использовался system-view , Andrey (??), 16:22 , 23-Янв-20, (3)
  • gt оверквотинг удален https okiru ru uncategorized comware-sbros-do-zavodski, Ann None (?), 18:20 , 23-Янв-20, (4)

1,4

Сообщения [Сортировка по времени | RSS]

>[оверквотинг удален]
> этого приглашение сразу выпадает в формат:
>
> Не спрашивая логина, пароля.
> список возможных команд урезан, то есть он не админский, поднять привилегии командой
> _cmdline-mode on не получается, ругается, что нет такой команды.
> _cmdline-mode on
> ^
> % Unrecognized command found at ‘^’ position.
>
> Подскажите, пожалуйста, как попасть в режим администратора.

Попробуйте ввести system-view вместо _cmdline-mode on

1. «HP ProCurve A3100 — не пускает в режим администратора» + / –
Сообщение от Andrey (??), 23-Янв-20, 13:01
Ответить | Правка | Наверх | Cообщить модератору

2. «HP ProCurve A3100 — не пускает в режим администратора» + / –
Сообщение от polka (ok), 23-Янв-20, 15:07

> Попробуйте ввести system-view вместо _cmdline-mode on

После ввода этой команды свич переходит в режим просмотра системы:
system-view
System View: return to User View with Ctrl+Z.
[HP]

Но в режим enable отсюда все равно не пускает:
[HP]enable
^
% Unrecognized command found at ‘^’ position.

Ответить | Правка | Наверх | Cообщить модератору

3. «HP ProCurve A3100 — не пускает в режим администратора» + / –
Сообщение от Andrey (??), 23-Янв-20, 16:22

>> Попробуйте ввести system-view вместо _cmdline-mode on
> После ввода этой команды свич переходит в режим просмотра системы:
> system-view
> System View: return to User View with Ctrl+Z.
> [HP]
> Но в режим enable отсюда все равно не пускает:
> [HP]enable
> ^
> % Unrecognized command found at ‘^’ position.

A3100 наследник 3Сom. У них вместо enable использовался system-view.

Ответить | Правка | Наверх | Cообщить модератору

4. «HP ProCurve A3100 — не пускает в режим администратора» + / –
Сообщение от Ann None (?), 23-Янв-20, 18:20

>[оверквотинг удален]
> этого приглашение сразу выпадает в формат:
>
> Не спрашивая логина, пароля.
> список возможных команд урезан, то есть он не админский, поднять привилегии командой
> _cmdline-mode on не получается, ругается, что нет такой команды.
> _cmdline-mode on
> ^
> % Unrecognized command found at ‘^’ position.
>
> Подскажите, пожалуйста, как попасть в режим администратора.

Источник

Error unrecognized command found at position

Профиль | Отправить PM | Цитировать

Есть два свича:
3Com 4200G 48-портовый
3Com 4200G 24-портовый
Соединены через 10-гигабитные модули XFP и оптику.

В документации Switch_4200G_CG_V3.02.03_6W100 описано, что стэк делается простенько одной командой stacking ip-pool
+ там же
The Switch 4200G series switches can form a stack only when connected through interfaces on 10 GE stack boards.

но свич мне на это говорит:

system-view
System View: return to User View with Ctrl+Z.
[4200G]stacking ip-pool 194.204.54.254 2
^
% Unrecognized command found at ‘^’ position.
стрелочка показывает на слово stacking
типа — иди домой, не знаю я такой команды.

И в документации 4200G_Command_Reference_Guide_v3.2.1 действительно нет такой команды.
Ничего не пойму. Куда команда исчезла? Может прошивки разные?
Или может что-то ещё надо сделать? Физически или логически.
Ну к примеру не существует такой команды, тогда каким образом их в стэк связать? Он же Stackable.
В кластер их объединил, но это не то.
Версии одинаковые:

display version
3Com Corporation
Switch 4200G 24-Port Software Version 3Com OS V3.02.00s56
Copyright (c) 2004-2007 3Com Corporation and its licensors, All rights reserved.
Switch 4200G 24-Port uptime is 0 week, 0 day, 0 hour, 6 minutes
Switch 4200G 24-Port with 1 Processor
64M bytes DRAM
16M bytes Flash Memory
Config Register points to FLASH
Hardware Version is REV.B
CPLD Version is 002
Bootrom Version is 2.00
[SubSlot 0] 24 GE ( 4 COMBO ) Hardware Version is REV.B
[SubSlot 2] 1 XGE Hardware Version is REV.B

display version
3Com Corporation
Switch 4200G 48-Port Software Version 3Com OS V3.02.00s56
Copyright (c) 2004-2007 3Com Corporation and its licensors, All rights reserved.
Switch 4200G 48-Port uptime is 0 week, 0 day, 0 hour, 58 minutes
Switch 4200G 48-Port with 1 Processor
64M bytes DRAM
16M bytes Flash Memory
Config Register points to FLASH
Hardware Version is REV.B
CPLD Version is 002
Bootrom Version is 2.00
[SubSlot 0] 48 GE ( 4 COMBO ) Hardware Version is REV.B
[SubSlot 1] 1 XGE Hardware Version is REV.B

С сетевыми устройствами впервые работаю. До этого немного админил солярис, оракл и домен.

Конфигурация компьютера
Материнская плата: HP Pavilion dv6 Notebook PC
HDD: 431GB
CD/DVD: hp DVDRAM GT30L
ОС: Windows 7 Pro x64
Прочее: HP Pavilion dv6 Notebook PC

Он же Stackable.
В кластер их объединил, но это не то. »

Какая принципиальная разница между кластером и стеком для данной модели?

2)
Это не может быть связано с лицензированием или активированием данной опции дополнительно?

——-
Мы овладеваем более высоким стилем спора. Спор без фактов. Спор на темпераменте. Спор, переходящий от голословного утверждения на личность партнера. (c)Жванецкий

Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля.

» width=»100%» style=»BORDER-RIGHT: #719bd9 1px solid; BORDER-LEFT: #719bd9 1px solid; BORDER-BOTTOM: #719bd9 1px solid» cellpadding=»6″ cellspacing=»0″ border=»0″>

Сообщения: 4
Благодарности:

Сообщения: 2629
Благодарности: 343

» width=»100%» style=»BORDER-RIGHT: #719bd9 1px solid; BORDER-LEFT: #719bd9 1px solid; BORDER-BOTTOM: #719bd9 1px solid» cellpadding=»6″ cellspacing=»0″ border=»0″>

Конфигурация компьютера
Материнская плата: HP Pavilion dv6 Notebook PC
HDD: 431GB
CD/DVD: hp DVDRAM GT30L
ОС: Windows 7 Pro x64
Прочее: HP Pavilion dv6 Notebook PC

В документации написано, что устройство-командир после создания стэка АВТОМАТОМ подхватит устройство-кандидат и сделает его мэмбером. »

А не требуется ли каких-либо действий чтобы устройство стало кандидатом?
Например в какой-либо домен управления, общий для обоих устройств создать или т. п?

А на кандидате после staking enable что выдает?

——-
Мы овладеваем более высоким стилем спора. Спор без фактов. Спор на темпераменте. Спор, переходящий от голословного утверждения на личность партнера. (c)Жванецкий

» width=»100%» style=»BORDER-RIGHT: #719bd9 1px solid; BORDER-LEFT: #719bd9 1px solid; BORDER-BOTTOM: #719bd9 1px solid» cellpadding=»6″ cellspacing=»0″ border=»0″>

Сообщения: 10
Благодарности:

Видимо всё-таки в железе дело. Только с моим английским я никак не врублюсь у меня модули неправильные или всё-таки кабель? Или у меня всё нормально?

Модули у меня
Swicth 4200G 1-Port 10G Module XFP 3C17666
+трансиверы
XFP transceiver 10GBASE-SR 3CXFP94

А кабель — обычная оранжевая оптика — я так понимаю.

Конфигурация компьютера
Материнская плата: HP Pavilion dv6 Notebook PC
HDD: 431GB
CD/DVD: hp DVDRAM GT30L
ОС: Windows 7 Pro x64
Прочее: HP Pavilion dv6 Notebook PC

Fix :
To form a stack of 4200G’s you need to order the Ethernet stacking modules and the stacking cables.
Ethernet Stacking Module
(Для формирования стека вы должны заказать следующие Ethernet стекирующие модули и кабеля)

part# 0231A39T — name «LS5M1X1PA» — description «S5100 1 port 10GE Ethernet Stackign Module
Ethernet Stacking Module
part# 0231A39W — name «LS5M2STK1» description «CX4 Cable (50cm) — Stacking/IB/SAS»
part# 0231A39X — name «LS5M2STK2» description «CX4 Cable (1.0m) — Stacking/IB/SAS»
part# 0231A39Y — name «LS5M2STK3» description «CX4 Cable (3.0m) — Stacking/IB/SAS»

Вы будете плакать, но это «медные» соединения — экранированная витая пара (SSTP)
Более того такие кабеля применяются в Infiniband (Суперкластера), SAS (Serial Attached SCSI), т.е. это ни как не
«Оранжевая оптика», т. е. MM (50/125) + 10GBASE-SR

Attched is the CLI output showing the commands to form a stack of 2 x 4200G’s
example of a stack of 2 x 4200G switches
http://67.217.38.2/attachments/svc/d. king.stack.doc
(Пример стека из двух свичей 4200G, по ссылке лежит Word-файлик с настройками)

Number of stacking modules and cables required to stack
(Кол-во стекируемых модулей и кабелей требуемых для организации стека)

a stack of 2 requires 2 stacking modules and 1 stacking cable.
(стек из 2х свичей требует два модуля и один кабель)

for each additional switch added to a stack requires another 2 stacking modules and a stacking cable
(для каждого последующего свича, добавляемого в стек, требуется еще 2 стекирующих модуля и стекирующий кабель)

a stack can not be resilient, meaning you can not connect a stacking cable from the bottom switch to the top switch in a stack.
(стек не отказоустойчивый (resilent), поэтому не надо пытаться дополнительно соединить стекирующим кабелем верхний и нижний свичи, т.е. «закольцевать», как например у Cisco или Nortel)

Stack Characteristics
ports in the same link-aggregation group must be on the same switch in the stack.
You can not have ports in switch 1 of the stack and ports in switch 2 of the stack members of the same link-aggregation group.
(Порты одной LinkAgregation группы не могут разводиться на разные члены стека. Т.е нет аналога SMLT — Nortel, или Distributed EtherChannel — Cisco)

the address forwarding table between switches in the stack are not synchronized
(Стек не синхронизирует адресные таблицы между свичами)

——-
Мы овладеваем более высоким стилем спора. Спор без фактов. Спор на темпераменте. Спор, переходящий от голословного утверждения на личность партнера. (c)Жванецкий

Последний раз редактировалось kim-aa, 11-12-2009 в 00:52 .

Источник

<HP>system-view
System View: return to User View with Ctrl+Z.
[HP]?
System view commands:
aaa Specify AAA configuration
acl Specify acl configuration information
archive Specify archive settings
arp Specify ARP configuration information
bootrom-update bootrom update
bpdu-tunnel Specify BPDU tunnel function
burst-mode Specify burst mode
cfd Connectivity fault detection (IEEE 802.1ag)
clock Specify the system clock
cluster Specify cluster configuration information
command-alias Specify command alias
command-privilege Specify the command level
configuration Specify configuration settings
copyright-info Copyright information configuration
cut Cut connection
cwmp CPE WAN Management Protocol
delete Delete function
dhcp DHCP configuration subcommands
dhcp-snooping DHCP Snooping
display Display current system information
dldp Specify configuration information of DLDP
dns Specify domain name system
domain Add domain or modify domain attributes
dot1x Specify 802.1X configuration information
execute Batch Command
file Specify file system configuration information
ftp Specify FTP configuration information
garp Generic Attribute Registration Protocol
gratuitous-arp-learning Gratuitous Arp learning function
gratuitous-arp-sending Sending gratuitous-arp packet when receiving
different sub-network arp packet function
gvrp GARP VLAN Registration Protocol
ha Enable/Disable HA Version check of Master and Slave
habp Specify HABP configuration information
header Specify the login banner
hotkey Specify hotkey configuration information
hwtacacs Specify HWTACACS server
igmp-snooping IGMP snooping
info-center Specify information center configuration information
interface Specify the interface configuration view
ip Specify IP configurations for the system
ipv6 Enable IPv6 functionality
job Schedule a system task
jumboframe Jumboframe command
lacp Configure LACP Protocol
license License management
link-aggregation Specify link aggregation group configuration
information
lldp Link Layer Discovery Protocol(802.1ab)
local-user Specify local user configuration information
logfile Specify log file configuration
loopback-detection Detect if loopback exists
mac-address Configure MAC address
mac-authentication MAC authentication configuration
mac-flapping Configure MAC-Flapping function
mac-vlan Specify the MAC VLAN configuration information
management-vlan Specify management-vlan
mirroring-group Specify mirroring-group
mld-snooping Enter mld-snooping view
monitor-link Configure monitor link
multicast-optimization Multicast optimization function
multicast-vlan Multicast VLAN
mvrp Multiple VLAN Registration Protocol
ndp Neighbor discovery protocol
nqa Specify NQA (Network Quality Analyzer) configuration
information
ntdp Specify NTDP configuration information
ntp-service Specify NTP(Network Time Protocol) configuration
information
oam OAM protocol
password-control Specify password control
patch Specify patch configuration information
ping Ping function
pki Specify PKI module configuration information
policy-based-route Specify a policy based routing
port-group Port group
port-security Specify port-security configuration information
portal Portal protocol
public-key Specify public-key module configuration information
qinq Specify 802.1Q-in-Q VPN function
qos Command of QoS(Quality of Service)
quit Exit from current command view
radius Specify RADIUS configuration information
radius-server Specify RADIUS server configuration information
reset Reset operation
return Exit to User View
rmon Specify RMON
rrpp Rapid Ring Protection Protocol
save Save current configuration
sftp Specify SFTP service attribute
shutdown-interval ShutDown Detection
slave Specify HA command configuration information
smart-link Configure smart link
snmp-agent Specify SNMP(Simple Network Management Protocol)
configuration information
ssh Specify SSH (secure shell) configuration information
ssl Specify SSL (Secure Socket Layer) configuration
information
stack Switch stack system
storm-constrain Port storm-constrain
stp Spanning tree protocol
super Specify super configuration information
sysname Specify the host name
system-failure System failure handling method
tcp Specify TCP(Transmission Control Protocol)
configuration information
telnet Specify TELNET configuration information
tftp Specify TFTP configuration information
tftp-server TFTP Server
time-range Specify time-range configuration information
tracert Trace route function
traffic Specify traffic configuration information
undo Cancel current setting
user-group Specify user group configuration information
user-interface Configure the user terminal interface
user-profile User profile
vlan Configure VLAN
vlan-group Configure a VLAN group
voice Specify voice VLAN

здесь действительно нет варианта набрать одним словом enable, но просто все конфиги, мануалы по этому коммутатору имеют приглашение вида #
пример из мануала http://xgu.ru/wiki/ProCurve_Switch :
Базовые настройки доступа к коммутатору

Если приглашение вида:

sw> — это режим оператора,

перейти в режим менеджера — enable,

sw# — это режим менеджера,

перейти в конфигурационный режим — configure,

sw(config)# — это конфигурационный режим.

@oysteingy

Hi,

Thanks for the nice API.

I’m experiencing some problems with send_command on Huawei:
VRP (R) software, Version 5.160 (NE40E&80E V600R008C10SPC300)

>>> huawei = {'device_type': 'huawei', 'ip':   '10.129.194.12', 'username': 'user', 'password':  'pass', 'port': 22,  'verbose': True}
>>> net_connect = ConnectHandler(**huawei)
>>> net_connect.find_prompt()
u'<TST2PE6>'
>>> net_connect.send_command("display current-configuration")
u"                 ^nError: Unrecognized command found at '^' position."
'''

I've enabled logging;


>>> logging.basicConfig(filename='test.log', level=logging.DEBUG)



DEBUG:netmiko:Pattern found: TST2PE6 screen-length 0 temporary
         ^
Error: Unrecognized command found at '^' position.
<TST2PE6>

DEBUG:netmiko:screen-length 0 temporary
         ^
Error: Unrecognized command found at '^' position.
<TST2PE6>
DEBUG:netmiko:write_channel: display current-configuration
DEBUG:netmiko:read_channel:
DEBUG:netmiko:read_channel: display current-configuration

Looks like the issue is "assymetric" ? send_config_set() works perfectly, this appears to be a problem to read from the terminal.

@ktbyers

@oysteingy What happens if you set the global_delay_factor?

huawei = {
    'device_type': 'huawei', 
    'ip': '10.129.194.12', 
    'username': 'user', 
    'password': 'pass', 
    'global_delay_factor': 2,          # Try 2, 4 and and 8
    'port': 22, 
    'verbose': True}
net_connect = ConnectHandler(**huawei)

@oysteingy

Hi,

Thanks for the swift reply. Unfortunately, I saw no noticeable difference. (I’ve also tried to run the command ‘display vlan’ rather then ‘display current-configuration’ as the output from the first command is a single line and hence should be less time consuming to the read the output from.

>>> huawei = {'device_type': 'huawei', 'ip': '10.129.194.12', 'username': 'user', 'password': 'pass, 'verbose': True, 'global_delay_factor' : 8}
>>> net_connect = ConnectHandler(**huawei)
SSH connection established to 10.129.194.12:22
Interactive SSH session established
>>> net_connect.send_command("display current-configuration")
u"                 ^nError: Unrecognized command found at '^' position."

@oysteingy

(Sorry, hit the ‘Close and comment’ button instead of ‘Comment’)

@oysteingy
oysteingy

changed the title
Problems with send_command(‘display version ‘) on Huawei

Problems with send_command() on Huawei

Oct 27, 2017

@corvis84

Hello,
Any update on this topic ? I’m starting to use netmiko to interact with Huawei devices MA5600T Series OLTs and I’m facing the exact same issue.

@ktbyers

@corvis84 Can you enable the session_log and show what you are seeing?

You would enable the session_log using code similar to this:

huawei = {
    'device_type': 'huawei', 
    'ip':   '10.10.10.12', 
    'username': 'user', 
    'password':  'pass', 
    'session_log': 'output.txt',
}
net_connect = ConnectHandler(**huawei)

That should create a file named output.txt in the current working directory. Can you post the contents of that file here (you can obfuscate anything that is confidential).

Понравилась статья? Поделить с друзьями:
  • Error unpacking of archive failed cpio bad magic
  • Error unnecessary else after return no else return
  • Error unmounting dev sda1 target is busy udisks error quark 14
  • Error unmounting dev nvme0n1p3
  • Error unmarshalling return nested exception is