I am trying the following command: “show platform hardware fed active fwd-asic resources tcam utilization” on cisco 9000 series switches. The problem is it is a command that is used in the enable mode, but NB treats it like a user. Is there a way to have NB setup cli commands in enable mode? I understand its not normal commands like show run or show log, but for the commands that are needing this privilege mode is there a way to set NB to use the proper mode?
Hi
NB will check the following keywords in the first 180 chars of the show command output, if any keywords are in the output, it considers failed, then go to pri mode. Otherwise, it thinks it’s a success, won’t execute it in the pri mode.
So may need to adjust the keywords or check range(fist 180).
Thanks,
Gerry
Thank you. It looks like it should work, but NB treats it as user instead of enable mode:
switch1>$rm hardware fed switch 1 fwd-asic resource tcam utilization
show platform hardware fed switch 1 fwd-asic resource tcam utilization
^
% Invalid input detected at '^' marker.
- Enable Debug. System Management page>Advanced Settings.
- Go to Driver and change it to 230.
- Try to retrieve the cmd again to see if it works.
See test results below:
2023-04-26 15:24:17 Begin data retrieving task via Worker WIN-QGGLHBCBCD4(pid: 22252)
2023-04-26 15:24:17 Prepare retrieving command.
2023-04-26 15:24:18 Telnet to device y.y.y.y via FS1(x.x.x.x)
2023-04-26 15:24:18 Telnet to device y.y.y.y successfully via FS1(x.x.x.x)
2023-04-26 15:24:18 Return from Device: Username:]
2023-04-26 15:24:18 Sending Username:******
2023-04-26 15:24:18 Return from Device: Password:]
2023-04-26 15:24:18 Sending Password:******
2023-04-26 15:24:19 Return from Device: BJ_L2_Core_3>]
2023-04-26 15:24:19 Sending "terminal length 0" command
2023-04-26 15:24:19 Return from Device: BJ_L2_Core_3>]
2023-04-26 15:24:19 Sending "show platform hardware fed switch 1 fwd-asic resource tcam utilization" command
2023-04-26 15:24:19 BJ_L2_Core_3>show platform hardware fed switch 1 fwd-asic resource tcam utilization
^
% Invalid input detected at '^' marker.
2023-04-26 15:24:19 Sending "enable" command
2023-04-26 15:24:19 Return from Device:1 Password:]
2023-04-26 15:24:19 Sending Enable Password:******
2023-04-26 15:24:20 Return from Device:2BJ_L2_Core_3#]
2023-04-26 15:24:20 Sending "enable" command
2023-04-26 15:24:20 Return from Device:2BJ_L2_Core_3#]
2023-04-26 15:24:20 Sending "terminal length 0" command
2023-04-26 15:24:20 Return from Device:2BJ_L2_Core_3#]
2023-04-26 15:24:20 Sending "show platform hardware fed switch 1 fwd-asic resource tcam utilization" command
2023-04-26 15:24:20 BJ_L2_Core_3#show platform hardware fed switch 1 fwd-asic resource tcam utilization
^
% Invalid input detected at '^' marker.
2023-04-26 15:24:20 The task was done and turns the session state to idle.
2023-04-26 15:24:20 Finished data retrieving task
Once it works, i suggset to open a case to Netbrain Support with license ID as we need to record the change in the KC so that it won’t be lost in future upgrade.
Reply
Login to the community
No account yet? Create an account
Sign in with SSO
Login via NetBrain UniversityEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.