netopeer-cli command Operating

1,023 views
Skip to first unread message

qian...@gmail.com

unread,
May 25, 2015, 4:16:34 PM5/25/15
to neto...@googlegroups.com
Hi,
I am using the netopeer-cli,and encountered some problems.
1.using “get”command, The following informations occur:
but I want this informations (interface, passwords, etc.) to achieve separate command, how to operate?
I operate the desired result (IP address, hostname, running status information, routing table information, network connections, system information). I need to display and modify this information alone, with get | get-config | edit-config | test these command operations, those operations I need to do?
netconf> get

Result:
<turing-machine xmlns="http://example.net/turing-machine">
<transition-function>
<delta>
<label>1</label>
<input>
<state>0</state>
<symbol>1</symbol>
</input>
<output>
<state>0</state>
<symbol>0</symbol>
<head-move>right</head-move>
</output>
</delta>
…………
<system xmlns="urn:ietf:params:xml:ns:yang:ietf-system">
<hostname>linux-93dk.site</hostname>
<clock>
<timezone-name>Asia/Shanghai</timezone-name>
</clock>
<dns-resolver>
<search>site</search>
<server>
<name>nameserver-1</name>
<udp-and-tcp>
<address>61.139.2.69</address>
</udp-and-tcp>
</server>
<server>
<name>nameserver-2</name>
<udp-and-tcp>
<address>192.168.1.1</address>
</udp-and-tcp>
</server>
</dns-resolver>
<authentication>
<user>
<name>at</name>
</user>
………
<tls>
<server-cert>MIID+TCCAuGgAwIBAgIBAjANBgkqhkiG9w0BAQUFADCBjDELMAkGA1UEBhMCQ1ox
FjAUBgNVBAgMDVNvdXRoIE1vcmF2aWExDTALBgNVBAcMBEJybm8xDzANBgNVBAoM
BkNFU05FVDEMMAoGA1UECwwDVE1DMRMwEQYDVQQDDApleGFtcGxlIENBMSIwIAYJ
KoZIhvcNAQkBFhNleGFtcGxlY2FAbG9jYWxob3N0MB4XDTE0MDcyNDE0MzI0NVoX
DTE1MDcyNDE0MzI0NVowdjELMAkGA1UEBhMCQ1oxFjAUBgNVBAgMDVNvdXRoIE1v
cmF2aWExDzANBgNVBAoMBkNFU05FVDEMMAoGA1UECwwDVE1DMQ8wDQYDVQQDDAZz
ZXJ2ZXIxHzAdBgkqhkiG9w0BCQEWEHNlcnZlckBsb2NhbGhvc3QwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx0jVMGPNfU+BBcW48LDn+RDBTuqSuGKsx
wUBeEjwShd6k9r18oBW4yMdbfY/qc3MOmeEV7RgZ02WggQ3eEknztxU6qPijvNkx
urfNUbYvwCzsxMDy1hebZ9IL/SsjHFFF6ZwZRczSr7gsQAKNmPak4qidqK8XlVuG
A2M8I7UmP9NqZRzRpWITnvsL0v0SI5sYz5sZtptaT8pYouy/FRz6wpldonumxNWC
mCAkCRSzOWbA5CAWIxJHncT38ICRBiHMZUKYfjhWzofOzdFmM5Ntx7jCviieCIDk
ts95I1IIWPL2WgqloTWu06OQ0FV2I08JBOYu44NdRMqCR4v72/87AgMBAAGjezB5
MAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENl
cnRpZmljYXRlMB0GA1UdDgQWBBTzeoS1AMXMO8uhogi+qJTqTuPW6zAfBgNVHSME
GDAWgBRzVhAiqNmwdXCV5rQAHg36KU0jaDANBgkqhkiG9w0BAQUFAAOCAQEAnyBQ
x/5caVqR2S0kBD8VG4BER5mIk3biDY2urzKHVG2GubvsFgrct1+vDUToFHyYwZtP
eRBORApiugqIP2WhKTIs1SDJ41X4IDnT/ChNpZ89b31zja1TnuJTzTdXEebBGkb9
ns98BH8Tg2+QIFcNB0eXqIiG5HG++MVoc4WzKB12fvfVJHKm9iHPpAC+EyTVScVv
L5otbwVhwp0MiaMDjEqoUJEbrT4JhtZh1BgCXzhw7LcNOD8Ukr6Q1uRue/jjpJbC
N6ofbnrSras5tJH9QWaW6tT5iDdIlKPExfrwHUqC4YHO0+3Q15yttwfh7wCwNU2H
dP4VfSRdn/LaTmR68Q==</server-cert>
……..
xmlns="urn:ietf:params:xml:ns:netmod:notification">
<streams>
<stream>
<name>NETCONF</name>
<description>NETCONF Base Notifications</description>
<replaySupport>true</replaySupport>
<replayLogCreationTime>2015-05-20T08:21:07Z</replayLogCreationTime>
</stream>
</streams>
</netconf><nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm">
<denied-operations>0</denied-operations>
<denied-data-writes>0</denied-data-writes>
<denied-notifications>0</denied-notifications>
</nacm>
2.GNS3 router in connection with the virtual machine cli, can connect , but using "get" command to encounter problem ” get: unexpected operation result.” How I solved in order to receive information on GNS3 router with netopeer-cli?

Michal Vasko

unread,
May 26, 2015, 3:31:03 AM5/26/15
to neto...@googlegroups.com, qian...@gmail.com
Hi,

I have a bit of trouble understanding your problem, but I'll try to help.

1. Firstly, <get>, <get-config> and <edit-config> are used for different purposes and it should be clear to you what they are (RFC 6241). You can likely ignore test, it's not relevant for you. Generally, to work with an XML subtree in any command, in which it makes sense such as those three mentioned, use filter (--filter). To learn how that works refer to the RFC as well.

2. This seems like a specific problem that I can't help you with unless I reproduce it, which I may or may not get to. But CLI should work correctly, so I must assume the problem is in GNS3.

Regards,
Michal

qian...@gmail.com

unread,
May 28, 2015, 12:32:08 AM5/28/15
to neto...@googlegroups.com, qian...@gmail.com

> Hi,Michal Vasko
>
>I want to see the routing table information, do you have a module to send me?



在 2015年5月26日星期二 UTC+8下午3:31:03,Michal Vasko写道:

Michal Vasko

unread,
May 28, 2015, 2:47:20 AM5/28/15
to neto...@googlegroups.com, qian...@gmail.com
Hi,

we did not implement the draft ietf-routing, so I must disappoint you, there is no transAPI module for it yet. If you meant the model, it can be found here. Also, if you're referring to the GNS3 router, I can't help you at all, it depends on what model they use. Please, try to be less vague in your questions, thank you.

Regards,
Michal

qian...@gmail.com

unread,
Jun 4, 2015, 3:51:11 PM6/4/15
to neto...@googlegroups.com, qian...@gmail.com
Hi!

I use the netopeer-cli connect the Cisco router, "get" command,get no information, which is why?

Michal Vasko

unread,
Jun 5, 2015, 2:45:11 AM6/5/15
to neto...@googlegroups.com, qian...@gmail.com
Hi,

this question should really be answered by Cisco, our CLI <get> should work correctly. We noticed that other NETCONF software often completely ignores namespaces, which breaks conformance to relevant RFCs and may cause the problem you encountered, but I am just guessing.

Regards,
Michal
Reply all
Reply to author
Forward
0 new messages