10-12-2023 07:41 PM
I want to issue a netconf command from the controller server to the switch, but when I access the netconf session from the controller to ssh, it comes out as below and stops..
Is there a way on the switch side to see if this came in well after flying the netconf command from the controller to the switch with ssh?
[root@localhost ~]# sshpass -p **** ssh -s admin@[ip] -p 830 netconf
User Access Verification
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:base:1.1</capability>
<capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
<capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
<capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>
<capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.1</capability>
<capability>urn:ietf:params:netconf:capability:notification:1.0</capability>
<capability>urn:ietf:params:netconf:capability:interleave:1.0</capability>
<capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=report-all</capability>
<capability>http://cisco.com/ns/yang/cisco-nx-os-device?revision=2023-05-03&module=Cisco-NX-OS-device</capability>
</capabilities>
<session-id>1548315384</session-id>
</hello>
]]>]]>
10-13-2023 12:10 AM
what is the model of the switch and what IOS code running on it. ( as per message you trying nexus device ?)
you can enable Logging to check logs - (but there is lot of logs generated which not required once this is working )
IOS XE
nexus :
10-13-2023 12:57 AM
thanks to advice!! my switch model is Cisco Nexux NX api 9100.
when I access the netconf session, is it normal to stop as shown below? What do I need to do next??
[root@localhost ~]# sshpass -p **** ssh -s admin@[ip] -p 830 netconf
User Access Verification
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:base:1.1</capability>
<capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
<capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
<capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>
<capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.1</capability>
<capability>urn:ietf:params:netconf:capability:notification:1.0</capability>
<capability>urn:ietf:params:netconf:capability:interleave:1.0</capability>
<capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=report-all</capability>
<capability>http://cisco.com/ns/yang/cisco-nx-os-device?revision=2023-05-03&module=Cisco-NX-OS-device</capability>
</capabilities>
<session-id>1548315384</session-id>
</hello>
]]>]]>
10-13-2023 01:23 AM
What do I need to do next??
read the document provided above.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide