cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

Cattools connect via Linux to Cisco Nexus (sending linux commands after login....)

Hello Everyone,

I have to following issue with Cattools 3.11.0:

An activity which has a type of: Device.Backup.Running Config, which should make a backup of the running-config of a Nexus switch.

It should connect through a Linux host and that Linux host should connect to the Nexus switch, and after that make a backup of the running-config.

The login into the linux system works.

The SSH session to the Nexus switch also works.

But after the connection has been established it sends the following commands on the Nexus switch:

su

cat /etc/xinetd.conf

cat /etc/passwd

The above is the problem, I don't want those commands are send, I want that cattools makes a backup of a Nexus switch via a Linux host.

Has anyone also ran into this problem and have a fix for this problem?

I have searched the internet and also this forum but couldn't find any solution to this problem.

Explanation for the attachment:

1. Connected to the Linux host

2. An Error message for which I cannot find any information on the internet

3. Connected to the Nexus switch

4. Sending command: cat /etc/xinetd.conf

5. Sending command: cat /etc/passwd

6. Disconnected from the Nexus switch

Cut from the debug file created by cattools:

after successful login:

<R-14:54:48>[13]DEVICE_NAME#

<W-14:54:49>[13]

<R-14:54:49>[13][13][10][13]DEVICE_NAME#

<W-14:54:49>su[13]

<R-14:54:49>su[13][13][10]                 ^[13][10]% Invalid command at '^' marker.[13][10][13]DEVICE_NAME#

<W-14:54:49>cat /etc/passwd

<R-14:54:49>cat /etc/passwd

<W-14:54:49>[13]

<R-14:54:49>[13][13][10]                  ^[13][10]% Invalid command at '^' marker.[13][10][13]DEVICE_NAME#

<W-14:54:49>cat /etc/xinetd.conf

<R-14:54:49>cat /etc/xinetd.conf

<W-14:54:49>[13]

<R-14:54:49>[13][13][10]                  ^[13][10]% Invalid command at '^' marker.[13][10][13]DEVICE_NAME#

<D 14:54:49>

Tags (2)
0 Kudos
2 Replies
Level 15

Have you set up the Linux host as a device, and on the Nexus device added it to the Connect via section?

0 Kudos

On both your questions yes.

Cattools does "hop" through the Linux machine into the Nexus switch and does successfully log in. But after it sends those 3 weird commands which I cannot find anywhere and also NOT overrule them.

Cut from the debug file created by cattools:

after successful login:

<R-14:54:48>[13]DEVICE_NAME#

<W-14:54:49>[13]

<R-14:54:49>[13][13][10][13]DEVICE_NAME#

<W-14:54:49>su[13]

<R-14:54:49>su[13][13][10]                 ^[13][10]% Invalid command at '^' marker.[13][10][13]DEVICE_NAME#

<W-14:54:49>cat /etc/passwd

<R-14:54:49>cat /etc/passwd

<W-14:54:49>[13]

<R-14:54:49>[13][13][10]                  ^[13][10]% Invalid command at '^' marker.[13][10][13]DEVICE_NAME#

<W-14:54:49>cat /etc/xinetd.conf

<R-14:54:49>cat /etc/xinetd.conf

<W-14:54:49>[13]

<R-14:54:49>[13][13][10]                  ^[13][10]% Invalid command at '^' marker.[13][10][13]DEVICE_NAME#

<D 14:54:49>

If I do overrule them, cattools still sends the "SU" and after it sends (in debug) "cat show running-config", and in the log (on the nexus) I then see: File: show running-config, with: Invalid command at '^' marker.

Which is logical because Cisco doesn't know a command like: "SU" and "File: show running-config".

Cattools linux.pngCattools Nexus.png

   Linux Jumphost                                                                                                   Nexus switch

0 Kudos