Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOSXR - "Admin mode has been deprecated" #3166

Closed
packettoobig opened this issue May 16, 2024 · 5 comments
Closed

IOSXR - "Admin mode has been deprecated" #3166

packettoobig opened this issue May 16, 2024 · 5 comments
Milestone

Comments

@packettoobig
Copy link
Contributor

cmd 'admin show inventory' do |cfg|

On IOS-XR 7.9, this is what you get :

RP/0/RP0/CPU0:ios#admin show inventory
Thu May 16 11:24:41.344 UTC
WARNING: Admin mode has been deprecated. Please consult the Command Line Interface Guide.

While show inventory outputs the expected data.

I think #2915 should be reverted.

@robertcheramy
Copy link
Collaborator

Would show inventory all or show inventory raw provide the information needed bei @maugli13 ?

(I've got no IOS-XR to test myself, just reading the documentation)
If these commands provide to much data, I'm also fine with reverting to show inventory and @maugli13 can use a custom model if he needs admin show inventory.

@robertcheramy robertcheramy added this to the 0.31 milestone May 17, 2024
@ytti
Copy link
Owner

ytti commented May 17, 2024

It would be also possible in the model to detect if we are running on cXR (32b QNX) or eXR (64b Linux), storate that in class instance variable, and later based on that variable behave differently in what commands to run or how to parse them.

The admin mode exists in cXR, not in eXR, but there are other differences too. And further, eXR has two very different versions, the calvados version ran on ASR9k and then the lite version ran on C8k.

@packettoobig
Copy link
Contributor Author

In addition to the above c8k running 7.9.2, I have access to some NCS-5501-SE running an older XR 7.3.2.
But not to ASR9ks.

On both the NCS and c8k, the output of show inventory is exactly the same as the output of show inventory all.
Regarding show inventory raw, it's about 1000 lines long (in my case) and has a lot of not-so-useful information, like every single current/voltage/power sensor and empty transceiver cage.

If you need an output I can provide it, but it's very time-consuming to anonymize all of them.

On the NCS, there is a lot more details in show inventory than in admin show inventory, which is why I suggested simply revertying the change in my original post.
Output below:

RP/0/RP0/CPU0:ncs#admin show inventory
Mon Jun  3 08:55:27.813 UTC
  
 Name: Rack 0                Descr: NCS5501 1RU Chassis                                         
 PID: NCS-5501-SE            VID: V01                   SN: <redacted>
 
 Name: 0/RP0                 Descr: NC5501 Route Processor Card                                 
 PID: NCS-5501-SE            VID: V01                   SN: <redacted>
 
 Name: 0/FT0                 Descr: NC5501 Fan Tray Reverse Flow                                
 PID: NCS-1RU-FAN-RV         VID: V01                   SN: N/A         
 
 Name: 0/FT1                 Descr: NC5501 Fan Tray Reverse Flow                                
 PID: NCS-1RU-FAN-RV         VID: V01                   SN: N/A         
 
 Name: 0/PM0                 Descr: NCS 5500 AC 1100W Power Supply Port-S Exhaust/Back-to-Front 
 PID: NCS-1100W-ACRV         VID: V01                   SN: <redacted>
 
 Name: 0/PM1                 Descr: NCS 5500 AC 1100W Power Supply Port-S Exhaust/Back-to-Front 
 PID: NCS-1100W-ACRV         VID: V01                   SN: <redacted>
RP/0/RP0/CPU0:ncs#show inventory      
Mon Jun  3 08:56:39.430 UTC
NAME: "0/RP0", DESCR: "NC5501 Route Processor Card"
PID: NCS-5501-SE       , VID: V01, SN: <redacted>

NAME: "TenGigE0/0/0/0", DESCR: "Cisco SFP+ 10G CU3M Pluggable Optics Module"
PID: SFP-H10GB-CU3M    , VID: V03, SN: <redacted>

NAME: "TenGigE0/0/0/1", DESCR: "Cisco SFP+ 10G CU3M Pluggable Optics Module"
PID: SFP-H10GB-CU3M    , VID: V03, SN: <redacted>

NAME: "TenGigE0/0/0/2", DESCR: "Non-Cisco SFP+ 10G LR Pluggable Optics Module"
PID: P.1396.10         , VID: A  , SN: <redacted>

NAME: "HundredGigE0/0/1/0", DESCR: "Cisco QSFP28 100G SM SR Pluggable Optics Module"
PID: QSFP-100G-SM-SR   , VID: V02, SN: <redacted>

NAME: "HundredGigE0/0/1/1", DESCR: "Cisco QSFP28 100G SM SR Pluggable Optics Module"
PID: QSFP-100G-SM-SR   , VID: V02, SN: <redacted>

NAME: "Rack 0", DESCR: "NCS5501 1RU Chassis"
PID: NCS-5501-SE       , VID: V01, SN: <redacted>

NAME: "0/FT0", DESCR: "NC5501 Fan Tray Reverse Flow"
PID: NCS-1RU-FAN-RV    , VID: V01, SN: N/A

NAME: "0/FT1", DESCR: "NC5501 Fan Tray Reverse Flow"
PID: NCS-1RU-FAN-RV    , VID: V01, SN: N/A

NAME: "0/PM0", DESCR: "NCS 5500 AC 1100W Power Supply Port-S Exhaust/Back-to-Front"
PID: NCS-1100W-ACRV    , VID: V01, SN: <redacted>

NAME: "0/PM1", DESCR: "NCS 5500 AC 1100W Power Supply Port-S Exhaust/Back-to-Front"
PID: NCS-1100W-ACRV    , VID: V01, SN: <redacted>

@maugli13
Copy link
Contributor

@robertcheramy I'm sorry. I missed the email in which I was mentioned. The main difference between "show inventory all" and "admin show inventory" on my IOS-XR is that the admin cli displays chassis and PSU serial numbers. I couldn't find any other way to collect this information.

@zagosch
Copy link

zagosch commented Jun 19, 2024

Using the default read-only-tg group for oxidized does result in failure for command admin show inventory. In my used version 7.9.21 (latest tac adviced), show inventory all also shows Powersupply serialnumbers.

I also like to revert back to "show inventory all, due to the need to extend permissions to execute admin show inventory. It is not needed to give this permission since show inventory all also gives SN for the PSU. No different output with the admin command. Only unneeded extended permissions for the oxidized user.

RP/0/RSP0/CPU0:xxxxxx#show inventory all         
Wed Jun 19 09:57:19.242 CEST
NAME: "0/RSP0", DESCR: "ASR 9901 Route processor"
PID: ASR-9901-RP       , VID: V03, SN: FOCxxxxx

NAME: "0/0", DESCR: "ASR 9901 Line card"
PID: ASR-9901-LC       , VID: V03, SN: FOCxxxxx

NAME: "Rack 0", DESCR: "ASR 9901 Chassis"
PID: ASR-9901          , VID: V03, SN: FOCxxxxx

NAME: "0/FT0", DESCR: "ASR 9901 Fan Tray"
PID: ASR-9901-FAN      , VID: V01, SN: FOCxxxxx

NAME: "0/FT1", DESCR: "ASR 9901 Fan Tray"
PID: ASR-9901-FAN      , VID: V01, SN: FOCxxxxx

NAME: "0/FT2", DESCR: "ASR 9901 Fan Tray"
PID: ASR-9901-FAN      , VID: V01, SN: FOCxxxxx

NAME: "0/PT0", DESCR: "Simulated Power Tray IDPROM"
PID: A9K-AC-PEM        , VID: V03, SN: FOTxxxxxx

NAME: "0/PT0-PM0", DESCR: "1600W AC Power Module"
PID: A9K-1600W-AC      , VID: V01, SN: POGxxxxxx

NAME: "0/PT0-PM1", DESCR: "1600W AC Power Module"
PID: A9K-1600W-AC      , VID: V01, SN: POGxxxxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants